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: 7 /Coverage entropy=0.6330395116644678
@Test(timeout = 4000) public void test07() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-3081)); ByteVector byteVector0 = new ByteVector(4); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 2, "/<pZ'q@6=nfTa}5<G9U", "7(I\"*", "/<pZ'q@6=nfTa}5<G9U", "7(I\"*"); Attribute attribute0 = new Attribute("`/5h{! 0@J?JAf"); fieldWriter0.visitAttribute(attribute0); // Undeclared exception! try { fieldWriter0.put(byteVector0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("wheel.asm.Attribute", 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\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 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 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 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 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 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 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(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void 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 test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 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 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\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 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 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 }", "@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 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 test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(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 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\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 @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@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 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_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\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 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 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 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 testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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 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\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 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\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 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(\"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(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(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(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", 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 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 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 testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", 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 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 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 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 test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n\tpublic void testGetCounts() {\n\t\tString cellBC = \"ATCAGGGACAGA\";\n\n\t\tint snpPos = 76227022;\n\t\tInterval snpInterval = new Interval(\"HUMAN_1\", snpPos, snpPos, true, \"test\");\n\t\tSampleGenotypeProbabilities result = new SampleGenotypeProbabilities(snpInterval, cellBC);\n\t\tSNPUMIBasePileup p = getPileUpFromFile(cellBC, \"CGGGGCTC\");\n\t\tp.addLocusFunction(LocusFunction.CODING);\n\t\tresult.add(p);\n\t\tresult.add(getPileUpFromFile(cellBC, \"CGCGGGAC\")); // this read doesn't overlap the SNP so it isn't added!\n\t\tresult.add(getPileUpFromFile(cellBC, \"CTGGGCTC\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GGAATGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GTGCCGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"TCGCAGAC\"));\n\n\t\t// the code coverage gods are pleased.\n\t\tAssert.assertEquals(result.getCell(), cellBC);\n\t\tAssert.assertEquals(result.getSNPInterval(), snpInterval);\n\n\t\tAssert.assertNotNull(result.toString());\n\n\t\t// get the unfiltered results.\n\t\tObjectCounter<Character> umiCounts = result.getUMIBaseCounts();\n\t\tObjectCounter<Character> umiCountsExpected = new ObjectCounter<>();\n\t\tumiCountsExpected.incrementByCount('A', 2);\n\t\tumiCountsExpected.incrementByCount('G', 3);\n\t\tAssert.assertEquals(umiCounts, umiCountsExpected);\n\n\t\tObjectCounter<Character> readCounts = result.getReadBaseCounts();\n\t\tObjectCounter<Character> readCountsExpected = new ObjectCounter<>();\n\t\treadCountsExpected.incrementByCount('A', 2);\n\t\treadCountsExpected.incrementByCount('G', 5);\n\t\tAssert.assertEquals(readCounts, readCountsExpected);\n\n\t\tSet<LocusFunction> expected = new HashSet<>(Arrays.asList(LocusFunction.CODING));\n\t\tAssert.assertEquals(result.getLocusFunctions(), expected);\n\n\t}", "@ParameterizedTest\n @ArgumentsSource(TestForestProvider.class)\n public void testMultipleAttributions(RandomCutForest forest) {\n int hardPass=0;\n int causal=0;\n double [] point ={6.0,0.0,0.0};\n DiVector result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.2);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0);\n assertTrue(result.high[0] > forest.getAnomalyScore(point)/3);\n if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n // the last line states that first coordinate was high and was a majority contributor to the score\n // the previous test states that the contribution is twice the average of the 12 possible contributors.\n // these tests all subparts of the score at once\n\n point=new double [] {-6.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.getHighLowSum()>1.0);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] > forest.getAnomalyScore(point)/3);\n if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > forest.getAnomalyScore(point)/3);\n if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,-6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.low[1] > forest.getAnomalyScore(point)/3);\n if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,0.0,6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.low[2] < 0.5);\n assertTrue(result.high[2] > forest.getAnomalyScore(point)/3);\n if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n point=new double [] {0.0,0.0,-6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.high[2] < 0.5);\n assertTrue(result.low[2] > forest.getAnomalyScore(point)/3);\n if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n assertTrue(causal>=5); // maximum is 6; there can be skew in one direction\n\n point=new double [] {-3.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] >\n forest.getAnomalyScore(point)/3);\n\n /* For multiple causes, the relationship of scores only hold for larger\n * distances.\n */\n\n point=new double [] {-3.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.low[0] > 0.5) ++hardPass;\n assertTrue(result.high[0] < 0.5);\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > 0.5);\n if (result.high[1]>0.9) ++hardPass;\n assertTrue(result.getHighLowSum(2)< 0.5);\n assertTrue(result.high[1]+result.low[0]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {6.0,-3.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.5);\n assertTrue(result.high[0] > 0.5);\n if (result.high[0]>0.9) ++hardPass;\n if (result.low[1] > 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.getHighLowSum(2) < 0.5);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {20.0,-10.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n if (result.high[0]>1.8*result.low[1]) ++hardPass;\n if (result.low[1]>result.high[0]/2.2) ++hardPass;\n\n assertTrue(hardPass>=15); //maximum is 20\n }", "@Test(timeout = 4000)\n public void 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 }" ]
[ "0.7375389", "0.7235311", "0.7055711", "0.6976389", "0.6950163", "0.6934853", "0.6891602", "0.68421626", "0.6837713", "0.6834483", "0.68325895", "0.6815903", "0.67775065", "0.6774998", "0.67521185", "0.6751948", "0.675025", "0.6744122", "0.67372996", "0.6706347", "0.6666653", "0.66488785", "0.6644215", "0.66396", "0.6589675", "0.65699524", "0.6552149", "0.65275764", "0.64950794", "0.6492908", "0.648203", "0.6462049", "0.6460651", "0.6426029", "0.6424729", "0.6424051", "0.6398934", "0.63985205", "0.6381397", "0.6378343", "0.6376026", "0.6365356", "0.63651234", "0.6361555", "0.6356259", "0.6356012", "0.6354981", "0.6347817", "0.63381547", "0.63370025", "0.6335644", "0.6328272", "0.63223344", "0.63181823", "0.6305495", "0.63016415", "0.62879014", "0.6268179", "0.6267282", "0.62368", "0.6213783", "0.6210404", "0.62039745", "0.6188911", "0.6184797", "0.6179687", "0.6174023", "0.6153965", "0.61474884", "0.61421937", "0.61047524", "0.61023647", "0.6101548", "0.6098377", "0.60950255", "0.60920966", "0.6088757", "0.6081276", "0.6064403", "0.6048725", "0.6048266", "0.6038369", "0.60347414", "0.6033318", "0.60330206", "0.60286415", "0.6023404", "0.60213804", "0.6006464", "0.6003215", "0.59926206", "0.5988736", "0.59798616", "0.59724426", "0.5957583", "0.5955061", "0.5954224", "0.59469056", "0.593784", "0.59359", "0.59285635" ]
0.0
-1
Test case number: 8 /Coverage entropy=0.6546695645285008
@Test(timeout = 4000) public void test08() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-984)); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 1, "", "org.apache.commons.io.filefilter.SuffixFileFilter", "org.apache.commons.io.filefilter.HiddenFileFilter", "org.apache.commons.io.filefilter.HiddenFileFilter"); ByteVector byteVector0 = new ByteVector(); fieldWriter0.visitAnnotation("org.apache.commons.io.filefilter.SuffixFileFilter", false); fieldWriter0.put(byteVector0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\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 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 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 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 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 test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\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 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 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 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 test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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\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 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 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 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 }", "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 }", "@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 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 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 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 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 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 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(\"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 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 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 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(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 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 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 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 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 test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Test\n @Tag(\"slow\")\n public void 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 @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n public void 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 test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test(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\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 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 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 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 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(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }", "@Test(timeout = 4000)\n public void 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 }", "@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 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\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\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 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 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 testSC205() {\n CuteNetlibCase.doTest(\"SC205.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 }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "public void test_0020() {\n int nFactors = 2;\n FactorAnalysis instance = new FactorAnalysis(data, nFactors);\n\n assertEquals(instance.nObs(), 18., 1e-15);\n assertEquals(instance.nVariables(), 6., 1e-15);\n assertEquals(instance.nFactors(), 2., 1e-15);\n\n FAEstimator estimators = instance.getEstimators(400);\n\n Vector uniqueness = estimators.psi();\n assertArrayEquals(\n new double[]{0.005, 0.114, 0.642, 0.742, 0.005, 0.097},\n uniqueness.toArray(),\n 2e-2);\n\n int dof = estimators.dof();\n assertEquals(dof, 4);\n\n double fitted = estimators.logLikelihood();\n assertEquals(fitted, 1.803, 1e-3);\n\n Matrix loadings = estimators.loadings();\n assertTrue(AreMatrices.equal(\n new DenseMatrix(new double[][]{\n {0.971, 0.228},\n {0.917, 0.213},\n {0.429, 0.418},\n {0.363, 0.355},\n {0.254, 0.965},\n {0.205, 0.928}\n }),\n loadings,\n 1e-3));\n\n double testStats = estimators.statistics();\n assertEquals(testStats, 23.14, 1e-2);\n\n double pValue = estimators.pValue();\n assertEquals(pValue, 0.000119, 1e-6);//R: 1-pchisq(23.14, df=4) = 0.0001187266\n\n// System.out.println(uniqueness.toString());\n// System.out.println(fitted);\n// System.out.println(loadings.toString());\n }" ]
[ "0.73239076", "0.71945643", "0.6957972", "0.6901606", "0.6865255", "0.6787769", "0.6785981", "0.67840123", "0.6768933", "0.6764407", "0.6734924", "0.67251897", "0.67235357", "0.67077166", "0.66999155", "0.66902715", "0.6671169", "0.66615397", "0.66372335", "0.66058147", "0.6533821", "0.65138113", "0.651257", "0.65107244", "0.6508713", "0.65062755", "0.6486977", "0.64712024", "0.6451431", "0.64263266", "0.6419931", "0.6391357", "0.63767755", "0.6370437", "0.63649786", "0.63547677", "0.63515854", "0.6349133", "0.6343325", "0.63420504", "0.63301116", "0.63254476", "0.6290162", "0.6285455", "0.62734807", "0.6268852", "0.62502396", "0.62444174", "0.6241356", "0.6232625", "0.6230748", "0.62264186", "0.6221565", "0.6220628", "0.62102306", "0.6191926", "0.6191126", "0.61819315", "0.6175503", "0.6174096", "0.61689097", "0.61683", "0.6166689", "0.6151721", "0.615137", "0.6150047", "0.6120883", "0.6115663", "0.6105204", "0.609859", "0.6087898", "0.608502", "0.6080996", "0.60781264", "0.6077453", "0.6073907", "0.6067063", "0.6056508", "0.6052626", "0.60523665", "0.6047556", "0.6009245", "0.5990491", "0.59863335", "0.59858876", "0.59829605", "0.5981605", "0.59805846", "0.59716016", "0.59548247", "0.5943049", "0.59430057", "0.5936288", "0.5923966", "0.59014994", "0.5900447", "0.58966565", "0.5889607", "0.58867306", "0.588463", "0.5874674" ]
0.0
-1
Test case number: 9 /Coverage entropy=0.6128694524619496
@Test(timeout = 4000) public void test09() throws Throwable { ClassWriter classWriter0 = new ClassWriter(64590); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 4096, "(EvKqIUClQZ", "(EvKqIUClQZ", ">p_<Y`fdepp", (Object) null); fieldWriter0.visitAnnotation("long", true); ByteVector byteVector0 = new ByteVector((byte)78); fieldWriter0.put(byteVector0); }
{ "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 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 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 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 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 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(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 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 test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\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 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 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 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\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 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(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 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 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\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\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 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 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 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(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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(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 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 }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", 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 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 @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 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 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 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 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 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 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\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 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();\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(\"\\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(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 test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\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(\"'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(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(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\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 testSC105() {\n CuteNetlibCase.doTest(\"SC105.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 test040() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falseNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testGetCounts() {\n\t\tString cellBC = \"ATCAGGGACAGA\";\n\n\t\tint snpPos = 76227022;\n\t\tInterval snpInterval = new Interval(\"HUMAN_1\", snpPos, snpPos, true, \"test\");\n\t\tSampleGenotypeProbabilities result = new SampleGenotypeProbabilities(snpInterval, cellBC);\n\t\tSNPUMIBasePileup p = getPileUpFromFile(cellBC, \"CGGGGCTC\");\n\t\tp.addLocusFunction(LocusFunction.CODING);\n\t\tresult.add(p);\n\t\tresult.add(getPileUpFromFile(cellBC, \"CGCGGGAC\")); // this read doesn't overlap the SNP so it isn't added!\n\t\tresult.add(getPileUpFromFile(cellBC, \"CTGGGCTC\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GGAATGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"GTGCCGTG\"));\n\t\tresult.add(getPileUpFromFile(cellBC, \"TCGCAGAC\"));\n\n\t\t// the code coverage gods are pleased.\n\t\tAssert.assertEquals(result.getCell(), cellBC);\n\t\tAssert.assertEquals(result.getSNPInterval(), snpInterval);\n\n\t\tAssert.assertNotNull(result.toString());\n\n\t\t// get the unfiltered results.\n\t\tObjectCounter<Character> umiCounts = result.getUMIBaseCounts();\n\t\tObjectCounter<Character> umiCountsExpected = new ObjectCounter<>();\n\t\tumiCountsExpected.incrementByCount('A', 2);\n\t\tumiCountsExpected.incrementByCount('G', 3);\n\t\tAssert.assertEquals(umiCounts, umiCountsExpected);\n\n\t\tObjectCounter<Character> readCounts = result.getReadBaseCounts();\n\t\tObjectCounter<Character> readCountsExpected = new ObjectCounter<>();\n\t\treadCountsExpected.incrementByCount('A', 2);\n\t\treadCountsExpected.incrementByCount('G', 5);\n\t\tAssert.assertEquals(readCounts, readCountsExpected);\n\n\t\tSet<LocusFunction> expected = new HashSet<>(Arrays.asList(LocusFunction.CODING));\n\t\tAssert.assertEquals(result.getLocusFunctions(), expected);\n\n\t}", "@Test(timeout = 4000)\n public void 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 }", "public int getCoverage (){\r\n return coverage;\r\n }" ]
[ "0.731589", "0.7188232", "0.69499785", "0.68590105", "0.68237406", "0.6803902", "0.6791224", "0.67900854", "0.67828745", "0.67684793", "0.67583364", "0.67443794", "0.67161584", "0.67110807", "0.66931355", "0.66575587", "0.66491807", "0.6640841", "0.65979546", "0.65909594", "0.6589369", "0.6560161", "0.6547991", "0.6543728", "0.6533193", "0.65262043", "0.6526173", "0.6516637", "0.6478421", "0.6457188", "0.6394269", "0.63865215", "0.6375604", "0.637471", "0.6357945", "0.6353176", "0.63529783", "0.63451385", "0.6345052", "0.6331862", "0.6325769", "0.6322057", "0.6321677", "0.63141704", "0.6307364", "0.6302356", "0.62924", "0.62923986", "0.62921685", "0.6291169", "0.62870014", "0.62867755", "0.6276121", "0.62720346", "0.6270975", "0.6256085", "0.62183803", "0.6207898", "0.6204496", "0.619915", "0.6198179", "0.6183618", "0.61805135", "0.61721903", "0.61650974", "0.6145078", "0.61397535", "0.61378086", "0.6135728", "0.61334157", "0.61302274", "0.61175996", "0.61094725", "0.61049634", "0.6092935", "0.60883343", "0.6071639", "0.6070422", "0.6069766", "0.6067817", "0.605658", "0.60497004", "0.60488176", "0.60424197", "0.6042004", "0.60417086", "0.60398245", "0.601422", "0.60040206", "0.6000478", "0.59844494", "0.59784687", "0.5973923", "0.5966949", "0.59652865", "0.5960862", "0.59500635", "0.59466565", "0.5942619", "0.59320277", "0.59302086" ]
0.0
-1
Test case number: 10 /Coverage entropy=0.4361623253853443
@Test(timeout = 4000) public void test10() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-946)); classWriter0.version = (-946); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-946), "?H+TLs Gws", "", "AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHAFBFAAFFAAQPIIJJIIIIIIIIIIIIIIIIII", "AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHAFBFAAFFAAQPIIJJIIIIIIIIIIIIIIIIII"); ByteVector byteVector0 = new ByteVector(723); fieldWriter0.put(byteVector0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void 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 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 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 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 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 test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(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 test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(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 test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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\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 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 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 test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n 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 testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", 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 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 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 test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\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 testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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 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 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 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 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(\"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 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 costTest() {\n // TODO: test cost\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 test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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(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 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\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 test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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 test10() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getUseBinNumbers());\n \n Discretize discretize1 = new Discretize();\n discretize0.m_UseBinNumbers = true;\n discretize0.makeBinaryTipText();\n discretize0.getCapabilities();\n String string0 = discretize0.getAttributeIndices();\n assertEquals(\"first-last\", string0);\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Test\n @Tag(\"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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\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 test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n 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 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 }" ]
[ "0.7334639", "0.7235945", "0.6984684", "0.69547325", "0.69243777", "0.6899719", "0.6897029", "0.6831157", "0.68000543", "0.6785083", "0.67566603", "0.6753792", "0.6746525", "0.6691041", "0.668631", "0.6675743", "0.66663736", "0.6654549", "0.66465616", "0.66447544", "0.66353357", "0.6621249", "0.65999", "0.6521008", "0.6513167", "0.65059763", "0.65002275", "0.648505", "0.648482", "0.64841473", "0.64769405", "0.6458405", "0.6454879", "0.6447629", "0.6416216", "0.6414932", "0.64124215", "0.6399782", "0.63892674", "0.63812464", "0.6381006", "0.63766426", "0.63719624", "0.636851", "0.63636285", "0.6363468", "0.63633984", "0.63598126", "0.6359319", "0.6356572", "0.6353981", "0.63523006", "0.6335041", "0.63338083", "0.63289344", "0.63141674", "0.62967294", "0.62941355", "0.6283069", "0.62755007", "0.62550384", "0.62489873", "0.6237162", "0.6220856", "0.6218774", "0.6214518", "0.6212733", "0.62061113", "0.6184733", "0.61773616", "0.61681026", "0.61647534", "0.6162652", "0.6162646", "0.615947", "0.6158935", "0.6155644", "0.6154785", "0.6151209", "0.6148409", "0.6146869", "0.61416", "0.61321485", "0.6126906", "0.6126239", "0.6120577", "0.60993963", "0.6098874", "0.60968786", "0.6095784", "0.60951513", "0.60882807", "0.60851413", "0.60722786", "0.60713327", "0.60664904", "0.6063782", "0.60628754", "0.6057766", "0.6056788", "0.60501724" ]
0.0
-1
Test case number: 11 /Coverage entropy=0.7902679680745903
@Test(timeout = 4000) public void test11() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-984)); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-984), "", "", "", ""); Attribute attribute0 = new Attribute(""); fieldWriter0.visitAttribute(attribute0); // Undeclared exception! try { fieldWriter0.getSize(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("wheel.asm.Attribute", 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\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 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 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 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 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(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(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n public void 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 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 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 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 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 }", "@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 }", "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 test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 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 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\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 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 test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "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 }", "@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\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void 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 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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 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 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 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 testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", 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 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 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 test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\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 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();\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 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 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 test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void 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 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 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(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 costTest() {\n // TODO: test cost\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n Attribute attribute0 = new Attribute(\"invalid CVS revision - not dots!\");\n attribute0.setWeight(0.0);\n Attribute.typeToString(attribute0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"UR<dj;O\", arrayList0, 3);\n Instances instances1 = new Instances(instances0);\n boolean boolean0 = discretize0.setInputFormat(instances1);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \"invalid CVS revision - not dots!\";\n stringArray0[2] = \"@end\";\n discretize0.setOptions(stringArray0);\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n }" ]
[ "0.7302863", "0.7199486", "0.6920665", "0.6856688", "0.68280274", "0.6820423", "0.6799471", "0.6793473", "0.676845", "0.6765762", "0.6742636", "0.67362124", "0.67027533", "0.669523", "0.6693088", "0.6671603", "0.6659852", "0.6642584", "0.6635569", "0.66277236", "0.657861", "0.65451103", "0.6544259", "0.6527663", "0.65180653", "0.6504427", "0.64912933", "0.64592177", "0.6459169", "0.64411294", "0.640756", "0.6387371", "0.63718987", "0.63699603", "0.63645995", "0.63578486", "0.6357347", "0.63524425", "0.6346467", "0.6341693", "0.6330282", "0.6329265", "0.63255364", "0.6324608", "0.63160545", "0.63081414", "0.63057804", "0.6302887", "0.62902546", "0.62861484", "0.62732506", "0.62613964", "0.62575597", "0.625207", "0.62323856", "0.6227903", "0.62173736", "0.62128055", "0.6210785", "0.62092406", "0.6192264", "0.61871386", "0.61786956", "0.6173485", "0.6158134", "0.6149594", "0.6137889", "0.612511", "0.61248314", "0.61121076", "0.61051667", "0.61020684", "0.60995626", "0.6095985", "0.60885864", "0.6068663", "0.60611606", "0.6059982", "0.6058891", "0.60562414", "0.6044903", "0.60420114", "0.6040447", "0.60306305", "0.60284257", "0.6020046", "0.60103047", "0.6006947", "0.59986395", "0.59902143", "0.5975313", "0.5973556", "0.59695077", "0.5967044", "0.5949773", "0.5946763", "0.5941121", "0.593135", "0.5928664", "0.5925894", "0.5921094" ]
0.0
-1
Test case number: 12 /Coverage entropy=0.8239592165010823
@Test(timeout = 4000) public void test12() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-946)); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-946), "(EvKqIUClQZ", "(EvKqIUClQZ", "(EvKqIUClQZ", "(EvKqIUClQZ"); fieldWriter0.visitAnnotation("(EvKqIUClQZ", false); int int0 = fieldWriter0.getSize(); assertEquals(48, 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 test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void 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 test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 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\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 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 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 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 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 test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\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 }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 }", "@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 test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(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(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 test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\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 test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(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 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 test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void 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 test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"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(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void 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 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();\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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 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 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 testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", 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(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 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 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 }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"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 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 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 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 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 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(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 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 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 @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 testSCFXM1() {\n CuteNetlibCase.doTest(\"SCFXM1.SIF\", \"18416.75902834894\", 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(\"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 }" ]
[ "0.7302375", "0.72410357", "0.68499076", "0.6817224", "0.6794751", "0.67893976", "0.6778431", "0.6759222", "0.67562836", "0.6723333", "0.66953593", "0.6678005", "0.6668075", "0.6660005", "0.66436774", "0.66432667", "0.66112554", "0.6600798", "0.65939397", "0.65856665", "0.6577175", "0.6575705", "0.6535543", "0.65139925", "0.6502138", "0.6497332", "0.6490786", "0.64742875", "0.6455899", "0.6453594", "0.64143735", "0.6393387", "0.6389855", "0.63790405", "0.63769436", "0.6375096", "0.63738996", "0.63713574", "0.63649833", "0.6364429", "0.6357475", "0.63490415", "0.6348323", "0.63459986", "0.6329736", "0.63295037", "0.6323547", "0.63064384", "0.63054746", "0.63049173", "0.62657255", "0.6264916", "0.62561226", "0.6254699", "0.6242254", "0.62385005", "0.6230594", "0.62264603", "0.62229496", "0.62222177", "0.6219878", "0.6216456", "0.6212958", "0.6199155", "0.6193597", "0.6188072", "0.61615926", "0.6157076", "0.61550915", "0.6144919", "0.6141086", "0.61398643", "0.6138751", "0.61314595", "0.6131219", "0.6130952", "0.61275965", "0.61143774", "0.6112397", "0.6108922", "0.61036587", "0.6103616", "0.60885555", "0.6082508", "0.60728496", "0.6053996", "0.60510147", "0.60427", "0.6019741", "0.60185933", "0.60117185", "0.5987393", "0.5978698", "0.5977802", "0.5969413", "0.59604526", "0.59592974", "0.59572315", "0.59502673", "0.59445196", "0.5943374" ]
0.0
-1
Test case number: 13 /Coverage entropy=0.5859526183035508
@Test(timeout = 4000) public void test13() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-946)); classWriter0.version = (-946); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-2423), "?H+TLs Gws", "?H+TLs Gws", "?H+TLs Gws", (Object) null); int int0 = fieldWriter0.getSize(); assertEquals(22, 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 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\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\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 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(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 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 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(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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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(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 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 test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\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 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 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 test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(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 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(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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(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 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 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(\"\\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 testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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\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 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 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\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\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\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\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 test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\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 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 test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.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 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 testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\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 @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 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(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void 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 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 }" ]
[ "0.73924", "0.7291388", "0.69084495", "0.688942", "0.6888375", "0.6884188", "0.68151134", "0.6807329", "0.67762214", "0.67746603", "0.6770264", "0.67462933", "0.6744209", "0.67394996", "0.6734989", "0.6719625", "0.66924757", "0.6662414", "0.66614914", "0.66538465", "0.6639877", "0.66327035", "0.658875", "0.6584306", "0.6578034", "0.6564534", "0.6528074", "0.6482317", "0.6480391", "0.6471711", "0.6460886", "0.64249575", "0.64123476", "0.64076984", "0.640702", "0.6402604", "0.6373345", "0.63720155", "0.6363802", "0.6361603", "0.6359159", "0.6339742", "0.6336937", "0.6326232", "0.6318263", "0.6312039", "0.6310734", "0.6287766", "0.6286411", "0.6284306", "0.6280694", "0.6275819", "0.6268213", "0.62632227", "0.62625957", "0.625887", "0.6258656", "0.6257068", "0.6252887", "0.62515134", "0.6241264", "0.62305295", "0.61829954", "0.6155389", "0.6155315", "0.6140876", "0.6137104", "0.61285734", "0.61246675", "0.6123822", "0.6112196", "0.61099774", "0.60987127", "0.6094531", "0.6092334", "0.6088284", "0.60837245", "0.60716075", "0.6062527", "0.6061219", "0.6061024", "0.6054142", "0.604059", "0.6025472", "0.6025384", "0.60225236", "0.6016377", "0.6009685", "0.6004212", "0.59991574", "0.5989624", "0.59732807", "0.59627736", "0.59579766", "0.59565216", "0.5954945", "0.5951931", "0.5951092", "0.5950238", "0.5917965", "0.59156394" ]
0.0
-1
Test case number: 14 /Coverage entropy=0.8239592165010823
@Test(timeout = 4000) public void test14() throws Throwable { ClassWriter classWriter0 = new ClassWriter(64590); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 4096, "(EvKqIUClQZ", "(EvKqIUClQZ", ">p_<Y`fdepp", (Object) null); fieldWriter0.visitAnnotation("long", true); int int0 = fieldWriter0.getSize(); assertEquals(34, 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 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(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 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 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 test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(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 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(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 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 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 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 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 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 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 }", "@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 test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\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 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 }", "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 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(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 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 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 test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void 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 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(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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 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 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\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", 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 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(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "@Test(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 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 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 }", "@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\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", 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 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 testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", 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 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 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 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(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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 testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateMargins(doubleArray0, 3, (-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 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 test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }" ]
[ "0.7406436", "0.7317136", "0.69192994", "0.68665636", "0.6853144", "0.68389285", "0.68358374", "0.68349046", "0.6818844", "0.681719", "0.6799114", "0.6779163", "0.6777728", "0.67564356", "0.67434424", "0.6720285", "0.6697798", "0.6681643", "0.66774803", "0.6672683", "0.66691315", "0.66304076", "0.6591137", "0.6555479", "0.65439755", "0.65219104", "0.6502786", "0.6494501", "0.64940786", "0.6493436", "0.6489167", "0.64703393", "0.64687514", "0.64643157", "0.6453762", "0.64501566", "0.6439967", "0.64146274", "0.64032143", "0.63944364", "0.63883805", "0.63876784", "0.6376928", "0.63745224", "0.63716894", "0.6353292", "0.63427335", "0.6339471", "0.63370526", "0.63137704", "0.6313496", "0.6313236", "0.6308053", "0.63073504", "0.6306747", "0.6301443", "0.6300481", "0.6299206", "0.6295019", "0.62921274", "0.62879723", "0.62778306", "0.62687695", "0.62572783", "0.6252273", "0.62379813", "0.62161374", "0.6207498", "0.6180813", "0.61750805", "0.6171371", "0.6171268", "0.61630934", "0.6155084", "0.6141396", "0.6137674", "0.6135872", "0.6128878", "0.61227643", "0.61217904", "0.6119121", "0.6114236", "0.61128867", "0.61100024", "0.6109341", "0.61057234", "0.6102761", "0.6083621", "0.6061662", "0.60568905", "0.60351974", "0.6030495", "0.6022399", "0.60175383", "0.6012019", "0.59960395", "0.598129", "0.59808457", "0.59781116", "0.596932", "0.59631735" ]
0.0
-1
Test case number: 15 /Coverage entropy=0.0
@Test(timeout = 4000) public void test15() throws Throwable { ClassWriter classWriter0 = new ClassWriter(9); Object object0 = new Object(); FieldWriter fieldWriter0 = null; try { fieldWriter0 = new FieldWriter(classWriter0, 8, "?0dqr", "ConstantVlue", (String) null, object0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // value java.lang.Object@61854751 // verifyException("wheel.asm.ClassWriter", 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 test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "@Test(timeout = 4000)\n public void 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\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 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 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(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 test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "public int countTestCases() {\n return 1;\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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 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 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 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 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 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 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 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 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 test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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(\"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 test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", 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 }", "@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 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 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 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 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 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 test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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 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 sustainMassiveDamage() {\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\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 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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, 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\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 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 @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 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 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 test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = discretize0.getOptions();\n discretize0.setOptions(stringArray0);\n assertEquals(6, stringArray0.length);\n \n String string0 = discretize0.globalInfo();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "public int getCoverage (){\r\n return coverage;\r\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(\"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 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\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 testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.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\n public void costTest() {\n // TODO: test cost\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 test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"%\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n discretize0.findNumBinsTipText();\n double[][] doubleArray0 = new double[0][7];\n discretize0.m_CutPoints = doubleArray0;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n discretize0.setInvertSelection(false);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "@Test(timeout = 4000)\n public void 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_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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 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 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 }", "@Override\n public int getGridCoverageCount() {\n return 1;\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\n public void enemySustainMassiveDamage() {\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 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 testKEN_18() {\n CuteNetlibCase.doTest(\"KEN-18.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n Discretize discretize0 = new Discretize(\"^yH*RVC#\\\"|tm,k2XpGN\");\n String[] stringArray0 = new String[2];\n discretize0.m_ClassIndex = 906;\n discretize0.m_IgnoreClass = true;\n stringArray0[0] = \"^yH*RVC#\\\"|tm,k2XpGN\";\n stringArray0[1] = \"^yH*RVC#\\\"|tm,k2XpGN\";\n discretize0.setOptions(stringArray0);\n discretize0.setAttributeIndices(\"^yH*RVC#\\\"|tm,k2XpGN\");\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\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 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 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 @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }" ]
[ "0.71060294", "0.6956904", "0.69293606", "0.67674565", "0.6696555", "0.6627507", "0.6623979", "0.65975493", "0.65889937", "0.65847325", "0.6578186", "0.65077186", "0.6499639", "0.6498275", "0.6492849", "0.6454235", "0.64488155", "0.6429594", "0.6423723", "0.6390565", "0.63873315", "0.6381884", "0.6376087", "0.63556576", "0.63450533", "0.63280666", "0.63234216", "0.63233423", "0.6323273", "0.6306033", "0.63039225", "0.63034797", "0.6294011", "0.6291669", "0.6289067", "0.62890357", "0.6286312", "0.62794876", "0.6271413", "0.6255252", "0.625385", "0.6253592", "0.6237883", "0.6236018", "0.6233648", "0.6221234", "0.6221112", "0.62188673", "0.62159234", "0.6215643", "0.6209465", "0.6199196", "0.61972976", "0.61964893", "0.6195856", "0.61871845", "0.61767125", "0.61763954", "0.6168038", "0.6162887", "0.6162487", "0.61619174", "0.6161776", "0.61615", "0.615685", "0.61552966", "0.61541975", "0.6150275", "0.614441", "0.61389846", "0.6138278", "0.6132204", "0.61265266", "0.6118381", "0.6109364", "0.61057025", "0.60999864", "0.6096536", "0.60916704", "0.6089811", "0.6081718", "0.60749024", "0.6061188", "0.6060463", "0.60564494", "0.6052204", "0.6039829", "0.60372186", "0.6026061", "0.60233736", "0.6018812", "0.6014029", "0.60127693", "0.6012635", "0.601129", "0.6010669", "0.6009917", "0.6007923", "0.5993931", "0.59833723", "0.5983043" ]
0.0
-1
Test case number: 16 /Coverage entropy=0.0
@Test(timeout = 4000) public void test16() throws Throwable { ClassWriter classWriter0 = new ClassWriter(9); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 1596, "ConstantVlue", "xWJwacYp%f=Qk", "eprF6eZaPtd", (Object) null); Object object0 = new Object(); FieldWriter fieldWriter1 = null; try { fieldWriter1 = new FieldWriter(classWriter0, 2, "The list of names must not be null", "The list of names must not be null", ":qO^Q~", object0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // value java.lang.Object@6f18df94 // verifyException("wheel.asm.ClassWriter", 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 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 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 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 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\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 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 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 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 test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void 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 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 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 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 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 }", "@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 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 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\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 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 test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n @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 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\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 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 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 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 test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", 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 @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 testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "@Test(timeout = 4000)\n public void 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 @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "@Test(timeout = 4000)\n public void 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 testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", 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 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 testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void 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 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 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 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 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 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 testOSA_30() {\n CuteNetlibCase.doTest(\"OSA-30.SIF\", \"1234567890\", \"1234567890\", 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 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 @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 test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "@Test\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 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 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 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 test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_18() {\n CuteNetlibCase.doTest(\"KEN-18.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", null, NumberContext.of(7, 4));\n }", "@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 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 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_D() {\n CuteNetlibCase.doTest(\"CRE-D.SIF\", \"1234567890\", \"1234567890\", 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 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 testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"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 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 testNESM() {\n CuteNetlibCase.doTest(\"NESM.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\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 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 public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", 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 sustainMassiveDamage() {\n }", "public int countTestCases() {\n return 1;\n }" ]
[ "0.7174597", "0.7060853", "0.68338567", "0.66663295", "0.66520846", "0.6623621", "0.65888536", "0.6585123", "0.65755093", "0.65565354", "0.65252686", "0.65061516", "0.6506011", "0.64844507", "0.6472315", "0.6466669", "0.6465471", "0.64600545", "0.6447982", "0.64444786", "0.6416169", "0.6386719", "0.63706976", "0.6367941", "0.6348676", "0.6341984", "0.6320559", "0.6317879", "0.6303143", "0.6299991", "0.6287215", "0.62851137", "0.6281983", "0.6280938", "0.62780917", "0.62557864", "0.6250433", "0.6247339", "0.6244366", "0.6228787", "0.6228672", "0.62129617", "0.6212566", "0.6204303", "0.62040895", "0.61995816", "0.61928546", "0.6190811", "0.6188655", "0.61810714", "0.61697924", "0.61680263", "0.615263", "0.61521304", "0.61494476", "0.61473745", "0.6143326", "0.6140996", "0.61226785", "0.6122528", "0.6115327", "0.6110045", "0.6109741", "0.6093532", "0.6093035", "0.6092693", "0.6090356", "0.6082925", "0.60786927", "0.6063806", "0.6061665", "0.6058473", "0.6055315", "0.6044581", "0.6041811", "0.6040519", "0.60357285", "0.60337514", "0.6029699", "0.6027768", "0.60195714", "0.6006794", "0.60056466", "0.6001877", "0.5978467", "0.59742594", "0.59679013", "0.5964684", "0.5962945", "0.59548193", "0.59456235", "0.5938706", "0.5928918", "0.59177256", "0.5914543", "0.59119433", "0.59113824", "0.5907707", "0.59012395", "0.5900472", "0.5892215" ]
0.0
-1
Test case number: 17 /Coverage entropy=0.5623351446188083
@Test(timeout = 4000) public void test17() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-946)); FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 859, "dxwb%3tF<", "EE}s|u6S|Mp~SkA}y", "Invalid IOCase name: ", "RuntimeVisibleAnnotations"); fieldWriter0.visitEnd(); }
{ "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 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 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 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 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 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 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 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 }", "@Override\n protected long getTestSolution() {\n return 100024;\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 @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 test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "@Test\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 test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "@Test(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(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n 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 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\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 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(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\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 test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "@Test\n 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 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 @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 test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\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 test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void 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 testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", 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 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 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(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getMakeBinary());\n \n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-821));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "@Test\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 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 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\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 @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test\n public void 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 testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", 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 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 testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.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 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 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 testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n public void costTest() {\n // TODO: test cost\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 }", "@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 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 test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", 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\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 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 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 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(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\n public void testFitnessProportionateSelection()\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 public void sustainMassiveDamage() {\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 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.73473686", "0.7176836", "0.6871163", "0.6851227", "0.68307805", "0.6826464", "0.6794623", "0.67943424", "0.678182", "0.6779733", "0.6766556", "0.67540497", "0.6718832", "0.6718755", "0.6705952", "0.6700987", "0.6697751", "0.66625375", "0.6658959", "0.6640303", "0.6633514", "0.66251093", "0.6568675", "0.6544563", "0.65404165", "0.65239424", "0.65194345", "0.65130025", "0.6505709", "0.6498062", "0.64931023", "0.64885026", "0.6453972", "0.6449934", "0.64461243", "0.64397", "0.64308697", "0.6430527", "0.64217174", "0.6411571", "0.6408056", "0.63925743", "0.63876724", "0.6370323", "0.63685924", "0.6366234", "0.63606495", "0.6351505", "0.63472515", "0.6340982", "0.6337113", "0.6336993", "0.63303816", "0.6306479", "0.6290586", "0.6289321", "0.6289042", "0.6286334", "0.62779486", "0.6269381", "0.62684166", "0.6264484", "0.6259654", "0.62565523", "0.6250827", "0.62507993", "0.62476337", "0.6247299", "0.62419933", "0.6241924", "0.62412184", "0.62354195", "0.6233796", "0.6224089", "0.6215039", "0.6200502", "0.6196932", "0.61945325", "0.6184315", "0.6177818", "0.6171616", "0.61648816", "0.6164434", "0.616352", "0.61569387", "0.6148592", "0.6147553", "0.6144484", "0.614159", "0.6140219", "0.6138026", "0.6136524", "0.61357164", "0.6133387", "0.61263317", "0.6122455", "0.61150414", "0.6103883", "0.6102367", "0.609963", "0.60815954" ]
0.0
-1
when a player get damage, this method is used
public void getDamage(int damagePoint){ hp-=damagePoint; if(hp==0){ alive=false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "private void subtractPlayerHealth(int damage) {\n this.playerShipHealth -= damage;\n }", "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "public void receiveDamage(double damage) {\r\n health = health - damage;\r\n }", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }", "public int giveDamage();", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "public void takeDamage(int damage);", "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "@Override\n\tprotected void onPlayerDamage(EntityDamageEvent evt, Player p) {\n\t\tsuper.onPlayerDamage(evt, p);\n\t\tif(evt.getCause() == DamageCause.WITHER){\n\t\t\tGUtils.healDamageable(getOwnerPlayer(), evt.getDamage() * 1.5);\n\t\t\tVector v = Utils.CrearVector(getOwnerPlayer().getLocation(), getPlayer().getLocation()).multiply(0.5D);\n\t\t\tdouble max = 7;\n\t\t\tfor (int i = 0; i < max; i++) {\n//\t\t\t\tgetWorld().playEffect(getPlayer().getEyeLocation().add(0, -0.8, 0).add(v.clone().multiply(i/max)),\n//\t\t\t\t\t\tEffect.HEART, 0);\n\t\t\t}\n\t\t}\n\t}", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "private void takeDamage(int damage){ health -= damage;}", "public void handleAttack(int damage) {\n this.health -= damage;\n }", "public void takeDamage(int damage) {\n this.damageTaken += damage;\n }", "public int takeDamage(int damage) {\n damage -= ARMOR;\r\n // set new hp\r\n return super.takeDamage(damage);\r\n }", "@Override\n\tpublic void getHit(int damage) {\n\t\tsuper.getHit(damage);\n\t}", "public void hurt(int damage)\n {\n \t hp -= (damage - ( damage * armor / 100 ));\n \t //System.out.println(\"hp: \" + hp);\n }", "public void damage(int damageTaken) {\n //TODO: Create specific damage methods instead of damage calls everywhere(see damagedByBullet())\n if (!invincible) {\n this.hp -= damageTaken;\n }\n }", "public void OnDamage(AI ai, int aTK, float f) {\n\tif(DamagedTimer < 0.8f)\n\t\treturn;\n\tvel.x = f;\n\tvel.y = 3;\n\tDamagedTimer = 0;\n\tgrounded = false;\n\taTK -= (getDEF()*0.8f);\n\tif(aTK <= 0)\n\t\taTK = 1;\n\tHP -= aTK;\n\tInventory.CurrentInventory.dmgTxts.add(new dmgText(pos.x, pos.y+1, aTK));\n\t\n\tSoundManager.PlaySound(\"playerHurt\",3);\n\t\n\t\n}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "public float getDamage() {\n return damage;\n }", "public int doDamage(Actor attacker, int damage){\n if( iframes==0 ){\n health -= damage;\n healthbar.setHealth(health);\n iframes = 20;\n MuteControl.playSound(attackSound);\n if (health>0) return damage;\n die();\n return damage;\n }else return 0;\n }", "public int getDamage() {\n return damage;\n }", "private void subtractEnemyHealth(int damage) {\n this.enemyShipHealth -= damage;\n }", "public void attack(Player p){\n p.takeDamage(damage);\n }", "@EventHandler(priority = EventPriority.HIGHEST)\n public void onEntityDamage(EntityDamageEvent event) {\n if (event instanceof EntityDamageByEntityEvent) {\n EntityDamageByEntityEvent edbeEvent = (EntityDamageByEntityEvent) event;\n Entity damager = edbeEvent.getDamager();\n if (damager instanceof Player) {\n //Player attacked some entity\n //Show info about players attack tool\n p = (Player) damager;\n\n if (p != null\n && this.plugin.commandEnabledForPlayers.contains(p.getName())\n && this.f.getBoolean(\"durability_warning_enabled\")) {\n durability(p, event);\n }\n } else if (edbeEvent.getEntity() != null && edbeEvent.getEntity() instanceof Player) {\n //Entity attacked player\n //Check if durability of armor is gone\n //Then check if armor is below critial level and output a warning message\n p = (Player) edbeEvent.getEntity();\n\n if (-0.0 != edbeEvent.getDamage(EntityDamageEvent.DamageModifier.ARMOR)\n && this.plugin.commandEnabledForPlayers.contains(p.getName())\n && this.f.getBoolean(\"durability_warning_enabled\")) {\n //The armor took damage\n durability(p, event, true);\n }\n }\n\n }\n\n }", "public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }", "public void gotDamaged() {\n \tif(!dead) {\n\t\t\tdamaged = true;\n\t\t\tgettingHitParticleEffect.reset();\n\t\t\tcolorValue = 0;\n\t\t}\n\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void takeDamage(int damage) {\n\t\tlife = (life-damage<0)?0:life-damage;\n\t}", "public int getDmg(){\r\n return enemyDmg;\r\n }", "default void onHitPlayer(@NotNull String name, int damage) {}", "public void onEntityDamage(EntityDamageEvent eventt)\r\n\t{\r\n\t\tplugin.do_damage(eventt);\r\n\t}", "public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player Lives: \" + playerLives);\n }\n }", "public void damage(Hero other) {\n this.weapon.knockBack(other, this.state, this.dir);\n }", "@Override\r\n\tpublic String attack(int damage) {\n\t\treturn damage +\"로 공격 합니다.\";\r\n\t}", "public void takeDamage(int damage) {\r\n health -= damage;\r\n if(health<=0)setAlive(false);\r\n }", "public void recieveDamage(){\n this.health--;\n }", "@Override\n\tpublic void onEntityDamaged(EntityDamageEvent e) {\n\t\t\n\t}", "public int getDamage() {\r\n\t\treturn damage;\r\n\t}", "@EventHandler\n public void onPlayerDeath(PlayerDeathEvent event) {\n\n Player player = event.getEntity();\n World world = player.getWorld();\n int experience = player.getTotalExperience();\n\n // TODO: Add configurable.\n player.setTotalExperience(experience / 2);\n\n // TODO: Add configurable.\n // Reduce the player's level by 8.\n player.setLevel(player.getLevel() >= 8 ? player.getLevel() - 8 : 0);\n player.setExp(0);\n\n Inventory playerInventory = player.getInventory();\n\n // TODO: Add configurable.\n // Drop all the items in the player's internal inventory.\n for (int i = 9; i <= 35; i++) {\n ItemStack item = playerInventory.getItem(i);\n if (item != null) {\n world.dropItem(player.getLocation(), item);\n playerInventory.clear(i);\n }\n }\n\n // TODO: Add configurable.\n // Damage all equipped armor by a set amount in config file.\n for (int i = 36; i <= 39; i++) {\n ItemStack equipment = playerInventory.getItem(i);\n\n // Make sure we're wearing something!\n if (equipment == null) continue;\n\n // Check if we can damage this item, otherwise continue.\n ItemMeta meta = equipment.getItemMeta();\n if (!(meta instanceof Damageable)) continue;\n\n int value = ksiPlugin.config.getInt(\"armorDurabilityDamage\");\n if (value == 0) continue;\n else {\n value = 100 / value;\n }\n\n int currentDamage = ((Damageable) meta).getDamage();\n int damageModifier = equipment.getType().getMaxDurability() / value;\n\n ((Damageable) meta).setDamage(currentDamage + damageModifier);\n equipment.setItemMeta(meta);\n }\n }", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "public void damaged() {\n this.damageState = DamageState.DAMAGED;\n }", "@Override\r\n public void onHit(int damage){\n if(box2body != null){\r\n hp -= damage;\r\n screen.getGameManager().get(\"Sounds/orc-34-hit.wav\", Sound.class).play();\r\n if(this.hp <= 0) {\r\n screen.bodiesToDelete.add(box2body);\r\n deleteFlag = true;\r\n screen.spawnedCreatures.remove(this);\r\n screen.getGameManager().get(\"Sounds/orc-32-death.wav\", Sound.class).play();\r\n\r\n //Award Experience\r\n screen.getPlayer().awardExperience(this.experienceValue);\r\n screen.getPlayer().increaseKillCount();\r\n }\r\n }\r\n //Attack player when damaged\r\n //Prevents player from sniping monsters using Wander AI\r\n if(currentState != State.ATTACKING){\r\n Vector2 orcPosition = new Vector2(box2body.getPosition().x, box2body.getPosition().y);\r\n Vector2 playerPosition = new Vector2(screen.getPlayer().box2body.getPosition().x, screen.getPlayer().box2body.getPosition().y);\r\n\r\n currentState = State.HASBEENATTACKED;\r\n velocity = new Vector2(playerPosition.x - orcPosition.x, playerPosition.y - orcPosition.y);\r\n box2body.setLinearVelocity(velocity.scl(speed));\r\n }\r\n }", "public void damageDevice() {\n\t\t\r\n\t}", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public void reduceHealth(int damage, int player) {\n\t\tif (player == OPPONENT) {\n\t\t\tint currentHealth = Integer.parseInt(opponentHealth.getText());\n\t\t\tint newHealth = currentHealth - damage;\n\t\t\topponentHealth.setText(Integer.toString(newHealth));\n\t\t\tdouble reduction = opponentHealthBar.getWidth()*(((double)newHealth)/((double) currentHealth));\n\t\t\thealthBarDamageAnimation(0,reduction);\n\t\t} else if (player == LOCAL) {\n\t\t\tint currentHealth = Integer.parseInt(localHealth.getText());\n\t\t\tint newHealth = currentHealth - damage;\n\t\t\tlocalHealth.setText(Integer.toString(newHealth));\n\t\t\tdouble reduction = localHealthBar.getWidth()*(((double)newHealth)/((double) currentHealth));\n\t\t\thealthBarDamageAnimation(1,reduction);\n\t\t}\n\t}", "@Override\n\tpublic void onHitPlayer(EntityDamageByEntityEvent e, Player damager, Player victim) {\n\t\t\n\t}", "public double getDamage() {\n return damage;\n }", "public void takeDamage (double damage)\n {\n getComponent(HealthC.class).decrease(damage);\n if (getComponent(HealthC.class).isDead())\n {\n setActive(false);\n }\n }", "public void playerAttack() {\n if (playerTurn==true) {\n myMonster.enemHealth=myMonster.enemHealth-battlePlayer.str;\n }\n playerTurn=false;\n enemyMove();\n }", "public float getHungerDamage();", "private static int playerDamageDealt(int playerAttack, int monsterDefense){\r\n int playerDamageDealt;\r\n playerDamageDealt = (playerAttack - monsterDefense);\r\n return playerDamageDealt;\r\n }", "public void takeDamage(int damage){\n\t\thealth -= damage;\n\t\tif(health<= 0) {\n\t\t\tspawnNew();\n\t\t}\n\t}", "public double getDamage() {\r\n\t\treturn damage;\r\n\t}", "@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic boolean damageEntity(DamageSource damagesource, float f2) {\n\t\tboolean toReturn = super.damageEntity(damagesource, f2);\r\n\t\tif(f2>=3 && !this.isInvulnerable(damagesource) && damagesource.getEntity()!=null && damagesource.getEntity().getBukkitEntity() instanceof Player) { // prevent things like snowball damage from triggering this ability\r\n\t\t\tif(random.nextInt(100)+1<=20) { //prevent boss from getting combo'd to hard in corner\r\n\t\t\t\tif(!teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity())) {\r\n\t\t\t\t\tteleportToEnemy();\t\t\r\n\t\t\t\t\tteleportCooldown.addCooldown((Player)damagesource.getEntity().getBukkitEntity());\r\n\t\t\t\t\tLog.info(teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity()));\r\n\t\t\t\t\tLog.info(((Player)damagesource.getEntity().getBukkitEntity()).getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}", "public void attack(Player player) {\n this.damage = 18 - player.getfPoint(); // the higher the Fighter skill,\n // the lower the damage. change the math.\n int newHealth = player.getShip().getHealth() - damage;\n player.getShip().setHealth(newHealth);\n }", "public void loseHealth(int damage) {\r\n this.health -= damage;\r\n if (this.health <=0) {\r\n System.out.println(\"Player knocked out\");\r\n //Reduce number of lives remaining for the player\r\n }\r\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public void takeAttack(int damage) {\r\n if(this.evasion > 0)\r\n this.evasion--;\r\n else\r\n this.takeDamage(damage);\r\n }", "@EventHandler\n public void onEntityDamage(EntityDamageByEntityEvent e) {\n if (plugin.getConfig().getBoolean(\"EnabledDetections.Attack\") && e.getDamager() instanceof Player) {\n Player p = (Player) e.getDamager();\n plugin.getPlayer(p).interact();\n }\n }", "@Listener\n public void onEntityDamage(DamageEntityEvent event) {\n if (!(event.getTargetEntity() instanceof Player) || !(event.getCause().first(EntityDamageSource.class).isPresent()))\n return;\n\n EntityDamageSource source = event.getCause().first(EntityDamageSource.class).get();\n if (!(getTrueDamager(source) instanceof Player)) {\n return;\n }\n\n Player spongePlayer = (Player) event.getTargetEntity();\n org.battleplugins.api.entity.living.player.Player player = plugin.getServer().getPlayer(spongePlayer.getName()).get();\n TrackerInterface pvpTracker = plugin.getTrackerManager().getPvPInterface();\n\n RecapManager recapManager = pvpTracker.getRecapManager();\n Recap recap = recapManager.getDeathRecaps().computeIfAbsent(player.getName(), (value) -> new Recap(player));\n if (recap.isVisible()) {\n recap = recapManager.getDeathRecaps().compute(player.getName(), (key, value) -> new Recap(player));\n }\n\n recap.getLastDamages().add(new DamageInfo(spongePlayer.getName(), event.getFinalDamage()));\n }", "String getDamage() {\n return damage;\n }", "public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}", "public int takeDamage(int damage) \r\n\t{\r\n\t\t//Pre: an int damage\r\n\t\t//Post: reduces health variable by damage\r\n\t\tif(health - damage > 0) \r\n\t\t{\r\n\t\t\thealth -= damage;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t\treturn health;\r\n\t}", "public int getDamage() {\n //TODO\n return 1;\n }", "public void takeDamage(double num) {\r\n \r\n int damage = (int)Math.round(num);\r\n this.health -= damage;\r\n this.state=this.color+16;\r\n if (damage <= 5) {\r\n if (this.playerNum == 1)\r\n this.positionX -= 40;\r\n else \r\n this.positionX += 40;\r\n }\r\n else if (this.playerNum == 1)\r\n this.positionX -= damage * 6;\r\n else\r\n this.positionX += damage * 6;\r\n \r\n }", "public void beAttacked(int damage) {\r\n\t\tif (health > damage) {\r\n\t\t\thealth -= damage;\r\n\t\t}else {\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onDamageTaken(Entity attacker, Entity defender, int damage, int entityAttackType) {\n\t\tif (attacker.getType() == EntityType.PLAYER && defender.getType() == EntityType.NPC) {\n\t\t\tPlayer attackerAsPlayer = (Player) attacker;\n\n\t\t\tNpc defenderAsNpc = (Npc) defender;\n\n\t\t\tif (phase == AbyssalSirePhase.SLEEPING && phaseProgressionEvent == null) {\n\t\t\t\tphaseProgressionEvent = new AbyssalSirePhaseProgressionEvent();\n\n\t\t\t\tCycleEventContainer<Entity> container = getEventHandler().addEvent(this, phaseProgressionEvent, 6);\n\n\t\t\t\trequestAnimation(4528);\n\t\t\t\tcontainer.addStopListener(() -> {\n\t\t\t\t\tif (phase == AbyssalSirePhase.SLEEPING) {\n\t\t\t\t\t\ttarget = attackerAsPlayer;\n\t\t\t\t\t\tfirstWake();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else if (phase == AbyssalSirePhase.AWAKE) {\n\t\t\t\tif (attackerAsPlayer.getOldSpellId() > -1) {\n\t\t\t\t\tint spellDisorientation = DISORIENTING_SPELLS.getOrDefault(CombatConstants.MAGIC_SPELLS[attackerAsPlayer.getOldSpellId()][0], 0);\n\n\t\t\t\t\tif (spellDisorientation > 0) {\n\t\t\t\t\t\tdisorientation += spellDisorientation;\n\n\t\t\t\t\t\tif (disorientation >= 100) {\n\t\t\t\t\t\t\tdisorient();\n\t\t\t\t\t\t\tattackerAsPlayer.getPA().sendMessage(\"Your shadow spelled disoriented the Abyssal sire.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (phase != AbyssalSirePhase.DISORIENTED) {\n\t\t\t\t\tdamageDisorientation += damage;\n\n\t\t\t\t\tif (damageDisorientation >= 75) {\n\t\t\t\t\t\tdisorient();\n\t\t\t\t\t\tattackerAsPlayer.getPA().sendMessage(\"Your damage slowly disoriented the Abyssal sire.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theal(ThreadLocalRandom.current().nextInt(1, Math.max(5, damage)));\n\t\t\t} else if (phase == AbyssalSirePhase.MELEE_COMBAT) {\n\t\t\t\tif ((defenderAsNpc.getCurrentHitPoints() <= 200)) {\n\t\t\t\t\twalkToCenter();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void enemyAttack() {\n\t\t\n\t\tRandom rand = new Random();\t\n\t\t\n\t\tint roll = rand.nextInt(101);\n\t\t\n\t\tint sroll = rand.nextInt(101);\n\t\t\n\t\tevents.appendText(e.getName() + \" attacks!\\n\");\n\t\t\n\t\tif(roll <= p.getEV()) { // Player evades\n\t\t\t\n\t\t\tevents.appendText(\"You evaded \"+e.getName()+\"\\'s Attack!\\n\");\n\t\t\t\n\t\t}else if(roll > p.getEV()) { // Player is hit and dies if HP is 0 or less\n\t\t\t\n\t\t\tp.setHP(p.getHP() - e.getDMG());\n\t\t\t\n\t\t\tString newHp = p.getHP()+\"/\"+p.getMaxHP();\n\t\t\t\n\t\t\tString effect = e.getSpecial(); // Stats are afflicted\n\t\t\t\n\t\t\tif(sroll < 51){\n\t\t\t\t\n\t\t\tif(effect == \"Bleed\") { // Bleed Special\n\t\t\t\t\n\t\t\t\tp.setHP(p.getHP() - 100);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You bleed profusely. - 100 HP\\n\");\n\t\t\t\t\n\t\t\t\tnewHp = String.valueOf(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t}\n\t\t\tif(effect == \"Break\") { // Break Special \n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You feel a bone break restricting movement. - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Fear\") { // Fear Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-40>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 40);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"A crippling fear rattles your resolve. - 40 DMG\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Rend\") { // Rend Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-30>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 30);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"Morthar unleashes a pillar of flame! - 30 DMG and - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\tif(p.getHP() <= 0) {\n\t\t\t\t\n\t\t\t\tp.setDead(true);\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(0+\"/\"+e.getMaxHP());\n\t\t\t\tplayerHPBar.setProgress((double)0);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(newHp);\n\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(p.isDead()) { // Game over if player dies\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLoadGO();\n\t\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcombat = false;\n\t\t}\n\t}", "boolean takeDamage(int dmg);", "void damagePlayer(int i) throws IOException {\n }", "public int getDamage()\n\t{\n\t\treturn Damage;\n\t}", "@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker)\n\t{\n\t\treduceCurrentHp(damage, attacker, true);\n\t}", "@EventHandler\n public void swiftness(EntityDamageByEntityEvent event) {\n if (!(event.getDamager() instanceof Arrow)) {\n return;\n }\n\n final Arrow arrow = (Arrow) event.getDamager();\n\n if (!(arrow.getShooter() instanceof Player)) {\n return;\n }\n\n if (!(event.getEntity() instanceof Player)) {\n return;\n }\n\n // Casting to players\n Player shooter = (Player) arrow.getShooter();\n Player damaged = (Player) event.getEntity();\n\n GamePlayer shooterGP = Warfare.getInstance().getPlayerManager().getPlayer(shooter.getName());\n GamePlayer damagedGP = Warfare.getInstance().getPlayerManager().getPlayer(damaged.getName());\n\n // Check if players are in-game\n if (!shooterGP.isInGame() || !damagedGP.isInGame()) {\n return;\n }\n\n if (shooterGP.getSide() == damagedGP.getSide()) {\n return;\n }\n\n if (damagedGP.getPurchases().keySet().contains(Perk.SWIFTNESS)) {\n return;\n }\n\n if (Math.random() > 0.1) {\n return;\n }\n\n PotionEffect speed = new PotionEffect(PotionEffectType.SPEED, 60, 1, true);\n\n Collection<PotionEffect> effects = damaged.getActivePotionEffects();\n for (PotionEffect e : effects) {\n if (e.getType() == PotionEffectType.SPEED) {\n if (e.getAmplifier() >= 2) {\n return;\n } else if (e.getDuration() >= 60) {\n return;\n }\n }\n }\n\n damaged.addPotionEffect(speed, true);\n\n damaged.sendMessage(ChatColor.YELLOW + String.format(\n \"Your %s perk has been activated!\",\n ChatColor.GOLD + Perk.SWIFTNESS.getName() + ChatColor.YELLOW));\n }" ]
[ "0.7951491", "0.7859311", "0.78418976", "0.7722122", "0.76979214", "0.76952773", "0.764429", "0.75427055", "0.7539279", "0.75296396", "0.7529171", "0.7505917", "0.74609613", "0.74268246", "0.74219936", "0.74067193", "0.7397899", "0.7393322", "0.7390123", "0.7390123", "0.7390123", "0.7390123", "0.7390123", "0.73510283", "0.7343913", "0.73380643", "0.73222446", "0.7262021", "0.7197316", "0.7194508", "0.71599674", "0.7154635", "0.7154302", "0.714385", "0.7135979", "0.7128384", "0.7127121", "0.712672", "0.7121931", "0.711882", "0.7114712", "0.7106265", "0.7094482", "0.7089308", "0.7089308", "0.7089308", "0.7089308", "0.7089308", "0.7087847", "0.70855415", "0.70791525", "0.7076988", "0.70671815", "0.7063184", "0.704677", "0.70406187", "0.7039648", "0.7037061", "0.7032686", "0.7022519", "0.7006541", "0.7001646", "0.699665", "0.69956714", "0.6980227", "0.6979609", "0.6979609", "0.6979609", "0.6979609", "0.6979609", "0.69745606", "0.6962649", "0.69583917", "0.6950156", "0.6949124", "0.6939286", "0.69309026", "0.6912233", "0.69080496", "0.6905257", "0.69015914", "0.68979776", "0.68951404", "0.689234", "0.6883915", "0.6872011", "0.687182", "0.6868677", "0.6866217", "0.68626136", "0.68608874", "0.68524027", "0.6851226", "0.6846708", "0.68437135", "0.6815398", "0.6815036", "0.68122447", "0.6803957", "0.6803924" ]
0.7465661
12
Focus on edit text
private void requestFocus(View view) { if (view.requestFocus()) { getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setFocus();", "public void setFocus();", "@Override\n public void setFocus()\n {\n this.textInput.setFocus();\n }", "public void focus() {}", "public void setFocus() {\n }", "public void setFocus() {\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "@Override\n public void setFocus() {\n }", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "private void setFocus(EditText edit)\n {\n edit.requestFocus();\n\n showKeyboard(getActivity());\n }", "public void setFocus(){\n\t\ttxtText.setFocus(true);\n\t\ttxtText.selectAll();\n\t}", "@Override\n\tpublic void setFocus() {\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "public void setEditTextFocus (Activity a, EditText e) {\n if (e.requestFocus()) {\n a.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n }\n }", "void focus();", "void focus();", "public void requestFocus()\n {\n super.requestFocus();\n field.requestFocus();\n }", "protected void doSetFocus() {\n \t\tif (getText() != null) {\n \t\t\tgetText().selectAll();\n \t\t\tgetText().setFocus();\n \t\t\tcheckSelection();\n \t\t\tcheckDeleteable();\n \t\t\tcheckSelectable();\n \t\t}\n \t}", "public void Focus() {\n }", "void addFocus();", "private void changeFocus() {\n focusChange(etTitle, llTitle, mActivity);\n focusChange(etOriginalPrice, llOriginalPrice, mActivity);\n focusChange(etTotalItems, llTotalItems, mActivity);\n focusChange(etDescription, llDescription, mActivity);\n }", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", "public void requestInputFocus(){\n\t\tuserInput.requestFocus();\n\t}", "public void requestFocus(){\n\t\tusername.requestFocusInWindow();\n\t}", "public static void requestEditTextFocus(Context context, EditText e){\n e.post(() -> {\n e.requestFocus();\n ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE))\n .showSoftInput(e, 0);\n });\n }", "public void setFocus() {\n\t\tui.setFocus();\n\t}", "private void jtxtbrand_code_frFocusGained(java.awt.event.FocusEvent evt) {\n jtxtbrand_code_fr.setSelectionStart(0);\n jtxtbrand_code_fr.setSelectionEnd(jtxtbrand_code_fr.getText().length());\n}", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus && v instanceof EditText) {\n final EditText editText = (EditText) v;\n editText.requestFocus();\n editText.selectAll();\n }\n }", "private void jtxtbrand_code_toFocusGained(java.awt.event.FocusEvent evt) {\n jtxtbrand_code_to.setSelectionStart(0);\n jtxtbrand_code_to.setSelectionEnd(jtxtbrand_code_to.getText().length());\n}", "private void focusChange(EditText editText, final LinearLayout linearLayout, final Activity activity) {\n\n editText.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n linearLayout.setBackgroundColor(ContextCompat.getColor(activity, R.color.colorCreateDealSelected));\n selectDeselectNewPrice(false);\n } else\n linearLayout.setBackgroundColor(ContextCompat.getColor(activity, R.color.colorWhite));\n if (!hasFocus) {\n if (activity.getCurrentFocus() != null) {\n InputMethodManager inputMethodManager = (InputMethodManager) activity.getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n }\n }\n }\n });\n }", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t\tif (getControl() != null)\r\n\t\t\tgetControl().setFocus();\r\n\t}", "public void focus() {\n if (toSetFocus != null) {\n toSetFocus.requestFocus();\n } else {\n root.requestFocus();\n toSetFocus = null;\n }\n }", "@Override\r\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n sendFocusToJail();\r\n\r\n return false;\r\n }", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "public void requestFocus() {\n\n if (MyTextArea != null)\n MyTextArea.requestFocus();\n\n }", "private void jtxtemployeeFocusGained(java.awt.event.FocusEvent evt) {\n jtxtemployee.setSelectionStart(0);\n jtxtemployee.setSelectionEnd(jtxtemployee.getText().length());\n}", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "void setFocus( ChatTarget focus );", "void requestSearchViewFocus();", "private void jtxtwarehouse_codeFocusGained(java.awt.event.FocusEvent evt) {\n jtxtwarehouse_code.setSelectionStart(0);\n jtxtwarehouse_code.setSelectionEnd(jtxtwarehouse_code.getText().length());\n}", "void requestFocus() {\n if (this.fieldRate != null) {\n this.fieldRate.requestFocus();\n }\n }", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "private void jtxtreferenceFocusGained(java.awt.event.FocusEvent evt) {\n jtxtreference.setSelectionStart(0);\n jtxtreference.setSelectionEnd(jtxtreference.getText().length());\n}", "@Override\n public void focus(FieldEvents.FocusEvent event) {\n TextField tf = (TextField) event.getSource();\n tf.setCursorPosition(tf.getValue().length());\n }", "public void requestFocus() {\n // Not supported for MenuComponents\n }", "ChatTarget getFocus();", "@Override\n\tprotected void handleFocus (Context context, boolean focus) {\n\t\tif (focus) context.requestFocus();\n\t}", "public void setFocus() {\n \t\t// set initial focus to the URL text combo\n \t\turlCombo.setFocus();\n \t}", "public void focus() {\n getRoot().requestFocus();\n }", "public void focus() {\n\t\tJWLC.nativeHandler().wlc_output_focus(this.to());\n\t}", "private void jTAMsjFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTAMsjFocusGained\n \n /*Selecciona todo el texto cuando gana el foco*/\n jTAMsj.setSelectionStart(0);jTAMsj.setSelectionEnd(jTAMsj.getText().length()); \n \n }", "public void setFocus() {\r\n\t\tIFormPart part = _parts.get(0);\r\n\t\tif ( part != null ) part.setFocus();\r\n\t}", "public void requestFocusTextFieldUsername(){\n \t\tthis.textFieldUsername.requestFocus();\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n\n if(!hasFocus) {\n imm.hideSoftInputFromWindow(layout.getWindowToken(), 0);\n } else {\n urlText.selectAll();\n }\n\n }", "public void mo3285a() {\n if (StringUtils.m10803a(this.f7348a.getText().toString())) {\n this.f7348a.requestFocus();\n } else if (StringUtils.m10803a(this.f7349b.getText().toString())) {\n this.f7349b.requestFocus();\n }\n this.f7348a.requestFocus();\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n layout.requestFocus();\n return false;\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n layout.requestFocus();\n return false;\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n layout.requestFocus();\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber4.getSelectionStart() <= 0) {\n edtCodeNumber3.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber3.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber4.getText().toString().length() == 1)\n edtCodeNumber5.requestFocus();\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber3.getSelectionStart() <= 0) {\n edtCodeNumber2.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber2.requestFocus();\n }\n }, 50);\n }\n } else if (edtCodeNumber3.getText().toString().length() == 1)\n edtCodeNumber4.requestFocus();\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber5.getSelectionStart() <= 0) {\n edtCodeNumber4.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber4.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber5.getText().toString().length() == 1)\n edtCodeNumber6.requestFocus();\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if (edtCodeNumber2.getSelectionStart() <= 0) {\n edtCodeNumber1.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber1.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber2.getText().toString().length() == 1)\n edtCodeNumber3.requestFocus();\n return false;\n }", "@Override\n public void startEdit() {\n super.startEdit();\n\n if (text_field == null) {\n createTextField();\n }\n setText(null);\n setGraphic(text_field);\n text_field.selectAll();\n }", "@Override\n\tpublic void enter(ViewChangeEvent event) {\n\t\tuserTextField.focus();\n\t}", "public void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\tsearchText.requestFocus();\n\n\t\t\t}", "public void setFocus() {\n startButton.setFocus();\n }", "private void jtxttotal_adm_qtyFocusGained(java.awt.event.FocusEvent evt) {\n jtxttotal_adm_qty.setSelectionStart(0);\n jtxttotal_adm_qty.setSelectionEnd(jtxttotal_adm_qty.getText().length());\n}", "@Override\n public void setFocus(Context context) {\n InputMethodManager inputManager =\n (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(this.getWindowToken(), 0);\n\n }", "public void afterTextChanged(Editable s) {\n\n if (s.length() ==1) {\n edit_two.requestFocus();\n }\n\n }", "public void showSoftInput(){\n if(isEditable() && isEnabled()){\n if(isInTouchMode()){\n requestFocusFromTouch();\n }\n if(!hasFocus()){\n requestFocus();\n }\n mInputMethodManager.showSoftInput(this, 0);\n }\n }", "public void setFormFocus() {\n\t\tint column = dm.getColSelected();\n\t\tif (rowElements.size() > column) {\n\t\t\tSystem.out.println(\"FormEntryTab.setFormFocus()\");\n\t\t\trowElements.get(column).requestFocusInWindow();\n\t\t}\n\t}", "@Override\n public void setFocus() {\n if (!modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n if (textViewer != null) {\n textViewer.getTextWidget().setFocus();\n }\n } else {\n if (tableControl != null) {\n tableControl.setFocus();\n }\n }\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n view.requestFocus();\n }", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber3.getText().toString().length() == 1) {\n edtCodeNumber4.requestFocus();\n }\n }", "void resetFocus();", "void resetFocus();", "private void OnChanged(boolean focus)\r\n {\n if (!focus)\r\n {\r\n //If the validation returns false (the field doesn't match)\r\n if (!Validate())\r\n {\r\n //Reset the text to the default\r\n setText(\"000-000-0000\");\r\n selectAll();\r\n }\r\n }\r\n }", "private void toggle_focus() {\n\t\ttry {\n\t\t\tif (!lock_autofocus) {\n\t\t\t\t//getCameraManager().requestAutoFocus(handler, R.id.auto_focus);\n\t\t\t\t\n\t\t\t\tlockAutoFocus.setBackgroundResource(R.drawable.eye_selected);\n\t\t\t} else {\n\t\t\t\tlockAutoFocus.setBackgroundResource(R.drawable.eye);\n\t\t\t\tstatusView.setText(getString(R.string.set_focus));\n\t\t\t\tCommonValues.getInstance().CameraMessage = CameraMessageStatus.Stopped;\n\t\t\t //getCameraManager().requestAutoFocus(handler, R.id.auto_focus);\n\t\t\t\t\n\t\t\t}\n\t\t\tlock_autofocus = !lock_autofocus;\n\t\t\tcameraManager.setAutoFocus(lock_autofocus);\n\t\t} catch (Exception oEx) {\n\n\t\t}\n\t}", "private void setFocusToField(WebElement field) {\n\t\tnew Actions(browser).moveToElement(field).click().build().perform();\n\t}", "@Override\n\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\n\t}" ]
[ "0.7824802", "0.7824115", "0.77239686", "0.76493925", "0.7579446", "0.75346965", "0.7528894", "0.7514037", "0.75065154", "0.74732786", "0.74732786", "0.74732786", "0.74732786", "0.744772", "0.744772", "0.744772", "0.744772", "0.744772", "0.74432343", "0.7439474", "0.74247867", "0.7388718", "0.7388718", "0.7388718", "0.7388718", "0.7388718", "0.7388718", "0.7388718", "0.72870356", "0.72283447", "0.72283447", "0.7216008", "0.7200312", "0.7190377", "0.71224236", "0.71047884", "0.710031", "0.7078912", "0.707435", "0.70355594", "0.70199907", "0.6975996", "0.695361", "0.69184124", "0.6891102", "0.68686944", "0.6862044", "0.6843469", "0.6800983", "0.6761348", "0.67460245", "0.6744234", "0.6729467", "0.67269105", "0.67185104", "0.6714559", "0.66830766", "0.66517997", "0.66441584", "0.66441584", "0.66441584", "0.663701", "0.6606738", "0.65891993", "0.65735453", "0.6556719", "0.6540966", "0.6535687", "0.6529165", "0.6527243", "0.6504013", "0.6497233", "0.647699", "0.6476585", "0.64594084", "0.6454436", "0.6454436", "0.6454436", "0.6447337", "0.6442814", "0.64398557", "0.6424767", "0.64175034", "0.6405398", "0.6361055", "0.6356771", "0.6336862", "0.6336562", "0.6328282", "0.6299592", "0.629193", "0.62894696", "0.6278044", "0.6261942", "0.62556005", "0.62556005", "0.6254642", "0.6246453", "0.6244959", "0.6244122" ]
0.6825694
48
Created by akarbowy on 02.12.2015.
public interface OwnEventsView extends BaseView { void adaptEventsList(List<EventModel> eventModelsList); void viewEvent(EventModel eventModel); void showViewRefreshing(); void hideViewRefreshing(); void hideViewEmpty(); void showViewEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n\n }", "private void poetries() {\n\n\t}", "public void gored() {\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\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\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 sacrifier() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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 jugar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n void init() {\n }", "private void init() {\n\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 void mo4359a() {\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 init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {}", "@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 protected void init() {\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void m50366E() {\n }", "@Override\n public void initialize() { \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "Petunia() {\r\n\t\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}" ]
[ "0.6019147", "0.59499496", "0.5870698", "0.5820478", "0.57569164", "0.57569164", "0.56922203", "0.5690958", "0.56814957", "0.5670155", "0.5658783", "0.5648624", "0.56258553", "0.56111306", "0.56067234", "0.5604239", "0.55991924", "0.5581964", "0.5580605", "0.55673295", "0.55673295", "0.55673295", "0.55673295", "0.55673295", "0.5555548", "0.5551633", "0.5549237", "0.5545389", "0.5540021", "0.55294675", "0.5522173", "0.54923713", "0.54892623", "0.54892623", "0.5472299", "0.5472229", "0.54645884", "0.5460219", "0.5460219", "0.5460204", "0.54417926", "0.54384834", "0.5432542", "0.5431169", "0.54278123", "0.54278123", "0.54278123", "0.5427455", "0.54244536", "0.54244536", "0.54244536", "0.54244536", "0.54244536", "0.54244536", "0.5423823", "0.5423823", "0.5423823", "0.54228187", "0.54209554", "0.54209554", "0.54073966", "0.540661", "0.5405795", "0.5399665", "0.5398276", "0.5397215", "0.53927153", "0.5385612", "0.5378337", "0.5378337", "0.5378337", "0.53753316", "0.53594357", "0.5351833", "0.5350895", "0.5350895", "0.5350895", "0.5350895", "0.5350895", "0.5350895", "0.5350895", "0.5349122", "0.5345603", "0.53451204", "0.5344731", "0.5332649", "0.5331644", "0.53218645", "0.5311583", "0.5303679", "0.5302378", "0.52973163", "0.5289004", "0.5276198", "0.5274551", "0.5274551", "0.52731496", "0.52570355", "0.5256931", "0.5230661", "0.5229401" ]
0.0
-1
If we are adding a new node, reset all fields
private void updateTransactionFields() { if (transaction == null) { descriptionText.setText(""); executionDateButton.setText(dateFormat.format(new Date())); executionTimeButton.setText(timeFormat.format(new Date())); valueText.setText(""); valueSignToggle.setNegative(); addButton.setText(R.string.add); // If we are editing a node, fill fields with current information } else { try { transaction.load(); descriptionText.setText(transaction.getDescription()); executionDateButton.setText(dateFormat.format( transaction.getExecutionDate())); executionTimeButton.setText(timeFormat.format( transaction.getExecutionDate())); BigDecimal value = transaction.getValue(); valueText.setText(value.abs().toString()); valueSignToggle.setToNumberSign(value); addButton.setText(R.string.edit); } catch (DatabaseException e) { Log.e("TMM", "Error loading transaction", e); } } if (currentMoneyNode != null) { currencyTextView.setText(currentMoneyNode.getCurrency()); } updateCategoryFields(); updateTransferFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearNodeFields() {\n nodeId.setText(\"\");\n sequencePreview.setText(\"\");\n leftNeighbours.setText(\"\");\n rightNeighbours.setText(\"\");\n position.setText(\"\");\n }", "public static void setNumberOfNodesFieldToZero() {\n numberOfNodes=0;\n\t }", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "public static void reset() {\n\t\tnodes.clear();\n\t\tid = 0;\n\t}", "private void clearNodes()\r\n\t{\r\n\t clearMetaInfo();\r\n\t nodeMap.clear();\r\n\t}", "public void refreshNode(ObjectTreeNode node) {\n\t\tif (node != null) {\n\t\t\tTSConnection tsconn = getConnection();\n\t\t\tObject userobj = node.getUserObject();\n\t\t\tif (userobj instanceof TableId) {\n\t\t\t\tnode.removeAllChildren();\n\t\t\t\taddFields(node, getTable(tsconn, (TableId) userobj));\n\t\t\t\tfireTreeNodesInserted(node);\n\t\t\t}\n\t\t}\n\t}", "public void resetNodo()\r\n {\r\n this.nodo = null;\r\n }", "public void setToOriginals(){\n\t\t//set all occupied nodes as empty\n\t\tif(nodeStatus == Status.occupied){\n\t\t\tsetAsEmpty();\n\t\t}\n\t\t//if the node had a unit end on it, reset that value\n\t\tif(ended == true){\n\t\t\tended=false;\n\t\t}\n\t\tf=0;\n\t\tg=0;\n\t\th=0;\n\t}", "SELLbeholder() {\n listehode = new Node(null, null);\n }", "public void clear()\n {\n nodes.clear();\n }", "public void clear() {\n\t\tthis.root = new Node();\n\t}", "public void clear()\t{nodes.clear(); allLinks.clear();}", "public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "public void clear() {\n\t\tnodeList.clear();\n\t}", "public void reset() {\n\t\tlocalName = \"\";\n\t\turi = \"\";\n\t\tdata = null;\n\t\tchars = null;\n\t\tcharCount = 0;\n\t\tline = 0;\n\t\tcolumn = 0;\n\t\tleaf = true;\n\t}", "public void clear(){\n firstNode = null;\n lastNode = null;\n }", "@Override\r\n public void clear(){\r\n root = null;\r\n }", "Node(){\r\n\t\tdata = null;\r\n\t\tnext = null;\r\n\t}", "public void resetCurrentElement() {\r\n\t\tcurrentNode = firstNode;\r\n\t}", "void resetTreeForQueries() {\n\t\t_queryTree = new Tree(_tree);\n\t\tif(DEBUG) {\n\t\t\tSystem.out.printf(\"\\nquery tree structure:\\n%s\\n\",_queryTree.getLongInfo());\n\t\t}\n\t}", "private void resetFields(){\n\t\tsetDirectoryInfoLabel(\"\");\n\t\tregexFrom.setText(\"\");\n\t\tregexTo.setText(\"\");\n\t\ttextArea.setText(\"\");\n\t\tlastChoosedDirectory = null;\n\t\tcheckboxSaveStateOn.setEnabled(false);\n\t\tsetMessage(translations.getFieldsHasBeenReset());\n\t}", "public void setAsEmpty(){\n\t\tnodeStatus = Status.empty;\n\t\tunitNum=-1;\n\t}", "@Override\n public void clear() {\n root = new Node ('i', false, 256);\n }", "public void clear(){\n root = null;\n count = 0;\n }", "public XmlNode duplicateDataFieldNode(XmlNode highlightedField) {\n\t\tLinkedHashMap<String, String> allAttributes = highlightedField.getXmlElement().getAllAttributes();\n//\t\t get all attributes of the datafield\n\t\tLinkedHashMap<String, String> newAttributes = new LinkedHashMap<String, String>(allAttributes);\n\t\t\n\t\tXmlNode newNode = new XmlNode(newAttributes, this);\n\t\t\n\t\treturn newNode;\n\t}", "public void setNull(){\n for (int i = 0; i < Nodes.size(); i++){\n this.References.add(null);\n }\n }", "public void clear( CachedNode node );", "@Override\n\tpublic void initNode() {\n\t\tEFMonitorUtil.cleanAllInstance(false);\t\t\t\n\t}", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "protected void clearData() {\n getValues().clear();\n getChildIds().clear();\n getBTreeMetaData().setDirty(this);\n }", "public void setNode_1(String node_1);", "public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}", "@Override\n public void clear() {\n root = null;\n }", "public void clear() {\n\t\t\tsuper.clear();\n\t\t\tjgraph.getGraphLayoutCache().remove(nullnodes.toArray());\n\t\t\tnullnodes = new LinkedList<DefaultGraphCell>();\n\t\t}", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "public void clear() {\n\t\tmSize = 0;\n\t\tmHead = new Node(null, null);\n\t\tmTail = new Node(null, null);\n\t\tmHead.next = mTail;\n\t\tmodCount++;\n\t}", "@Override\n\tpublic void VisitNewObjectNode(NewObjectNode Node) {\n\n\t}", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "public void clear() {\n\t\thead.setNext(null);\n\t\tmodcount++;\n\t\tnodeCount = 0;\n\t}", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public void promoteDataField(XmlNode node) {\n\t\t\n\t\tXmlNode parentNode = node.getParentNode();\n\t\tXmlNode grandParentNode = parentNode.getParentNode();\n\t\t\n\t\t// if parent is root (grandparent null) then can't promote\n\t\tif (grandParentNode == null) return;\n\t\t\n\t\tint indexOfParent = grandParentNode.indexOfChild(parentNode);\n\t\t\n\t\tgrandParentNode.addChild(indexOfParent + 1, node);\t// adds after parent\n\t\tnode.setParent(grandParentNode);\n\t\tparentNode.removeChild(node);\n\t}", "protected void mutateAddNode() {\n\t\t// Test if genome is fully disabled\n\t\tboolean fullydisabled = true;\n\t\tfor (Gene g : genes.values()) {\n\t\t\tif (g.enabled) {\n\t\t\t\tfullydisabled = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (fullydisabled)\n\t\t\treturn;\n\n\t\t// Select the gene to be split\n\t\tGene mutated;\n\t\tdo {\n\t\t\tmutated = getRandomGene();\n\t\t} while (!mutated.enabled);\n\n\t\t// Create the new structure\n\t\tNNode addition = new NNode(population.getNewNodeID(), NNode.HIDDEN);\n\t\tpopulation.registerNode(addition);\n\n\t\tint earlystart = mutated.start;\n\t\tint earlyend = addition.ID;\n\t\tint earlyinnov = population.getInnovation(earlystart, earlyend);\n\t\tGene early = new Gene(earlyinnov, earlystart, earlyend, 1, true);\n\t\tpopulation.registerGene(early);\n\n\t\tint latestart = addition.ID;\n\t\tint lateend = mutated.end;\n\t\tint lateinnov = population.getInnovation(latestart, lateend);\n\t\tGene late = new Gene(lateinnov, latestart, lateend, mutated.weight,\n\t\t\t\ttrue);\n\t\tpopulation.registerGene(late);\n\n\t\t// Disable old gene\n\t\tmutated.enabled = false;\n\n\t\t// Submit new node\n\t\tsubmitNewNode(addition);\n\n\t\t// Submit new genes\n\t\tsubmitNewGene(early);\n\t\tsubmitNewGene(late);\n\n\t\tif (Braincraft.gatherStats)\n\t\t\tBraincraft.genetics.add(\"node mutation \" + ID + \" \"\n\t\t\t\t\t+ mutated.innovation + \" \" + early.innovation + \" \"\n\t\t\t\t\t+ late.innovation + \" \" + addition.ID);\n\t}", "public void resetField() {\n setFields(new boolean[getLength()][getHeight()]);\n }", "private void clearFullTree()\r\n {\r\n fullXmlTree = new StringBuilder();\r\n }", "public Node()\n\t{\n\t\toriginalValue = sumValue = 0;\n\t\tparent = -1;\n\t}", "public void makeEmpty() {\n root = null;\n }", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "public void resetChanges() {\n\t\tthis.resetStatus();\n\t\ttheStructures.resetStatus();\n\n\t\tfireDocumentInit();\n\t}", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "public void clear()\n {\n if (nodes != null)\n {\n detachNodes(nodes);\n nodes = null;\n namedNodes = null;\n }\n }", "@Override\n public void clear() {\n size = 0;\n root = null;\n }", "public void makeEmpty(){\n deleteAll(root);\n root = null;\n numItems = 0;\n }", "public void clear() {\n count = 0;\n root = null;\n }", "@Override\n public void visit(Node node) {\n nodes.add(node);\n }", "public void clear() {\n root = null;\n }", "public void clear() {\n root = null;\n }", "private void setNode(DefaultMutableTreeNode node){\n\t\t\n\t\tthis.node = node;\n\t\t\n\t}", "public Builder clearNode() {\n if (nodeBuilder_ == null) {\n node_ = null;\n onChanged();\n } else {\n node_ = null;\n nodeBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearNode() {\n if (nodeBuilder_ == null) {\n node_ = null;\n onChanged();\n } else {\n node_ = null;\n nodeBuilder_ = null;\n }\n\n return this;\n }", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public void newFolder ()\n {\n newNode(null);\n }", "public void resetNodes() {\n\tmaxX = -100000;\n\tmaxY = -100000;\n\tminX = 100000;\n\tminY = 100000;\n\taverageX = 0;\n\taverageY = 0;\n }", "private void clearFields() {\n this.upperTextField.setText(\"\");\n this.bottomTextField.setText(\"\");\n this.titleTextField.setText(\"\");\n this.tagTextField.setText(\"\");\n this.imageStackPane.getChildren().clear();\n }", "private void setNode(int index, Node n) {\n \t\twhile (index + 1 >= contents.size()) {\n \t\t\tcontents.add(null);\n \t\t}\n \t\tcontents.set(index, n);\n \t}", "private void fillRoot(boolean resetCursor) {\n\t\tNode n = activeNode;\n\t\tn.removeChildren(resetCursor);\n\t\tn.insertChild(\"Edit\");\n\t\tn.insertChild(\"Back\");\n\t\tn.setDistance(35);\n\t\tn.setPositions(\n\t\t\t\tMenuValues.MENU_TEXT_X, \n\t\t\t\tMenuValues.MAIN_MENU_TEXT_Y_FOR_DECK);\n\t\tn.updateHandPos();\n\t}", "public void makeEmpty() {\r\n\t\troot = null;\r\n\t}", "public void makeEmpty() {\n\t\troot = null;\n\t}", "public void clear() {\n root = null;\n size = 0;\n }", "public void clear() {\n root = null;\n size = 0;\n }", "private void initializeInfo()\n {\n Iterator<node_info> it=this.ga.getV().iterator();\n while (it.hasNext())\n {\n it.next().setInfo(null);\n }\n }", "void reinitialize() {\n super.reinitialize();\n head = tail = null;\n }", "private Node() {\n // Start empty.\n element = null;\n }", "private void resetFields() {\n\t\tthis.barcodeField.clear();\r\n\t\tthis.barcodeField.setDisable(false);\r\n\t\tthis.nameField.clear();\r\n\t\tthis.descriptionField.clear();\r\n\t\tthis.mrpField.clear();\r\n\t\tthis.revisedMrpField.clear();\r\n\t\tthis.stockField.clear();\r\n\t\tthis.availableStockLabelValue.setText(\"0.0\");\r\n\t\tthis.barcodeImageView.setImage(null);\r\n\t\tthis.barcodeDisplayLabel.setVisible(true);\r\n\t\tthis.barcodeNumberLabel.setVisible(false);\r\n\r\n\t}", "static void deleteNode(Node node){\n\t\tif(node.next==null){\r\n\t\t\tnode=null;\r\n\t\t}\r\n\t\tnode.data=node.next.data;\r\n\t\tnode.next=node.next.next;\r\n\t}", "public void clear() {\n this.root_.setNw(null);\n this.root_.setNe(null);\n this.root_.setSw(null);\n this.root_.setSe(null);\n this.root_.setNodeType(NodeType.EMPTY);\n this.root_.setPoint(null);\n this.count_ = 0;\n }", "@Override\n\tpublic void clear()\n\t{\n\t\t/*\n\t\t * TODO This doesn't actually notify GraphChangeListeners, is that a\n\t\t * problem? - probably is ... thpr, 6/27/07\n\t\t */\n\t\tnodeEdgeMap.clear();\n\t\tnodeList.clear();\n\t\tedgeList.clear();\n\t}", "@Override\n\tpublic void clear() {\n\t\tNode currentNode = firstNode;\n\t\tNode previousNode = firstNode;\n\t\t\n\t\twhile(firstNode.getNextNode() != null){\n\t\t\t\n\t\t\t\tpreviousNode = currentNode;\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tpreviousNode.next = currentNode.getNextNode();\n\t\t}\n\t\tfirstNode = null;\n\t\tnumberOfEntries = 0;\n\t}", "private static void resetFields() {\n tf_name.setText(\"\");\n tf_title.setText(\"\");\n tf_info.setText(\"\");\n tf_path.setText(\"\");\n cb_bgColor.setSelectedItem(\"white\");\n cb_titleColor.setSelectedItem(\"black\");\n cb_infoColor.setSelectedItem(\"gray\");\n rb_url.setSelected(false);\n rb_file.setSelected(true);\n b_fileSelect.setEnabled(true);\n }", "@Override\n\tpublic void updateNode(JsonObject jsonData) {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\tsize = 0;\n\t\troot = null;\n\t}", "private void createRootNode()\r\n {\r\n root = new Node(\"root\", null);\r\n Node.clear();\r\n }", "void clear() {\n\t\t\tfor (int i = 0 ; i < nodes.length; i++) {\n\t\t\t\tnodes[i].clear((byte) 1);\n\t\t\t}\n\t\t\tsize = 0;\n\t\t}", "private void empty_field() {\n tf_id_kategori.setText(null);\n tf_nama_kategori.setText(null);\n tf_keterangan.setText(null);\n pencarian.setText(null);\n }", "public Node() {\r\n\t\tthis.input = null;\r\n\t\tthis.inputWeights = null;\r\n\t}", "public void clear() {\n\t\troot = null;\n\t\tcount = 0;\n\t}", "protected abstract void resetInputFields();", "public void updateFirstNode()\n {\n firstNode = (lastNode.getNext() == null) ? lastNode : lastNode.getNext();\n }", "public void clearSupervised() {\n supervisedNodes.clear();\n }", "public void setNode_4(String node_4);", "void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }", "public void writeNode() throws IOException {\n // seek to end of file\n file.seek(offset);\n // write offset data\n file.writeLong(offset);\n // write numKeys data\n file.writeLong(numKeys);\n // write children offset\n for (int i = 0; i < children.length; i++){\n file.writeLong(children[i]);\n }\n // write key data\n for (int i = 0; i < keys.length; i++){\n if (keys[i] == null){\n file.writeLong(-1);\n file.writeInt(0);\n }\n else{\n file.writeLong(keys[i].getKey());\n file.writeInt(keys[i].getFrequency());\n }\n }\n\n //The node has been updated -- move it to the front of the cache\n if (cache != null){\n cache.addObject(this);\n }\n\n\n }", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "public void clear()\r\n\t{\r\n\t\tdata = new IterativeBinarySearchTree<Entry>();\r\n\t}", "public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "private void removeNode(DLinkedNode node){\n DLinkedNode pre = node.pre;\n DLinkedNode post = node.post;\n\n pre.post = post;\n post.pre = pre;\n }", "public void resetIdentificadorODE()\r\n {\r\n this.identificadorODE = null;\r\n }", "public void resetIdentificadorODE()\r\n {\r\n this.identificadorODE = null;\r\n }" ]
[ "0.7023858", "0.65213805", "0.6488625", "0.6440098", "0.6433168", "0.61695206", "0.6149201", "0.60060203", "0.5975253", "0.5930979", "0.5872939", "0.5863509", "0.5857574", "0.5828907", "0.58171445", "0.580019", "0.5789361", "0.5760616", "0.5757555", "0.5749714", "0.573472", "0.57326585", "0.5715814", "0.57151246", "0.57081294", "0.5694372", "0.56872386", "0.56784415", "0.56567776", "0.564675", "0.56414145", "0.56207955", "0.56140715", "0.5610249", "0.5604363", "0.559111", "0.559111", "0.559111", "0.55878377", "0.5582721", "0.5572851", "0.5564495", "0.5562134", "0.55551577", "0.5554034", "0.55500525", "0.5547689", "0.5522098", "0.55149156", "0.55140704", "0.5501313", "0.54981565", "0.54976505", "0.5495261", "0.5484739", "0.5478943", "0.5477106", "0.54726136", "0.54726136", "0.5471533", "0.5467207", "0.5467207", "0.54653156", "0.5464088", "0.54615706", "0.5454022", "0.54459476", "0.5440036", "0.5430812", "0.5425145", "0.54244673", "0.54244673", "0.5423344", "0.5416856", "0.54164493", "0.54114467", "0.54018235", "0.5400939", "0.5394356", "0.5392173", "0.53887796", "0.53863764", "0.5385797", "0.5382503", "0.5381015", "0.53762895", "0.53743297", "0.5370407", "0.5361433", "0.53508955", "0.53505325", "0.5343924", "0.53385276", "0.53362435", "0.5336157", "0.53348035", "0.53342444", "0.53341883", "0.5331842", "0.53313166", "0.53313166" ]
0.0
-1
/ TODO actually use the timeout
private void waitForResponse(InputStream mmInputStream, long timeout) throws IOException { int bytesAvailable; while (true) { bytesAvailable = mmInputStream.available(); if (bytesAvailable > 0) { byte[] packetBytes = new byte[bytesAvailable]; byte[] readBuffer = new byte[1024]; mmInputStream.read(packetBytes); for (int i = 0; i < bytesAvailable; i++) { byte b = packetBytes[i]; if (b == delimiter) { byte[] encodedBytes = new byte[readBufferPosition]; System.arraycopy(readBuffer, 0, encodedBytes, 0, encodedBytes.length); final String data = new String(encodedBytes, "US-ASCII"); writeOutput("Received:" + data); return; } else { readBuffer[readBufferPosition++] = b; } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTimeout(TimeValue timeout) {\n run();\n }", "public void handleTimeout();", "protected void onTimeout() {\n }", "long getTimeout();", "int hardTimeout();", "int timeout();", "public abstract void onTimeout();", "int getTimeout();", "protected void pktTimeout() {}", "@Override\r\n public void setTimeouts()\r\n {\n\r\n }", "void timedOut();", "protected abstract void timed() throws Throwable;", "public void onTimeout();", "public void setTimeout(int timeout);", "public void processTransmissionTimeout() {\n //to be overridden by extending classes\n }", "protected int minTimeout() { return 500; }", "public long timeout(long timeout);", "protected void setTimeout() {\r\n\t\tTimeout timeout = new Timeout();\r\n\t\tt.schedule(timeout, TIMEOUT);\r\n\t}", "protected int maxTimeout() { return 15*1000*1000; }", "public long GetTimeout() { return timeout; }", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "public int getTimeout();", "@Override\r\n public long getTimeouts()\r\n {\n return 0;\r\n }", "protected abstract long waitToTravel();", "private void webDriverTimeout(){\n try {\n Thread.sleep(TIMEOUT_SHORT);\n } catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "@Override\n public void timeout(CellPath path)\n {\n retry(task, SMALL_DELAY);\n }", "void handleTimeoutTask();", "public void run() {\r\n removeIPBlockTimeout(link);\r\n removeTempUnavailTimeout(link);\r\n link.reset();\r\n }", "@Override\n public void timeout(CellPath path) {\n retry(task, SMALL_DELAY);\n }", "public LWTRTPdu timeout() throws IncorrectTransitionException;", "public void setTimeout(double timeout){\n this.timeout = timeout;\n }", "public void onSupperTimeout() {\r\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void timeout()\n\t{\n\t\ttry {\n\t\t\tbyte[] fileData = Server.readFileAsString(\"./resource/400.html\");\n\t\t\tString header = Server.ConstructHttpHeader(400, \"html\", fileData.length);\n\t\t\toutStream.writeBytes(header);\n\t\t\toutStream.write(fileData);\t\n\t\t\tthis.stop();\n\t\t} catch(IOException e) {\n\t\t\tSystem.out.println(\"Timeout Error\");\n\t\t}\n\t\ttry {\n\t\t\toutStream.flush();\n\t\t\t/* Interaction with this client complete, close() the socket */\n\t\t\tclientSock.close();\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 void waitTimedOut() {\n\t\t\n\t\tif( busylinetimer == null )\n\t\t\treturn;\n\t\t\n\t\tbusylinetimer.stop();\n\t\tbusylinetimer = null;\n\t\t\n\t\tlog.info(\"linea ocupada por mas de 120 segundos, iniciando proceso para colgar llamada.......\");\n\t\t\n\t\tnew CellPhoneHandUpCall(modem,false);\n\t}", "public int getNortpTimeout();", "private void setupTimeoutJob() {\n eventLoopGroup.scheduleAtFixedRate(() -> {\n\n /*\n * We cannot wait for the request infinitely, but we also cannot remove the object\n * from the queue - FIXME in case of situation when queue of waiting objects grow to X we have to\n * brake connection.\n */\n\n Iterator<RedisQueryRequest> iterator = queue.iterator();\n int i = 0;\n long timeNow = System.currentTimeMillis();\n /*\n * we are tracking 'i' because we want to do only some work, not all the work.\n * we cannot take too much time in timeout checking.\n */\n\n while (iterator.hasNext() && i < 100) {\n RedisQueryRequest current = iterator.next();\n if (current.isTimeouted()) {\n //already been here.\n continue;\n }\n long whenRequestStarted = current.getRequestTimeStart();\n long requestTimeUntilNow = timeNow - whenRequestStarted;\n if (requestTimeUntilNow >= 1000) {\n LOG.error(\"Timeouted request detected\");\n current.markTimeouted();\n current.getCompletableFuture().completeExceptionally(new TimeoutException(\"Timeout occurred.\"));\n }\n\n i++;\n }\n\n }, 100, 100, TimeUnit.MILLISECONDS);\n }", "@Override\n public void timeout(CellPath path) {\n fail(task, CacheException.TIMEOUT,\n \"No reply from \" + path);\n }", "boolean timedOut() {\n\treturn timedOut;\n }", "public long getTimeout() { return timeout; }", "@Test\n public void shouldTimoutWalkDevice() throws IOException, InterruptedException {\n\n final ExecutorService executorService = Executors.newCachedThreadPool();\n\n expect(configuration.createPDU(PDU.GETBULK)).andReturn(new PDU());\n expect(target.getVersion()).andReturn(SnmpConstants.version2c);\n expect(configuration.getWalkTimeout()).andReturn(1).anyTimes();\n expect(configuration.getMaxRepetitions()).andReturn(1);\n\n expectToGetBulkAndNotify(executorService, DUMMY_OID1);\n\n replayAll();\n\n final WalkResponse response = session.walkDevice(variableHandler, oidList);\n assertFalse(response.isSuccess());\n assertTrue(response.toString().contains(\"fail\"));\n assertNotNull(response.getThrowable());\n\n verifyAll();\n executorService.shutdown();\n executorService.awaitTermination(15, TimeUnit.SECONDS);\n }", "public static void startTimeout() {\n t = new Timer();\n tt = new TimerTask() {\n\n public void run() {\n while (true) {\n if (diff[0] > 0 || diff[1] > 0) {\n try {\n runFocusPoint();\n Thread.sleep(50);\n } catch (InterruptedException ex) {\n //ex.printStackTrace();\n }\n } else {\n break;\n }\n }\n cancelTask();\n diff[0] = 0;\n diff[1] = 0;\n }\n };\n t.scheduleAtFixedRate(tt, 0, 50);\n }", "private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "T setStartTimeout(Integer timeout);", "@Override\r\n public void timePassed() {\r\n }", "protected void touchTimeoutCounter()\n\t{\n\t this.lastAccessTime = System.currentTimeMillis();\n\t thread.interrupt ();\n\t}", "public int sendTimeout(){\n return 0; //TODO codavaj!!\n }", "@Override\n\t\tprotected String[] doInBackground(Void... params) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\ttimes++;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "@Override\n public void timePassed() {\n }", "@Override\n protected void onRequestTimeout(Tuple request) {\n }", "public void setTimeouted() {\n this.timeouted = true;\n }", "private void checkTimeout() {\n val timeout = config.getInt(\"timeout\");\n\n checkArgument(timeout >= 1000, \"timeout is less than 1000!\");\n }", "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }", "@Override\n\t\t\tpublic void doTimeOutWork() {\n\t\t\t\tthis.exit();\n\t\t\t}", "@Override\n\t\t\tpublic void doTimeOutWork() {\n\t\t\t\tthis.exit();\n\t\t\t}", "@Override\n\tpublic void timeout(Door d) {\n\t\t\n\t}", "public void setTimeout(int timeout) {\r\n this.timeout = timeout;\r\n }", "private void driveSimulation() {\n\n //process all data packets currently in the socket from the host\n //set timeout to 0 -- no need to wait on packets\n processDataPackets(0);\n \n}", "private void addScanningTimeout() {\n Runnable timeout = new Runnable() {\n @Override\n public void run() {\n if(mBleWrapper == null) return;\n mScanning = false;\n mBleWrapper.stopScanning();\n getActivity().invalidateOptionsMenu(); //refresh menu bar\n }\n };\n mHandler.postDelayed(timeout, SCANNING_TIMEOUT);\n }", "@Test\n public void testTimeout() throws Exception {\n ProduceRequestResult request = new ProduceRequestResult(topicPartition);\n FutureRecordMetadata future = new FutureRecordMetadata(request, relOffset,\n RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertFalse(future.isDone(), \"Request is not completed\");\n try {\n future.get(5, TimeUnit.MILLISECONDS);\n fail(\"Should have thrown exception.\");\n } catch (TimeoutException e) { /* this is good */\n }\n\n request.set(baseOffset, RecordBatch.NO_TIMESTAMP, null);\n request.done();\n assertTrue(future.isDone());\n assertEquals(baseOffset + relOffset, future.get().offset());\n }", "public WriteTimeoutException()\n {\n super();\n }", "public void setTimeout (int timeout) {\n\tif (timeout >= 0)\n\t call.setTimeout (new Integer (timeout));\n }", "@Override\r\n protected Object doInBackground() throws Exception {\n try {\r\n Thread.sleep(5500);\r\n\r\n } catch (Exception e) {}\r\n return null;\r\n }", "public void setTimeout( int timeout ) {\n this.timeout = timeout;\n }", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public abstract void isTimeout(long ms);", "public void acceptTimeout();", "@Override\r\n\t\t public void run() {\r\n\t\t\tdayElimVoteTimeout(); // this might need a catch\r\n\r\n\t\t }", "protected void initialize() {\n \tsetTimeout(timeInSeconds);\n }", "@Override\n public void run() {\n try {\n Thread.sleep(sessionTimeOut);\n } catch (InterruptedException ex) {\n }\n //execute();\n }", "public void setTimeout(Integer timeout) {\n\t\tthis.timeout = timeout;\n\t}", "public void setTimeout(long timeout)\r\n\t{\r\n\t\tthis.timeout = timeout;\r\n\t}", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "public void setTimeout(final long timeout);", "public void setTimeout (double seconds) {\n multiPathTimeout = seconds;\n }", "@Override\n default UserpostPrx ice_timeout(int t)\n {\n return (UserpostPrx)_ice_timeout(t);\n }", "private void reStartTimeout() {\n cancelTask();\n startTimeout();\n }", "@Override\n public void run() {\n\n new Thread() {\n\n @Override\n public void run() {\n HttpGet requestForTest = new HttpGet(\"http://m.google.com\");\n try {\n new DefaultHttpClient().execute(requestForTest); // can last...\n responded = true;\n } catch (Exception e) {}\n }\n\n }.start();\n\n try {\n int waited = 0;\n while(!responded && (waited < timeout)) {\n sleep(100);\n if(!responded ) { \n waited += 100;\n }\n }\n } \n catch(InterruptedException e) {} // do nothing \n finally { \n if (!responded) { handler.sendEmptyMessage(0); } \n else { handler.sendEmptyMessage(1); }\n }\n\n }", "public void setTimeout(int _timeout) {\n if (timeout < 0)\n return;\n timeout = _timeout;\n }", "public int getDelayedTimeout();", "private int timeout(java.io.PrintWriter r19) throws java.lang.Exception {\n /*\n r18 = this;\n r1 = r18\n java.lang.String r0 = \"force timeout jobs\"\n r1.checkPermission(r0)\n r0 = -1\n L_0x0008:\n java.lang.String r2 = r18.getNextOption()\n r3 = r2\n r4 = 0\n r5 = 1\n r6 = -1\n if (r2 == 0) goto L_0x0060\n int r2 = r3.hashCode()\n r7 = 1512(0x5e8, float:2.119E-42)\n if (r2 == r7) goto L_0x002a\n r4 = 1333469547(0x4f7b216b, float:4.2132713E9)\n if (r2 == r4) goto L_0x0020\n L_0x001f:\n goto L_0x0033\n L_0x0020:\n java.lang.String r2 = \"--user\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x001f\n r4 = r5\n goto L_0x0034\n L_0x002a:\n java.lang.String r2 = \"-u\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x001f\n goto L_0x0034\n L_0x0033:\n r4 = r6\n L_0x0034:\n if (r4 == 0) goto L_0x0054\n if (r4 == r5) goto L_0x0054\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r4 = \"Error: unknown option '\"\n r2.append(r4)\n r2.append(r3)\n java.lang.String r4 = \"'\"\n r2.append(r4)\n java.lang.String r2 = r2.toString()\n r13 = r19\n r13.println(r2)\n return r6\n L_0x0054:\n r13 = r19\n java.lang.String r2 = r18.getNextArgRequired()\n int r0 = android.os.UserHandle.parseUserArg(r2)\n goto L_0x0008\n L_0x0060:\n r13 = r19\n r2 = -2\n if (r0 != r2) goto L_0x006b\n int r0 = android.app.ActivityManager.getCurrentUser()\n r2 = r0\n goto L_0x006c\n L_0x006b:\n r2 = r0\n L_0x006c:\n java.lang.String r14 = r18.getNextArg()\n java.lang.String r15 = r18.getNextArg()\n if (r15 == 0) goto L_0x007a\n int r6 = java.lang.Integer.parseInt(r15)\n L_0x007a:\n r12 = r6\n long r16 = android.os.Binder.clearCallingIdentity()\n com.android.server.job.JobSchedulerService r7 = r1.mInternal // Catch:{ all -> 0x0092 }\n if (r15 == 0) goto L_0x0085\n r11 = r5\n goto L_0x0086\n L_0x0085:\n r11 = r4\n L_0x0086:\n r8 = r19\n r9 = r14\n r10 = r2\n int r0 = r7.executeTimeoutCommand(r8, r9, r10, r11, r12) // Catch:{ all -> 0x0092 }\n android.os.Binder.restoreCallingIdentity(r16)\n return r0\n L_0x0092:\n r0 = move-exception\n android.os.Binder.restoreCallingIdentity(r16)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.job.JobSchedulerShellCommand.timeout(java.io.PrintWriter):int\");\n }", "Object get(long timeout) throws RpcException;", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n public void onComplete(long dt) {\n }", "public void setTimeout(int timeout) {\n this.timeout = timeout;\n }", "public void onTimeout(Runnable callback)\n/* */ {\n/* 148 */ this.timeoutCallback = callback;\n/* */ }", "@Override\n\tpublic void sleeps() {\n\t\t\n\t}", "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "@Test\r\n public void testSetTimeout() {\r\n // Not required\r\n }", "void setStartTimeout(int startTimeout);", "private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}", "public void run(){\n long startTime = System.nanoTime();\n long elapsedTime = System.nanoTime() - startTime;\n while(elapsedTime<500000000 && p.acknowledged == false){\n //echo(\"Waiting\");\n elapsedTime = System.nanoTime() - startTime;\n if(p.acknowledged == true){\n return;\n }\n }\n if(elapsedTime>= 500000000)\n {\n p.timed = true;\n //System.out.println(\"thread timed out at packet \"+ p.getSeq());\n for(int i=p.getSeq(); i<p.getSeq()+window; i++){\n if(i<packets.size()){\n packets.get(i).sent = false;\n }\n }\n //p.sent = false;\n }\n\n\n }", "RequestSender onTimeout(long timeout, Runnable runnable);", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}", "@Override\n protected String[] doInBackground(Void... params) {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n }\n return null;\n }", "public void setNortpTimeout(int seconds);", "void timeout(ServiceExecutionEvent e) {\n }", "@Override\n default ManagerPrx ice_timeout(int t)\n {\n return (ManagerPrx)_ice_timeout(t);\n }", "private void travelToAirport()\n {\n try\n { sleep ((long) (1 + 30000 * Math.random ()));\n }\n catch (InterruptedException e) {}\n }" ]
[ "0.69027346", "0.6803114", "0.67213494", "0.6656356", "0.6635248", "0.6621928", "0.6588203", "0.6587666", "0.65720403", "0.65659755", "0.6547073", "0.6520092", "0.6507575", "0.64166075", "0.63657063", "0.6338807", "0.63318574", "0.6300953", "0.62982744", "0.6284257", "0.62510484", "0.6206501", "0.61955875", "0.6141106", "0.60956734", "0.60874", "0.6075317", "0.6036535", "0.5997262", "0.5989372", "0.59720844", "0.5968006", "0.596785", "0.59501046", "0.59419453", "0.59338444", "0.59196174", "0.5903272", "0.58966684", "0.5895214", "0.58951104", "0.5886149", "0.5883143", "0.5871227", "0.5845867", "0.58336633", "0.58224344", "0.58217186", "0.5811201", "0.58053887", "0.5804783", "0.5794875", "0.57929194", "0.57803476", "0.57803476", "0.57649225", "0.5752083", "0.5726584", "0.5725925", "0.5720788", "0.5717302", "0.57166487", "0.5703075", "0.5690391", "0.568689", "0.5681905", "0.5676343", "0.5666782", "0.5665995", "0.56640226", "0.56638634", "0.566298", "0.56615293", "0.56597805", "0.5652108", "0.5646622", "0.5643662", "0.56368536", "0.56293404", "0.5615378", "0.56039286", "0.5600348", "0.55969507", "0.55947566", "0.5591202", "0.5589919", "0.5585895", "0.55849737", "0.55849344", "0.557972", "0.55785435", "0.55723685", "0.5568521", "0.5567858", "0.5567858", "0.55657566", "0.5563135", "0.5562726", "0.55625", "0.55595946", "0.555674" ]
0.0
-1
TODO Autogenerated method stub
public void printElements() { for(int i=1;i<=this.str.length()/n;i++){ int j=i*this.n; System.out.print(this.str.charAt(j-1)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Called when the fragment is launched for the first time. In the other words, fragment is now recreated.
protected void onFirstTimeLaunched() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (mHasLoad) {\n return;\n }\n initFragment();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // retain this fragment\n setRetainInstance(true);\n }", "@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}", "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n SharedPreferences prefs = getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);\n boolean previouslyStarted= prefs.getBoolean(SETSUMMER,false);\n if(!previouslyStarted){\n startActivity(new Intent(HomeScreen.this,FirstLaunch.class));\n }\n Log.i(LOGTAG,\"And we are off and running\");\n\n setContentView(R.layout.home_screen);\n Button addPlant = (Button)findViewById(R.id.addPlantbtn);\n if (addPlant != null)\n addPlant.setOnClickListener(this);\n\n if (savedInstanceState == null) {\n getFragmentManager().beginTransaction()\n .replace(R.id.plantListView, new PlantListFragment())\n .commit();\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n Log.i(sFragmentName, \"onActivityCreated()\");\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n protected void onCreate(final Bundle savedInstanceState) {\n nonConfigurationCache = new NonConfigurationCache(getLastCustomNonConfigurationInstance());\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n if (savedInstanceState == null) {\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.main_container, FirstNameFragment.newInstance())\n .commit();\n\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Log.d(\"Main Activity\",\"inside oncreate\" );\n\n // Check whether the activity is using the layout version with\n // the fragment_container FrameLayout. If so, we must add the first fragment\n if (findViewById(R.id.fragment_container) != null) {\n\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n \tMyListFragment test = new MyListFragment();\n \t test.setArguments(getIntent().getExtras());\n \t Log.d(\"Main Activity\",\"inside oncreate, inside savedinstance! null\" );\n getSupportFragmentManager().beginTransaction().replace(android.R.id.content, test, \"your_fragment_tag\").commit();\n \treturn;\n }\n else{\n MyListFragment firstFragment = new MyListFragment();\n Log.d(\"Main Activity\",\"inside oncreate else part\" );\n firstFragment.setArguments(getIntent().getExtras());\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fragment_container, firstFragment).commit();\n }\n }}", "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t}", "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t}", "@Override\n public void onStart() {\n super.onStart();\n\n if (mAuth.getCurrentUser() != null) {\n //finish();\n\n // Changed accountFragment to ProfileFragment, should rename account fragment to setup\n //SetupFragment accountFragment = new SetupSetupFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container,\n new SettingsFragment()).commit();\n }\n }", "private void screenStartUpState() {\n isMainShown = true;\n setTitle(\"\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.rLayoutMain, fragmentList.get(0)).addToBackStack(null).commit();\n listView.setItemChecked(0, true);\n drawerLayout.closeDrawer(listView);\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initView();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\t\n\t\tILog.v(\"MyFragment onActivityCreated\");\n\t}", "@Override\n public void created(Bundle savedInstance) {\n activity = getActivity();\n //final File methodTracingFile = new File(activity.getExternalFilesDir(\"Caches\"), \"AppStart.trace\");\n //Log.d(TAG, \"methodTracingPath=\" + methodTracingFile.getPath());\n //Debug.startMethodTracing(methodTracingFile.getPath());\n PlayerApp.getRefWatcher(activity).watch(this);\n attachView = this.view;\n\n mMovieFragModel = new MovieFragModel();\n initListener();\n pagerHeader = (ViewPager) getActivity().findViewById(R.id.frag_pagerHeader);\n\n homepage_recommendview_title = (TextView) getActivity().findViewById(R.id.homepage_recommendview_title);\n ci = (CircleIndicator) getActivity().findViewById(R.id.frag_ci);\n initMovieView();\n\n\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.i(TAG, \"onResume: 1st view\");\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tfragment = this;\n\t\tcontext = getActivity();\n\t\tinitData();\n//\t\tplay();\n\t}", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n }", "private void fragmentsInit(boolean mIsInTwoPanesMode, Bundle savedInstanceBundle) {\n\t\t\n Log.i(TAG, \"DailySelfieMainActivity.fragmentsInit entered\");\n\n\t\tif (mIsInTwoPanesMode) { \n\n // In two-pane mode, list items should be given the\n // 'activated' state when touched.\n ((SelfieListFragment) getFragmentManager()\n .findFragmentById(R.id.selfie_list))\n .setActivateOnItemClick(true);\n \n } else {\n \t\n \t// Check if there is no saved instance before create a new list. If the state is \n \t// saved, the fragment is automatically re-created\n \tif (savedInstanceBundle == null) {\n \t\t\n\t\t\t\t// Create selfie list fragment\n\t\t\t\tmSelfieListFragment = new SelfieListFragment();\n\t\t\t\t// In single pane mode add the selfies' list Fragment to the container\n\t\t\t\tgetFragmentManager()\n\t\t\t\t\t\t.beginTransaction()\n\t\t\t\t\t\t.add(R.id.selfie_fragment_container,\n\t\t\t\t\t\t\t\tmSelfieListFragment).commit();\t\t\t\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// Restore Action Bar View Options\n\t\t\t\tgetActionBar().setDisplayOptions(savedInstanceBundle.getInt(ACTIONBAR_DISPLAY_OPTIONS));\n\t\t\t}\n \t\n }\n\t}", "private void setupFragment(Bundle savedInstanceState) {\n if (findViewById(R.id.fl_caller) != null) {\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n return;\n }\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fl_caller, getActiveFragment())\n .commit();\n }\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.i(TAG, \"onStart: 1st view\");\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onFragmentResume() {\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(TAG, \"onCreate\");\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tSystem.out.println(\"MyCollectShopFragment--create\");\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n }", "@Override\n public void onPreInflationStartup() {\n mActivity.supportRequestWindowFeature(Window.FEATURE_ACTION_MODE_OVERLAY);\n\n if (mSavedInstanceStateSupplier.get() == null && mConnection.hasWarmUpBeenFinished()) {\n mTabModelInitializer.initializeTabModels();\n\n // Hidden tabs shouldn't be used in incognito, since they are always created with\n // regular profile.\n if (mIntentDataProvider.isIncognito()) {\n mTabProvider.setInitialTab(createTab(), TabCreationMode.EARLY);\n return;\n }\n\n Tab tab = getHiddenTab();\n if (tab == null) {\n tab = createTab();\n mTabProvider.setInitialTab(tab, TabCreationMode.EARLY);\n } else {\n mTabProvider.setInitialTab(tab, TabCreationMode.HIDDEN);\n }\n }\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_first, container, false);\r\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t\tinsertView();\n\t}", "@Override\n public void onResume() {\n super.onResume();\n updateUserAcount();\n showMainBottom();\n MobclickAgent.onPageStart(\"MyMainFragment\");\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.tab_news_layout_holder);\r\n\t\tinitFragment();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tLog.d(\"Fragment02\",\"onCreate\");\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t\tif (getSupportFragmentManager().findFragmentByTag(FraHomeContent.TAG) == null) {\n\t\t\tprepareAndShowHomeScreen();\n\t\t}\n\n\t\tinitFacebookManager(null);\n\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tLog.d(\"CookFragment\", \"onCreate\");\n\t\tsuper.onCreate(savedInstanceState);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n LayoutInflater inflater = getActivity().getLayoutInflater();\n if (mainView == null) {\n mainView = inflater.inflate(R.layout.fragment_mywarrelease, null);\n mContext = inflater.getContext();\n initView();\n }\n }", "private void resetFragment() {\n\t\tFragment fragment = hMapTabs.get(mSelectedTab).get(0);\n\t\thMapTabs.get(mSelectedTab).clear();\n\t\thMapTabs.get(mSelectedTab).add(fragment);\n\t\tFragmentManager manager = getSupportFragmentManager();\n\t\tFragmentTransaction ft = manager.beginTransaction();\n\t\tft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n\t\tft.replace(R.id.realtabcontent, fragment);\n\t\tft.commit();\n\n\t\tshouldDisplayHomeUp();\n\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tInitTitleView();\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_first_load, container, false);\n\n initRootView(rootView);\n\n return rootView;\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n\n }", "@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\t if (arg0 != null) {\n\t\t\t arg0.putParcelable(\"android:support:fragments\",null);\n\t }\n\t\t super.onCreate(arg0);\n\t\t requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t setLayout();\n\t\t // 注入控件\n\t ViewUtils.inject(this);\n\t\t init(arg0);\n\t}", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_listing);\n initFragmentAutoInjection();\n\n ButterKnife.bind(this);\n if(savedInstanceState == null) {\n\n // fresh ui\n initUI();\n\n // fragments\n createAllFragments();\n attachFragmentsToFrames();\n\n } else {\n restoreFragmentReferences(savedInstanceState);\n }\n }", "@Override\n public void onResume() {\n super.onResume();\n initViewData();\n initdata();\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tSystem.out.println(\"CAT:::2\");\n\t\tlv = (ListView) getActivity().findViewById(R.id.fav_listView1);\n\n\t\tdatabase = new Database(getActivity());\n\t\tlv.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tfinal int arg2, long arg3) {\n\t\t\t\tValues.cur_item = items.get(arg2);\n\n\t\t\t\tFragment fragment = new ItemViewFragment();\n\t\t\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\t\t\tfragmentManager.beginTransaction()\n\t\t\t\t\t\t.replace(R.id.content_frame, fragment)\n\t\t\t\t\t\t.addToBackStack(null).commit();\n\n\t\t\t}\n\t\t});\n\t\tregisterForContextMenu(lv);\n\t\tloadData();\n\n\t\t/*\n\t\t * if (CheckInternet.isNetworkPresent(getActivity())&&!Values.loaded) {\n\t\t * loadData(); } else {\n\t\t * \n\t\t * \n\t\t * Toast.makeText(getActivity(), \" No Data ! \", Toast.LENGTH_SHORT)\n\t\t * .show();\n\t\t * \n\t\t * \n\t\t * }\n\t\t */\n\n\t}", "private void setStartFragment() {\n Fragment startFragment = getFragment(APPLICATION_FRAGMENTS[0]);\n changeFragment(startFragment);\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.main_layout_holder);\r\n\t\tinitFragments();\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n\n // Restore the previously serialized activated item position.\n if (savedInstanceState != null\n && savedInstanceState.containsKey(STATE_ACTIVATED_POSITION)) {\n setActivatedPosition(savedInstanceState\n .getInt(STATE_ACTIVATED_POSITION));\n } else if (mActivatedPosition != ListView.INVALID_POSITION){\n setActivatedPosition(mActivatedPosition);\n }\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onEditorFragmentCreated(Fragment newFragment) {\n if (!mHaveInitialisedFABVisibility) {\n if (!(newFragment instanceof BuildEditorTabView)) {\n throw new IllegalStateException(\"You should change \" + newFragment + \" to implement BuildEditorTabView\");\n }\n\n BuildEditorTabView tab = (BuildEditorTabView) newFragment;\n setAddButtonVisibility(tab.requestsAddButton());\n mHaveInitialisedFABVisibility = true;\n }\n }", "@Override\n public void onResume(){\n fm = getFragmentManager();\n super.onResume();\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n setRetainInstance(true);\r\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //Indicating that this fragment has menu options to show\n setHasOptionsMenu(true);\n }", "@Override\n\tprotected void onCheckDeviceCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.activity_main);\n\t\t//initSplashDialog();\n\t\tcheckWhetherSetActionBarArrow();\n\t\tnavigationToFragment(new HomeFragment());\n\t}", "@Override\n public void onFragmentAttached() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tinitView();\r\n\t\tgetListDataFromLocal();\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n\n // Create fragment instance\n final Appointment point = new Appointment();\n\n // Voeg een listener toe aan de Fab\n createNew = (FloatingActionButton) listener.findViewById(R.id.createAppointment);\n createNew.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.fragment2, point);\n ft.addToBackStack(null);\n ft.commit();\n }\n });\n\n // Link the adapter to the listView\n appointListView = (ListView) listener.findViewById(R.id.AppointList);\n appointListView.setAdapter(appointAdapter);\n\n\n textView = (TextView)view.findViewById(R.id.noAppointmentText);\n\n if (count == 0){\n textView.setVisibility(View.VISIBLE);\n }\n\n\n }", "@Override\r\n public void onActivityCreated(Bundle savedInstanceState) {\n\tsuper.onActivityCreated(savedInstanceState);\r\n\tmFragmentManager = getActivity().getSupportFragmentManager();\r\n\tEventBus.getDefault().register(this);\r\n\r\n\tFilterService server = new FilterService();\r\n\tserver.doThemeFilterWork();\r\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n context = this.getActivity();\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "public void startBroadcastFragment() {\n // Before using the BroadcastFragment, be sure to\n // register your BroadcastListener with Kickflip\n configureNewBroadcast();\n Kickflip.setBroadcastListener(mBroadcastListener);\n getFragmentManager().beginTransaction()\n .replace(R.id.container, BroadcastFragment.getInstance())\n .commit();\n }", "@Override\n public void onFragmentVisible() {\n db = LegendsDatabase.getInstance(getContext());\n\n refreshCursor();\n\n if (emptyView.isShown()) {\n Crossfader.crossfadeView(emptyView, loadingView);\n }\n else {\n Crossfader.crossfadeView(listView, loadingView);\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n isPrepared = true;\n activity = getActivity();\n app = (App) activity.getApplication();\n handler = new ResumeInfoHandler(activity, this);\n resumeInfoFragment = ResumeInfoFragment.this;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Toast.makeText(getActivity(), getResources().getString(R.string.onCreateViewTop), Toast.LENGTH_SHORT).show();\n return inflater.inflate(R.layout.fragment_first, container, false);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n insertNestedFragment(position);\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n fragmentView = view;\n boolean hasProfile = false;\n //check si on avait des erreur ou un phone et name a ajouter\n if(args != null && !args.isEmpty()){\n try {\n if(args.containsKey(\"msg\")){\n displayErrMsg(args.getInt(\"msg\"));\n }\n if(args.containsKey(\"name\")){\n String name = args.getString(\"name\");\n if(name!= null && !name.isEmpty()){\n ((EditText)fragmentView.findViewById(R.id.userName)).setText(name);\n hasProfile = true;\n }\n }\n if(args.containsKey(\"phone\")){\n String phone = args.getString(\"phone\");\n if(phone != null && !phone.isEmpty()){\n ((EditText)fragmentView.findViewById(R.id.userPhone)).setText(phone);\n hasProfile = true;\n }\n }\n //on set le focus sur le message\n if(hasProfile){\n ((EditText)fragmentView.findViewById(R.id.userMessage)).requestFocus();\n }\n\n }catch(Exception e){\n Tracer.log(TAG, \"onViewCreated.ARGS.exception: \", e);\n }\n\n }\n\n //\n Button buttNext = fragmentView.findViewById(R.id.buttNext);\n //butt create\n buttNext.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n checkMandatoryFieldsAndCreate();\n }\n });\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n FragmentManager fm = getFragmentManager();\n mapFragment = (MapFragment) fm.findFragmentByTag(TAG_MAP_FRAGMENT);\n\n // If the Fragment is non-null, then it is currently being\n // retained across a configuration change.\n if (mapFragment == null) {\n mapFragment = new MapFragment();\n fm.beginTransaction().add(R.id.fragment_container, mapFragment, TAG_MAP_FRAGMENT).commit();\n }\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tinitView();\n\t\tinitData();\n\t\tsetOnClick();\n\t\tdelete();\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n globalContext = this.getContext();\n globalFragmentActivity = this.getActivity();\n\n setUI(view);\n SharedPreferencesService.initialize(globalContext);\n setListeners();\n initializeFragment();\n initializeAdBanner();\n showWelcomeDialogIfFirstTime();\n return view;\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onResume()\n {\n super.onResume();\n empty = true;\n loadData();\n initializeUI();\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initViews(view);\n // L.e(TAG, \"msg: onViewCreated\" + city);\n }", "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t\tinitView();\n//\t\tgetUserInfo();\n\t\tmHandler.sendEmptyMessageAtTime(READ_CACHE_SIZE, 3000);\n\t}", "public void restartInstantMessageFragment() {\r\n\r\n restartFragment(INSTANT_MESSAGE_FRAGMENT_TAG);\r\n }", "@Override\n protected void onResumeFragments() {\n\n Logger.INSTANCE.LogV(\"LifeCycle\", \"Main.onResumeFragments\");\n\n super.onResumeFragments();\n mOnResumeFragmentsCalled = true;\n\n if (mHandleOpenDocError) {\n handleOpenDocError();\n mHandleOpenDocError = false;\n } else if (mHandleLastTabClosed) {\n handleLastTabClosed();\n mHandleLastTabClosed = false;\n } else if (mTabbedHostBundle != null) {\n startTabHostFragment(mTabbedHostBundle);\n mTabbedHostBundle = null;\n } else if (mNavigationDrawerView != null && mNavigationDrawerView.getMenu() != null) {\n MenuItem menuItem = null;\n if (isFirstTimeRun()) {\n mIsFirstTimeRunConsumed = false; // consumed\n menuItem = mNavigationDrawerView.getMenu().findItem(R.id.item_file_list);\n } else if (mProcessedFragmentViewId != MENU_ITEM_NONE) {\n menuItem = mNavigationDrawerView.getMenu().findItem(mProcessedFragmentViewId);\n }\n if (menuItem != null) {\n selectNavigationItem(menuItem);\n }\n }\n\n if (mReturnFromSettings) {\n mReturnFromSettings = false;\n if (mProcessedFragmentViewId == R.id.item_viewer) {\n if (PdfViewCtrlTabsManager.getInstance().getLatestViewedTabTag(this) != null) {\n startTabHostFragment(null);\n }\n }\n }\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetHasOptionsMenu(true);\n\t\tdbService = DBService.getInstance(getActivity().getApplicationContext());\n\t\tif (savedInstanceState != null) {\n\t\t\tif (savedInstanceState.getBoolean(\"isHidden\")) {\n\t\t\t\tgetFragmentManager().beginTransaction().hide(this).commit();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "@Override\n public void onViewCreated(View view , Bundle savedInstanceState) {\n }" ]
[ "0.7381897", "0.6909146", "0.6892674", "0.6774853", "0.67132145", "0.6664509", "0.66312444", "0.66307276", "0.66249985", "0.6533803", "0.65305793", "0.65305793", "0.65165126", "0.64532053", "0.6446264", "0.6436663", "0.6412", "0.64006746", "0.6397897", "0.6395322", "0.6395322", "0.63809985", "0.63663805", "0.636438", "0.63263065", "0.6321083", "0.63178897", "0.63105315", "0.63095313", "0.63001984", "0.6292164", "0.6291862", "0.6283461", "0.62755805", "0.62721837", "0.6268142", "0.6254842", "0.62453777", "0.62453777", "0.62453777", "0.62386566", "0.62351865", "0.6234234", "0.62280047", "0.6220408", "0.61994433", "0.6198644", "0.6191964", "0.61902887", "0.6186905", "0.6182722", "0.6180939", "0.6180186", "0.6180131", "0.6180131", "0.61765176", "0.6174788", "0.6167888", "0.6166265", "0.6163525", "0.61619955", "0.61619955", "0.61619955", "0.61573446", "0.61545944", "0.61545944", "0.61545944", "0.61545944", "0.61545944", "0.61545944", "0.6154272", "0.61528987", "0.613621", "0.6135196", "0.61291164", "0.6126593", "0.6119667", "0.6119171", "0.61083513", "0.61025274", "0.6095144", "0.6094264", "0.60932547", "0.609304", "0.6088096", "0.6088096", "0.6083447", "0.6081175", "0.6078568", "0.606821", "0.60670656", "0.60659564", "0.60657686", "0.60581106", "0.6057295", "0.6055245", "0.605338", "0.6053267", "0.6048878", "0.6048535" ]
0.70595175
1
////////////////// Don't Touch !! //////////////////
private void saveStateToArguments() { if (getView() != null) savedState = saveState(); if (savedState != null) { Bundle b = getArguments(); if (b != null) b.putBundle("internalSavedViewState8954201239547", savedState); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void touch()\n {\n\n }", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\r\n\t\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }", "public void touch() {\n\t\t\t//lastAccess = System.currentTimeMillis();\n\t\t}", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}", "@SuppressLint(\"ClickableViewAccessibility\")\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}", "public void disable() {\n operating = false;\n }", "void disable();", "void disable();", "public void setDontTouchLogging(boolean dontTouchLogging) {\n this.dontTouchLogging = dontTouchLogging;\n }", "void disable() {\n }", "public void disable();", "@Override\n public boolean onInterceptTouchEvent(MotionEvent ev) {\n return false;\n }", "@Override\n public boolean onInterceptTouchEvent(MotionEvent event) {\n return false;\n }", "protected void onDisabled() {\n // Do nothing.\n }", "public void action() {\r\n\t\tLCD.drawString(\"Avoid Behavior!\", 0, 7);\r\n\r\n\t\tMapUpdate.updateWithoutObject(0);\r\n\t\tMapUpdate.updateWithObject(StandardRobot.us.getRange());\r\n\r\n\t\tif (StandardRobot.ts.isPressed()) {\r\n\t\t\tStandardRobot.pilot.setTravelSpeed(7);\r\n\t\t\tStandardRobot.pilot.travel(-5);\r\n\t\t\tcounter.countTravel();\r\n\r\n\t\t\tif (store.getFlag() == 0) {\r\n\t\t\t\tStandardRobot.pilot.rotate(-90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t} else {\r\n\t\t\t\tStandardRobot.pilot.rotate(90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t\tif (store.getFlag() == 0) {\r\n\t\t\t\tStandardRobot.pilot.rotate(-90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t} else {\r\n\t\t\t\tStandardRobot.pilot.rotate(90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean onTouch (View v, MotionEvent event){\n //\t\tif(!keepSilent){\n //\t\t\tswitch(event.getAction()){\n //\t\t\tcase MotionEvent.ACTION_MOVE:\n //\t\t\t\t\n //\t\t\t\tbreak;\n //\t\t\tcase MotionEvent.ACTION_CANCEL:\n //\t\t\tcase MotionEvent.ACTION_UP:\n //\t\t\t\t//mLastExceedingY = 0;\n //\t\t\t\tbreak;\n //\t\t\t}\n //\t\t}\t\t\n \t\t\n \t\treturn this.keepSilent;\n \t}", "static void setNotDraging(){isDraging=false;}", "@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic boolean takeControl() {\n\t\treturn false;\n\t}", "void onStopTrackingTouch() {\n mIsDragging = false;\n }", "void onStopTrackingTouch() {\n mIsDragging = false;\n }", "void disableMod();", "@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent event) {\n\t\t\t\targ0.getParent().requestDisallowInterceptTouchEvent(true);\n\t\t\t\treturn false;\n\n\t\t\t}", "public void requestDisallowIntercepts(){\n one.getParent().requestDisallowInterceptTouchEvent(true);\n two.getParent().requestDisallowInterceptTouchEvent(true);\n three.getParent().requestDisallowInterceptTouchEvent(true);\n four.getParent().requestDisallowInterceptTouchEvent(true);\n\n one.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }\n });\n }", "public void touch() {\n setLastUpdateTime(System.currentTimeMillis());\n }", "private void bypassIt(){\n rebootDialog();\n }", "@Override\r\n\tpublic boolean isTouchLeftDown() {\n\t\treturn false;\r\n\t}", "@Override\r\n public boolean onDown(MotionEvent e) {\n return false;\r\n }", "public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }", "public void mouseDrag(MouseEvent e, int x, int y) {\n // Do nothing.. \n }", "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n return false;\n }", "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n return false;\n }", "@Override\n public boolean onDown(MotionEvent e) {\n return false;\n }", "private void attemptClaimDrag() {\n if (getParent() != null) {\n getParent().requestDisallowInterceptTouchEvent(true);\n }\n }", "private void attemptClaimDrag() {\n if (getParent() != null) {\n getParent().requestDisallowInterceptTouchEvent(true);\n }\n }", "@Override\n public boolean touchDragged(int screenX, int screenY, int pointer) {\n return false;\n }", "@Override\n public boolean touchDragged(int screenX, int screenY, int pointer) {\n return false;\n }", "@Override\n\tprotected void unregisterTouch() {\n\t\t\n\t}", "@Override\n\tpublic void onDisable() {\n\t\t\n\t}", "@Override\n public void onDisable() {\n }", "@Override\r\n public boolean onTouchEvent(MotionEvent event) {\n return super.onTouchEvent(event);\r\n }", "public void doorOpen(){\n super.suppress();\n }", "@Override\n public boolean onDown(MotionEvent motionEvent) {\n return false;\n }", "protected abstract void disable();", "@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar){\n\t\t\t\t// do nothing\n\t\t\t}", "@Override\r\n\t\tpublic boolean onTouchPen(View arg0, MotionEvent arg1) {\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n\tpublic void off() {\n\r\n\t}", "@Override\n public boolean onSingleTapConfirmed(MotionEvent e) {\n return false;\n }", "@Override\r\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\r\n\t}", "public void damageDevice() {\n\t\t\r\n\t}", "@Override\n public boolean isSoft() {\n return true;\n }", "@Override\r\n public boolean onDown(MotionEvent e)\r\n {\n return false;\r\n }", "protected void whileDisable()\n\t{\n\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n public boolean onDown(MotionEvent arg0) {\n return false;\n }", "void outOfTime() {\r\n\r\n disableOptionButtons();\r\n }", "private boolean touchedReset(TouchEvent event) {\n\t\tif (event.y >= 415 && event.x >= 725) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tprotected void takeOff(){\n\t\tgvh.log.i(TAG, \"Drone taking off\");\n\t\tsetControlInput(0, 0, 0, 1);\n\t}", "@Override\n public void onDisabled() {\n }", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic void onDisable() {\n\t}", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\tdgView.requestDisallowInterceptTouchEvent(true);\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\treturn false;\n\t\t\t}", "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }", "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }", "protected void onReset() {\n // Do nothing.\n }", "default void onDisable() {}", "@Override\n\tpublic void onDisable() {\n\n\t}", "private void Lose(){\n touchable = false;\n RevealAll();\n }", "@Override\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\n\t}", "public void onDisable() {\r\n }", "@Override\n\tpublic void off() {\n\n\t}", "@Override\r\n\tpublic void onTouchMove(LTouch e) {\n\t\t\r\n\t}", "public boolean onTouch(View view, MotionEvent event) {\n if (view.getId() ==R.id.twoactsend) {\n view.getParent().requestDisallowInterceptTouchEvent(true);\n switch (event.getAction()&MotionEvent.ACTION_MASK){\n case MotionEvent.ACTION_UP:\n view.getParent().requestDisallowInterceptTouchEvent(false);\n break;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean touchDown(float x, float y, int pointer, int button) {\n\t\treturn false;\n\t}", "@Override\n public boolean dispatchTouchEvent(MotionEvent ev) {\n return DefaultApplication.isWaiting() ? false : super.dispatchTouchEvent(ev);\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "public void doNothing(){\n\t}" ]
[ "0.69949156", "0.69033813", "0.6877854", "0.6869303", "0.6858796", "0.6858796", "0.6858796", "0.685637", "0.68444264", "0.68444264", "0.6836286", "0.683138", "0.67593455", "0.66903687", "0.66209984", "0.65166247", "0.6450984", "0.6450984", "0.63745606", "0.6364993", "0.6352194", "0.631486", "0.63088447", "0.6300219", "0.62938005", "0.62794644", "0.6259347", "0.6238748", "0.6238748", "0.6223061", "0.6216418", "0.6216418", "0.6200431", "0.6181852", "0.61764896", "0.6173215", "0.6148992", "0.6142815", "0.61373144", "0.61299646", "0.61282295", "0.61142534", "0.61142534", "0.6103367", "0.6103076", "0.6103076", "0.61010134", "0.61010134", "0.60944045", "0.6091983", "0.60815996", "0.6073856", "0.60714585", "0.6071079", "0.606882", "0.6056085", "0.6051066", "0.60507125", "0.6047481", "0.60473764", "0.60473764", "0.60434556", "0.6038355", "0.60336494", "0.6032563", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60242856", "0.60229594", "0.60201913", "0.6013395", "0.60094374", "0.6007726", "0.6007726", "0.6007726", "0.6001946", "0.59980595", "0.5992757", "0.5979717", "0.5979717", "0.59791636", "0.5978496", "0.5977238", "0.59682363", "0.5966067", "0.59638816", "0.5957064", "0.59566176", "0.5950225", "0.59495103", "0.5944285", "0.5942016", "0.5936736" ]
0.0
-1
////////////////// Don't Touch !! //////////////////
private boolean restoreStateFromArguments() { Bundle b = getArguments(); if (b != null) { savedState = b.getBundle("internalSavedViewState8954201239547"); if (savedState != null) { restoreState(); return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void touch()\n {\n\n }", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\r\n\t\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }", "public void touch() {\n\t\t\t//lastAccess = System.currentTimeMillis();\n\t\t}", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}", "@SuppressLint(\"ClickableViewAccessibility\")\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}", "public void disable() {\n operating = false;\n }", "void disable();", "void disable();", "public void setDontTouchLogging(boolean dontTouchLogging) {\n this.dontTouchLogging = dontTouchLogging;\n }", "void disable() {\n }", "public void disable();", "@Override\n public boolean onInterceptTouchEvent(MotionEvent ev) {\n return false;\n }", "@Override\n public boolean onInterceptTouchEvent(MotionEvent event) {\n return false;\n }", "protected void onDisabled() {\n // Do nothing.\n }", "public void action() {\r\n\t\tLCD.drawString(\"Avoid Behavior!\", 0, 7);\r\n\r\n\t\tMapUpdate.updateWithoutObject(0);\r\n\t\tMapUpdate.updateWithObject(StandardRobot.us.getRange());\r\n\r\n\t\tif (StandardRobot.ts.isPressed()) {\r\n\t\t\tStandardRobot.pilot.setTravelSpeed(7);\r\n\t\t\tStandardRobot.pilot.travel(-5);\r\n\t\t\tcounter.countTravel();\r\n\r\n\t\t\tif (store.getFlag() == 0) {\r\n\t\t\t\tStandardRobot.pilot.rotate(-90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t} else {\r\n\t\t\t\tStandardRobot.pilot.rotate(90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t\tif (store.getFlag() == 0) {\r\n\t\t\t\tStandardRobot.pilot.rotate(-90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t} else {\r\n\t\t\t\tStandardRobot.pilot.rotate(90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean onTouch (View v, MotionEvent event){\n //\t\tif(!keepSilent){\n //\t\t\tswitch(event.getAction()){\n //\t\t\tcase MotionEvent.ACTION_MOVE:\n //\t\t\t\t\n //\t\t\t\tbreak;\n //\t\t\tcase MotionEvent.ACTION_CANCEL:\n //\t\t\tcase MotionEvent.ACTION_UP:\n //\t\t\t\t//mLastExceedingY = 0;\n //\t\t\t\tbreak;\n //\t\t\t}\n //\t\t}\t\t\n \t\t\n \t\treturn this.keepSilent;\n \t}", "static void setNotDraging(){isDraging=false;}", "@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic boolean takeControl() {\n\t\treturn false;\n\t}", "void onStopTrackingTouch() {\n mIsDragging = false;\n }", "void onStopTrackingTouch() {\n mIsDragging = false;\n }", "void disableMod();", "@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent event) {\n\t\t\t\targ0.getParent().requestDisallowInterceptTouchEvent(true);\n\t\t\t\treturn false;\n\n\t\t\t}", "public void requestDisallowIntercepts(){\n one.getParent().requestDisallowInterceptTouchEvent(true);\n two.getParent().requestDisallowInterceptTouchEvent(true);\n three.getParent().requestDisallowInterceptTouchEvent(true);\n four.getParent().requestDisallowInterceptTouchEvent(true);\n\n one.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }\n });\n }", "public void touch() {\n setLastUpdateTime(System.currentTimeMillis());\n }", "private void bypassIt(){\n rebootDialog();\n }", "@Override\r\n\tpublic boolean isTouchLeftDown() {\n\t\treturn false;\r\n\t}", "@Override\r\n public boolean onDown(MotionEvent e) {\n return false;\r\n }", "public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }", "public void mouseDrag(MouseEvent e, int x, int y) {\n // Do nothing.. \n }", "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n return false;\n }", "@Override\n public boolean touchDown(int screenX, int screenY, int pointer, int button) {\n return false;\n }", "@Override\n public boolean onDown(MotionEvent e) {\n return false;\n }", "private void attemptClaimDrag() {\n if (getParent() != null) {\n getParent().requestDisallowInterceptTouchEvent(true);\n }\n }", "private void attemptClaimDrag() {\n if (getParent() != null) {\n getParent().requestDisallowInterceptTouchEvent(true);\n }\n }", "@Override\n public boolean touchDragged(int screenX, int screenY, int pointer) {\n return false;\n }", "@Override\n public boolean touchDragged(int screenX, int screenY, int pointer) {\n return false;\n }", "@Override\n\tprotected void unregisterTouch() {\n\t\t\n\t}", "@Override\n\tpublic void onDisable() {\n\t\t\n\t}", "@Override\n public void onDisable() {\n }", "@Override\r\n public boolean onTouchEvent(MotionEvent event) {\n return super.onTouchEvent(event);\r\n }", "public void doorOpen(){\n super.suppress();\n }", "@Override\n public boolean onDown(MotionEvent motionEvent) {\n return false;\n }", "protected abstract void disable();", "@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar){\n\t\t\t\t// do nothing\n\t\t\t}", "@Override\r\n\t\tpublic boolean onTouchPen(View arg0, MotionEvent arg1) {\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n\tpublic void off() {\n\r\n\t}", "@Override\n public boolean onSingleTapConfirmed(MotionEvent e) {\n return false;\n }", "@Override\r\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\r\n\t}", "public void damageDevice() {\n\t\t\r\n\t}", "@Override\n public boolean isSoft() {\n return true;\n }", "@Override\r\n public boolean onDown(MotionEvent e)\r\n {\n return false;\r\n }", "protected void whileDisable()\n\t{\n\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n public boolean onDown(MotionEvent arg0) {\n return false;\n }", "void outOfTime() {\r\n\r\n disableOptionButtons();\r\n }", "private boolean touchedReset(TouchEvent event) {\n\t\tif (event.y >= 415 && event.x >= 725) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tprotected void takeOff(){\n\t\tgvh.log.i(TAG, \"Drone taking off\");\n\t\tsetControlInput(0, 0, 0, 1);\n\t}", "@Override\n public void onDisabled() {\n }", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic void onDisable() {\n\t}", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\tdgView.requestDisallowInterceptTouchEvent(true);\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\treturn false;\n\t\t\t}", "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }", "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }", "protected void onReset() {\n // Do nothing.\n }", "default void onDisable() {}", "@Override\n\tpublic void onDisable() {\n\n\t}", "private void Lose(){\n touchable = false;\n RevealAll();\n }", "@Override\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\n\t}", "public void onDisable() {\r\n }", "@Override\n\tpublic void off() {\n\n\t}", "@Override\r\n\tpublic void onTouchMove(LTouch e) {\n\t\t\r\n\t}", "public boolean onTouch(View view, MotionEvent event) {\n if (view.getId() ==R.id.twoactsend) {\n view.getParent().requestDisallowInterceptTouchEvent(true);\n switch (event.getAction()&MotionEvent.ACTION_MASK){\n case MotionEvent.ACTION_UP:\n view.getParent().requestDisallowInterceptTouchEvent(false);\n break;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean touchDown(float x, float y, int pointer, int button) {\n\t\treturn false;\n\t}", "@Override\n public boolean dispatchTouchEvent(MotionEvent ev) {\n return DefaultApplication.isWaiting() ? false : super.dispatchTouchEvent(ev);\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "public void doNothing(){\n\t}" ]
[ "0.69949156", "0.69033813", "0.6877854", "0.6869303", "0.6858796", "0.6858796", "0.6858796", "0.685637", "0.68444264", "0.68444264", "0.6836286", "0.683138", "0.67593455", "0.66903687", "0.66209984", "0.65166247", "0.6450984", "0.6450984", "0.63745606", "0.6364993", "0.6352194", "0.631486", "0.63088447", "0.6300219", "0.62938005", "0.62794644", "0.6259347", "0.6238748", "0.6238748", "0.6223061", "0.6216418", "0.6216418", "0.6200431", "0.6181852", "0.61764896", "0.6173215", "0.6148992", "0.6142815", "0.61373144", "0.61299646", "0.61282295", "0.61142534", "0.61142534", "0.6103367", "0.6103076", "0.6103076", "0.61010134", "0.61010134", "0.60944045", "0.6091983", "0.60815996", "0.6073856", "0.60714585", "0.6071079", "0.606882", "0.6056085", "0.6051066", "0.60507125", "0.6047481", "0.60473764", "0.60473764", "0.60434556", "0.6038355", "0.60336494", "0.6032563", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60301673", "0.60242856", "0.60229594", "0.60201913", "0.6013395", "0.60094374", "0.6007726", "0.6007726", "0.6007726", "0.6001946", "0.59980595", "0.5992757", "0.5979717", "0.5979717", "0.59791636", "0.5978496", "0.5977238", "0.59682363", "0.5966067", "0.59638816", "0.5957064", "0.59566176", "0.5950225", "0.59495103", "0.5944285", "0.5942016", "0.5936736" ]
0.0
-1
/////////////////////////////// Restore Instance State Here ///////////////////////////////
private void restoreState() { if (savedState != null) { // For Example //tv1.setText(savedState.getString("text")); onRestoreState(savedState); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void restoreState() {\n\t\tsuper.restoreState();\n\t}", "public void restoreState() \n\t{\n\t\tsuper.restoreState();\n\t}", "@SuppressWarnings(\"UnusedParameters\")\n private void onRestoreInstanceState(Bundle savedInstanceState) {\n // Restore Instance State here\n }", "@SuppressWarnings(\"UnusedParameters\")\n private void onRestoreInstanceState(Bundle savedInstanceState) {\n // Restore Instance State here\n }", "@SuppressWarnings(\"UnusedParameters\")\n private void onRestoreInstanceState(Bundle savedInstanceState) {\n // Restore Instance State here\n }", "@SuppressWarnings(\"UnusedParameters\")\r\n private void onRestoreInstanceState(Bundle savedInstanceState) {\r\n // Restore Instance State here\r\n }", "@SuppressWarnings(\"UnusedParameters\")\r\n private void onRestoreInstanceState(Bundle savedInstanceState) {\r\n // Restore Instance State here\r\n }", "@Override\n public void onViewStateInstanceRestored(boolean instanceStateRetained) {\n }", "@Override\n public void restore() {\n }", "@VisibleForTesting\n static void resetInstance() {\n sInstance = null;\n }", "public static void resetInstance() {\n\t\tinstance = null;\n\t}", "@Override\n public void restoreState(Map<String, Object> state) {\n\n }", "StateClass() {\r\n restored = restore();\r\n }", "public abstract void restore();", "private void restore() {\n AppSettings.setInstance(backupConfig);\n }", "private OffState() {\n instance = this;\n }", "private void clearPreviousInstances() {\n DiscardedCards.clearInstance();\n Fireworks.clearInstance();\n History.clearInstance();\n SelectedSymbol.clearInstance();\n Tokens.clearInstance();\n HanabiCards.initDeck();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "public void revise()\n {\n \n super.revise();\n }", "@Override\n public void onRestoreInstanceState(Bundle outState) {\n super.onRestoreInstanceState(outState);\n currentStateRestoreFromSharedPref();\n }", "public void restoreState() {\n\tMachine.processor().setPageTable(pageTable);\n }", "@Override\n public void restoreState(Bundle savedInstanceState) {\n }", "@Override\n protected void onRestoreInstanceState(Bundle state) {\n super.onRestoreInstanceState(state);\n }", "protected void resetState()\n {\n // Nothing to do by default.\n }", "public void restoreState(FacesContext context, Object state) {\n }", "@Override\n\tpublic void onRestoreInstanceState(Bundle savedInstanceState) {\n\t}", "private void restoreState(final Bundle state)\n {\n logEnter(LOG_TAG, \"restoreState\", state);\n\n instance = (ServerInstance) state.getSerializable(BUNDLE_FIELD_INSTANCE);\n\n entries = new LinkedList<SearchResultEntry>();\n final Object o = state.getSerializable(BUNDLE_FIELD_ENTRIES);\n if (o instanceof List)\n {\n final List<?> l = (List<?>) o;\n for (final Object item : l)\n {\n entries.add((SearchResultEntry) item);\n }\n }\n }", "@Override\n protected void dispatchRestoreInstanceState(SparseArray<Parcelable> container) {\n }", "@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }", "@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }", "public static void resetInstance() {\n DataSQLiteOpenHelper.resetInstance();\n if (sInstance != null) {\n sInstance.close();\n sInstance = null;\n }\n }", "@Override\n public void onRestoreInstanceState(Bundle state) {\n super.onRestoreInstanceState(new Bundle());\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "void reset() {\n synchronized (instances) {\n instances.clear();\n }\n }", "@Override\r\n\t\t\tprotected void restoreContext() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onRestoreInstanceState(savedInstanceState);\n\t}", "@Override\n public void onRestate() {\n }", "public void restore() {\r\n for (int i = 0; i < 24; i++) {\r\n int staticLevel = getStaticLevel(i);\r\n setLevel(i, staticLevel);\r\n }\r\n if (entity instanceof Player) {\r\n ((Player) entity).getActionSender().sendSound(new Audio(2674));\r\n }\r\n rechargePrayerPoints();\r\n }", "public static void markInstanceStale() {\n instance = null;\n }", "@Override\n\tprotected void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onRestoreInstanceState(savedInstanceState);\n\n\t}", "@Override\n\tprotected void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onRestoreInstanceState(savedInstanceState);\n\n\t}", "public void onRestorePendingState() {\n }", "@Override()\n protected void onRestoreInstanceState(final Bundle state)\n {\n logEnter(LOG_TAG, \"onRestoreInstanceState\", state);\n\n restoreState(state);\n }", "@Override\n public void restore() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] iTmp1 = m_iCurrentMatrices;\n m_iCurrentMatrices = m_iStoredMatrices;\n m_iStoredMatrices = iTmp1;\n\n int[] iTmp2 = m_iCurrentPartials;\n m_iCurrentPartials = m_iStoredPartials;\n m_iStoredPartials = iTmp2;\n\n// int[] iTmp3 = m_iCurrentStates;\n// m_iCurrentStates= m_iStoredStates;\n// m_iStoredStates = iTmp3;\n }", "protected void reInitialize() {\n resetCurrent();\n incrementIterCount();\n setFirst(true);\n recoverRunningVersion();\n }", "private void currentStateRestoreFromSharedPref() {\n sharedPreferences = getPreferences(MODE_PRIVATE);\n int key1DeffaultValue = -1;\n key1OfActiveChallenge = sharedPreferences.getInt(\"key1OfActiveChallenge\", key1DeffaultValue);\n nameOfCurrentChallenge = sharedPreferences.getString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n\n dateOfLastEdit = sharedPreferences.getString(\"dateOfLastEdit\", dateOfLastEdit);\n\n goal = sharedPreferences.getFloat(\"goal\", goal);\n carry = sharedPreferences.getFloat(\"carry\", carry);\n\n challengeDaysRunning = sharedPreferences.getInt(\"challengeDaysRunning\", challengeDaysRunning);\n }", "public void restore(Object obj) throws HibException;", "private void restorePreviousState() {\n\n\t\tif (StoreAnalysisStateApplication.question1Answered) {\n\t\t\tfirstImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question2Answered) {\n\t\t\tsecondImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question3Answered) {\n\t\t\tthirdImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.stageCleared) {\n\t\t\tfirstImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreDesignStateApplication.stageCleared) {\n\t\t\tsecondImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.voicereadingenabled);\n\t\t}\n\n\t\tif (StoreImplementationStateApplication.stageCleared) {\n\t\t\tthirdImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.microphonenabled);\n\t\t}\n\n\t}", "void restoreFormState();", "@Override\n public void onRestoreInstanceState(Bundle savedInstanceState){\n super.onRestoreInstanceState(savedInstanceState);\n\n tttGame = new TicTacToeGameState();\n tttGame.setBoard(savedInstanceState.getIntArray(\"board\"));\n tttGame.setTurn(savedInstanceState.getBoolean(\"turn\"));\n tttGame.setAIMode(savedInstanceState.getBoolean(\"mode\"));\n\n pOneCounter = savedInstanceState.getInt(\"p1Count\");\n pTwoCounter = savedInstanceState.getInt(\"p2Count\");\n pAICounter = savedInstanceState.getInt(\"pAICount\");\n tieCounter = savedInstanceState.getInt(\"tieCount\");\n\n restoreBoard(savedInstanceState.getIntArray(\"board\"), savedInstanceState.getBooleanArray(\"state\"));\n setDescriptionPlay();\n\n\n\n }", "protected void onSaveInstanceState(Bundle instanceState) {\n super.onSaveInstanceState(instanceState);\n }", "public void resetState();", "@Override\n protected void onRestoreInstanceState(Bundle savedInstanceState) {\n super.onRestoreInstanceState(savedInstanceState);\n int i = 1;\n }", "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "private FanState() {\n\t\tinstance = this;\n\t}", "public void resetState() {\n \ts = State.STRAIGHT;\n }", "public final void restore() {\r\n\t\tbi_image.restore();\r\n\t}", "private void restoreInstanceState(Bundle savedInstanceState) {\n mCommon.transactionEntity = Parcels.unwrap(savedInstanceState.getParcelable(KEY_MODEL));\n\n mCommon.mToAccountName = savedInstanceState.getString(KEY_TO_ACCOUNT_NAME);\n mCommon.payeeName = savedInstanceState.getString(KEY_PAYEE_NAME);\n mCommon.categoryName = savedInstanceState.getString(KEY_CATEGORY_NAME);\n mCommon.subCategoryName = savedInstanceState.getString(KEY_SUBCATEGORY_NAME);\n mCommon.mSplitTransactions = Parcels.unwrap(savedInstanceState.getParcelable(KEY_SPLIT_TRANSACTION));\n mCommon.mSplitTransactionsDeleted = Parcels.unwrap(savedInstanceState.getParcelable(KEY_SPLIT_TRANSACTION_DELETED));\n\n // action\n// mIntentAction = savedInstanceState.getString(KEY_ACTION);\n }", "public void restore() {\n currentIm= originalIm.copy();\n }", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "public void tearDown() {\n instance = null;\n }", "protected void onBSRestoreInstanceState(Bundle savedInstanceState) {\n\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n }", "public void reset(){\n currentStage = 0;\n currentSide = sideA;\n }", "@Override\n\tprotected void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onRestoreInstanceState(savedInstanceState);\n\t\tLog.e(\"mainactivity\", \"onrestore\");\n\t\t\n\t}", "protected void restoreGame() throws IOException, InterruptedException {\n deckLeaderCard=new DeckLeaderCard();\n reserve=new Reserve();\n restoreInformationOfMarket();\n restoreInformationOfProductionDeck();\n\n }", "void resetMachineState(ExecutionContext context) {\r\n synchronized (classLoaderLock) {\r\n if (classLoader == null) {\r\n return;\r\n }\r\n classLoader.resetCachedResults(context);\r\n // Discard the class loader. This will unload all classes in the module and adjunct.\r\n classLoader = null;\r\n }\r\n }", "public void restoreState(IMemento memento) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}", "@Override\n\tpublic void restoreState() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] tmp1 = currentMatricesIndices;\n currentMatricesIndices = storedMatricesIndices;\n storedMatricesIndices = tmp1;\n\n int[] tmp2 = currentPartialsIndices;\n currentPartialsIndices = storedPartialsIndices;\n storedPartialsIndices = tmp2;\n\n\n }", "@Override\r\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t}", "public void reset() {\n this.state = null;\n }", "protected void reInitialize() {\r\n currentPos.reInitialize();\r\n motorState.reInitialize();\r\n armState = KSGripperStates.ARM_UP;\r\n gripperState = KSGripperStates.GRIP_OPEN;\r\n objPresent = false;\r\n objHeld = false;\r\n resistivity = 0;\r\n }", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "public void destroiInstancia()\n {\n // Libera a variavel instancia para ser limpa pelo garbage collection\n //instancia = null;\n }", "protected abstract void onRestoreInstanceState(\n\t\t\tBaseFragmentViewHolder viewHolder, Bundle savedInstance);", "public static void reInitialize() {\r\n\t\tThread houseKeeperTemp = theInstance.houseKeeper;\r\n\t\ttheInstance.houseKeeper = null;\t\t// shuts down the housekeeper thread\r\n\t\thouseKeeperTemp.interrupt();\r\n\t\ttheInstance = new GroupManager();\t\t\r\n\t}", "public void restoreThreadLocalStatus() {\n\t\ttransactionInfoHolder.set(this.oldTransactionInfo);\n\t}", "@Override\n\t\tpublic Parcelable saveState() {\n\t\t\treturn null;\n\t\t}", "@Override\n public void reset() \n {\n\n }", "@SuppressWarnings(\"UnusedParameters\")\n private void onRestoreInstanceState(Bundle savedInstanceState) {\n\n }", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "public synchronized void reset() {\r\n \ttry {\r\n \t\trecreate();\r\n \t} catch (CoreException e) {\r\n \t\tResourcesPlugin.getPlugin().getLog().log(e.getStatus());\r\n \t}\r\n }", "public void performUninitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "@Override\n public void reset() {\n\n }", "protected void reset() {\n\t\t}", "void unsetState();" ]
[ "0.74834657", "0.74085516", "0.734363", "0.734363", "0.734363", "0.73193234", "0.73193234", "0.7212715", "0.7174796", "0.7103068", "0.708664", "0.69848734", "0.69572777", "0.69013864", "0.68722045", "0.68209594", "0.68128806", "0.6677826", "0.6677826", "0.6677826", "0.6677826", "0.6648283", "0.66246766", "0.65926", "0.6584306", "0.6580066", "0.6546528", "0.65459645", "0.6466959", "0.6460777", "0.6424565", "0.64194596", "0.64194596", "0.64172506", "0.6410079", "0.64065665", "0.64065665", "0.64065665", "0.64065665", "0.64065665", "0.64065665", "0.64065665", "0.6403836", "0.6368641", "0.6326418", "0.63255113", "0.62848425", "0.6274554", "0.6273702", "0.6273702", "0.6271439", "0.6259858", "0.6244418", "0.6237893", "0.62164533", "0.6197733", "0.6195745", "0.6187043", "0.6179319", "0.61667216", "0.6162317", "0.6159796", "0.61579895", "0.61253583", "0.6117284", "0.610561", "0.609776", "0.60784394", "0.60595185", "0.6055451", "0.60521233", "0.60438", "0.6030403", "0.60276836", "0.6024078", "0.6000412", "0.59966075", "0.597636", "0.59762543", "0.59747595", "0.59677523", "0.5964813", "0.5960364", "0.5960364", "0.5960364", "0.5960364", "0.5949489", "0.5923833", "0.5916602", "0.59008366", "0.5897532", "0.58953375", "0.587678", "0.5874855", "0.5865385", "0.5861354", "0.58576286", "0.5856877", "0.58546394", "0.58530754" ]
0.6216396
55
//////////////////////////// Save Instance State Here ////////////////////////////
private Bundle saveState() { Bundle state = new Bundle(); // For Example //state.putString("text", tv1.getText().toString()); onSaveState(state); return state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveState() { }", "@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }", "@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "private void saveState(final Bundle state)\n {\n logEnter(LOG_TAG, \"saveState\", state);\n\n state.putSerializable(BUNDLE_FIELD_INSTANCE, instance);\n state.putSerializable(BUNDLE_FIELD_ENTRIES, entries);\n }", "private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t savedInstanceState.putBoolean(HAS_RUN, true);\t \n\t //savedInstanceState.putParcelable(MODEL_DATA, dS);\n\t Log.i(\"MAIN\",\"Saved instances\");\n\t // Always call the superclass so it can save the view hierarchy state\n\t super.onSaveInstanceState(savedInstanceState);\n\t}", "protected void onSaveInstanceState(Bundle instanceState) {\n super.onSaveInstanceState(instanceState);\n }", "private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }", "protected void storeCurrentValues() {\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n currentStateSaveToSharedPref();\n }", "public void saveState() throws RemoteException {\r\n server.unbind(this.agentID);\r\n try {\r\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"agent.dat\"));\r\n oos.writeObject(this);\r\n oos.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Object not saved correctly.\");\r\n } finally {\r\n System.exit(0);\r\n }\r\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n }", "public void saveState() throws IOException {\n\t\tFile f = new File(workingDirectory() + File.separator + id() + FILE_EXTENSION);\n\t\t\n\t\t// create new file if it doesnt exist\n\t\tf.createNewFile();\n\t\t\n\t\t// dump client state into file\n\t\tObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(f));\n\t\tos.writeObject(this);\n\t\tos.close();\n\t}", "@Override\r\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t}", "public void saveState() {\n mementos = new ArrayList<>(mementos.subList(0, statePointer + 1));\n Notebook notebookToAdd = new Notebook(this.notebook);\n notebookToAdd.setCurrentClassroom(this.notebook.getCurrentClassroom());\n Memento mementoToAdd = new Memento(notebookToAdd);\n mementos.add(mementoToAdd);\n statePointer++;\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n /* Here we put code now to save the state */\n outState.putString(\"path\", mCurrentPhotoPath);\n outState.putString(\"caseId\", caseId.getText().toString());\n outState.putString(\"desc\", desc.getText().toString());\n outState.putString(\"imgName\", this.imgName);\n\n if (dialog != null && dialog.getUserInput() != \"\") {\n System.out.println(\"in onSvaeInstanceSteate \"+dialog.getUserInput());\n outState.putString(\"username\", dialog.getUserInput());\n }\n }", "private void saveCurrentState(Bundle outState){\n outState.putInt(PLAYER_COUNT_STATE_KEY,playerScore);\n outState.putSerializable(VIEW_MAP_STATE_KEY,globalViewMap);\n outState.putSerializable(CHILD_TEXT_CONTAINER_STATE_KEY,globalChildTextContainer);\n outState.putSerializable(PRIME_RECORD_MAP_KEY,primeRecorderMap);\n outState.putSerializable(CURRENT_SCREEN_GAME_STATE_KEY,currentScreenGameState);\n outState.putLong(GAME_TIME_LEFT_STATE_KEY,gameTimeLeftYet);\n }", "public void save(Object instance);", "private void storeViewState()\n\t{\n\t\tCommand lastCmd = project.getLastCommand();\n\t\tif (lastCmd != null)\n\t\t{\n\t\t\tlastCmd.setOptionalState(view.toJSONString(lastCmd.getProjectState()));\n\t\t}\n\t}", "void store(InstanceProperties props) {\n props.putString(PROPERTY_NAME, name);\n props.putString(PROPERTY_HOST, host);\n props.putInt(PROPERTY_PORT, port);\n props.putString(PROPERTY_LOCAL_SERVER_ROOT,\n getLocalServer() != null\n ? getLocalServer().getServerRoot() : null);\n props.putString(PROPERTY_LOCAL_SERVER_HOME,\n getLocalServer() != null\n ? getLocalServer().getServerHome() : null);\n LOG.log(Level.FINER,\n \"Stored GlassFishCloudInstance({0}, {1}, {2})\",\n new Object[]{name, host, port});\n storeListeners.fireChange();\n\n }", "@Override\n public void saveState(Bundle outBundle) {\n }", "private void saveStateSnapshot(State state){\n\t\ttry{\n\t\t\tif(saveStateSnapshot){\n\t\t\t\t//System.out.println(Utils.treeDesc(state, 2, Tags.Role, Tags.Desc, Tags.Shape, Tags.Blocked));\n\t\t\t\tTaggable taggable = new TaggableBase();\n\t\t\t\ttaggable.set(SystemState, state);\n\t\t\t\tLogSerialiser.log(\"Saving state snapshot...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tFile file = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir), \"state_snapshot\");\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n\t\t\t\toos.writeObject(taggable);\n\t\t\t\toos.close();\n\t\t\t\tsaveStateSnapshot = false;\n\t\t\t\tLogSerialiser.log(\"Saved state snapshot to \" + file.getAbsolutePath() + \"\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t}\n\t\t}catch(IOException ioe){\n\t\t\tthrow new RuntimeException(ioe);\n\t\t}\n\t}", "@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t}", "@Override\n public void onSaveInstanceState(Bundle savedInstanceState)\n {\n savedInstanceState.putIntArray(\"board\", tttGame.getBoard());\n savedInstanceState.putBoolean(\"turn\", tttGame.getTurn());\n savedInstanceState.putBoolean(\"mode\", tttGame.getAIMode());\n\n savedInstanceState.putInt(\"p1Count\", pOneCounter);\n savedInstanceState.putInt(\"p2Count\", pTwoCounter);\n savedInstanceState.putInt(\"pAICount\",pAICounter);\n savedInstanceState.putInt(\"tieCount\", tieCounter);\n\n boolean[] enabled = getState();\n savedInstanceState.putBooleanArray(\"state\", enabled);\n }", "private void saveState() throws IOException {\n speakerManager.saveState();\n roomManager.saveState();\n organizerManager.saveState();\n eventManager.saveState();\n chatManager.saveState();\n attendeeManager.saveState();\n\n }", "private void saveCurrentObject() {\n\t}", "@Override\n\tpublic void onMySaveInstanceState(Bundle outState) {\n\t\t\n\t}", "@Override\n\tpublic void onMySaveInstanceState(Bundle outState) {\n\t\t\n\t}", "@Override\r\n\tpublic GameState save() {\n\t\treturn null;\r\n\t}", "@Override\n\t\tpublic Parcelable saveState() {\n\t\t\treturn null;\n\t\t}", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n //outState.putInt(\"someVarA\", someVarA);\n //outState.putString(\"someVarB\", someVarB);\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n Session currentSession = sessionTracker.getSession();\n Session.saveSession(currentSession, outState);\n outState.putBoolean(SESSION_IS_ACTIVE_KEY, sessionTracker.isTrackingActiveSession());\n }", "protected S state() {\n return state;\n }", "public void saveCurrentUserState(){\n\t\tCurrentUserState currState = new CurrentUserState();\n\t\tcurrState.setBatchOutput(batchState.getBatchOutput());\n\t\tcurrState.setCurrFields(batchState.getFields());\n\t\tcurrState.setCurrProject(batchState.getProject());\n\t\tcurrState.setCurrScale(display.getScale());\n\t\tcurrState.setCurrSelectedCell(batchState.getSelectedCell());\n\t\tcurrState.setErrorCells(batchState.getErrors());\n\t\t\n\t\tcurrState.setHighlight(display.isToggleOn());\n\t\tcurrState.setInverted(display.isInverted());\n\t\t\n\t\tcurrState.setCurrWindowPos(getLocationOnScreen());\n\t\tcurrState.setCurrWindowSize(getSize());\n\t\t\n\t\tcurrState.setHorizontalDiv(bottomPanel.getDividerLocation());\n\t\tcurrState.setVertivalDiv(centerPanel.getDividerLocation());\n\t\t\n\t\tcurrState.setOriginX(display.getW_originX());\n\t\tcurrState.setOriginY(display.getW_originY());\n\t\t\n\t\tcurrState.setValues(batchState.getValues());\n\t\t\n\t\t//put to xstream\n\t\tXStream xstream = new XStream(new DomDriver());\n\t\ttry {\n\t\t\n\t\t\txstream.toXML(currState, new FileOutputStream(new File(info.getUsername() + \".xml\")));\n\t\t\tSystem.out.println(\"current state is saved!\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"file not found/ couldn't go to xml\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected Parcelable onSaveInstanceState() {\n SavedState savedState = new SavedState(super.onSaveInstanceState());\n boolean bl2 = this.isSlideable() ? this.isOpen() : this.mPreservedOpenState;\n savedState.isOpen = bl2;\n return savedState;\n }", "@Override()\n protected void onSaveInstanceState(final Bundle state)\n {\n logEnter(LOG_TAG, \"onSaveInstanceState\", state);\n\n saveState(state);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putBoolean(\"AppRunning\",running);\n outState.putBoolean(\"Latest\",latestOp);\n outState.putBoolean(\"Started\",started);\n outState.putInt(\"Seconds\",sec);\n outState.putInt(\"Score\",score);\n outState.putInt(\"Total\",total);\n }", "private SavedState(Parcel parcel) {\n super(parcel);\n boolean bl2 = parcel.readInt() != 0;\n this.isOpen = bl2;\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n //saves mEventId and the time in milliseconds by putting it in a bundle\n outState.putInt(INSTANCE_EVENT_ID, mEventId);\n outState.putLong(INSTANCE_TIME, mDueDateCalendar.getTimeInMillis());\n super.onSaveInstanceState(outState);\n }", "@PreDestroy\n public void saveStates() {\n if(getShopId() != 0) {\n log.info(\"Interrupt matching for shop {} during phase {} at {} \", getShopId(), getPhase(), new Date());\n getRemainingStates().add(new State(getShopId(), getPhase(), getPictureIds()));\n }\n getMatcherStateRepository().saveAllStates(getRemainingStates());\n }", "private void saveStateToArguments() {\n if (getView() != null)\n savedState = saveState();\n if (savedState != null) {\n Bundle b = getArguments();\n if (b != null)\n b.putBundle(\"internalSavedViewState8954201239547\", savedState);\n }\n }", "@Override protected Parcelable onSaveInstanceState() {\n Parcelable superState = super.onSaveInstanceState();\n SavedState ss = new SavedState(superState);\n ss.rotated = rotated;\n ss.totalSpacingDegree = totalSpacingDegree;\n ss.satelliteDistance = satelliteDistance;\n ss.measureDiff = measureDiff;\n ss.expandDuration = expandDuration;\n ss.closeItemsOnClick = closeItemsOnClick;\n return ss;\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n Log.d(TAG, \"onSaveInstanceState:method fYred\");\n outState.putInt(\"qestion We are on\", currentq);\n }", "public void saveState() {\n table.saveState(store);\n }", "@Override\n public void onSaveInstanceState(Bundle outState){\n // Save current booking times to outstate\n outState.putInt(BOOKING_HOUR_KEY, bookingHour);\n outState.putInt(BOOKING_MINUTE_KEY, bookingMinute);\n\n super.onSaveInstanceState(outState);\n }", "public void saveState(IMemento memento) {\n\t\t\r\n\t}", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t}", "private void addInstanceVariables(ClassWriterTracker ct) {\n // variable #1, the state manager\n ct.getCw().visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT,\n \"sm\", Type.getDescriptor(OpenJPAStateManager.class), null, null).visitEnd();\n\n // variable #2, the state manager\n ct.getCw().visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT,\n \"field\", Type.getDescriptor(int.class), null, null).visitEnd();\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n outState.putString(getString(R.string.save_instance_state_selected_subreddit), mSelectedSubreddit);\n outState.putParcelable(getString(R.string.save_instance_state_recyclerview_state), state);\n\n super.onSaveInstanceState(outState);\n }", "@Override\n\t protected void onSaveInstanceState(Bundle outState) {\n\t super.onSaveInstanceState(outState);\n\t // save the current data, for instance when changing screen orientation\n\t outState.putSerializable(\"dataset\", mDataset);\n\t outState.putSerializable(\"renderer\", mRenderer);\n\t outState.putSerializable(\"current_series\", mCurrentSeries);\n\t outState.putSerializable(\"current_renderer\", mCurrentRenderer);\n\t }", "public void save() {\r\n try {\r\n FileOutputStream fos = new FileOutputStream(REPO_STATE_FILE_NAME);\r\n fos.write(CodecUtils.toJson(this).getBytes());\r\n fos.close();\r\n } catch (Exception e) {\r\n Logging.logError(e);\r\n }\r\n }", "private void saveAppState(Context context) {\n LogHelper.v(LOG_TAG, \"Saving state.\");\n }", "@Override\n protected Parcelable onSaveInstanceState() {\n final Parcelable superParcel = super.onSaveInstanceState();\n if (isPersistent()){\n return superParcel;\n }\n\n final SavedState currentState = new SavedState(superParcel);\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, timePicker.getHour());\n calendar.set(Calendar.MINUTE, timePicker.getMinute());\n currentState.timeInMillSecs = calendar.getTimeInMillis();\n return currentState;\n }", "private FanState() {\n\t\tinstance = this;\n\t}", "@Override\n public void onSaveInstanceState(Bundle currentState) {\n\n if(!(mStepArrayList.get(mListIndex).mVideoUrl.equals(\"\"))) {\n\n videoPosition = mExoPlayer.getCurrentPosition();\n currentState.putLong(VIDEO_POSITION_KEY, videoPosition);\n }\n currentState.putParcelableArrayList(STEP_LIST_KEY, mStepArrayList);\n currentState.putInt(LIST_INDEX_KEY, mListIndex);\n currentState.putBoolean(PLAY_WHEN_READY_KEY,playWhenReady);\n }", "@Override\r\n\tprotected void onSaveInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onSaveInstanceState(savedInstanceState);\r\n\t}", "@Override\r\n protected void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n\r\n String stateSaveHome = home.getText().toString();\r\n outState.putString(\"save_state_home\", stateSaveHome);\r\n\r\n String stateSaveVisitor = visitor.getText().toString();\r\n outState.putString(\"save_state_visitor\", stateSaveVisitor);\r\n }", "public void onSaveInstanceState(Bundle bundle) {\n bundle.putSerializable(\"MARKLIST\", this.f5382B);\n bundle.putInt(\"save_state\", this.f5435p);\n }", "public void storeState() {\n if (best == null || best.getCost() > path.getCost()) {\n best = new IterativeState(path);\n }\n }", "void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }", "public InMemoryServiceInstancePersistence() {\n this.serviceInstances = new HashMap<>(); \n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.v(TAG, \"onSaveInstanceState()\");\n\t}", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putSerializable(\"device\", mDevice);\n }", "public static void setInstance(GameState state) {\n\t\tGameState.instance = state;\n\t}", "protected void serializeState() {\n\t\tint ii = 0;\n\t\t\n\t\tfor(GEditorPanel gep : editorPanels) {\n\t\t\tif(gep.getFilePath() != null && gep.getFilePath().length() > 0) {\n\t\t\t\tPreference.PREFERENCES_NODE.put(\"editSession\" + ++ii, gep.getFilePath());\n\t\t\t}\n\t\t}\n\t\t\n\t\tAccessors.INT_ACCESSOR.put(\"numberOfFiles\", ii);\n\t}", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n outState.putBoolean(REQUEST_SERVICE_ON_NETWORK_RECONNECTED, requestLocationOnNetworkReconnected);\n outState.putString(LAST_ADDRESS_SAVE_KEY, mLastAddress);\n outState.putParcelable(LAST_LOCATION_SAVE_KEY, mLastLocation);\n super.onSaveInstanceState(outState);\n }", "public Parcelable onSaveInstanceState() {\n SavedState savedState = new SavedState(super.onSaveInstanceState());\n savedState.mRecyclerViewId = this.mRecyclerView.getId();\n int i = this.mPendingCurrentItem;\n if (i == -1) {\n i = this.mCurrentItem;\n }\n savedState.mCurrentItem = i;\n Parcelable parcelable = this.mPendingAdapterState;\n if (parcelable != null) {\n savedState.mAdapterState = parcelable;\n } else {\n RecyclerView.Adapter adapter = this.mRecyclerView.getAdapter();\n if (adapter instanceof StatefulAdapter) {\n savedState.mAdapterState = ((StatefulAdapter) adapter).saveState();\n }\n }\n return savedState;\n }", "StateClass() {\r\n restored = restore();\r\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n Log.i(TAG, \"OnsAveInstance\");\n super.onSaveInstanceState(outState);\n outState.putParcelable(KEY_AVATAR_BITMAP, mAvatar.getBitmap());\n\n }", "public void saveState(ObjectOutput out) throws IOException {\n\t\t// save deikto values\n\t\tdk.saveState(out);\n\t\t// save interpreter values\n\t\tout.writeFloat(interpreter.globalActorBox);\n\t\tout.writeFloat(interpreter.globalPropBox);\n\t\tout.writeFloat(interpreter.globalStageBox);\n\t\tout.writeFloat(interpreter.globalEventBox);\n\t\tout.writeFloat(interpreter.globalVerbBox);\n\t\tout.writeFloat(interpreter.globalBNumberBox);\n\n\t\t// save ticks\n\t\tout.writeInt(cMoments);\n\t\t// save inactivity counter\n\t\tout.writeInt(cInactivity);\n\t\t// save player inactivity\n\t\tout.writeInt(playerInactivity);\n\t\t// save storyIsOver\n\t\tout.writeBoolean(storyIsOver);\n\t\tout.writeBoolean(isEpilogueNow);\n\t\tout.writeBoolean(isHappilyDone);\n\t\tout.writeBoolean(isPenultimateDone);\n\n\t\t// save historyBook\n\t\tout.writeInt(historyBook.size());\n\t\tfor(Sentence s:historyBook)\n\t\t\tout.writeObject(s);\n\t\t// save random seeds\n\t\tout.writeObject(random);\n\t\tout.writeLong(interpreter.scriptRandom.getSeed());\n\t\t// save alarms\n\t\tout.writeInt(alarms.size());\n\t\tfor(Alarm a:alarms)\n\t\t\tout.writeObject(a);\n\t\tout.writeInt(storybook.size());\n\t\tfor(String s:storybook)\n\t\t\tout.writeUTF(s);\n\t}", "protected void onSaveInstanceState(Bundle outState){\n\t\tsuper.onSaveInstanceState(outState);\n\t\tString inputString = (String) searchField.getText().toString();\n\t\toutState.putString(\"input\", inputString);\n\t\tif(savedString != null){\n\t\t\toutState.putString(\"saved\", savedString);\n\t\t}\n\t\tLog.i(\"MAIN\", \"Saving Instance State\");\n\t\n\t}", "@Override\r\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\r\n\t}", "public void save() {\n\t\tthis.setState(Constants.CWorld.STATE_SAVING);\n\t\tthis.getWorld().saveAll();\n\t\tthis.setState(Constants.CWorld.STATE_ONLINE);\n\t}", "@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n super.onSaveInstanceState(savedInstanceState);\n\t}", "public void saveState() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFile savefile = new File(getServletContext().getRealPath(\"/WEB-INF/\"), SAVED_RECEPTOR_FILE_NAME);\n\t\t\tfos = new FileOutputStream(savefile);\n\t\t\tout = new ObjectOutputStream(fos);\n\t\t\tout.writeObject(pgtMap);\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"IO Exception saving proxyTicket cache\");\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception e) { //don't think this is possible, but I'm seeing some goofy behavior, so...\n\t\t\tSystem.err.println(\"Non-IO Exception saving proxyTicket cache\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n if (mMap != null) {\n outState.putParcelable(KEY_CAMERA_POSITION, mMap.getCameraPosition());\n outState.putParcelable(KEY_LOCATION, currentLocation);\n String KEY_TAB_INDEX = \"tab_index\";\n outState.putInt(KEY_TAB_INDEX, tabLayout.getSelectedTabPosition());\n super.onSaveInstanceState(outState);\n }\n }", "@Override\n public Map<String, Object> currentState() {\n\n return new HashMap<>();\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t}", "@Override\n\tpublic void doSaveState ()\n\t{\n for (AbstractSideBar sb : this.sideBars.values ())\n {\n\n String id = sb.getId ();\n\n if (id == null)\n {\n\n continue;\n\n }\n\n UserProperties.set (\"sidebarState-\" + id,\n sb.getSaveState ());\n\n }\n\n\t}", "public static void save() {\n if (instance != null) {\n // -> SyncedDatabases.syncAll();\n instance.markDirty();\n }\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n Log.i(TAG, \"onSaveInstanceState()\");\n super.onSaveInstanceState(outState);\n }", "protected void onSaveInstanceState(Bundle savedInstance) {\n\n for (int i = 0; i < numInList; i++) {\n String name = shared.getString(\"ItemName\" + Integer.toString(i), \"\");\n float price = shared.getFloat(\"ItemPrice\" + Integer.toString(i), 0);\n int quantity = shared.getInt(\"ItemQuantity\"+i, 0);\n\n savedInstance.putInt(\"quantity\"+i, quantity);\n }\n }", "public Parcelable onSaveInstanceState() {\n SavedState savedState = new SavedState(super.onSaveInstanceState());\n if (!(this.auk == null || this.auk.aun == null)) {\n savedState.aup = this.auk.aun.getItemId();\n }\n savedState.auq = isOverflowMenuShowing();\n return savedState;\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.i(TAG, \"onSaveInstanceState\");\n\t}", "public static void onSaveInstanceState(final Object object, final Bundle outState) throws KerException {\r\n\t\t// - Retrieve all fields.\r\n\t\tfinal Field[] fields = KerAnnotation.retrieveAllFields(object);\r\n\r\n\t\t// - Save instance state fields into new bundle to avoid key conflict.\r\n\t\tfor (final Field field : fields) {\r\n\t\t\t// - If field is annotated with @InstanceState.\r\n\t\t\tif (field.isAnnotationPresent(InstanceState.class)) {\r\n\t\t\t\tInstanceStateKerInjector.saveInstanceState(field, object, outState);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void storeState(StateInfo stateInfo) {\n \n// Thread.dumpStack();\n super.storeState(stateInfo); \n \n JJStateInfo info = (JJStateInfo) stateInfo;\n info.setSubStates(lexan.getStateInfo());\n \n if (DEBUG) debug.println(\"Storing state [\"+ offset + \",\" + tokenOffset + \"]: \" + info + \"@\" + stopOffset); // NOI18N\n \n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\toutState.putInt(INSTANCE_STATE_CURRENT_SECTION, mCurrentSection);\n\t\tsuper.onSaveInstanceState(outState);\n\t}", "Bundle createSaveState() {\n Bundle saveState = new Bundle();\n mTabControl.saveState(saveState);\n if (!saveState.isEmpty()) {\n // Save time so that we know how old incognito tabs (if any) are.\n saveState.putSerializable(\"lastActiveDate\", Calendar.getInstance());\n }\n return saveState;\n }" ]
[ "0.74909073", "0.7405703", "0.7405703", "0.73899794", "0.73899794", "0.73899794", "0.73899794", "0.73899794", "0.73899794", "0.73899794", "0.72802716", "0.71979433", "0.6913577", "0.6727512", "0.6618882", "0.66160655", "0.65602386", "0.6509962", "0.6472676", "0.64545316", "0.64539623", "0.64400095", "0.6389722", "0.63727826", "0.63686067", "0.63501585", "0.63070625", "0.63039064", "0.6297788", "0.6292382", "0.6287392", "0.62684387", "0.62577766", "0.6229212", "0.619344", "0.61908054", "0.61908054", "0.6184654", "0.6173694", "0.6172994", "0.61707985", "0.6159592", "0.613892", "0.6132767", "0.6129645", "0.6129483", "0.6127793", "0.61034685", "0.6085709", "0.6077957", "0.6061266", "0.604816", "0.604816", "0.6039871", "0.6034152", "0.6016571", "0.601625", "0.60154027", "0.6013786", "0.601172", "0.6010341", "0.60012853", "0.59885246", "0.5983134", "0.5967642", "0.59651554", "0.59623605", "0.5959221", "0.59590787", "0.5948821", "0.59469104", "0.59460455", "0.59447443", "0.5943263", "0.59418327", "0.59366107", "0.59324986", "0.59287685", "0.59145826", "0.5913119", "0.5909498", "0.59084535", "0.59059274", "0.5901313", "0.589962", "0.58927494", "0.58921766", "0.5886687", "0.5885944", "0.5885879", "0.5880646", "0.5878151", "0.5871531", "0.5869648", "0.58690524", "0.58685625", "0.58653176", "0.58634025", "0.5862549", "0.5861397" ]
0.5992634
62
metodos poner marcha tren
public void ponerMarchaTren() { try { this.semLugarTren.acquire(this.capacidadTren); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private String menorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoIzq().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn menorTurno(a.hijoIzq());\n\t}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "public void Ordenamiento() {\n\n\t}", "private static void menuno(int menuno2) {\n\t\t\r\n\t}", "private String mayorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoDer().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn mayorTurno(a.hijoDer());\n\t}", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "String ponerMarcaFijarArticulo(final boolean ponerMarca) {\n return ponerMarca ? Constantes.MARCA_FIJAR_ARTICULO : \"\";\n }", "@Override\n\tpublic void trabajar() {\n\n\t}", "String ponerMarcaFijarTarifa(final boolean ponerMarca) {\n return ponerMarca ? Constantes.MARCA_FIJAR_TARIFA : \"\";\n }", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "@Override\r\n\tpublic String sonido() {\n\t\treturn \"Miauu\";\r\n\t}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public void morir()\r\n\t{\r\n\t\tif(this.grafico != null)\t\r\n\t\t\tthis.mover(4);\r\n\t}", "public void hacerAnimaciones(char letra) {\n switch (letra) {\n case 'd':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][b];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n case 's':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][b];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n case 'a':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][b];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n case 'w':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][b];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n case 'º':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[5][b];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n }\n break;\n }\n\n\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "private static void gestionarMenuManejoJugador(int opcion) {\n\t\tswitch(opcion){\n\t\tcase 1:annadirJugador();\n\t\t\tbreak;\n\t\tcase 2:eliminarJugador();\n\t\t\tbreak;\n\t\tcase 3: System.out.println(jugadores.toString());\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public void pararPersonaje(char letra) {\n switch (letra) {\n case 'd':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Derecha\";//Guarda en la variable jugadorVista hacia donde miramos\n }\n break;\n case 's':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Abajo\";\n }\n break;\n case 'a':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Izquierda\";\n }\n break;\n case 'w':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Arriba\";\n }\n break;\n }\n\n }", "private static void cajas() {\n\t\t\n\t}", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "private void reinit() {\n this.nodo1Sel = new Nodo1();\n this.objNodo1 = new Nodo1();\n this.objNodo1Buscar = new Nodo1();\n this.lstNodo1 = new ArrayList<Nodo1>();\n this.lstNodoB = new ArrayList<Nodo1>();\n this.lstNodoBuscar = new ArrayList<Nodo1>();\n this.estadoSel = -1;\n this.estadoSel1 = -1;\n this.comando1 = \"rman\";\n this.comando2 = \"rmaf\";\n this.comando5 = \"uuyy\";\n //this.cargarNodo1();\n this.obtenerNodo1DadoFecha();\n this.graficar();\n\n //fecha1 = sdf.format(date1);\n }", "private static void mostrarEmpateRonda() {\r\n\t\tSystem.out.println(\"¡RONDA \" + juego.getNRonda()\r\n\t\t\t\t+ \" EMPATADA!\\n Se repite la ronda \" + juego.getNRonda());\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }", "@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void setmostrar(){\n System.out.println(\"¿Qué deseas hacer?\");\n System.out.println(\"i=incrementar\");\n System.out.println(\"d=decrementar\");\n System.out.println(\"s=salir\");\n }", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "private static void menuManejoJugadores() {\n\t\tint opcion;\n\t\tdo{\n\t\t\topcion=menuManejoJugadores.gestionar();\n\t\t\tgestionarMenuManejoJugador(opcion);\n\t\t}while(opcion!=menuManejoJugadores.getSALIR());\n\t}", "@Override\n\tpublic void recreo() {\n\n\t}", "public void generTirarDados() {\n\r\n\t}", "@Override public String getMasa(){\n return \"gruesa \";\n }", "public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "protected String getNomeComQuemDividir(Map<String, Pizza> nomesPizzasFavoritas){\n\t\treturn \"Renata\";\r\n\t}", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "@Override\n\tpublic void tipoMovimento() {\n\t\tSystem.out.println(super.getNome() + \" anda com 4 patas.\");\n\t}", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public void changerJoueur() {\r\n\t\t\r\n\t}", "private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}", "@Override\n\tpublic String morder() {\n\t\treturn \"Los anelidos muerden y se aferran\";\n\t}", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public static void afficherNombreDAnimaux() {\n\t System.out.println(\"**************************\");\n\t System.out.println(\"Il y a \" + totalNumber + \" animaux\");\n\t}", "public void setNomNiveles (String IdNivel, String Contador, String IdCategoria){\n nivelesId = getNivelId( IdNivel );\n if ( nivelesId.moveToFirst() ){//Muestra los valores encontrados en la consulta\n labelNivel.setText( nivelesId.getString(1) + \" - Preguntas : \" + Contador + \" / \" + getPreguntasTotal(IdCategoria, IdNivel ) );\n }\n\n }", "public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}", "public void ejercicio06() {\r\n\t\tcabecera(\"06\", \"Numero mayor\");\r\n\r\n\t\t// Inicio modificacion\r\n\r\n\t\tSystem.out.println(\"Por favor, introduzca un numero\");\r\n\t\tint n1 = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Por favor, introduzca otro numero\");\r\n\t\tint n2 = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Por favor, introduzca otro numero\");\r\n\t\tint n3 = Teclado.readInteger();\r\n\r\n\t\tStringBuffer salida = new StringBuffer();\r\n\r\n\t\tint mayor = n1;\r\n\r\n\t\tif (n1==n2&&n2==n3) {\r\n\t\t\tsalida.append(\"Los tres numeros son \"+n2+\", y son iguales. \");\r\n\t\t}else{\r\n\t\t\tif (n1==n2) {\r\n\t\t\tsalida.append(\"El numero \"+n1+\" esta repetido 2 veces \");\r\n\t\t\t}else if (n2==n3) {\r\n\t\t\tsalida.append(\"El numero \"+n2+\" esta repetido 2 veces \");\r\n\t\t\t}else if (n1==n3) {\r\n\t\t\tsalida.append(\"El numero \"+n3+\" esta repetido 2 veces \");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (mayor < n2) {\r\n\t\tmayor = n2;\r\n\t\t}else if(mayor < n3){\r\n\t\t\tmayor = n3;\r\n\t\t}\r\n\t\tsalida.append(\"El numero dado mas grande es \"+mayor+\".\");\r\n\r\n\t\tSystem.out.println(salida.toString());\r\n\r\n\t\t// Fin modificacion\r\n\t}", "private void setupEscenario2( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,2,3,4\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"5,6,7,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"9\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "public String turno(enemigo enem){\n\t\tString tur;\n\t\ttur=atacar(enem);\n\t\treturn tur;\n\t}", "public Thema(Modul modul, String name, int anteil) {\r\n this.modul = modul;\r\n this.name = name;\r\n this.anteil = anteil;\r\n this.aufgabenZahl = 0;\r\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "default String getTodo(){\n\t\treturn getPerimetro() + \" - \"+ getNombre();\n\t}", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "public void nommerHeros() {\n\t\tSystem.out.println(\"\\nComment voulez vous appeler votre personnage ?\");\n\t\tthis.nom = Clavier.entrerClavierString();\n\t\tSystem.out.println(\"\\n*********Bienvenue dans le labyrinthe \" + getNom()+\"*********\");\n\t}", "public String determinarNombrePosicion(int num){\r\n String atributo = \"\";\r\n switch(num){\r\n case 0:\r\n atributo = \"cantidad\";\r\n break;\r\n case 1:\r\n atributo = \"fuerza\";\r\n break;\r\n case 2:\r\n atributo = \"infanteria\";\r\n break;\r\n case 3:\r\n atributo = \"lado oscuro\";\r\n break;\r\n case 4:\r\n atributo = \"riqueza\";\r\n break;\r\n case 5:\r\n atributo = \"sigilo\";\r\n break;\r\n case 6:\r\n atributo = \"tecnologia\";\r\n break;\r\n case 7:\r\n atributo = \"velocidad\";\r\n break;\r\n }\r\n return atributo;\r\n }", "@Override\n public void mostrar(){\n super.mostrar(); //Para evitar que este metodo se prefiera antes que el de padre(por que tienen el mismo nombre)\n //lo llamamos con super\n System.out.println(\"Nro de Paginas: \" + this.nroPag);\n }", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "public void ZerarM() {\n\t\tfor(int i = 0;i<3;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tthis.m[i][j] = \"0\";\n\t\t\t}\n\t\t}\n\t\tthis.emp = 0;\n\t\tJOptionPane.showMessageDialog(null,\"COMEÇOU\");\n\t}", "public String darMarca( )\n\t{\n\t\treturn marca;\n\t}", "public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }", "String ponerMarcaCongelado(final boolean esCongelado) {\n return esCongelado ? Constantes.MARCA_CONGELADO : \"\";\n\n }", "public void cierraParentesisAction(ActionEvent event){\r\n cadena+=\")\";\r\n escribirHilera.setText(cadena); \r\n contadorParentesis-= 1;\r\n hileraNula.setDisable(false);\r\n concatenar.setDisable(false);\r\n hileraNoNula.setDisable(false);\r\n union.setDisable(false);\r\n finSecuencia.setDisable(true);\r\n abreParentesis.setDisable(true);\r\n cierraParentesis.setDisable(true);\r\n }", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "public jugador(){\n\t\tnombre=\"Dave\";\n\t\ttipo=\"jugador\";\n\t\tpoderataque=6;\n\t\tpuntosvida=20;\n\t}", "public static void quienHaGanado(Mano[] jugadores, int actual,int carro){\n if(jugadores[actual].getNPiezas()!=0){\n boolean dosIguales=false;\n actual=0;\n for (int i = 1; i < jugadores.length; i++) {\n if(jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()){//El jug i y el actual tienen la misma putnuacion\n if(i==carro){//el jugador i es el carro\n actual=i;\n dosIguales=false;\n }\n else if(actual==carro){//el jugador actual es el carro\n dosIguales=false;\n }\n else{//ninguno es el carro y hay que acudir a un metodo para nombrar a los dos ganadores.\n dosIguales=true;\n }\n }\n if(jugadores[i].getPuntuacion()<jugadores[actual].getPuntuacion()){//el jugador i tiene menor puntuacion que el jugador actual\n actual=i;\n dosIguales=false;\n }\n }\n if(dosIguales){\n System.out.println(\"pene\");\n Excepciones.cambiarColorAzul(\"Y los GANADORES SON....\");\n for (int i = 0; i < jugadores.length; i++) {\n if (jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()) {\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n }\n }\n System.out.println(\"\\u001B[30m\");\n }\n else{\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }\n else {\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }", "private void populaDuracaoTreinoCat()\n {\n DuracaoTreinoCat duracao = new DuracaoTreinoCat(\"Até 15 min\");\n duracaoTreinoCatDAO.insert(duracao);\n DuracaoTreinoCat duracao2 = new DuracaoTreinoCat(\"De 15 a 30 min\");\n duracaoTreinoCatDAO.insert(duracao2);\n DuracaoTreinoCat duracao3 = new DuracaoTreinoCat(\"De 30 a 45 min\");\n duracaoTreinoCatDAO.insert(duracao3);\n DuracaoTreinoCat duracao4 = new DuracaoTreinoCat(\"De 45 a 60 min\");\n duracaoTreinoCatDAO.insert(duracao4);\n DuracaoTreinoCat duracao5 = new DuracaoTreinoCat(\"De 60 a 75 min\");\n duracaoTreinoCatDAO.insert(duracao5);\n DuracaoTreinoCat duracao6 = new DuracaoTreinoCat(\"De 75 a 90 min\");\n duracaoTreinoCatDAO.insert(duracao6);\n DuracaoTreinoCat duracao7 = new DuracaoTreinoCat(\"De 90 a 120 min\");\n duracaoTreinoCatDAO.insert(duracao7);\n DuracaoTreinoCat duracao8 = new DuracaoTreinoCat(\"Mais de 120 min\");\n duracaoTreinoCatDAO.insert(duracao8);\n }", "private void mostrarEmenta (){\n }", "@Override\n public void movimiento_especial(){\n\n movesp=ataque/2;\n defensa+=5;\n PP= PP-4;\n }", "@Override\n public String toString() {\n String result = \"\";\n if (isDama) {\n if (tipo == TipoPedina.bianca) {\n result += Strings.PEDINA_REGINA_BIANCA;\n } else {\n result += Strings.PEDINA_REGINA_NERA;\n }\n } else {\n if (tipo == TipoPedina.bianca) {\n result += Strings.PEDINA_BIANCA;\n } else {\n result += Strings.PEDINA_NERA;\n }\n }\n return result;\n }", "public void leerPacientes (int id_nutricionista);", "private void pulsarItemMayus(){\n if (mayus) {\n mayus = false;\n texto_frases = texto_frases.toLowerCase();\n }\n else {\n mayus = true;\n texto_frases = texto_frases.toUpperCase();\n }\n fillList(false);\n }", "public static void MenuPrincipal() {\n System.out.println(\"Ingrese Opcion deseada :.\\n\"\r\n + \"1. Ingresar un perro a la guardería.\\n\"\r\n + \"2. Contar cuántos Perros de la raza y el Genero deceado hay o pasaron por la guardería durante el verano.\\n\"\r\n + \"3. Listar todos los perros (con su respectiva información) que ingresaron en una determinada fecha.\\n\"\r\n + \"4. Listar todos los Perrros de la Raza que decea con estadía mayor a 20 días.\\n\"\r\n + \"5. Dado el código de un perro, informar los datos de su dueño.\\n\"\r\n + \"6. Terminar.\\n\"\r\n +\"______________________________________________________________________________________________________________\"\r\n \r\n );\r\n\r\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }" ]
[ "0.6485822", "0.6411639", "0.6253416", "0.61610806", "0.6137208", "0.60576683", "0.60496926", "0.60277766", "0.6002007", "0.59964293", "0.59267396", "0.5920287", "0.59151274", "0.590574", "0.5888044", "0.5862149", "0.5852492", "0.5812872", "0.5777096", "0.5765039", "0.57555914", "0.5738202", "0.5730877", "0.5723839", "0.57216215", "0.5713134", "0.5700841", "0.56964797", "0.5688789", "0.5686306", "0.5678375", "0.5672246", "0.5670441", "0.5665518", "0.5660783", "0.5658344", "0.5658332", "0.56563896", "0.5653884", "0.56444305", "0.564431", "0.5637094", "0.56359756", "0.5635724", "0.563509", "0.5634832", "0.5634219", "0.5633543", "0.5632466", "0.5617778", "0.5611123", "0.56099826", "0.5606755", "0.5604832", "0.5602175", "0.55985045", "0.5597987", "0.5588219", "0.5588029", "0.5587787", "0.5581174", "0.55805933", "0.5570865", "0.55673623", "0.5557052", "0.5554564", "0.5552369", "0.554908", "0.55427474", "0.55356634", "0.5524411", "0.5523535", "0.55227166", "0.5522446", "0.5521391", "0.55139196", "0.55124134", "0.5494949", "0.5494478", "0.54933417", "0.54923093", "0.5484062", "0.5480718", "0.5475944", "0.54706585", "0.54703605", "0.5457852", "0.54559475", "0.54522187", "0.54514474", "0.54508084", "0.5446579", "0.5442043", "0.54414284", "0.543812", "0.54379845", "0.54376274", "0.54366225", "0.5434089", "0.543333", "0.5432825" ]
0.0
-1
Flags used for creating the Pending Intent. Possible values are Titanium.Android.FLAG_CANCEL_CURRENT, Titanium.Android.FLAG_NO_CREATE, Titanium.Android.FLAG_ONE_SHOT, and Titanium.Android.FLAG_UPDATE_CURRENT.
public final native void setFlags(int value) /*-{ var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(); jso.flags = value; }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PendingIntent createRequestPendingIntent() {\n\n // If the PendingIntent already exists\n if (null != geofenceRequestIntent) {\n\n // Return the existing intent\n return geofenceRequestIntent;\n\n // If no PendingIntent exists\n } else {\n\n // Create an Intent pointing to the IntentService\n // TODO correct service?\n Intent intent = new Intent(activity, ReceiveTransitionsIntentService.class);\n /*\n * Return a PendingIntent to start the IntentService.\n * Always create a PendingIntent sent to Location Services\n * with FLAG_UPDATE_CURRENT, so that sending the PendingIntent\n * again updates the original. Otherwise, Location Services\n * can't match the PendingIntent to requests made with it.\n */\n return PendingIntent.getService(\n activity,\n 0,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n }\n }", "private static PendingIntent createResetIntent(Context context) {\n final Intent intent = new Intent(context, DailyResetBroadcastReceiver.class);\n return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n }", "@Override\n protected void onNewIntent(Intent intent) {\n\n Bundle bundle=intent.getExtras();\n int uniqueFlagID=1;\n if(bundle!=null && (bundle.getInt(\"uniqueAppId\") > 0)) {\n DBAdapter adapter = new DBAdapter(getApplicationContext());\n adapter.getUpdatePresFlag(bundle.getString(\"type\"), bundle.getInt(\"uniqueAppId\"), \"1\");\n String AppointmentMessage1 = bundle.getString(AlarmReceiver.APPOINTMENT_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Appointment Alert\", AppointmentMessage1, \"App\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getInt(\"presUniqueId\") > 0)) {\n DBAdapter adapter = new DBAdapter(getApplicationContext());\n adapter.getUpdatePresFlag(bundle.getString(\"type\"),bundle.getInt(\"presUniqueId\"),\"1\");\n String RenewalMessage = bundle.getString(AlarmReceiver.PRESCRIPTION_RENEWAL_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Prescription Renewal Alert\", RenewalMessage, \"PRES\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getString(\"type\").equals(\"MED_TIT\"))) {\n String TitrationMessage = bundle.getString(AlarmReceiver.MEICATION_TITRATION_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Medication Titration Alert\", TitrationMessage, \"MED_TIT\", uniqueFlagID,getApplicationContext(),getFragmentManager());\n }\n if(bundle!=null && (bundle.getString(\"type\").equals(\"EME\"))) {\n DBAdapter adapter= new DBAdapter(getApplicationContext());\n adapter.getUpdateReminderFlag(bundle.getString(\"type\"), bundle.getInt(\"id\"),\"1\");\n String EmergencyMedicationMessage = bundle.getString(AlarmReceiver.EMERGENCY_MEDICATION_MESSAGE);\n ApplicationBackgroundCheck.showNotificationDialog(\"Emergency Medication Alert\", EmergencyMedicationMessage, \"EME\",uniqueFlagID,getApplicationContext(),getFragmentManager());\n\n }\n\n\n }", "public static void startAlarmPendingIntent(Context context, boolean skipCancel) {\n // zrusime vsechny budiky v dtb kdyz je treba\n if (!skipCancel)\n {\n cancelAlarmPendingIntents(context);\n }\n // nacteme budiky z dtb\n List<Alarm> alarms = Alarm.getAlarms();\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(context.ALARM_SERVICE);\n\n if (alarms == null) {\n return;\n }\n\n // naplanujeme vsechny budiky\n // kazdej aktivni budik je naplanovanej vzdy na datum nejblizsi zvoneni, budiky navic\n // planujeme jen jeden tyden dopredu od doby planovani\n // pro zazvoneni se pouzivaji pending intenty, ty jsou intenty ktery se spusti po nejake\n // dobe, navic v AlarmManageru(sluzba OS) jsou tyhle pending intenty kodovany podle nejakyho\n // klice, jako klic jsem pouzil id budiku v databazi\n\n ALARM_LOOP:\n for (Alarm alarm : alarms) {\n\n if (!alarm.isActive()) {\n continue;\n }\n\n Calendar cal = Calendar.getInstance();\n int currentDay = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);\n\n DayRecorder days = alarm.getDays();\n\n final int curHour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\n final int curMin = Calendar.getInstance().get(Calendar.MINUTE);\n\n // nastavime v calendari cas zazvoneni budiku\n cal.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n cal.set(Calendar.MINUTE, alarm.getMinute());\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n\n // nejdriv zkontrolujeme jestli budik bude zvonit do konce dne\n if (alarm.getHour() >= curHour &&\n alarm.getMinute() > curMin &&\n days.isDaySet(currentDay - 1)) {\n\n cal.set(Calendar.DAY_OF_WEEK, currentDay);\n PendingIntent sender = createPendingIntent(context, alarm);\n // naplanuje budik na spravnej cas\n alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);\n // budik naplanovan pokracujem dalsim budikem\n continue ALARM_LOOP;\n }\n\n if (cal.getFirstDayOfWeek() == Calendar.SUNDAY) {\n Log.v(TAG, \"US\");\n\n } else {\n Log.v(TAG, \"EU:\" + cal.getFirstDayOfWeek());\n cal.setFirstDayOfWeek(Calendar.SUNDAY);\n }\n\n // to same akorat ted kontrolujeme jestli budik byl naplanovan do konce tydne(soboty)\n // to je furt ten samy tyden jako ma Calender.getInstance();\n for (int i = currentDay + 1; i <= Calendar.SATURDAY; i++) {\n if (days.isDaySet(i - 1)) {\n\n cal.set(Calendar.DAY_OF_WEEK, i);\n PendingIntent sender = createPendingIntent(context, alarm);\n // naplanuje budik na spravnej cas\n Log.v(TAG, \"cal time millis \" + cal.get(Calendar.DAY_OF_WEEK) + \" \"\n + cal.get(Calendar.HOUR_OF_DAY) + \":\" + cal.get(Calendar.MINUTE));\n alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);\n\n continue ALARM_LOOP;\n }\n }\n\n // budik nebyl naplanovan do soboty, tedy musi se prelit do dalsiho tydne\n // Calender.getInstance ma tyden o 1 mensi\n for (int i = Calendar.SUNDAY; i <= currentDay; ++i) {\n if (days.isDaySet(i-1)) {\n cal.set(Calendar.DAY_OF_WEEK, i);\n // incrementujeme polozku tyden\n cal.add(Calendar.WEEK_OF_YEAR, 1);\n PendingIntent sender = createPendingIntent(context, alarm);\n // naplanuje budik na spravnej cas\n alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);\n continue ALARM_LOOP;\n }\n }\n }\n }", "private PendingIntent getNotificationIntent() {\n Intent resultIntent = new Intent(this, ScheduleNotificationActivity.class);\n // Because clicking the notification opens a new (\"special\") activity, there's\n // no need to create an artificial back stack.\n return PendingIntent.getActivity(\n this,\n 0,\n resultIntent,\n PendingIntent.FLAG_ONE_SHOT\n );\n }", "public PendingIntent getLaunchPendingIntent() {\n }", "private PendingIntent buildAlarmPendingIntent() {\n Intent intent = new Intent(this, NotificationReceiver.class);\n intent.setAction(NotificationReceiver.ACTION_SEND_NOTIFICATIONS);\n\n return PendingIntent.getBroadcast(this,\n 0,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n }", "private PendingIntent buildPendingIntent(Activity activity){\n\n Intent intent = new Intent(activity, InitializationActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(activity,\n 0, intent, 0);\n\n return pendingIntent;\n }", "private void checkCreatingPendingIntentsWithoutIntentVariable(Source<CompilationUnit> java) {\n java.getModel().findAll(MethodCallExpr.class).stream()\n .filter(expr -> expr.getName().getIdentifier().matches(\"getActivity|getBroadcast|getService\"))\n .filter(expr -> expr.getArguments().size() >= 4)\n .filter(expr -> expr.getArguments().get(2).isObjectCreationExpr())\n .filter(expr -> isCreatingImplicitIntent(expr.getArguments().get(2).asObjectCreationExpr()))\n .forEach(expr -> addJavaIssue(Severity.VULNERABILITY, \".PENDING_INTENT\", java.getFile(), expr));\n\n // Works for: getActivities(this, 0, new Intent[] { new Intent(...), ...}, 0)\n java.getModel().findAll(MethodCallExpr.class).stream()\n .filter(expr -> expr.getName().getIdentifier().matches(\"getActivities\"))\n .filter(expr -> expr.getArguments().size() >= 4)\n .filter(expr -> expr.getArguments().get(2).isArrayCreationExpr())\n .filter(expr -> isCreatingImplicitIntentsArray(expr.getArguments().get(2).asArrayCreationExpr()))\n .forEach(expr -> addJavaIssue(Severity.VULNERABILITY, \".PENDING_INTENT\", java.getFile(), expr));\n }", "static PendingIntent getExplicitUpdatePendingIntent(Context context) {\n Intent intent = getExplicitUpdateIntent(context);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\n\n return pendingIntent;\n }", "public void mo2804b(Intent intent) {\n if (VERSION.SDK_INT >= 21) {\n intent.addFlags(134742016);\n } else {\n intent.addFlags(524288);\n }\n }", "public PendingIntent getRequestPendingIntent() {\n return createRequestPendingIntent();\n }", "private PendingIntent openActivityPendingIntent(Context context) {\n Intent intent = new Intent(context, MainActivity.class);\n return PendingIntent.getActivity(context, 0, intent, 0);\n }", "public NotificationCompat.Builder getChannel1Notification(String message){\n\n Intent confirmIntent = new Intent(this, Alarm2Activity.class); //can create an activity here that simply says \"Take med\"\n confirmIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n confirmIntent.setAction(YES_ACTION);\n\n Intent openAppIntent = new Intent(this, MedicineActivity.class); //can create an activity here that simply says \"Take med\"\n openAppIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n //processIntentAction(getIntent()); //where to put this???\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(getApplicationContext(), Channel1_ID)\n .setContentTitle(getString(R.string.med_notif_title))\n .setContentText(message)\n .setContentIntent(PendingIntent.getActivity(this, REQUEST_CODE, openAppIntent, PendingIntent.FLAG_UPDATE_CURRENT))\n .setSmallIcon(R.drawable.ic_blur_circular_black_24dp) //setLargeIcon as a picture of a pill\n .addAction(new NotificationCompat.Action(\n R.drawable.ic_blur_circular_black_24dp,\n getString(R.string.confirm_med_taken),\n PendingIntent.getActivity(this, REQUEST_CODE, confirmIntent, PendingIntent.FLAG_UPDATE_CURRENT)))\n .setCategory(NotificationCompat.CATEGORY_REMINDER)\n .setAutoCancel(true);\n //.setTimeOutAfter()\n //.setStyle(new NotificationCompat.BigTextStyle().bigText(context.getString(message)))\n //.setColor(ContextCompat.getColor(context, R.color.colorPrimary))\n //.setTimeOutAfter();\n\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && Build.VERSION.SDK_INT < Build.VERSION_CODES.O){\n notificationBuilder.setPriority(NotificationCompat.PRIORITY_HIGH);\n }\n\n return notificationBuilder;\n }", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "private Intent m34055b(Context context) {\n Intent intent = new Intent();\n String str = \"package\";\n intent.putExtra(str, context.getPackageName());\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setData(Uri.fromParts(str, context.getPackageName(), null));\n String str2 = \"com.huawei.systemmanager\";\n intent.setClassName(str2, \"com.huawei.permissionmanager.ui.MainActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.systemmanager.addviewmonitor.AddViewMonitorActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.notificationmanager.ui.NotificationManagmentActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "private PendingIntent getPendingIntent() {\n Intent intent = new Intent(mContext, GeoFenceBroadcastReceiver.class);\n intent.setAction(GeoFenceBroadcastReceiver.ACTION_PROCESS_LOCATION);\n return PendingIntent.getBroadcast(mContext,0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n }", "public static int createNotification(Context context,\n String title, String text, int iconId, boolean isOngoing) {\n int notificationId = NOTIFICATION_ID++;\n\n Builder builder = getBuilder(context); //initialize builder\n builder.setSmallIcon(iconId);\n builder.setContentTitle(title);\n builder.setContentText(text);\n builder.setOngoing(isOngoing);\n\n PendingIntent contentIntent = PendingIntent.getActivity(context,0,new Intent(context, MainActivity.class),PendingIntent.FLAG_UPDATE_CURRENT);\n\n builder.setContentIntent(contentIntent);\n //initialize manager\n NotificationManager nManager = getNotificationManager(context);\n nManager.notify(notificationId, builder.build());\n\n return notificationId;\n }", "public void updateScanFlag() {\n Date when = new Date(System.currentTimeMillis());\n\n try {\n Intent someIntent = new Intent(this, UpdateFlags.class); // intent to be launched\n\n // note this could be getActivity if you want to launch an activity\n PendingIntent pendingIntent = PendingIntent.getBroadcast(\n context,\n 0, // id, optional\n someIntent, // intent to launch\n PendingIntent.FLAG_CANCEL_CURRENT); // PendintIntent flag\n\n AlarmManager alarms = (AlarmManager) context.getSystemService(\n Context.ALARM_SERVICE);\n\n alarms.setRepeating(AlarmManager.RTC_WAKEUP,\n when.getTime(),\n AlarmManager.INTERVAL_FIFTEEN_MINUTES,\n pendingIntent);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "PendingIntent mo732d() throws RemoteException;", "public static void createNotification(Context context, Reminder reminder) {\n Intent viewIntent = new Intent(context, MainScreen.class);\n viewIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n viewIntent.putExtra(\"NOTIFICATION_DISMISS\", true);\n PendingIntent pending = PendingIntent.getActivity(context, reminder.getId(), viewIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n /* // Create intent for notification snooze click behaviour\n Intent snoozeIntent = new Intent(context, SnoozeActionReceiver.class);\n snoozeIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingSnooze = PendingIntent.getBroadcast(context, reminder.getId(), snoozeIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n*/\n int imageResId = context.getResources().getIdentifier(reminder.getIcon(), \"drawable\", context.getPackageName());\n\n\n /*NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID)\n .setSmallIcon(R.drawable.notification_icon)\n .setContentTitle(textTitle)\n .setContentText(textContent)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n */\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setSmallIcon(imageResId)\n .setColor(Color.parseColor(reminder.getColour()))\n .setStyle(new NotificationCompat.BigTextStyle().bigText(reminder.getContent()))\n .setContentTitle(reminder.getTitle())\n .setContentText(reminder.getContent())\n .setTicker(reminder.getTitle())\n .setContentIntent(pending);\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n\n /*if (sharedPreferences.getBoolean(\"checkBoxNagging\", false)) {\n Intent swipeIntent = new Intent(context, DismissReceiver.class);\n swipeIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingDismiss = PendingIntent.getBroadcast(context, reminder.getId(), swipeIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n builder.setDeleteIntent(pendingDismiss);\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, sharedPreferences.getInt(\"nagMinutes\", context.getResources().getInteger(R.integer.default_nag_minutes)));\n calendar.add(Calendar.SECOND, sharedPreferences.getInt(\"nagSeconds\", context.getResources().getInteger(R.integer.default_nag_seconds)));\n Intent alarmIntent = new Intent(context, NagReceiver.class);\n AlarmUtil.setAlarm(context, alarmIntent, reminder.getId(), calendar);\n }*/\n\n String soundUri = sharedPreferences.getString(\"NotificationSound\", \"content://settings/system/notification_sound\");\n if (soundUri.length() != 0) {\n builder.setSound(Uri.parse(soundUri));\n }\n if (sharedPreferences.getBoolean(\"checkBoxLED\", true)) {\n builder.setLights(Color.BLUE, 700, 1500);\n }\n if (sharedPreferences.getBoolean(\"checkBoxOngoing\", false)) {\n builder.setOngoing(true);\n }\n if (sharedPreferences.getBoolean(\"checkBoxVibrate\", true)) {\n long[] pattern = {0, 300, 0};\n builder.setVibrate(pattern);\n }\n /*if (sharedPreferences.getBoolean(\"checkBoxMarkAsDone\", false)) {\n Intent intent = new Intent(context, DismissReceiver.class);\n intent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, reminder.getId(), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n builder.addAction(R.drawable.ic_done_white_24dp, context.getString(R.string.mark_as_done), pendingIntent);\n }\n if (sharedPreferences.getBoolean(\"checkBoxSnooze\", false)) {\n builder.addAction(R.drawable.ic_snooze_white_24dp, context.getString(R.string.snooze), pendingSnooze);\n }*/\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n builder.setPriority(Notification.PRIORITY_HIGH);\n }\n\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(reminder.getId(), builder.build());\n }", "private void createNotification() {\n\t\tIntent notifyIntent = new Intent(this, BirthdayActivity.class);\r\n\t\t// Sets the Activity to start in a new, empty task\r\n\t\tnotifyIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t// Creates the PendingIntent\r\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(this,\r\n\t\t\t\t(int) System.currentTimeMillis(), notifyIntent,\r\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\tNotificationManagerUtil notificationManagerUtil = NotificationManagerUtil\r\n\t\t\t\t.getInstance();\r\n\t\tnotificationManagerUtil.createNotifications(this, 1, \"Message\",\r\n\t\t\t\tpendingIntent);\r\n\t}", "@SuppressLint(\"NewApi\")\r\n\tpublic static void createImprovedNotificationWithButtons(Context context,\r\n\t\tint id, Intent intent) {\r\n\t\t// PendingIntent to execute the intent when we selects the notification.\r\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);\r\n\t\tPendingIntent pendingIntentView = PendingIntent.getActivity(context, 0,\r\n\t\t\tnew Intent(context, ViewNotificationActivity.class), 0);\r\n\t\tPendingIntent pendingIntentEdit = PendingIntent.getActivity(context, 0,\r\n\t\t\tnew Intent(context, EditNotificationActivity.class), 0);\r\n\t\t\r\n\t\t// Define sound URI, the sound to be played when there's a notification.\r\n\t\tUri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\r\n\t\t// In the addAction method, if you don't want any icon, just set the first param to 0.\r\n\t\tNotification.Builder builder = new Notification.Builder(context);\r\n\t\tbuilder.setContentTitle(\"Title of Notification with Buttons\");\r\n\t\tbuilder.setContentText(\"Message of notification with buttons\");\r\n\t\tbuilder.setSmallIcon(R.drawable.ic_launcher);\r\n\t\tbuilder.setSound(soundUri);\r\n\t\tbuilder.setLargeIcon(BitmapFactory.decodeResource(context.getResources(),\r\n\t\t\tR.drawable.ic_google));\r\n\t\tbuilder.setProgress(0, 0, true);\r\n\t\tbuilder.setContentIntent(pendingIntent);\r\n\t\t\r\n\t\t// Sets buttons.\r\n\t\tbuilder.addAction(R.drawable.ic_google, \"View\", pendingIntentView);\r\n\t\tbuilder.addAction(0, \"Edit\", pendingIntentEdit);\r\n\t\t\r\n\t\t// Calls the notification.\r\n\t\tNotificationManager notificationManager = (NotificationManager)context\r\n\t\t\t.getSystemService(Activity.NOTIFICATION_SERVICE);\r\n\t\tNotification notification = builder.build();\r\n//\t\tNotification notification = builder.setStyle(new Notification.BigTextStyle()\r\n// \t\t\t.bigText(mBigText.toString())).build();\r\n//\t\tNotification notification = new Notification.BigPictureStyle(builder)\r\n// \t\t\t.bigPicture(BitmapFactory.decodeResource(context.getResources(),\r\n// \t\t\tR.drawable.ic_google)).build();\r\n\t\t\r\n\t\t// Calls the notification. Waits for 800ms and vibrates for 150ms,\r\n\t\t// and then waits for 300ms and vibrates for 1000ms.\r\n\t\tnotification.vibrate = new long[] { 800, 150, 300, 1000 };\r\n\t\t\r\n\t\t// The id (unique number) is a Integer that identifies this notification.\r\n\t\tnotificationManager.notify(id, notification);\r\n\t}", "private void updateReceiveMessageNotification(Context context,\n int requestCode, Intent intent, String ticker,\n String notifyTitle, String description, int icon,\n boolean isNewMessageNotification) {\n Logger.d(\n TAG,\n \"updateReceiveMessageNotification() entry eight parameters\" +\n \" isNewMessageNotification \"\n + isNewMessageNotification);\n PendingIntent contentIntent = PendingIntent.getActivity(\n context, requestCode, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n Notification.Builder builder = new Notification.Builder(\n context);\n builder.setContentTitle(notifyTitle);\n builder.setContentText(description);\n builder.setContentIntent(contentIntent);\n if (isNewMessageNotification) {\n builder.setTicker(ticker);\n }\n builder.setSmallIcon(icon);\n builder.setWhen(System.currentTimeMillis());\n builder.setAutoCancel(true);\n if (SettingsFragment.IS_NOTIFICATION_CHECKED.get()) {\n Logger.v(\n TAG,\n \"updateReceiveMessageNotification SettingsFragment.\" +\n \"IS_NOTIFICATION_CHECKED.get() is \"\n + SettingsFragment.IS_NOTIFICATION_CHECKED\n .get());\n if (isNewMessageNotification) {\n Logger.v(TAG,\n \"updateReceiveMessageNotification isNewMessageNotification is \"\n + isNewMessageNotification);\n // Set ringtone\n String ringtone = RcsSettings.getInstance()\n .getChatInvitationRingtone();\n if (ringtone != null && ringtone.length() != 0) {\n Logger.v(TAG,\n \"updateReceiveMessageNotification set rintone\");\n builder.setSound(Uri.parse(ringtone));\n } else {\n Logger.v(TAG,\n \"updateReceiveMessageNotification not set rintone\");\n }\n // Set vibrate\n if (RcsSettings.getInstance()\n .isPhoneVibrateForChatInvitation()) {\n Logger.v(TAG,\n \"updateReceiveMessageNotification set vibarate\");\n builder.setDefaults(Notification.DEFAULT_VIBRATE);\n } else {\n Logger.v(TAG,\n \"updateReceiveMessageNotification not set vibarate\");\n }\n } else {\n Logger.v(TAG,\n \"updateReceiveMessageNotification isNewMessageNotification is \"\n + isNewMessageNotification);\n }\n Notification notification = builder.getNotification();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(UNREAD_MESSAGE,\n NOTIFICATION_ID_UNREAD_MESSAGE, notification);\n } else {\n Logger.v(\n TAG,\n \"updateReceiveMessageNotification SettingsFragment.\" +\n \"IS_NOTIFICATION_CHECKED.get() is false\");\n }\n }", "private static PendingIntent createNotificationPendingIntent(Context context, String action) {\n final Intent intent = new Intent(action, null,\n context, NotificationBroadcastReceiver.class);\n return PendingIntent.getBroadcast(context, 0, intent, 0);\n }", "@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tsuper.onStartCommand(intent, flags, startId);\n\t\tint flag = intent.getIntExtra(\"flags\",flags);\n\t\tswitch(flag)\n\t\t{\n\t\t\tcase FLAGS_START:\n\t\t\t\tstart();\n\t\t\t\tbreak;\n\t\t\tcase FLAGS_UPDATE:\n\t\t\t\tupdate();\n\t\t\t\tbreak;\n\t\t\tcase FLAGS_TIMEUP:\n\t\t\t\ttimeUp();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\treturn 0;\n\t}", "public static Intent getIntent(Context context) {\n Intent intent = new Intent(context, WifiSchedulerDialog.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n return intent;\n }", "private PendingIntent notificationContentIntent() {\n Intent intent = new Intent(packageContext, AlertDialog.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n return PendingIntent.getActivity(packageContext, 0, intent, 0);\n }", "private PendingIntent getGeofencePendingIntent() {\n // Reuse the PendingIntent if we already have it.\n if (mGeofencePendingIntent != null) {\n return mGeofencePendingIntent;\n }\n intent = new Intent(this, GeofenceTransitionsIntentService.class);\n //Intent intent = new Intent(this, GeofenceTransitionsIntentService.class);\n // We use FLAG_UPDATE_CURRENT so that we get the same pending intent back\n return PendingIntent.getService(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n }", "private void checkCreatingPendingIntentsWithIntentVariables(Source<CompilationUnit> java) {\n List<String> implicitIntentsVariables = java.getModel().findAll(ObjectCreationExpr.class).stream()\n .filter(expr -> expr.getType().getName().getIdentifier().equals(\"Intent\"))\n .filter(this::isCreatingImplicitIntent)\n .map(Node::getParentNode)\n .flatMap(Optional::stream)\n .filter(node -> node instanceof VariableDeclarator)\n .map(node -> (VariableDeclarator) node)\n .map(VariableDeclarator::getName)\n .map(SimpleName::getIdentifier)\n .collect(Collectors.toList());\n java.getModel().findAll(MethodCallExpr.class).stream()\n .filter(expr -> expr.getName().getIdentifier().matches(\"getActivity|getBroadcast|getService\"))\n .filter(expr -> expr.getArguments().size() >= 4)\n .filter(expr -> expr.getArguments().get(2).isNameExpr())\n .filter(expr -> implicitIntentsVariables.contains(expr.getArguments().get(2).asNameExpr().getName().getIdentifier()))\n .forEach(expr -> addJavaIssue(Severity.VULNERABILITY, \".PENDING_INTENT\", java.getFile(), expr));\n }", "private Notification buildForegroundNotification() {\n //registerNotifChnnl(this.context);\n\n Intent stopIntent = new Intent(this.context, BackgroundIntentService.class);\n //stopIntent.setAction(context.getString(R.string.intent_action_turnoff));\n\n PendingIntent pendingIntent = PendingIntent.getService(this.context,0, stopIntent, 0);\n\n NotificationCompat.Builder b=new NotificationCompat.Builder(this.context,CHANNEL_ID);\n\n b.setOngoing(true)\n .setContentTitle(\"WifiHotSpot is On\")\n// .addAction(new NotificationCompat.Action(\n// R.drawable.turn_off,\n// \"TURN OFF HOTSPOT\",\n// pendingIntent\n// ))\n .setPriority(NotificationCompat.PRIORITY_LOW)\n .setCategory(Notification.CATEGORY_SERVICE);\n // .setSmallIcon(R.drawable.notif_hotspot_black_24dp);\n\n\n return(b.build());\n }", "private PendingIntent getGeofencePendingIntent () {\n\n Intent intent = new Intent(this, GeofenceReceiver.class);\n // We use FLAG_UPDATE_CURRENT so that we get the same pending intent back when\n // calling addGeofences() and removeGeofences().\n return PendingIntent.getService(this, 0, intent, PendingIntent.\n FLAG_UPDATE_CURRENT);\n }", "private void setAlarm(Alarm alarm, int flags) {\n // this set alarm based on TimePicker so we need to set Calendar like the\n // trigger time\n // get instant of Calendar\n Calendar myCalendar = Calendar.getInstance();\n Calendar calendar = (Calendar) myCalendar.clone();\n // set current hour for calendar\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour_x());\n // set current minute\n calendar.set(Calendar.MINUTE, alarm.getMinute_x());\n // set current second for calendar\n calendar.set(Calendar.SECOND, 0);\n // plus one day if the time set less than the the Calendar current time\n if (calendar.compareTo(myCalendar) <= 0) {\n calendar.add(Calendar.DATE, 1);\n }\n // get id of alarm and set for PendingIntent to multiply multiple PendingIntent for cancel\n // time, this also put into PendingIntent to compare with the cancel Alarm's id=\n int alarmId = (int) alarm.getId();\n // make intent to broadCast\n Intent intent = new Intent(AlarmsetActivity.this, AlarmReceiver.class);\n // put intent type to check which intent trigger add or cancel\n intent.putExtra(\"intentType\", Constants.ADD_INTENT);\n // put id to intent\n intent.putExtra(\"PendingId\", alarmId);\n // this pendingIntent include alarm id to manage\n PendingIntent alarmIntent = PendingIntent.getBroadcast(AlarmsetActivity.this, alarmId,\n intent, flags);\n // create alarm manager ALARM_SERVICE\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // Set alarm, at the trigger time \"calandar.getTimeInMillis\" this pendingIntent will be\n // sent to AlarmReceiver and then sent to alarm service to play music\n // this \"AlarmManager.INTERVAL_DAY\" mean this will set one new alarm at the trigger time\n // setInExactRepeating this may set alarm again and again also this may be not\n // trigger at the right time( at the first second start) but this will save the battery.\n // \"AlarmManager.RTC_WAKEUP\" allow this app wake device from idle time and the time\n // based on device time\n\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, alarmIntent);\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n int msgType = intent.getIntExtra(\"NOTIF_TYPE\", 0); // grabs the notification message type\n int uniqueID = intent.getIntExtra(\"ID\", 0); // grabs the ID\n\n String msgExpire = \"Your food has expired!\";\n String msgSoonExpire = \"Your food is about to expire!\";\n\n if (msgType == 0) {\n createNotification(context, \"Fridge Manager\", msgExpire, \"Alarm\", uniqueID);\n }\n else {\n createNotification(context, \"Fridge Manager\", msgSoonExpire, \"Alarm\", uniqueID);\n }\n }", "private void goforeground() {\n //CREATES NOTIFICATION\n Intent openappintent = new Intent(this, MainActivity.class);\n PendingIntent openapppendingIntent = PendingIntent.getActivity(this, 0, openappintent, 0);\n\n Intent resettrackingserviceintent = new Intent(this, PostureService.class);\n resettrackingserviceintent.putExtra(PACKAGE_NAME + \".myaction\", intentresetid);\n PendingIntent resettrackingpendingIntent = PendingIntent.getService(this, 56, resettrackingserviceintent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Intent pauseserviceintent = new Intent(this, PostureService.class);\n pauseserviceintent.putExtra(PACKAGE_NAME + \".myaction\", intentpauseid);\n PendingIntent pausependingpendingIntent = PendingIntent.getService(this, 43, pauseserviceintent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n Intent exitserviceintent = new Intent(this, PostureService.class);\n exitserviceintent.putExtra(PACKAGE_NAME + \".myaction\", intentexitid);\n PendingIntent exitpendingpendingIntent = PendingIntent.getService(this, 54, exitserviceintent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this.getBaseContext());\n\n if (!pausetracking) {\n builder.setContentTitle(getString(R.string.slouchierunning));\n pauseaction = new NotificationCompat.Action(R.drawable.ic_pause_circle_outline_black_24dp, getString(R.string.pause), pausependingpendingIntent);\n } else {\n pauseaction = new NotificationCompat.Action(R.drawable.ic_pause_circle_filled_black_24dp, getString(R.string.paused), pausependingpendingIntent);\n builder.setContentTitle(getString(R.string.slouchiepaused));\n\n }\n\n builder\n .setColor(Color.rgb(43, 169, 224))\n .setSmallIcon(R.drawable.notification_icon)\n .setContentIntent(openapppendingIntent);\n if (countdown == 0) {\n builder.setPriority(Notification.PRIORITY_DEFAULT);\n\n builder\n .addAction(R.drawable.ic_refresh_black_24dp, getString(R.string.reset), resettrackingpendingIntent)\n .addAction(pauseaction)\n .addAction(R.drawable.ic_highlight_off_black_24dp, getString(R.string.exit), exitpendingpendingIntent);\n }\n\n if (countdown > 0 && !pausetracking) {\n builder.setPriority(Notification.PRIORITY_HIGH)\n .setVibrate(new long[50]);\n builder.setContentText(getString(R.string.situpright) + \" \" + String.valueOf(countdown) + \" \" + getString(R.string.seconds))\n .setProgress(resettime / resetsteptime, resettime / resetsteptime - countdown, false)\n .setContentTitle(getString(R.string.slouchiestarting));\n }\n\n\n posturenotification = builder.build();\n startForeground(55, posturenotification);\n }", "public void oreo(String t, String d){\n String id = \"messange\";\n\n NotificationManager nm = (NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext(),id);\n Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);\n Intent intent = new Intent(getApplicationContext(), Menu_principla_Activity.class);\n\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){\n NotificationChannel nc = new NotificationChannel(id,\"nuevo\",NotificationManager.IMPORTANCE_HIGH);\n nc.setDescription(\"Notification FCM\");\n nc.setShowBadge(true);\n assert nm != null;\n System.out.println(\"Bandera 1\");\n nm.createNotificationChannel(nc);\n }\n/*\n\n\n // intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(),1,intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n builder.setAutoCancel(true)\n .setWhen(System.currentTimeMillis())\n .setContentTitle(t).setCategory(Notification.CATEGORY_SERVICE)\n .setDefaults(Notification.DEFAULT_ALL)\n .setSound(soundUri)\n .setTicker(\"Nueva notification\")\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentText(d)\n .setContentIntent(pendingIntent)\n .setContentInfo(\"nuevo\")\n .setVibrate(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400});\n\n Random random = new Random();\n int idNotify = random.nextInt(8000);\n\n assert nm != null;\n nm.notify(idNotify,builder.build());\n\n */\n PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(),1,intent, PendingIntent.FLAG_UPDATE_CURRENT);\n notification = new NotificationCompat.Builder(getApplicationContext())\n .setContentIntent(pendingIntent)\n .setSmallIcon(R.drawable.ic_medical_services_black_24dp)\n .setSound(soundUri)\n .setAutoCancel(true)\n .setContentTitle(t).setCategory(Notification.CATEGORY_SERVICE)\n .setContentText(d).build();\n nm.notify(1,notification);\n\n System.out.println(\"Bandera 2\");\n }", "private PendingIntent getGeofencePendingIntent() {\n // Reuse the PendingIntent if we already have it.\n if (mGeofencePendingIntent != null) {\n return mGeofencePendingIntent;\n }\n Intent intent = new Intent(mActivity, GeofenceTransitionsIntentService.class);\n// intent.putExtra(\"leavingstone.geolab.shoppinglist.model\", shoppingList);\n intent.putExtra(ShoppingListModel.SHOPPING_LIST_MODEL_KEY, shoppingList.getId());\n // We use FLAG_UPDATE_CURRENT so that we get the same pending intent back when calling\n // addGeofences() and removeGeofences().\n return PendingIntent.getService(mActivity, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n }", "public static PendingIntent newPendingIntent(Context context, int keycode)\n {\n Intent intent = new Intent(Intent.ACTION_MEDIA_BUTTON, Uri.EMPTY,\n context, RockboxService.class);\n intent.putExtra(Intent.EXTRA_KEY_EVENT,\n new KeyEvent(KeyEvent.ACTION_UP, keycode));\n return PendingIntent.getService(context, keycode, intent, 0);\n }", "@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n int intentactionflag = 0;\n\n //gets call type\n if (!(intent == null)) {\n intentactionflag = intent.getIntExtra(PACKAGE_NAME + \".myaction\", 0);\n }\n\n //tracking starting or restarting\n if (intentactionflag == intentstartid || intentactionflag == intentresetid) {\n // if (intentactionflag == intentstartid) {\n // }\n begintracking();\n }\n if (intentactionflag == intentpauseid && countdown == 0) {\n pausetracking = !pausetracking;\n if (!pausetracking) {\n begintracking();\n } else {\n endtracking();\n }\n }\n if (intentactionflag == intentexitid) {\n cleanup();\n }\n goforeground();\n return super.onStartCommand(intent, flags, startId);\n }", "public void setNotification( String action, int icon){\n\n PendingIntent contentIntent = PendingIntent.getActivity(getApplicationContext(), 0,\n new Intent(getApplicationContext(),MainActivity.class), 0);\n Notification.Builder notificationBuilder=new Notification.Builder(getApplicationContext()).setTicker(\n \"Momkey \"+ action).setSmallIcon(icon).setAutoCancel(true)\n .setContentText(action).setContentInfo(\"\"+1)\n .setContentTitle(\"MOMKEY\")\n .setContentIntent(contentIntent);\n\n NotificationManager notificationManager =\n (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n\n Notification n = notificationBuilder.build();\n\n n.defaults = Notification.FLAG_AUTO_CANCEL;\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n notificationManager.notify(1111,notificationBuilder.build());\n }\n }", "private Notification getActivityNotification(String title, String text){\n Intent main = getApplicationContext().getPackageManager().getLaunchIntentForPackage(getApplicationContext().getPackageName());\n main.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 1000, main, PendingIntent.FLAG_UPDATE_CURRENT);\n\n int icon = R.drawable.star_big_on;\n int normalIcon = getResources().getIdentifier(\"icon\", \"drawable\", getPackageName());\n int notificationIcon = getResources().getIdentifier(\"notificationicon\", \"drawable\", getPackageName());\n if(notificationIcon != 0) {\n Log.d(TAG, \"Found Custom Notification Icon!\");\n icon = notificationIcon;\n }\n else if(normalIcon != 0) {\n Log.d(TAG, \"Found normal Notification Icon!\");\n icon = normalIcon;\n }\n\n Notification.Builder builder = new Notification.Builder(this);\n builder.setContentTitle(title);\n builder.setContentText(text);\n builder.setSmallIcon(icon);\n builder.setContentIntent(pendingIntent);\n Notification notification;\n if (android.os.Build.VERSION.SDK_INT >= 16) {\n notification = buildForegroundNotification(builder);\n } else {\n notification = buildForegroundNotificationCompat(builder);\n }\n notification.flags |= Notification.FLAG_ONGOING_EVENT | Notification.FLAG_FOREGROUND_SERVICE | Notification.FLAG_NO_CLEAR;\n return notification;\n }", "public static void createNotification1(Context context, Reminder reminder) {\n\n\n Intent intent = new Intent(context, SplashActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0 /* Request code */, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n String channelId = context.getString(R.string.default_notification_channel_id);\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder =\n new NotificationCompat.Builder(context, channelId)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(reminder.getTitle())\n .setContentText(reminder.getContent())\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n // Since android Oreo notification channel is needed.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationChannel channel = new NotificationChannel(channelId,\n \"Channel human readable title\",\n NotificationManager.IMPORTANCE_DEFAULT);\n notificationManager.createNotificationChannel(channel);\n }\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n\n DeleteNotification(reminder,context);\n }", "@Override\r\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tBundle b = intent.getExtras();\r\n\t\tint id = 0;\r\n\r\n\t\tif ((id = b.getInt(AlarmFactory.ARG_NEWS_ID, -1)) >= 0) {\r\n\t\t\t// Toast.makeText(this, \"\"+id, Toast.LENGTH_SHORT).show();\r\n\t\t\tnew UpdateSourceTask(this, handler).execute(id, UpdateSourceTask.ALARM_TRIGER);\r\n\r\n\t\t}\r\n\t\treturn mStartMode;\r\n\t}", "private void m56319ab(Intent intent) {\n AppMethodBeat.m2504i(41901);\n boolean booleanExtra = intent.getBooleanExtra(\"key_create_succ\", false);\n String stringExtra = intent.getStringExtra(\"key_card_no\");\n String stringExtra2 = intent.getStringExtra(\"key_card_type\");\n C4990ab.m7417i(this.TAG, \"create succ: %s\", Boolean.valueOf(booleanExtra));\n if (booleanExtra) {\n m56322b(stringExtra, true, stringExtra2);\n }\n AppMethodBeat.m2505o(41901);\n }", "private void createNotification(int icon, String name, String auto_manual, String secondText, int color) {\n\n Intent notificationIntent = new Intent(this, SyncopyActivity.class);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this,\n 0, notificationIntent, 0);\n Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)\n .setContentTitle(name)\n .setContentText(secondText)\n .setSubText(String.format(\"(%s)\", auto_manual))\n .setSmallIcon(icon)\n .setColor(getResources().getColor(color))\n .setContentIntent(pendingIntent)\n .setVibrate(null)\n .setSound(null)\n .setPriority(NotificationManager.IMPORTANCE_LOW)\n .build();\n\n synchronized (notification){\n notification.notify();\n }\n\n startForeground(1, notification);\n\n\n }", "private PendingIntent getPendingSelfIntent(Context context, String action) {\n Intent intent = new Intent(context, getClass());\n intent.setAction(action);\n return PendingIntent.getBroadcast(context, 0, intent, 0);\n }", "public void setFlag(Intent intent) {\n String flag2;\n if (intent != null && (flag2 = intent.getStringExtra(\"flag\")) != null) {\n flag = flag2;\n Log.e(\"MOBISEC\", \"flag set correctly\");\n }\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n int mNotificationId = 001;\n\n // Gets an instance of the NotificationManager service\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, MainActivity.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent =\n PendingIntent.getActivity(\n context,\n 0,\n notificationIntent,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n\n String habit = intent.getExtras().getString(\"name\",\"streak\");\n\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(context)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"BAARD Habit Tracker\")\n .setContentText(\"Reminder to complete your \"+habit+\" habit! Don't lose your streak!\")\n .setAutoCancel(true)\n .setVibrate(new long[]{1000,1000})\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(\"Reminder to complete your \"+habit+\" habit! Don't lose your streak!\"))\n .setContentIntent(pendingIntent);\n Log.i(\"ALARM\", \"Receiver sending notification\");\n // Builds the notification and issues it.\n notificationManager.notify(mNotificationId, mNotifyBuilder.build());\n }", "private Notification prepareNotification() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && mNotificationManager.getNotificationChannel(FOREGROUND_CHANNEL_ID) == null) {\n CharSequence name = getString(R.string.text_name_notification);\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\n NotificationChannel channel = new NotificationChannel(FOREGROUND_CHANNEL_ID, name, importance);\n channel.enableVibration(false);\n mNotificationManager.createNotificationChannel(channel);\n }\n\n Intent notificationIntent = new Intent(this, MainUIActivity.class);\n notificationIntent.setAction(Constants.ACTION.MAIN_ACTION);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\n // if min sdk goes below honeycomb\n /*if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n } else {\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n }*/\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // make a stop intent\n Intent stopIntent = new Intent(this, MyService.class);\n stopIntent.setAction(Constants.ACTION.STOP_ACTION);\n PendingIntent pendingStopIntent = PendingIntent.getService(this, 0, stopIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.service_notification);\n remoteViews.setOnClickPendingIntent(R.id.btn_stop, pendingStopIntent);\n\n // if it is connected\n switch (stateService) {\n case Constants.STATE_SERVICE.NOT_CONNECTED:\n remoteViews.setTextViewText(R.id.tv_state, \"Help Desk DISCONNECTED\");\n remoteViews.setTextColor(R.id.tv_state, getResources().getColor(android.R.color.holo_red_light));\n break;\n case Constants.STATE_SERVICE.CONNECTED:\n remoteViews.setTextColor(R.id.tv_state, getResources().getColor(android.R.color.black));\n remoteViews.setTextViewText(R.id.tv_state, \"Help Desk CONNECTED\");\n break;\n }\n\n // notification builder\n NotificationCompat.Builder notificationBuilder;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n notificationBuilder = new NotificationCompat.Builder(this, FOREGROUND_CHANNEL_ID);\n } else {\n notificationBuilder = new NotificationCompat.Builder(this);\n }\n notificationBuilder\n .setContent(remoteViews)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setCategory(NotificationCompat.CATEGORY_SERVICE)\n .setOnlyAlertOnce(true)\n .setOngoing(true)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setVisibility(Notification.VISIBILITY_SECRET);\n }\n\n return notificationBuilder.build();\n }", "private void showReminderNotification(Context context) {\n // inisialisasi channel id, channel name, judul notifikasi, pesan notifikasi, intent, dan id request\n String CHANNEL_ID = \"Channel_1\";\n String CHANNEL_NAME = \"Reminder Channel App\";\n String title = context.getString(R.string.reminder_app_title);\n String message = context.getString(R.string.reminder_app_message);\n Intent intent = new Intent(context, MainActivity.class);\n int REQUST_CODE_APP = 110;\n\n PendingIntent pendingIntent = TaskStackBuilder.create(context)\n .addNextIntent(intent)\n .getPendingIntent(REQUST_CODE_APP, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // statement ini berfungsi untuk membuat notifikasi kita dapat berkerja dengan sistem android\n NotificationManager notificationManager\n = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n // mengset bunyi notifikasi, disini menggunakan bunyi default notifikasi pada sistem android\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n // method ini berfungsi untuk mengatur isi notifikasi\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID)\n .setSmallIcon(R.drawable.ic_notifications_black_24dp) // set icon kecil notifikasi\n .setLargeIcon(BitmapFactory.decodeResource(context.getResources(), // set icon besar notifikasi\n R.drawable.baseline_notification_important_white_48dp))\n .setContentTitle(title) // set judul notifikasi\n .setContentText(message) // set pesan notifikasi\n .setContentIntent(pendingIntent) // set aksi notifikasi\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000}) // set pola getar saat notifikasi\n .setSound(alarmSound); // set bunyi notifikasi yang akan digunakan\n\n // statement ini berfungsi supaya notifikasi yang telah dibuat dapat berjalan di android\n // dengan OS Oreo ke atas\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n\n NotificationChannel channel = new NotificationChannel(CHANNEL_ID, CHANNEL_NAME,\n NotificationManager.IMPORTANCE_DEFAULT);\n\n channel.enableVibration(true);\n channel.setVibrationPattern(new long[]{1000, 1000, 1000, 1000, 1000});\n\n builder.setChannelId(CHANNEL_ID);\n if (notificationManager != null) {\n notificationManager.createNotificationChannel(channel);\n }\n }\n\n // statement ini berfungsi supaya notifikasi yang telah dibuat dapat berjalan di bawah\n // android dengan OS Oreo ke bawah\n Notification notification = builder.build();\n if (notificationManager != null) {\n notificationManager.notify(ID_APP, notification);\n }\n }", "interface TaskStackBuilderImpl {\n PendingIntent getPendingIntent(Context context, Intent[] intentArr, int i, int i2, Bundle bundle);\n }", "private PendingIntent pendingIntentForNotification() {\n Intent intent = new Intent(getActivity(), MainActivity.class);\n\n //Add any extras (in this case, that you want to relaunch this fragment)\n intent.putExtra(MainActivity.EXTRA_FRAGMENT_TO_LAUNCH, MainActivity.TAG_NOTIFICATION_FRAGMENT);\n\n //This will hold the intent you've created until the notification is tapped.\n PendingIntent pendingIntent = PendingIntent.getActivity(getActivity(), 1, intent, 0);\n return pendingIntent;\n }", "public static void addRcsServiceNotification(boolean state, String label) {\r\n \t// Create notification\r\n \tIntent intent = new Intent(Intents.Client.ACTION_VIEW_SETTINGS);\r\n \tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(AndroidFactory.getApplicationContext(), 0, intent, 0);\r\n\t\tint iconId; \r\n\t\tif (state) {\r\n\t\t\ticonId = R.drawable.rcs_core_notif_on_icon;\r\n\t\t} else {\r\n\t\t\ticonId = R.drawable.rcs_core_notif_off_icon; \r\n\t\t}\r\n Notification notif = new Notification(iconId, \"\", System.currentTimeMillis());\r\n notif.flags = Notification.FLAG_NO_CLEAR | Notification.FLAG_FOREGROUND_SERVICE;\r\n notif.setLatestEventInfo(AndroidFactory.getApplicationContext(),\r\n \t\tAndroidFactory.getApplicationContext().getString(R.string.rcs_core_rcs_notification_title),\r\n \t\tlabel, contentIntent);\r\n \r\n // Send notification\r\n\t\tNotificationManager notificationManager = (NotificationManager)AndroidFactory.getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);\r\n notificationManager.notify(SERVICE_NOTIFICATION, notif);\r\n }", "public ItemBuilder setFlags(ItemFlag... flags) {\r\n\t\tthis.flags = flags;\r\n\t\treturn this;\r\n\t}", "@SuppressLint(\"WrongConstant\")\n private Notification prepareNotification() {\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O &&\n mNotificationManager.getNotificationChannel(FOREGROUND_CHANNEL_ID) == null) {\n CharSequence name = getString(R.string.text_name_notification);\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\n NotificationChannel channel = new NotificationChannel(FOREGROUND_CHANNEL_ID, name, importance);\n channel.enableVibration(false);\n mNotificationManager.createNotificationChannel(channel);\n }\n\n Intent notificationIntent = new Intent(this, Principal.class);\n notificationIntent.setAction(Constants.ACTION.MAIN_ACTION);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\n // if min sdk goes below honeycomb\n /*if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n } else {\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n }*/\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // make a stop intent\n Intent stopIntent = new Intent(this, Servicio_cargar_punto_google.class);\n stopIntent.setAction(Constants.ACTION.STOP_ACTION);\n PendingIntent pendingStopIntent = PendingIntent.getService(this, 0, stopIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.notification);\n //remoteViews.setOnClickPendingIntent(R.id.btn_stop, pendingStopIntent);\n remoteViews.setTextViewText(R.id.tv_fecha, fecha);\n\n // if it is connected\n switch (stateService) {\n case Constants.STATE_SERVICE.NOT_CONNECTED:\n remoteViews.setTextViewText(R.id.tv_estado, \"Sin conexión a internet . . .\");\n remoteViews.setImageViewResource(R.id.im_estado, R.drawable.ic_advertencia);\n break;\n case Constants.STATE_SERVICE.CONNECTED:\n remoteViews.setTextViewText(R.id.tv_estado, \"Traigo en camino\");\n remoteViews.setImageViewResource(R.id.im_estado, R.drawable.ic_carrito_verde);\n break;\n case Constants.STATE_SERVICE.GPS_INACTIVO:\n remoteViews.setTextViewText(R.id.tv_estado, \"GPS inactivo\");\n remoteViews.setImageViewResource(R.id.im_estado, R.drawable.ic_advertencia);\n break;\n case Constants.STATE_SERVICE.SIN_INTERNET:\n remoteViews.setTextViewText(R.id.tv_estado, \"Sin conexión a internet . .\");\n remoteViews.setImageViewResource(R.id.im_estado, R.drawable.ic_advertencia);\n break;\n }\n\n // notification builder\n NotificationCompat.Builder notificationBuilder;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n notificationBuilder = new NotificationCompat.Builder(this, FOREGROUND_CHANNEL_ID);\n } else {\n notificationBuilder = new NotificationCompat.Builder(this);\n }\n notificationBuilder\n .setContent(remoteViews)\n .setSmallIcon(R.drawable.ic_carrito_verde)\n .setCategory(NotificationCompat.CATEGORY_SERVICE)\n .setOnlyAlertOnce(true)\n .setOngoing(true)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent);\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setVisibility(Notification.VISIBILITY_PUBLIC);\n }\n\n return notificationBuilder.build();\n }", "private static Intent m2310b(PendingIntent pendingIntent) {\n if (pendingIntent == null) {\n return null;\n }\n if (bUW == null) {\n try {\n Method declaredMethod = PendingIntent.class.getDeclaredMethod(\"getIntent\", new Class[0]);\n bUW = declaredMethod;\n declaredMethod.setAccessible(true);\n } catch (NoSuchMethodException e) {\n C1070c.m2370w(\"MicroMsg.AlarmDetector\", \"getOperationIntent e:%s\", e);\n return null;\n }\n }\n try {\n Object invoke = bUW.invoke(pendingIntent, new Object[0]);\n if (invoke instanceof Intent) {\n return (Intent) invoke;\n }\n return null;\n } catch (IllegalAccessException e2) {\n C1070c.m2370w(\"MicroMsg.AlarmDetector\", \"getOperationIntent e:%s\", e2);\n } catch (InvocationTargetException e3) {\n } catch (SecurityException e4) {\n C1070c.m2370w(\"MicroMsg.AlarmDetector\", \"getOperationIntent e:%s\", e4);\n }\n return null;\n }", "public void FlagupdatePatientPersonal(String strPatientId, String flag) {\n\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_PATIENT, values, KEY_PATIENT_ID + \"=\" + strPatientId, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "private PendingIntent getTransitionPendingIntent() {\n Intent intent = new Intent(this, GeofenceIntentService.class);\n return PendingIntent.getService(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n }", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n Uri alarmsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);\n\n Intent intent1 = new Intent(context, Reminderku.class);\n intent1.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(context);\n taskStackBuilder.addParentStack(Reminderku.class);\n taskStackBuilder.addNextIntent(intent1);\n\n PendingIntent intent2 = taskStackBuilder.getPendingIntent(1,PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context);\n\n NotificationChannel channel = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n channel = new NotificationChannel(\"my_channel_01\",\"hello\", NotificationManager.IMPORTANCE_HIGH);\n }\n\n Notification notification = builder.setContentTitle(\"KitaFit\")\n .setContentText(intent.getStringExtra(\"Message\")).setAutoCancel(true)\n .setSound(alarmsound).setSmallIcon(R.mipmap.ic_launcher_round)\n .setContentIntent(intent2)\n .setChannelId(\"my_channel_01\")\n .build();\n\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n notificationManager.createNotificationChannel(channel);\n }\n notificationManager.notify(1, notification);\n\n }", "public static void cancelAlarmPendingIntents(Context context) {\n List<Alarm> alarms = Alarm.getAlarms();\n\n if (alarms == null) {\n return;\n }\n\n for (Alarm alarm : alarms) {\n if (!alarm.isActive()) {\n continue;\n }\n\n AlarmManager alarmManager =\n (AlarmManager) context.getSystemService(context.ALARM_SERVICE);\n\n PendingIntent pendingIntent = createPendingIntent(context, alarm);\n alarmManager.cancel(pendingIntent);\n }\n }", "public static void showNewNotification(Context context, Intent intent, String title, String msg, Bitmap bitmap) {\n\n Uri notificationSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n Intent notificationIntent;\n\n if (intent != null) {\n notificationIntent = intent;\n }\n else {\n notificationIntent = new Intent(context.getApplicationContext(), WalletHomeActivity.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n }\n\n PendingIntent pendingIntent = PendingIntent.getActivity((context), 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT| PendingIntent.FLAG_ONE_SHOT);\n\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n\n Notification.Builder builder = new Notification.Builder(context);\n if (bitmap != null)\n builder.setStyle(new Notification.BigPictureStyle().bigPicture(bitmap));\n\n\n // Create Notification\n Notification notification = builder\n .setContentTitle(title)\n .setContentText(msg)\n .setTicker(context.getString(R.string.app_name))\n .setSmallIcon(R.drawable.logo_vector)\n .setSound(notificationSound)\n .setLights(Color.RED, 3000, 3000)\n .setVibrate(new long[] { 1000, 1000 })\n .setWhen(System.currentTimeMillis())\n .setDefaults(Notification.DEFAULT_SOUND)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent)\n .build();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)\n {\n String channelId = \"121\";\n NotificationChannel channel = new NotificationChannel(\n channelId,\n \"Channel eMaisha Pay\",\n NotificationManager.IMPORTANCE_HIGH);\n notificationManager.createNotificationChannel(channel);\n builder.setChannelId(channelId);\n }\n\n notificationManager.notify(NOTIFICATION_REQUEST_CODE, notification);\n\n }", "public void FlagupdatePatientPersonal(String flag) {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_PATIENT, values, null, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n\n }", "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tSharedPreferences mode=PreferenceManager.getDefaultSharedPreferences(context);\n\t\tBundle bundle=intent.getExtras();\n\t\tScheduleProtected schedule=bundle.getParcelable(\"Schedule\");\n\t\tString msg=schedule.getLabel();\n\t\tAudioManager audio=(AudioManager) context.getSystemService(Context.AUDIO_SERVICE);\n\t\t\n\t\tif(mode.getString(\"response\", null)==\"a\")\n\t\t\taudio.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n\t\telse\n\t\t\taudio.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n\t\t\n\t\tNotificationManager mNotManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n\t\tString MyText = \"Silent Mode Activated\";\n\t Notification mNotification = new Notification(R.drawable.icon, MyText, System.currentTimeMillis());\n\t \n\t String MyNotifyTitle = \"Diam Leh\";\n String MyNotifiyText = msg+\": Silent Mode Activated\";\n Intent MyIntent = new Intent( context.getApplicationContext(), Main.class);\n \n MyIntent.putExtra(\"extendedTitle\", MyNotifyTitle);\n MyIntent.putExtra(\"extendedText\" , MyNotifiyText);\n PendingIntent StartIntent = PendingIntent.getActivity(context.getApplicationContext(), 0, MyIntent, 0);\n \n mNotification.setLatestEventInfo(context.getApplicationContext(), MyNotifyTitle, MyNotifiyText, StartIntent);\n \n mNotification.ledOnMS = 200; //Set led blink (Off in ms)\n mNotification.ledOffMS = 200; //Set led blink (Off in ms)\n mNotification.ledARGB = 0x9400d3; //Set led color\n \n mNotManager.notify(399940 , mNotification );\n \n\t\tSharedPreferences pref=PreferenceManager.getDefaultSharedPreferences(context);\n\t\tSharedPreferences.Editor editor=pref.edit();\n\t\teditor.putBoolean(\"Mode\", true);\n\t\teditor.putLong(\"RowID\", schedule.getRowId());\n\t\teditor.commit();\n\t}", "@Override\n\tpublic short getFlag() {\n\t\treturn FLAG_MESSAGE_PHONE_CURRENT_PLAYER_COUNT;\n\t}", "private Notification.Builder createNotificationWithOutChannel(String title, String message){\n PendingIntent pendingIntent = setIntent(title,message);\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT_WATCH) {\n Notification.Action action = new Notification.Action.Builder(\n android.R.drawable.ic_menu_send,\n \"See details\",\n pendingIntent\n ).build();\n }\n\n return new Notification.Builder(getApplicationContext())\n .setContentTitle(title)\n .setContentIntent(pendingIntent)\n .setContentText(message)\n .setSmallIcon(android.R.drawable.stat_notify_chat)\n .setAutoCancel(true);\n }", "private Intent m34057d(Context context) {\n Intent intent = new Intent();\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setClassName(\"com.color.safecenter\", \"com.color.safecenter.permission.floatwindow.FloatWindowListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.coloros.safecenter\", \"com.coloros.safecenter.sysfloatwindow.FloatWindowListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.oppo.safe\", \"com.oppo.safe.permission.PermissionAppListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "public static void createNotification(MainActivity a, CustomFBProfile profile, IMessagingMetaData meta, HashMap<String, String> loc) {\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(a)\n .setSmallIcon(R.drawable.acba)\n .setContentTitle(\"New Message\")\n .setContentText(meta.getName().toUpperCase()).setTicker(\"New Message!!\");\n NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle();\n mBuilder.setStyle(inboxStyle);\n mBuilder.setVibrate(new long[]{2000, 2000, 1000});\n mBuilder.setLights(Color.RED, 3000, 3000);\n mBuilder.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));\n mBuilder.setAutoCancel(true);\n\n// Creates an explicit intent for an Activity in your app\n Intent resultIntent = a.startMessagingActivityFromAnywhereInApp(profile, meta, loc);\n\n// The stack builder object will contain an artificial back stack for the\n// started Activity.\n// This ensures that navigating backward from the Activity leads out of\n// your application to the Home screen.\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(a);\n// Adds the back stack for the Intent (but not the Intent itself)\n stackBuilder.addParentStack(MainActivity.class);\n// Adds the Intent that starts the Activity to the top of the stack\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager =\n (NotificationManager) a.getSystemService(Context.NOTIFICATION_SERVICE);\n// mId allows you to update the notification later on.\n mNotificationManager.notify(1, mBuilder.build());\n }", "private void sendNotification(Map<String, String> serverData) {\n Intent intent = new Intent(serverData.get(\"click_action\"));\n String title = serverData.get(\"title\");\n String body = serverData.get(\"body\");\n intent.putExtra(\"title\",title);\n intent.putExtra(\"body\",body);\n intent.putExtra(\"order\" , serverData.get(\"order\"));\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this,0 /* request code */, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n long[] pattern = {500,500,500,500,500};\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n NotificationCompat.Builder notificationBuilder = (NotificationCompat.Builder) new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ok)\n .setContentTitle(serverData.get(\"title\"))\n .setContentText(serverData.get(\"body\"))\n .setAutoCancel(true)\n .setVibrate(pattern)\n .setLights(Color.BLUE,1,1)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(0 , notificationBuilder.build());\n }", "private static PendingIntent m92439a(Context context, int i, long j, String str, String str2, String str3) {\n Intent startIntent = IntentOperation.getStartIntent(context, SnetWatchdogChimeraIntentService.class, str3);\n startIntent.putExtra(\"snet.watchdog.intent.extra.GMS_CORE_VERSION\", i);\n startIntent.putExtra(\"snet.watchdog.intent.extra.TIMEOUT\", j);\n startIntent.putExtra(\"snet.watchdog.intent.extra.SESSION_UUID\", str);\n startIntent.putExtra(\"snet.watchdog.intent.extra.DEVICE_UUID\", str2);\n return PendingIntent.getService(context, 0, startIntent, 0);\n }", "private void createStatusNotificationChannel(){\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n statusChannel = new NotificationChannel(\"2\",\"Status\",NotificationManager.IMPORTANCE_DEFAULT);\n statusChannel.setDescription(\"This is a status notification channel\");\n\n NotificationManager notificationManager = ctx.getSystemService(NotificationManager.class);\n notificationManager.createNotificationChannel(statusChannel);\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Intent notificationIntent = new Intent(this, MainActivity.class);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0,\n notificationIntent, 0);\n\n Notification notification = new Notification.Builder(this, CHANNEL_ID)\n .setContentTitle(\"New mail from \" )\n .setContentText(\"acacsc\")\n .setSmallIcon(R.drawable.exo_controls_pause)\n //.setLargeIcon(aBitmap)\n .setContentIntent(pendingIntent)\n .build();\n\n\n startForeground(1, notification);\n\n return START_NOT_STICKY; //or return START_REDELIVER_INTENT;\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Log.i(\"BASH\", \"Notification sent\");\n\n Log.i(\"BASH\", \"RECIEVED\");\n\n createNotification(context, \"Times up\", \"5 sec\", \"as\");\n\n }", "public void FlagupdateInvestigation(String strPatientId, String flag) {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_INVESTIGATION, values, KEY_PATIENT_ID + \"=\" + strPatientId, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "public static Intent getStartIntent(Context context, boolean triggerDataSyncOnCreate) {\n Intent intent = new Intent(context, MainActivity.class);\n intent.putExtra(EXTRA_TRIGGER_SYNC_FLAG, triggerDataSyncOnCreate);\n return intent;\n }", "public void createNotification(View view) {\n Intent intent = new Intent(this, Status1.class);\r\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);\r\n\r\n // Build notification\r\n // Actions are just fake\r\n Notification noti = new Notification.Builder(this)\r\n .setContentTitle(\"RKC App \")\r\n .setContentText(\"Click To Enter \").setSmallIcon(R.drawable.arc)\r\n .setContentIntent(pIntent)\r\n .addAction(R.drawable.ironman, \"Back\", pIntent)\r\n .addAction(R.drawable.gun, \"More\", pIntent)\r\n .build();\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r\n // hide the notification after its selected\r\n noti.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n notificationManager.notify(0, noti);\r\n\r\n }", "@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n super.onStartCommand(intent, flags, startId);\n // Tapping the notification will open the specified Activity.\n// Intent activityIntent = new Intent(this, MainActivity.class);\n if (intent == null)\n intent = new Intent(this, RNTrafficStatsModule.class);\n\n pendingIntent = PendingIntent.getActivity(getApplicationContext(), 0,\n intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // This always shows up in the notifications area when this Service is running.\n not = new Notification.Builder(this).\n setContentTitle(\"TrueService\").\n setContentText(\"Running Speed Tests\")\n .setSmallIcon(R.drawable.random_pic).\n setContentIntent(pendingIntent).\n// addAction(action).\n build();\n startForeground(1, not);\n\n // Other code goes here...\n\n return START_REDELIVER_INTENT;//super.onStartCommand(intent, flags, startId);\n }", "public Alarm_Msg(Context context, Bundle extras){\n /*AlarmManager alarmMgr =\n (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, Alarm_Msg.class);\n intent.putExtra(REMINDER_BUNDLE, extras);\n PendingIntent pendingIntent =\n PendingIntent.getBroadcast(context, 0, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n Calendar time = Calendar.getInstance();\n time.setTimeInMillis(System.currentTimeMillis());\n time.set(Calendar.HOUR_OF_DAY, Integer.parseInt(extras.getString(\"time_h\")));\n time.set(Calendar.MINUTE, Integer.parseInt(extras.getString(\"time_m\")));\n\n alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, time.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY, pendingIntent);*/\n\n\n AlarmManager alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, Alarm_Msg.class);\n intent.putExtra(REMINDER_BUNDLE, extras);\n Bundle getBundle = intent.getBundleExtra(REMINDER_BUNDLE);\n NOTIFY_ID = NOTIFY_ID + getBundle.getInt(\"id\");\n //Toast.makeText(context, Integer.toString(NOTIFY_ID), Toast.LENGTH_LONG).show();\n PendingIntent pendingIntent =\n PendingIntent.getBroadcast(context, NOTIFY_ID, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n alarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,\n SystemClock.elapsedRealtime() +\n 60 * 1000, pendingIntent);\n }", "private PendingIntent getGeofencePendingIntent() {\n if (mGeofencePendingIntent != null) {\r\n return mGeofencePendingIntent;\r\n }\r\n Intent intent = new Intent(this, GeofenceBroadcastReceiver.class);\r\n\r\n // addGeofences() and removeGeofences().\r\n mGeofencePendingIntent = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n return mGeofencePendingIntent;\r\n }", "@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Intent notificationIntent = new Intent(this, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);\n\n Bitmap icon = BitmapFactory.decodeResource(getResources(), R.drawable.psych_green_2);\n Palette palette = Palette.from(icon).generate();\n\n Notification notification = new Notification.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"Headliner\")\n .setContentText(\"This is a headliner notification.\")\n .setLargeIcon(icon)\n .setContentIntent(pendingIntent)\n .setTicker(\"This is the ticker.\")\n .setOngoing(true)\n .setColorized(true)\n .setColor(palette.getLightVibrantColor(Color.BLACK))\n .setStyle(new Notification.MediaStyle())\n .setChannel(\"emergency\")\n .build();\n startForeground(HEADLINER_NOTIFICATION_ID, notification);\n\n return START_STICKY;\n }", "private void createNotificationChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n CharSequence name = getString(R.string.channel_name);\n String description = getString(R.string.channel_description);\n int importance = NotificationManager.IMPORTANCE_HIGH;\n\n // crate a channel with high priority\n NotificationChannel channel = new NotificationChannel(CHANNEL_ID_1, name, importance);\n\n channel.setDescription(description);\n // Register the channel with the system; you can't change the importance\n // or other notification behaviors after this\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\n notificationManager.createNotificationChannel(channel);\n\n// // Create an Intent for the activity you want to start\n// Intent resultIntent = new Intent(this, MainActivity.class);\n// // Create the TaskStackBuilder and add the intent, which inflates the back stack\n// TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n// stackBuilder.addNextIntentWithParentStack(resultIntent);\n// // Get the PendingIntent containing the entire back stack\n// PendingIntent resultPendingIntent =\n// stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n }\n\n }", "public void FlagupdateBannerClicked(String flag) {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n db.update(TABLE_BANNER_CLICKED, values, null, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n\n }", "public void newAlarmManager(long time, Intent intent, int requestCode){\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(getApplicationContext(),\n requestCode, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager startAlarmManager = (AlarmManager) getApplicationContext()\n .getSystemService(Context.ALARM_SERVICE);\n startAlarmManager.setExact(AlarmManager.RTC_WAKEUP, time, pendingIntent);\n }", "private void createNotificationChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n CharSequence name = \"Tracker\";\n String description = getString(R.string.app_name);\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\n NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance);\n channel.setDescription(description);\n // Register the channel with the system; you can't change the importance\n // or other notification behaviors after this\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\n notificationManager.createNotificationChannel(channel);\n }\n }", "public int getApplicationFlags() {\n return getActivityInfo().flags;\n }", "public void sendNotification(View view) {\n\n NotificationManager nm= (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.O){\n\n //We have to create a notification channel\n NotificationChannel nc = new NotificationChannel(\"srminterns\",\"SRM NOTIFICATIONS\",NotificationManager.IMPORTANCE_HIGH);\n nm.createNotificationChannel(nc);\n\n }\n\n // we have to normally write notification code.\n\n NotificationCompat.Builder builder=new NotificationCompat.Builder(this,\"srminterns\");\n builder.setSmallIcon(R.drawable.umbrella);\n builder.setContentTitle(\"Sample Notification\");\n builder.setContentText(\"This is the description of the notification\");\n builder.setAutoCancel(true);\n\n /* Pending Intent\n * - It is the description of the operation to be performed\n * - can be created using the following methods\n * -getActivity() - if you want to open an activity with pending Intent\n * -getService() - if you want to strat a service with Pending Intent\n * -getBroadcast() - if you want to send a broadcast with Pending Intent\n *\n * Requires 4 Arguments\n * -context\n * -Pending Intent ID (Can be any Integer)\n * -Intent(Action that you want to perform)\n * - FLAG (This flag will tell the existing pending Intent about what to do if there\n * is a new Pending Intent (Arrival) */\n\n PendingIntent pi = PendingIntent.getActivity(this,12,new Intent(this, MainActivity.class)\n ,PendingIntent.FLAG_UPDATE_CURRENT);\n\n builder.setContentIntent(pi);\n\n /*\n * Step1: is to convert any image format that you want to display into a Bitmap image format\n * Step2: is to create bigPicture style before you issue the notification.\n *\n *\n *\n *\n * */\n\n Bitmap bitmap= BitmapFactory.decodeResource(getResources(),R.drawable.kathmandu);\n builder.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(bitmap));\n nm.notify(42,builder.build());\n }", "private void sendNotification(String title, String messageBody, Map<String, String> extra) {\n Intent intent = new Intent(this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent;\n if (extra != null) {\n String type = extra.get(\"type\") != null ? extra.get(\"type\") : \"\";\n switch (type) {\n case \"page\":\n // for background, foreground can get this message directly without intent.putExtra()\n intent.putExtra(\"type\", type);\n if (extra.get(\"page\") != null) {\n intent.putExtra(\"page\", extra.get(\"page\"));\n }\n if (extra.get(\"id\") != null) {\n Log.i(TAG, \"sendNotification: payload page id \" + extra.get(\"id\"));\n intent.putExtra(\"id\", extra.get(\"id\"));\n }\n pendingIntent = PendingIntent.getActivity(this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n break;\n case \"link\":\n // only for foreground, without sending extra\n if (extra.get(\"link\") != null) {\n Uri uri = Uri.parse(LauUtil.getLegalURL(extra.get(\"link\")));\n intent = new Intent(Intent.ACTION_VIEW, uri);\n intent.putExtra(\"link\", extra.get(\"link\"));\n }\n pendingIntent = PendingIntent.getActivity(this, 2, intent,\n PendingIntent.FLAG_ONE_SHOT);\n break;\n case \"alarm_alert\":\n pendingIntent = getPendingIntentForAlertSystem(this, 0, 0, 0);\n break;\n default:\n pendingIntent = PendingIntent.getActivity(this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n break;\n }\n } else {\n pendingIntent = PendingIntent.getActivity(this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n }\n\n String channelId = getString(R.string.default_notification_channel_id);\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n NotificationCompat.BigTextStyle bigTextStyle = new NotificationCompat.BigTextStyle();\n bigTextStyle.setBigContentTitle(title).bigText(messageBody);\n\n NotificationCompat.Builder notificationBuilder =\n new NotificationCompat.Builder(this, channelId)\n .setSmallIcon(R.drawable.young_icon_192x192)\n .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.young_icon_192x192))\n .setContentTitle(title)\n .setContentText(messageBody)\n .setStyle(bigTextStyle)\n .setAutoCancel(true)\n .setPriority(Notification.PRIORITY_HIGH)\n .setDefaults(Notification.DEFAULT_ALL)\n// .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n // Since android Oreo notification channel is needed.\n if (notificationManager != null) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationChannel channel = new NotificationChannel(channelId,\n channelId,\n NotificationManager.IMPORTANCE_DEFAULT);\n channel.setDescription(\"Young+推送\");\n notificationManager.createNotificationChannel(channel);\n }\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n }\n }", "public Integer getFLAG() {\n return FLAG;\n }", "public void createNotification(Context context, String msg, String msgText, String msgAlert, int notifID) {\n\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent repeating_intent = new Intent(context, MainMenu.class);\n repeating_intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, notifID, repeating_intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setContentIntent(pendingIntent)\n .setSmallIcon(R.drawable.ic_fridge_empty)\n .setContentTitle(msg)\n .setContentText(msgText)\n .setTicker(msgAlert)\n .setColor(0xFFC107) // colour of the circle backgroud\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000}) // Vibration\n .setLights(0xFFFF00, 100, 50) // LED\n .setAutoCancel(true);\n\n notificationManager.notify(notifID, builder.build());\n }", "public void onReceive(Context context, Intent intent) {\n\t\t\tBundle extras = intent.getExtras();\n\t\t\tString flags = extras != null ? extras.getString(REMINDER_BUNDLE)\n\t\t\t\t\t: \"nothing returned\";\n\t\t\tif (Lullabye.debug) Log.d(tag,\"alarm received \"+flags+\" intent \"+intent);\n\t\t\tif (flags.equals(\"alarm\")) {\n\t\t\t\tif (Lullabye.debug) Log.d(tag, \"starting automatically \");\n\t\t\t\t// if repeat is true, set new alarm in 24 h (86 400seconds)\n\t\t\t\tif (Options.isMalarmRepeat()) {\n\t\t\t\t\tnew Alarm(context, \"alarm\", (86400));\n\t\t\t\t}\n\t\t\t\tLullabye.startplaying();\n\t\t\t} \n\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n put_done = intent.getBooleanExtra(msg_content_put_done, false);\n if(put_done) {\n button_set.setEnabled(true);\n button_set.setText(\"SET\");\n }\n }", "public void showNotification(String title,String message)\n {\n\n Bitmap icon = BitmapFactory.decodeResource(this.getResources(),\n R.drawable.girl);\n// NotificationCompat.Builder builder = new NotificationCompat.Builder(this,\"Notify\")\n// .setContentTitle(title).setSmallIcon(R.drawable.common_google_signin_btn_icon_dark)\n\n// // .addAction(R.drawable.user,\"Pay\",payInent)\n// //.addAction(R.drawable.user,\"Pay Later\",payLaterInent)\n// .setDefaults(Notification.DEFAULT_ALL)\n// .setPriority(NotificationManager.IMPORTANCE_HIGH)\n// .setAutoCancel(true).setContentText(message).setLargeIcon(icon)\n// .setStyle(new NotificationCompat.BigPictureStyle()\n// .bigPicture(icon).bigLargeIcon(null));\n\n// NotificationCompat.Builder builder;\n// builder = new NotificationCompat.Builder(this, \"Notify\");\n// builder.setContentTitle(title) // required\n// .setSmallIcon(R.drawable.user) // required\n// .setContentText(message) // required\n// .setStyle(new NotificationCompat.BigPictureStyle()\n// .bigPicture(icon).setSummaryText(\"\"))\n// .setAutoCancel(true)\n// .setVibrate(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400})\n// .setSound(Settings.System.DEFAULT_NOTIFICATION_URI)\n// .setPriority(NotificationCompat.PRIORITY_HIGH)\n// ;\n\n Notification notification = null;\n if( message.charAt(0) == 'C' )\n {\n// Intent intent = new Intent(this, PayLater.class);\n Intent intent = new Intent(this, PayLaterTest.class);\n PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setVibrate(new long[0])// heads-up\n .addAction(R.drawable.user,\"Pay\",payInent)\n .setAutoCancel(true)\n .build();\n }\n else if( message.charAt(0) == 'G' )\n {\n //start activity go in\n Intent intent = new Intent(this, PayActivity.class);\n PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setVibrate(new long[0])// heads-up\n .addAction(R.drawable.user,\"Verify\",payInent)\n .setAutoCancel(true)\n .build();\n }\n else if( message.charAt(0) == 'I' )\n {\n //start activity invalid slot\n// Intent intent = new Intent(this, PayActivity.class);\n\n// PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setAutoCancel(true)\n .setVibrate(new long[0])// heads-up\n // .addAction(R.drawable.user,\"Verify\",payInent)\n .build();\n }\n\n m = (NotificationManager) getSystemService(getApplicationContext().NOTIFICATION_SERVICE);;\n m.notify(999,notification);\n // m.cancel(999);\n }", "@Override\n\tprotected void onHandleIntent(final Intent intent) {\n\t\ttimeFromNow = intent.getExtras().getFloat(\"timeFromNow\");\n\t\tLog.i(\"LocalNotification\", \"scheduleNotification -> timeFromNow: \" + timeFromNow);\n \tTimer t = new Timer(); \n\t\tTimerTask task = new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() { \n\t\t\t\tcreateNotif(intent);\n\t\t\t}\n\t\t};\n\t\tt.schedule(task, (long) (timeFromNow*1000));\n\t}", "@SuppressWarnings(\"deprecation\")\n\tprivate Notification makeNotification(){\n \tNotification notice = new Notification(R.drawable.ic_action_about, \n \t\t\tgetString(R.string.notice_ticker), System.currentTimeMillis());\n \tnotice.setLatestEventInfo(this, getString(R.string.notice_title), getString(R.string.notice_content), \n \t\t\tPendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class).\n \t\t\t\t\tsetFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP), 0));\n\n \tnotice.flags |= Notification.FLAG_NO_CLEAR;\n \t\n \treturn notice;\n\n }", "public static void scheduleReminderNow(Context ct,ContentValues itemData){\r\n //Building the intent\r\n ComponentName cpnName=new ComponentName(ct, ReminderService.class);\r\n //Send the new item information to the service\r\n PersistableBundle persitBundle=DataConvertingHelper.ToPersitable.fromContentValue(itemData);\r\n //Create a Notification with id of the item\r\n JobInfo.Builder jobInfoBuilder=new JobInfo.Builder(itemData.getAsInteger(dtbConst.ITEM_TABLE_COLS[0]),cpnName);\r\n jobInfoBuilder\r\n .setMinimumLatency(0)\r\n .setOverrideDeadline(0)\r\n .setPersisted(true)\r\n .setExtras(persitBundle);\r\n JobInfo jobinfo=jobInfoBuilder.build();\r\n JobScheduler scheduler=(JobScheduler)ct.getSystemService(Context.JOB_SCHEDULER_SERVICE);\r\n scheduler.schedule(jobinfo);\r\n }", "public void FlagupdateAssociateMaster(String flag) {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(FLAG, flag); // Name\n\n db.update(TABLE_ASSOCIATE_MASTER, values, null, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n\n }", "private static void createNotification(Activity a, CustomFBProfile prof) {\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(a)\n .setSmallIcon(R.drawable.acba)\n .setContentTitle(\"New Message\")\n .setTicker(\"New Message!!\");\n NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle();\n mBuilder.setStyle(inboxStyle);\n mBuilder.setVibrate(new long[]{2000, 500, 500, 250});\n mBuilder.setLights(Color.YELLOW, 3000, 3000);\n mBuilder.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));\n mBuilder.setAutoCancel(true);\n\n// Creates an explicit intent for an Activity in your app\n Intent resultIntent = new Intent(a, LoginActivity.class);\n\n// The stack builder object will contain an artificial back stack for the\n// started Activity.\n// This ensures that navigating backward from the Activity leads out of\n// your application to the Home screen.\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(a);\n// Adds the back stack for the Intent (but not the Intent itself)\n stackBuilder.addParentStack(LoginActivity.class);\n// Adds the Intent that starts the Activity to the top of the stack\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager =\n (NotificationManager) a.getSystemService(Context.NOTIFICATION_SERVICE);\n// mId allows you to update the notification later on.\n mNotificationManager.notify(1, mBuilder.build());\n }", "protected static NotificationCompat.Builder build(final Context context,\n final String text, Intent notificationIntent) {\n final Resources res = context.getResources();\n String title = res.getString(R.string.app_name);\n\n PendingIntent intentOpen = PendingIntent.getActivity(\n context,\n 0,\n notificationIntent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n final NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setSmallIcon(R.drawable.ic_stopwatch)\n .setContentTitle(title)\n .setContentText(text)\n .setPriority(NotificationCompat.PRIORITY_MAX)\n .setOngoing(true)\n .setOnlyAlertOnce(true)\n .setWhen(0)\n .setShowWhen(false)\n .setUsesChronometer(true)\n .setContentIntent(intentOpen)\n .setAutoCancel(false);\n\n return builder;\n }", "public static Intent createIntent(Context context, Order order) {\n\t\tIntent intent = new Intent(context, TicketActivity.class);\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tintent.putExtra(TarrifActivity.TICKET_CONTIANS_ORDER_SERIALIZABLE_KEY,\n\t\t\t\torder);\n\t\treturn intent;\n\t}", "private void sendNotification(String notificationDetails)\r\n {\n NotificationManager notificationManager =\r\n (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);\r\n\r\n // 2. Create a PendingIntent for AllGeofencesActivity\r\n Intent intent = new Intent(this, MainActivity.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n PendingIntent pendingNotificationIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n // 3. Create and send a notification\r\n Notification notification = new NotificationCompat.Builder(this)\r\n .setSmallIcon(R.mipmap.ic_launcher)\r\n .setContentTitle(\"notification,\")\r\n .setContentText(notificationDetails)\r\n .setContentIntent(pendingNotificationIntent)\r\n .setStyle(new NotificationCompat.BigTextStyle().bigText(notificationDetails))\r\n .setPriority(NotificationCompat.PRIORITY_HIGH)\r\n .setAutoCancel(true)\r\n .build();\r\n notificationManager.notify(0, notification);\r\n\r\n\r\n\r\n\r\n }", "private Intent m34056c(Context context) {\n Intent intent = new Intent(\"miui.intent.action.APP_PERM_EDITOR\");\n intent.putExtra(\"extra_pkgname\", context.getPackageName());\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.miui.securitycenter\", \"com.miui.permcenter.permissions.AppPermissionsEditorActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }" ]
[ "0.6233886", "0.5746514", "0.5717594", "0.5715869", "0.57023364", "0.56968147", "0.56238025", "0.56103307", "0.5570808", "0.55276185", "0.5450121", "0.5440594", "0.5438754", "0.5423683", "0.5400621", "0.5394771", "0.5366391", "0.5361076", "0.5358631", "0.534443", "0.5316321", "0.5300899", "0.52986413", "0.5254297", "0.5250576", "0.523197", "0.5226295", "0.5189798", "0.51790965", "0.5171333", "0.51679957", "0.5165915", "0.5155808", "0.51308024", "0.5117062", "0.51097244", "0.5101085", "0.5094", "0.5092925", "0.5080406", "0.5069763", "0.5066316", "0.50254625", "0.5017161", "0.5015206", "0.5014401", "0.50106883", "0.5009714", "0.5007376", "0.49998143", "0.49980882", "0.49931577", "0.49766576", "0.49731955", "0.49717653", "0.49674675", "0.49659258", "0.49388832", "0.49335545", "0.49324632", "0.49251294", "0.49143085", "0.49140227", "0.4912778", "0.49091268", "0.49080208", "0.4900878", "0.48965648", "0.48921883", "0.4887918", "0.48836917", "0.48836398", "0.48817217", "0.48765236", "0.48644945", "0.48600498", "0.48583007", "0.48545784", "0.48337618", "0.4830426", "0.4825116", "0.48187456", "0.48142412", "0.48135373", "0.4810628", "0.48073608", "0.4796033", "0.4781621", "0.47814447", "0.47764653", "0.47729546", "0.47721508", "0.47630173", "0.47515595", "0.47508112", "0.4750097", "0.47470313", "0.4746863", "0.4745961", "0.47458303", "0.47434512" ]
0.0
-1
The intent data to pass to the Activity launched by this PendingIntent
public final native void setIntent(Intent value) /*-{ var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(); jso.intent = value.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}", "private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }", "private void getIntentData() {\n\t\ttry{\n\t\t\tIN_CATEGORYID = getIntent().getStringExtra(CATEGORY_ID) == null ? \"0\" : getIntent().getStringExtra(CATEGORY_ID);\n\t\t\tIN_ARTICLENAME = getIntent().getStringExtra(ARTICLENAME) == null ? \"\" : getIntent().getStringExtra(ARTICLENAME) ;\n\t\t\tIN_ARTICLEID = getIntent().getStringExtra(ARTICLEID) == null ? \"\" : getIntent().getStringExtra(ARTICLEID);\n\t\t}catch(Exception e){\n\t\t}\n\t}", "private void getIntentData() {\n if (getIntent() != null) {\n destinationLat = getIntent().getDoubleExtra(\"destinationLat\", 48.893478);\n destinationLng = getIntent().getDoubleExtra(\"destinationLng\", 2.334595);\n }\n }", "private void getIntentData() {\r\n if (getIntent() != null && getIntent().getExtras() != null) {\r\n // Handling intent data from DirectoryDetailsActivity class\r\n if (Constant.ALBUM_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n position = getIntent().getIntExtra(Constant.POSITION, 0);\r\n nameKey = getIntent().getStringExtra(Constant.KEY_NAME);\r\n } else if (Constant.LIST_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else if (Constant.SECURE_TAB.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else {\r\n // Handling other intent data like camera intent\r\n Uri uri = getIntent().getData();\r\n GalleryHelper.getImageFolderMap(this);\r\n File file = new File(getRealPathFromURI(uri));\r\n nameKey = FileUtils.getParentName(file.getParent());\r\n GalleryHelperBaseOnId.getMediaFilesOnIdBasis(this, GalleryHelper.imageFolderMap.get(nameKey).get(0).getBucketId());\r\n }\r\n }\r\n }", "public PendingIntent getLaunchPendingIntent() {\n }", "private PendingIntent getNotificationIntent() {\n Intent resultIntent = new Intent(this, ScheduleNotificationActivity.class);\n // Because clicking the notification opens a new (\"special\") activity, there's\n // no need to create an artificial back stack.\n return PendingIntent.getActivity(\n this,\n 0,\n resultIntent,\n PendingIntent.FLAG_ONE_SHOT\n );\n }", "public void getintent() {\n Intent intent = this.getIntent();\n acceptDetailsModel = (AcceptDetailsModel) intent.getSerializableExtra(\"menu_item\");\n }", "void getBundleData(Intent intent);", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "private Order getIntentData(Intent intent) {\n\t\treturn intent != null ? (Order) intent\n\t\t\t\t.getSerializableExtra(TarrifActivity.TICKET_CONTIANS_ORDER_SERIALIZABLE_KEY)\n\t\t\t\t: null;\n\t}", "private void getDataFromIntent() {\n\t\tfinal Intent intent = getIntent();\n\t\tdata.setmUsername(intent.getStringExtra(Constants.PARAM_USERNAME));\n\t\tdata.setmPassword(intent.getStringExtra(Constants.PARAM_PASSWORD));\n\t\tdata.setmHost(intent.getStringExtra(Constants.PARAM_HOST));\n\t\tdata.setmPort(intent.getIntExtra(Constants.PARAM_PORT, 389));\n\t\tdata.setmEncryption(intent.getIntExtra(Constants.PARAM_ENCRYPTION, 0));\n\t\tdata.setmRequestNewAccount((data.getmUsername() == null));\n\t\tdata.setmConfirmCredentials(intent.getBooleanExtra(Constants.PARAM_CONFIRMCREDENTIALS, false));\n\t}", "public Intent getTrackedIntent(){\n Intent trackedIntent = new Intent(context, PPOpenTrackerActivity.class);\n trackedIntent.putExtra(PushPrime.NOTIFICATION, this);\n return trackedIntent;\n }", "private void setUpNotification() {\n if (getIntent().getExtras() != null) {\n for (String key : getIntent().getExtras().keySet()) {\n Object value = getIntent().getExtras().get(key);\n Logger.e(\"Key: \" + key + \" Value: \" + value);\n\n if(key.equals(\"Key\")) {\n try {\n String idStr = String.valueOf(value);\n int id = Integer.parseInt(idStr);\n onOpenJobItem(id);\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n }\n }\n // [END handle_data_extras]\n }", "private void BundleData(Intent intent) {\n bundle=new Bundle();\n bundle.putString(\"FNAME\",fname);\n bundle.putString(\"LNAME\",lname);\n bundle.putString(\"LOCALITY\",locality);\n bundle.putString(\"CITY\",city);\n bundle.putInt(\"PINCODE\",pincode);\n bundle.putString(\"TIME_TO_CALL\",timers);\n bundle.putString(\"PHONE\",phone);\n bundle.putString(\"ALTPHONE\",altphone);\n bundle.putString(\"EMAIL\",emailid);\n intent.putExtras(bundle);\n }", "public Intent getIntent() {\n return mIntent;\n }", "public Intent getIntent() {\n return mIntent;\n }", "private PendingIntent buildAlarmPendingIntent() {\n Intent intent = new Intent(this, NotificationReceiver.class);\n intent.setAction(NotificationReceiver.ACTION_SEND_NOTIFICATIONS);\n\n return PendingIntent.getBroadcast(this,\n 0,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n }", "private PendingIntent getPendingIntent() {\n Intent intent = new Intent(mContext, GeoFenceBroadcastReceiver.class);\n intent.setAction(GeoFenceBroadcastReceiver.ACTION_PROCESS_LOCATION);\n return PendingIntent.getBroadcast(mContext,0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n }", "private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "private void receiveData()\n {\n Intent i = getIntent();\n loginStatus = i.getIntExtra(\"Login_Status\", 0);\n deviceStatus = i.getIntExtra(\"Device_Status\", 0);\n }", "public PendingIntent getRequestPendingIntent() {\n return createRequestPendingIntent();\n }", "@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }", "public Intent getActivityIntent() {\n Intent intent = new Intent(this.context, InterstitialActivity.class);\n intent.setFlags(268435456);\n intent.addFlags(67108864);\n intent.putExtra(\"id\", getPlacementID());\n if (this.setAutoPlay) {\n intent.putExtra(\"auto_play\", this.autoPlay);\n }\n if (this.setCanClose) {\n intent.putExtra(\"can_close\", isBackButtonCanClose());\n }\n if (this.setMute) {\n intent.putExtra(\"mute\", getMute());\n }\n intent.putExtra(\"cat\", getCategories());\n intent.putExtra(\"pbk\", getPostback());\n intent.putExtra(\"b_color\", getButtonColor());\n intent.putExtra(\"skip_title\", getSkipText());\n intent.putExtra(\"creative\", getCreative());\n return intent;\n }", "public void prepare_intent(int requestCode, long invoking_id){\n Intent intent = new Intent(BilansView.this, BilansAdd.class);\n\n if (invoking_id > 0) {\n HashMap<String, String> map = GetItem(invoking_id);\n intent.putExtra(\"item_id\", invoking_id);\n String timestamp[] = map.get(\"data\").split(\" \");\n intent.putExtra(\"data\", timestamp[0]);\n intent.putExtra(\"time\", timestamp[1]);\n intent.putExtra(\"tytul\", map.get(\"tytul\"));\n } else {\n intent.putExtra(\"data\", Utils.datenow());\n intent.putExtra(\"time\", Utils.timenow());\n intent.putExtra(\"amount\", \"\");\n }\n startActivityForResult(intent, requestCode);\n }", "void getData() {\n Intent intent = this.getIntent();\n /* Obtain String from Intent */\n Sname = intent.getExtras().getString(\"name\");\n Sbloodbank = intent.getExtras().getString(\"bloodbank\");\n Sbranch = intent.getExtras().getString(\"branch\");\n Sdate = intent.getExtras().getString(\"date\");\n Stime = intent.getExtras().getString(\"time\");\n Sphone = intent.getExtras().getString(\"phone\");\n Log.d(\"userDetails received\", Sname + \",\" + Sphone ); //Don't ignore errors!\n }", "PendingIntent mo732d() throws RemoteException;", "private PendingIntent notificationContentIntent() {\n Intent intent = new Intent(packageContext, AlertDialog.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n return PendingIntent.getActivity(packageContext, 0, intent, 0);\n }", "@Override\n protected void getFromIntent() {\n this.groupID = getIntent().getStringExtra(\"groupId\");\n this.groupName = getIntent().getStringExtra(\"groupName\");\n }", "public Intent getRequestIntent() {\n return requestIntent;\n }", "static /* synthetic */ byte[] m10276k(Intent intent) {\n if (intent == null) {\n return null;\n }\n Parcel obtain = Parcel.obtain();\n obtain.setDataPosition(0);\n intent.writeToParcel(obtain, 0);\n byte[] marshall = obtain.marshall();\n obtain.recycle();\n return marshall;\n }", "private void sendIntent(Alarm alarm, String intentType) {\n // intent1 to send to AlarmReceiver\n Intent intent1 = new Intent(AlarmsetActivity.this, AlarmReceiver.class);\n // put intent type Constants.ADD_INTENT or Constants.OFF_INTENT\n intent1.putExtra(\"intentType\", intentType);\n // put alarm'id to compare with pendingIntent'id in AlarmService\n intent1.putExtra(\"AlarmId\", (int) alarm.getId());\n intent1.putExtra(\"task\", alarm.getAlarm_Name());\n // this sent broadCast right a way\n sendBroadcast(intent1);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), StartActivityReceiver.class);\n intent.putExtra(\"zjf\", \"123\");\n sendBroadcast(intent);\n }", "@Override\n\tprotected void obtainIntentValue() {\n\n\t}", "private PendingIntent openActivityPendingIntent(Context context) {\n Intent intent = new Intent(context, MainActivity.class);\n return PendingIntent.getActivity(context, 0, intent, 0);\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n String payload = new String(msg.getRecords()[0].getPayload());\n Toast.makeText(this, payload, Toast.LENGTH_LONG).show();\n Log.i(TAG, payload);\n }", "public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }", "public Intent getIntent() {\n return mInviteIntent;\n }", "void mo21580A(Intent intent);", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }", "@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }", "interface TaskStackBuilderImpl {\n PendingIntent getPendingIntent(Context context, Intent[] intentArr, int i, int i2, Bundle bundle);\n }", "protected abstract Intent getIntent();", "@Override\n protected void onHandleIntent(Intent intent) {\n\t Log.i(TAG,\"Alarm Service has started.\");\n Context context = this.getApplicationContext();\n notificationManager = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);\n Intent mIntent = new Intent(this, MainActivity.class);\n Bundle bundle = new Bundle(); \n bundle.putString(\"test\", \"test\");\n mIntent.putExtras(bundle);\n\t\tpendingIntent = PendingIntent.getActivity(context, 0, mIntent, PendingIntent.FLAG_UPDATE_CURRENT); \n\t\t\n\t\tResources res = this.getResources();\n\t\tNotificationCompat.Builder builder = new NotificationCompat.Builder(this);\n\n\t\tbuilder.setContentIntent(pendingIntent)\n\t\t .setSmallIcon(R.drawable.ic_launcher)\n\t\t .setLargeIcon(BitmapFactory.decodeResource(res, R.drawable.ic_launcher))\n\t\t .setTicker(res.getString(R.string.notification_title))\n\t\t .setAutoCancel(true)\n\t\t .setContentTitle(res.getString(R.string.notification_title))\n\t\t .setContentText(res.getString(R.string.notification_subject));\n\n\t\tnotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);\n\t\tnotificationManager.notify(NOTIFICATION_ID, builder.build());\n\t\tLog.i(TAG,\"Notifications sent.\");\n\t\tMyAlarm app = (MyAlarm)getApplicationContext();\n\t\tapp.incrementCount();\n\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "private PendingIntent getPendingSelfIntent(Context context, String action) {\n Intent intent = new Intent(context, getClass());\n intent.setAction(action);\n return PendingIntent.getBroadcast(context, 0, intent, 0);\n }", "public String data() {\n\t\tBundle bundle = this.getIntent().getExtras();\n\t\t// ii == 從 schedule_id取得的專案ID\n\t\tii = bundle.getString(\"id\");\n\t\tLog.d(\"data\", ii);\n\t\treturn ii;\n\t}", "private PendingIntent buildPendingIntent(Activity activity){\n\n Intent intent = new Intent(activity, InitializationActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(activity,\n 0, intent, 0);\n\n return pendingIntent;\n }", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "private void getDataFromIntent(Intent intent) {\n panAadharCardDetail = intent.getParcelableExtra(\"panAadharDetail\");\n card_type = intent.getIntExtra(\"card_type\", 0);\n imageFileUri = intent.getStringExtra(\"imageFile\");\n }", "@Override\n protected void onHandleIntent(Intent workIntent) {\n String dataString = workIntent.getDataString();\n\tif(null == dataString) {\n\t\tLog.i(\"BluetoothEventService\", dataString);\n\t}\n// ...\n // Do work here, based on the contents of dataString\n// ...\n }", "@Override\n protected void onHandleIntent(Intent workIntent) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Bundle extras = intent.getExtras();\n int requestCode = extras.getInt(\"REQUEST_CODE\", 1); // vadimo request code podatak iz intenta\n String opis = extras.getString(\"opis\"); // vadimo podatak opisa iz intent\n\n intent = new Intent(context, LoginActivity.class); // kreiraj intent i dostavi ga u LoginActivity\n PendingIntent contentIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); // kreiranje pending intenta\n\n //kreiranje sadrzaja norifikacije\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context);\n builder.setAutoCancel(true) // kada kliknemo na notifikaciju da nestane\n .setWhen(System.currentTimeMillis()) // prikazi ju odma\n .setSmallIcon(R.drawable.notification) // setaj ikonu\n .setContentTitle(\"Vau Vau\") // setaj title\n .setContentText(opis) // setaj opis\n .setDefaults(Notification.DEFAULT_SOUND) // dodan zvuk\n .setContentIntent(contentIntent) // stavlja pending intent da ceka na klik pa ce otvorit home Activity\n .setContentInfo(\"\"); // seta \"\" na content info\n // geta Notification manager is OS-a\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n // obavjstava notification manager o notifikaciji\n notificationManager.notify(requestCode, builder.build());\n\n }", "public void onIntentReceived(final String payload) {\n }", "private PendingIntent pendingIntentForNotification() {\n Intent intent = new Intent(getActivity(), MainActivity.class);\n\n //Add any extras (in this case, that you want to relaunch this fragment)\n intent.putExtra(MainActivity.EXTRA_FRAGMENT_TO_LAUNCH, MainActivity.TAG_NOTIFICATION_FRAGMENT);\n\n //This will hold the intent you've created until the notification is tapped.\n PendingIntent pendingIntent = PendingIntent.getActivity(getActivity(), 1, intent, 0);\n return pendingIntent;\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(NOTE_ACTION)) {\n remark = intent.getStringExtra(\"remark\");\n updataNote();\n }\n }", "String getExtra();", "private void getIntentAndDisplayData(Intent i) {\n\t\t\tif (!isCancelled()) {\n\t\t\t\tforumTopicID = i.getStringExtra(\"topicID\");\n\t\t\t\tuserID = i.getStringExtra(\"userID\");\n\t\t\t\tgetDataFromServer(forumTopicID);\n\t\t\t}\n\t\t}", "private void sendEntryDataBroadcast() {\n Log.v(TAG, recordingEntry + \" == recordingENtry\");\n Intent i = new Intent();\n i.setAction(IntentFilterNames.ENTRY_DATA_RECEIVED);\n i.putExtra(IntentFilterNames.ENTRY_DATA, journalEntryController.getEntry());\n sendBroadcast(i);\n }", "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }", "private void getIntentDataAndSetTextView() {\n\t\tBundle bagObtained= this.getIntent().getExtras();\r\n\t\tlong startTime= bagObtained.getLong(\"startTime\");\r\n\t\tlong endTime= bagObtained.getLong(\"endTime\");\r\n\t\t\r\n\t\t\r\n\t\tString callingNumber=bagObtained.getString(\"callingNumber\");\r\n\t\t\r\n\t\t\r\n\t\tString calltype=bagObtained.getString(\"status\");\r\n\t\t\r\n\t\tCalendar mycal= Calendar.getInstance();\r\n\t\tmycal.setTimeInMillis(startTime);\r\n\t\tDate callTiming=mycal.getTime();\r\n\t\t\r\n\t\t\r\n\t\tdouble callduration= (endTime-startTime)/1000;\t\t//this is in milliseconds so conversion needed\r\n\t\t@SuppressWarnings(\"deprecation\")\r\n\t\tString calltime=callTiming.getHours() + \" \"+callTiming.getMinutes() ;\r\n\t\t@SuppressWarnings(\"deprecation\")\r\n//LOGIC\r\n\t\t//getyear() brings the count starting from 1900, getMonth() brings 0 indexed months\r\n\t\t\r\n\t\tString calldate=callTiming.getYear()+1900 + \" \"+((int) callTiming.getMonth()+1) + \" \"+callTiming.getDate();\r\n\t\t\r\n\t\tLog.d(\"checkpoint\",calldate);\r\n\t\tLog.d(\"checkpoint\",calltime);\r\n\t\t\r\n\t\ttvTimeShow.setText(callingNumber+\"(\"+calltype+\") called you at \"+mycal.getTime()+\"\\nTotal call time is: \"+callduration+\"seconds \\n StartTime was:::\"+startTime+\"\\n end time was::::\"+endTime);\r\n\t\t\r\n\t\t/*\r\n\t\t * What if we insert this information in the database and leave\r\n\t\t * This information is a one row and will take split second and hence we wont do much on the background too\r\n\t\t * \r\n\t\t * \r\n\t\t * We also need to check the logic for alerting the user at this point\r\n\t\t * if the alert has to be made then we need to set the pending intent and the notification at this point too\r\n\t\t */\r\n\t\t\r\n\t\tLocalDb ldb= new LocalDb(this.getApplicationContext());\r\n\t\tldb.insertCallDetail(callingNumber, calltime, calldate, calltype, callduration);\r\n\t\tldb.close();\r\n\t\t\r\n\t}", "void intentHasBeenReceivedThroughTheBroadCast(Intent intent);", "private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n NotificationChannel notificationChannel = new NotificationChannel(\"CHANNELID\", \"name\", NotificationManager.IMPORTANCE_HIGH );\n NotificationManager notificationManager = context.getSystemService(NotificationManager.class);\n\n notificationManager.createNotificationChannel(notificationChannel);\n\n Intent i = new Intent(context, DisplayMedication.class);\n\n // FIXME - hardcoded values\n i.putExtra(\"MedicationName\",\"Vicodin\" + \"\");\n i.putExtra(\"DoseAmount\",\"1\" + \"\");\n i.putExtra(\"HourlyFrequency\",\"2\" + \"\");\n i.putExtra(\"DaysBetweenDose\",\"7\" + \"\");\n /* <--- above this line ---> */\n\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context, \"CHANNELID\")\n .setSmallIcon(R.drawable.icon)\n .setContentTitle(\"Medication Time\")\n .setContentText(\"Time to take a medication\")\n .setPriority(NotificationManager.IMPORTANCE_HIGH)\n .setContentIntent(pendingIntent);\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context);\n notificationManagerCompat.notify(0, builder.build());\n\n\n }", "public static Bundle m3a(Intent intent) {\n return intent.getBundleExtra(\"al_applink_data\");\n }", "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\n\t\tString activityName = \"com.sonyericsson.media.infinite.EXTRA_ACTIVITY_NAME\";\n\n\t\tif (intent.getStringExtra(activityName) != null && intent.getStringExtra(activityName).equals(MusicPreferenceActivity.class.getName())) {\n\n\t\t\tBundle extras = new Bundle();\n\n\t\t\t// Build a URI for the string resource for the description text\n\t\t\tString description = new Uri.Builder().scheme(ContentResolver.SCHEME_ANDROID_RESOURCE).authority(context.getPackageName()).appendPath(Integer.toString(R.string.description)).build()\n\t\t\t\t\t.toString();\n\n\t\t\t// And return it to the infinite framework as an extra\n\t\t\textras.putString(\"com.sonyericsson.media.infinite.EXTRA_DESCRIPTION\", description);\n\t\t\tsetResultExtras(extras);\n\n\t\t}\n\t}", "private void buildIntent() {\n ReportLogic.report(this, \"POST\", mInfo.c_rpt, 0, null);\n Intent intent = new Intent();\n Bundle bundle = new Bundle();\n bundle.putString(PKG_NAME, mInfo.href);\n bundle.putString(APP_NAME, mInfo.name);\n intent.putExtra(DetailActivity.DETAIL, bundle);\n intent.setClass(this, DetailActivity.class);\n startActivity(intent);\n }", "public static Intent getIntent(Context context) {\n Intent intent = new Intent(context, WifiSchedulerDialog.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n return intent;\n }", "private Intent setIntentDataForActivities(int activity)\n {\n\t\tIntent i=new Intent();\n\t\tfor(int j=0;j<Name.length;j++)\n\t\t{\n\t\t Log.d(\"Data sent from DashBoard\", \"depName= \"+Designation[j]+ \" \"+\"realNumber= \"+extension[j]+\" \"+\"username= \"+Name[j]+\" \");\n\t\t}\n\t\tif(activity==0)\n\t\t{\n\t\t i = new Intent(this, EXT_Board.class);\n\t\t i.putExtra(\"Name\", Name);\n\t i.putExtra(\"Designation\", Designation);\n\t i.putExtra(\"Extension\",extension);\n\t \n\t\t}\n\t\telse if(activity==1)\n\t\t{\n\t\t\t i = new Intent(this, Dialer_main.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t \n\t\t}\n\t\telse if(activity==2)\n\t\t{\n\t\t\t i = new Intent(this, Settings_Password.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t \n\t\t}\n\t\telse if(activity==3)\n\t\t{\n\t\t\t i = new Intent(this, Settings_Call_Routingg.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t\n\t\t}\n\t\treturn i;\n }", "public void onIntentReceived(final String payload) {\n this.WriteLine(\"--- Intent received by onIntentReceived() ---\");\n this.WriteLine(payload);\n this.WriteLine();\n }", "@Override \n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent); \n \n initData();\n }", "private PendingIntent createRequestPendingIntent() {\n\n // If the PendingIntent already exists\n if (null != geofenceRequestIntent) {\n\n // Return the existing intent\n return geofenceRequestIntent;\n\n // If no PendingIntent exists\n } else {\n\n // Create an Intent pointing to the IntentService\n // TODO correct service?\n Intent intent = new Intent(activity, ReceiveTransitionsIntentService.class);\n /*\n * Return a PendingIntent to start the IntentService.\n * Always create a PendingIntent sent to Location Services\n * with FLAG_UPDATE_CURRENT, so that sending the PendingIntent\n * again updates the original. Otherwise, Location Services\n * can't match the PendingIntent to requests made with it.\n */\n return PendingIntent.getService(\n activity,\n 0,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n }\n }", "public NotificationCompat.Builder getChannel1Notification(String message){\n\n Intent confirmIntent = new Intent(this, Alarm2Activity.class); //can create an activity here that simply says \"Take med\"\n confirmIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n confirmIntent.setAction(YES_ACTION);\n\n Intent openAppIntent = new Intent(this, MedicineActivity.class); //can create an activity here that simply says \"Take med\"\n openAppIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n //processIntentAction(getIntent()); //where to put this???\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(getApplicationContext(), Channel1_ID)\n .setContentTitle(getString(R.string.med_notif_title))\n .setContentText(message)\n .setContentIntent(PendingIntent.getActivity(this, REQUEST_CODE, openAppIntent, PendingIntent.FLAG_UPDATE_CURRENT))\n .setSmallIcon(R.drawable.ic_blur_circular_black_24dp) //setLargeIcon as a picture of a pill\n .addAction(new NotificationCompat.Action(\n R.drawable.ic_blur_circular_black_24dp,\n getString(R.string.confirm_med_taken),\n PendingIntent.getActivity(this, REQUEST_CODE, confirmIntent, PendingIntent.FLAG_UPDATE_CURRENT)))\n .setCategory(NotificationCompat.CATEGORY_REMINDER)\n .setAutoCancel(true);\n //.setTimeOutAfter()\n //.setStyle(new NotificationCompat.BigTextStyle().bigText(context.getString(message)))\n //.setColor(ContextCompat.getColor(context, R.color.colorPrimary))\n //.setTimeOutAfter();\n\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && Build.VERSION.SDK_INT < Build.VERSION_CODES.O){\n notificationBuilder.setPriority(NotificationCompat.PRIORITY_HIGH);\n }\n\n return notificationBuilder;\n }", "com.google.cloud.dialogflow.cx.v3.Intent getIntent();", "private void extractDataFromBundle() {\n Intent intent = getIntent();\n Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY);\n\n mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY);\n mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainActivity.GAME_PIECE_KEY);\n\n }", "public static ParsedMwmRequest extractFromIntent(Intent data)\n {\n final ParsedMwmRequest request = new ParsedMwmRequest();\n\n request.mCallerInfo = data.getParcelableExtra(Const.EXTRA_CALLER_APP_INFO);\n request.mTitle = data.getStringExtra(Const.EXTRA_TITLE);\n request.mReturnOnBalloonClick = data.getBooleanExtra(Const.EXTRA_RETURN_ON_BALLOON_CLICK, false);\n request.mPickPoint = data.getBooleanExtra(Const.EXTRA_PICK_POINT, false);\n request.mCustomButtonName = data.getStringExtra(Const.EXTRA_CUSTOM_BUTTON_NAME);\n\n if (data.getBooleanExtra(Const.EXTRA_HAS_PENDING_INTENT, false))\n request.mPendingIntent = data.getParcelableExtra(Const.EXTRA_CALLER_PENDING_INTENT);\n\n return request;\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n SharedPreferences preferences = context.getSharedPreferences(SettingsActivity.prefFile,\n Context.MODE_PRIVATE);\n if (!preferences.getBoolean(SettingsActivity.notificationSetting, false))\n return;\n\n // Get intent data\n this.name = intent.getStringExtra(\"name\");\n this.dose = intent.getStringExtra(\"dose\");\n this.time = intent.getStringExtra(\"time\");\n\n //\n DBHelper db = new DBHelper(context);\n Map<String, String> idTimeMap = db.getIDTimeMap(this.name);\n\n // Medication notifications will have sound\n Uri sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n // Setting up intent, ad building the notification\n NotificationManager mNM = (NotificationManager) context.getSystemService(\n Context.NOTIFICATION_SERVICE);\n Intent intent1 = new Intent(context, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(\n context, NewMedActivity.pendingId++, intent1, 0);\n\n Notification notification = new Notification.Builder(context)\n .setContentTitle(this.time)\n .setContentText(String.format(\"%s %s.\",\n context.getText(R.string.nt_txt), this.name))\n .setSmallIcon(R.mipmap.fmn_app_icon_round)\n .setContentIntent(pendingIntent)\n .setAutoCancel(true)\n .build();\n\n // Sending the notification\n mNM.notify(NotifyService.notificationTag, Integer.parseInt(idTimeMap.get(this.time)),\n notification);\n }", "static PendingIntent getExplicitUpdatePendingIntent(Context context) {\n Intent intent = getExplicitUpdateIntent(context);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\n\n return pendingIntent;\n }", "private void setAlarmData(Intent intent) {\n if (mAlarmId == Constants.DEFAULT_ALARM_ID) {\n\n mAlarmId = intent.getIntExtra(Constants.EXTRA_ALARM_ID, Constants.DEFAULT_ALARM_ID);\n // factory view model is used for sending parameters to the view model in our case\n // with alarm entry id to make sure we have one entity on our viewModel\n DetailViewModelFactory factory = new DetailViewModelFactory(mDb, mAlarmId);\n mViewModel =\n ViewModelProviders.of(this, factory).get(DetailViewModel.class);\n\n // Observe changes in model in order to update UI\n mViewModel.getAlarm().observe(this, new Observer<AlarmEntry>() {\n @Override\n public void onChanged(@Nullable AlarmEntry alarmEntry) {\n mViewModel.getAlarm().removeObserver(this);\n if (alarmEntry == null) {\n return;\n }\n mAlarmId = alarmEntry.getId();\n mMapDestination =\n new MapDestination(alarmEntry.getLatitude(), alarmEntry.getLongitude(),\n alarmEntry.getLocation(), alarmEntry.getRadius());\n mAlarmRingtone = alarmEntry.getAlert() != null ? Uri.parse(alarmEntry.getAlert()) : null;\n\n // populate the UI\n populateUI(alarmEntry);\n }\n });\n }\n }", "public PendingIntent getActionIntent(NotificationEntry entry, NotificationEntry.Action act) {\n Intent intent = new Intent(ACTION_ACTION);\n intent.putExtra(KEY_ENTRY_ID, entry.ID);\n intent.putExtra(KEY_ACTION_ID, entry.mActions.indexOf(act));\n return PendingIntent.getBroadcast(mContext, genIdForPendingIntent(), intent, 0);\n }", "private PendingIntent getGeofencePendingIntent () {\n\n Intent intent = new Intent(this, GeofenceReceiver.class);\n // We use FLAG_UPDATE_CURRENT so that we get the same pending intent back when\n // calling addGeofences() and removeGeofences().\n return PendingIntent.getService(this, 0, intent, PendingIntent.\n FLAG_UPDATE_CURRENT);\n }", "@Override\n public void handleResult(Intent data) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n int mNotificationId = 001;\n\n // Gets an instance of the NotificationManager service\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, MainActivity.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent =\n PendingIntent.getActivity(\n context,\n 0,\n notificationIntent,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n\n String habit = intent.getExtras().getString(\"name\",\"streak\");\n\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(context)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"BAARD Habit Tracker\")\n .setContentText(\"Reminder to complete your \"+habit+\" habit! Don't lose your streak!\")\n .setAutoCancel(true)\n .setVibrate(new long[]{1000,1000})\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(\"Reminder to complete your \"+habit+\" habit! Don't lose your streak!\"))\n .setContentIntent(pendingIntent);\n Log.i(\"ALARM\", \"Receiver sending notification\");\n // Builds the notification and issues it.\n notificationManager.notify(mNotificationId, mNotifyBuilder.build());\n }", "com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder();", "@Override\n public void onReceive(Context context, Intent intent) {\n Alibi alibi = (Alibi) context.getApplicationContext();\n UserEventManager uem = alibi.getUserEventManager();\n UserEvent event = uem.getCurrentEvent();\n\n if (event == null) {\n Log.d(Alibi.TAG, \"ReminderAlarm: null current event\");\n return;\n }\n\n String msgNotify = getNotificationMessage(event);\n String msgToast = context.getString(R.string.reminder_title) + \"\\n\" +\n msgNotify + \" since \" + event.getNiceStartTime();\n\n setNotification(context, msgNotify);\n remind(context, msgToast);\n }", "@Override\n \tpublic void onReceive(Context context, Intent intent)\n \t{\n \tMediaInfoArtist = intent.getStringExtra(\"artist\");\n \tMediaInfoAlbum = intent.getStringExtra(\"album\");\n \tMediaInfoTrack = intent.getStringExtra(\"track\");\n \tMediaInfoNeedsUpdate = true;\n \tLog.d(\"OLV Music\",\"Artist: \"+MediaInfoArtist+\", Album: \"+MediaInfoAlbum+\" and Track: \"+MediaInfoTrack);\n \t}", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(EXTRA_FCM_MESSAGE);\n String dialogId = intent.getStringExtra(EXTRA_FCM_DIALOG_ID);\n Log.v(TAG, \"Received broadcast \" + intent.getAction() + \" with data: \" + message + \", dialogId= \" + dialogId);\n notificationDlgId = dialogId;\n requestBuilder.setSkip(skipRecords = 0);\n loadDialogsREST(true, true);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String taskName = intent.getStringExtra(\"taskName\");\n int order = intent.getIntExtra(\"order\",-1);\n Toast.makeText(work.this,taskName +\" \" ,Toast.LENGTH_SHORT).show();\n\n if(taskName != null)\n {\n Cursor data = myDB.getListContents();\n\n if(data.getCount() > 0)\n {\n if(order == 2)\n myDB.deleteTask(taskName);\n else if(order == 0)\n {\n myDB.updateTask(taskName,taskName,\"\",1,\"WORK\",\"ordinary\",\"Done\");\n }\n else\n {\n Intent transferIntent = new Intent(getBaseContext(), AddActivity.class );\n // whichActivity = \"WEEKEND\";\n\n //we need to transfer the task we want to edit now and change add Bt to save changes\n // transferIntent.putExtra(\"taskName\",taskName);\n\n while (data.moveToNext()) {\n if (data.getString(3).equals(whichActivity) && data.getString(1).equals(taskName)) {\n transferIntent.putExtra(\"taskName\",taskName);\n transferIntent.putExtra(\"description\",data.getString(2));\n transferIntent.putExtra(\"date\",data.getString(4));\n }\n }\n // transferIntent.putExtra(\"taskName\",taskName);\n startActivity(transferIntent);\n }\n\n\n loadData();\n }\n }\n }", "private void showIntentInfo(Intent intent, TextView textView){\n StringBuilder infoBuilder = new StringBuilder();\n String action = intent.getAction();\n infoBuilder.append(\"Action=\");\n infoBuilder.append(action != null ? action : \"** NO Action **\");\n infoBuilder.append(\"\\n\");\n\n Bundle extras = intent.getExtras();\n if(extras == null){\n infoBuilder.append(\"** NO Extras **\");\n } else {\n infoBuilder.append(\"** Extras **\\n\");\n Set<String> keySet = extras.keySet();\n for(String key : keySet) {\n String value = extras.get(key).toString();\n infoBuilder.append(key);\n infoBuilder.append(\"=\");\n infoBuilder.append(value);\n infoBuilder.append(\"\\n\");\n }\n }\n textView.setText(infoBuilder.toString());\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n\n Bundle extras = intent.getExtras();\n String action = intent.getAction();\n\n Log.i(\"Bundle extras\" ,\"\"+extras);\n Log.i(\"Bundle action\" ,\"\"+action);\n\n\n if (AppConstant.YES_ACTION.equals(action)) {\n if (extras != null) {\n\n notificationId = extras.getInt(\"NotificationId\");\n visitorID = extras.getInt(\"visitor\");\n empID = extras.getInt(\"empID\");\n date_video =extras.getString(\"date\");\n Log.i(\"DownloadT Date\",\"\"+date_video);\n date_end=extras.getLong(\"end_date_time\");\n Log.i(\"DownloadT end Date\",\"\"+date_end);\n token = extras.getString(\"token\");\n Log.i(\"fs\", \"onReceive: \"+token);\n contentInfos=new ArrayList<>();\n\n\n contentTitle=extras.getString(\"Content_Title\");\n contentType=extras.getString(\"Content_Type\");\n contentYear=extras.getInt(\"Content_Year\");\n contentRating=extras.getString(\"Content_Rating\");\n contentViewCount=extras.getString(\"Content_ViewCount\");\n contentBannerImage=extras.getString(\"Content_BannerImage\");\n//\n Log.i(\"DownloadT ContentTitle\",\"\"+contentTitle);\n Log.i(\"DownloadT ContentType\",\"\"+contentType);\n Log.i(\"DownloadT ContentYear\",\"\"+contentYear);\n Log.i(\"DownloadT ContentRating\",\"\"+contentRating);\n Log.i(\"DownloadT Contentcount\",\"\"+contentViewCount);\n Log.i(\"DownloadT ContentImg\",\"\"+contentBannerImage);\n\n\n\n\n\n }\n }\n\n }", "protected JSONObject parseNotificationIntent(Intent intent) {\n\t\tJSONObject result = null;\n\t\tif (intent != null && intent.hasExtra(Notificare.INTENT_EXTRA_NOTIFICATION)) {\n\t\t\tLog.d(TAG, \"Launched with Notification\");\n\t\t\ttry {\n\t\t\t\tNotificareNotification notification = intent.getParcelableExtra(Notificare.INTENT_EXTRA_NOTIFICATION);\n\t\t\t\tresult = notification.toJSONObject();\n\t\t\t\tif (intent.hasExtra(Notificare.INTENT_EXTRA_INBOX_ITEM_ID)) {\n\t\t\t\t\tresult.put(\"itemId\", intent.getStringExtra(Notificare.INTENT_EXTRA_INBOX_ITEM_ID));\n\t\t\t\t}\n\t\t\t\tresult.put(\"foreground\", false);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tLog.w(TAG, \"JSON parse error\");\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.e(\"BROADCAST GOT\", intent.toString());\r\n\r\n Intent startLoginScreen = new Intent(context, MainActivity.class);\r\n Bundle b = intent.getExtras();\r\n if (b != null && !b.isEmpty())\r\n startLoginScreen.putExtras(b);\r\n\r\n startLoginScreen.putExtra(\"request\", intent.getAction());\r\n\r\n context.startActivity(startLoginScreen);\r\n\r\n }", "public Intent putIntentToNext(){\n Intent myTobaccoIntent = new Intent(getApplicationContext(), LoginActivity.class);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_DEVICE_ADDRESS, deviceAddress);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_SERVER_IP, ipAddress);\n return myTobaccoIntent;\n }", "public static void packageIntent(Intent intent, String json) {\n\n intent.putExtra(JSON, json);\n\n }", "private void logPushExtras(Intent intent) {\n Set<String> keys = intent.getExtras().keySet();\n for (String key : keys) {\n\n // ignore standard C2DM extra keys\n List<String> ignoredKeys = (List<String>) Arrays.asList(\n \"collapse_key\",// c2dm collapse key\n \"from\",// c2dm sender\n PushManager.EXTRA_NOTIFICATION_ID,// int id of generated notification (ACTION_PUSH_RECEIVED only)\n PushManager.EXTRA_PUSH_ID,// internal UA push id\n PushManager.EXTRA_ALERT);// ignore alert\n if (ignoredKeys.contains(key)) {\n continue;\n }\n Log.i(logTag,\n \"Push Notification Extra: [\" + key + \" : \"\n + intent.getStringExtra(key) + \"]\"\n );\n }\n }", "private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(SpecialAttentionActivity.this, AddAttentionActivity.class);\n intent.putExtra(Navigator.EXTRA_ROUTER_ID, GlobleConstant.getgDeviceId());\n intent.putExtra(\"AleadyAttentioned\", (Serializable) mAttentionList);\n startActivityForResult(intent, REQUEST_ADD_ATTENTION);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }" ]
[ "0.6662467", "0.6577014", "0.6558353", "0.65094984", "0.65092045", "0.63289946", "0.6244864", "0.62408775", "0.623173", "0.6212979", "0.61537975", "0.6069906", "0.60285", "0.5988063", "0.59669155", "0.59297365", "0.5920199", "0.59157413", "0.5909075", "0.59033805", "0.58925253", "0.58509576", "0.58244544", "0.5795074", "0.57379764", "0.5711408", "0.57023174", "0.5698421", "0.566966", "0.564704", "0.5637728", "0.5630746", "0.56268305", "0.56124836", "0.5594588", "0.55858874", "0.55751985", "0.55713385", "0.555907", "0.5558788", "0.55499625", "0.55266494", "0.55042684", "0.5503936", "0.5492478", "0.54877645", "0.5477362", "0.54711217", "0.5470499", "0.5469617", "0.54682463", "0.5464319", "0.5463774", "0.54332054", "0.5415483", "0.5408925", "0.54015195", "0.5397717", "0.53935015", "0.5392461", "0.53911763", "0.538622", "0.5386214", "0.53853923", "0.5376957", "0.537575", "0.53613013", "0.5349309", "0.534702", "0.5342466", "0.5341879", "0.5333192", "0.5330049", "0.53265333", "0.5316594", "0.5310512", "0.53081334", "0.52828556", "0.527842", "0.5265352", "0.52590835", "0.5254958", "0.525476", "0.5252322", "0.52474904", "0.52381015", "0.52340287", "0.5230232", "0.523009", "0.52281916", "0.5224836", "0.5218113", "0.52020943", "0.5195639", "0.5193625", "0.5191279", "0.51877874", "0.5187642", "0.5184544", "0.51835835", "0.51835835" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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
Method to setup view pager to the activity
private void setUpViewPager() { ViewPagerAdapter viewPagerAdapter = new ViewPagerAdapter(getSupportFragmentManager(), this); mViewPager.setAdapter(viewPagerAdapter); mTabLayout.setupWithViewPager(mViewPager); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupPager() {\n SectionsPagerAdapter pagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager(), getResources());\n ViewPager pager = findViewById(R.id.pager);\n pager.setAdapter(pagerAdapter);\n TabLayout tabLayout = findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(pager);\n pager.addOnPageChangeListener(addPageChangeListener());\n }", "public void setupView() {\n PagerAdapter mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(mPagerAdapter);\n viewPager.setCurrentItem(0);\n\n }", "private void initViewPager() {\n }", "private void setupViewPager() {\n // Get the ViewPager and set it's PagerAdapter so that it can display items\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n fragmentAdapter = new LovesPagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(fragmentAdapter);\n\n // Give the PagerSlidingTabStrip the ViewPager\n tabsStrip = (PagerSlidingTabStrip) findViewById(R.id.tabs);\n // Attach the view pager to the tab strip\n tabsStrip.setViewPager(viewPager);\n }", "protected void initializeViewPager(){\n //get ViewPager component\n initializeViewPager(DEFAULT_VIEW_PAGER_ID);\n }", "private void setupViewPager(ViewPager viewPager, Bundle savedInstanceState) {\n adapter = new Adapter(getSupportFragmentManager());\n\n adapter.addFragment(new EventDescription(), \"Descrizione\");\n adapter.addFragment(new JoinersList(), \"Partecipanti\");\n adapter.addFragment(new Contacts(), \"Contatti\");\n viewPager.setAdapter(adapter);\n\n\n }", "private void initializePager() {\n\t\tmViewPager = (ViewPager) root.findViewById(R.id.pager);\r\n\t\t// Create the adapter that will return a fragment for each of the three\r\n\t\t// primary sections of the app.\r\n\t\tthis.mSectionAdapter = new SectionAdapter(getSupportFragmentManager(),\r\n\t\t\t\tthis, mViewPager);\r\n\t\tmViewPager.setAdapter(mSectionAdapter);\r\n\t\tmViewPager.setOnPageChangeListener(new OnPageChangeListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageSelected(int arg0) {\r\n\t\t\t\t// Configurations.getConfigs().setAdapterSection(arg0);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tmViewPager.setOffscreenPageLimit(6);\r\n\t}", "private void setupViewPager(ViewPager viewPager) {\n LunchActivity_ViewPageAdapter adapter = new LunchActivity_ViewPageAdapter(getSupportFragmentManager());\n adapter.addFragment(new LunchActivity_Tab_One(), \"Elementary School\");\n adapter.addFragment(new LunchActivity_Tab_Two(), \"Middle School\");\n adapter.addFragment(new LunchActivity_Tab_Three(), \"High School\");\n\n\n viewPager.setAdapter(adapter);\n\n }", "private void setupViewPager(ViewPager viewpager){\n pokearticle.ViewPagerAdapter adapter = new pokearticle.ViewPagerAdapter(\n getSupportFragmentManager());\n if(tab2 == null && tab3 == null){\n tab1 = new TabActivity1();\n tab2 = new TabActivity2();\n tab3 = new TabActivity3();\n\n setupTab1();\n setupTab2();\n setupTab3();\n\n }\n else if(tab3==null){\n setupTab3();\n }\n\n\n adapter.addFragment(tab1, \"Stats\");\n adapter.addFragment(tab2, \"Overview\");\n adapter.addFragment(tab3, \"Articles\");\n\n\n viewpager.setAdapter(adapter);\n }", "private void setupViewPager(ViewPager viewPager) {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new ListMovieFragment(), Constants.MOVIES);\n adapter.addFragment(new FavouriteMovieFragment(), Constants.FAVOURITE);\n adapter.addFragment(new SettingEmptyFragment(), Constants.SETTINGS);\n adapter.addFragment(new AboutFragment(), Constants.ABOUT);\n viewPager.setAdapter(adapter);\n }", "private void setupViewPager() {\n SectionPagerAdapter sectionPagerAdapter = new SectionPagerAdapter(getSupportFragmentManager());\n sectionPagerAdapter.addFragment(new CameraFragment());\n sectionPagerAdapter.addFragment(new HomeFragment());\n sectionPagerAdapter.addFragment(new MessagesFragment());\n\n mViewPager.setAdapter(sectionPagerAdapter);\n\n // setting up the top tab bar\n tabLayout.setupWithViewPager(mViewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.ic_camera);\n tabLayout.getTabAt(1).setIcon(R.drawable.instagram_logo);\n tabLayout.getTabAt(2).setIcon(R.drawable.ic_arrow);\n\n // Default fragment is the feed fragment\n mViewPager.setCurrentItem(1);\n }", "private void setupViewPager(ViewPager viewPager) {\n\n Adapter adapter = new Adapter(getChildFragmentManager());\n adapter.addFragment(new ListofMedGroupsFragment(), \"Groups\");\n adapter.addFragment(new ListofMedsFragment(), \"Medications\");\n adapter.addFragment(new ListofMeasurementsFragment(), \"Measurements\");\n viewPager.setAdapter(adapter);\n\n }", "private void setupViewPager(ViewPager viewPager)\n {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(One, \"Courses\");\n adapter.addFragment(new TwoFragment(), \"Grades\");\n adapter.addFragment(Three, \"Notifications\");\n viewPager.setAdapter(adapter);\n }", "@Override\n protected void initViews() {\n ButterKnife.bind(this);\n effcetTitleTablayout.setupWithViewPager(effectViewpager);\n adapter = new EffectViewPagerAdapter(getSupportFragmentManager());\n effectViewpager.setAdapter(adapter);\n }", "private void setupViewPager(ViewPager viewPager) {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new UpcomingFragment(), \"Upcoming\");\n adapter.addFragment(new NowplayingFragment(), \"Now Playing\");\n adapter.addFragment(new PopularFragment(), \"Popular\");\n viewPager.setAdapter(adapter);\n }", "private void setupAdapterAndViewPager() {\n mFragmentAdapter = new MyPagerAdapter(getSupportFragmentManager());\n mViewPager.setAdapter(mFragmentAdapter);\n mViewPager.setOffscreenPageLimit(4);\n\n //Set up the Tablayout\n mTabLayout.setupWithViewPager(mViewPager);\n }", "private void initViews() {\n setActionBarTitle(R.string.my_energy_metabolism);\n mViewPager = (CustomViewPager) findViewById(R.id.viewPager);\n }", "private void setupViewPager(ViewPager viewPager) {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new WatchFragment(), \"Watch\");\n adapter.addFragment(new AddBlackListOne(), \"Add Blacklist\");\n adapter.addFragment(new SearchBlacklistFragment(), \"Search Blacklist\");\n viewPager.setAdapter(adapter);\n }", "private void setupViewPager(ViewPager viewPager, List<Blog> blogs) {\n }", "private void setupViewPager(ViewPager viewPager) {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n adapter.addFrag(new HomeFragment(), \"ONE\");\n adapter.addFrag(new HistoryFragment(), \"TWO\");\n adapter.addFrag(new HelpFragment(), \"THREE\");\n adapter.addFrag(new MyAccountFragment(), \"FOUR\");\n viewPager.setAdapter(adapter);\n\n }", "private void setupViewPager(ViewPager viewPager) {\n Adapter adapter = new Adapter(getSupportFragmentManager());\n adapter.addFragment(MovieFragment.newInstance(), getString(R.string.movies));\n adapter.addFragment(TvShowFragment.newInstance(fragmentManager), getString(R.string.tvshow));\n adapter.addFragment(FavoriteFragment.newInstance(fragmentManager), getString(R.string.movies));\n adapter.addFragment(FragmentFavoriteTvShow.newInstance(fragmentManager), getString(R.string.tvshow));\n viewPager.setAdapter(adapter);\n }", "private void setupViewPager() {\n SectionsPagerAdapter adapter = new SectionsPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new MainFragment());\n\n mViewPager.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(mViewPager);\n }", "private void setupViewPager(ViewPager viewPager) {\n Adapter adapter = new Adapter(getSupportFragmentManager());\n\n PopularFragment popular = new PopularFragment();\n adapter.addFragment(popular, getString(R.string.popular_key));\n\n RatedFragment rated = new RatedFragment();\n adapter.addFragment(rated, getString(R.string.rated_key));\n\n FavouriteFragment favourite = new FavouriteFragment();\n adapter.addFragment(favourite, getString(R.string.favourite_key));\n\n viewPager.setAdapter(adapter);\n }", "private void setupTheFrangment() {\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n adapterViewPager = new MyPagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(adapterViewPager);\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n tabLayout.setupWithViewPager(viewPager);\n }", "private void initializeViewPager() {\n mProductsViewPagerAdapter = new ProductsViewPagerAdapter(this, mMobileImages);\n mBinding.vPPdpProductImages.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n }\n\n @Override\n public void onPageSelected(int position) {\n EcomUtil.setViewPagerSelectedDot(mBinding.vPPdpProductImages.getContext(), mDots,\n mDotsCount, position);\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n }\n });\n }", "private void init() {\n\t\tinitData();\n\t\tmViewPager = (ViewPagerCompat) findViewById(R.id.id_viewpager);\n\t\tnaviBar = findViewById(R.id.navi_bar);\n\t\tNavigationBarUtils.initNavigationBar(this, naviBar, true, ScreenContents.class, false, ScreenViewPager.class,\n\t\t\t\tfalse, ScreenContents.class);\n\t\tmViewPager.setPageTransformer(true, new DepthPageTransformer());\n\t\t// mViewPager.setPageTransformer(true, new RotateDownPageTransformer());\n\t\tmViewPager.setAdapter(new PagerAdapter() {\n\t\t\t@Override\n\t\t\tpublic Object instantiateItem(ViewGroup container, int position) {\n\n\t\t\t\tcontainer.addView(mImageViews.get(position));\n\t\t\t\treturn mImageViews.get(position);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void destroyItem(ViewGroup container, int position, Object object) {\n\n\t\t\t\tcontainer.removeView(mImageViews.get(position));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean isViewFromObject(View view, Object object) {\n\t\t\t\treturn view == object;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn mImgIds.length;\n\t\t\t}\n\t\t});\n\t}", "private void setupViewPager(ViewPager viewPager) {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n\n Bundle bundle = new Bundle();\n Intent intent = getIntent();\n\n if (intent.getExtras() != null) {\n bundle.putString(\"uid\", intent.getStringExtra(\"uid\"));\n }\n\n UserPhotoFragment userPhotoFragment = new UserPhotoFragment();\n userPhotoFragment.setArguments(bundle);\n\n UserFollowingFragment userFollowingFragment = new UserFollowingFragment();\n userFollowingFragment.setArguments(bundle);\n\n UserLikesFragment userLikesFragment = new UserLikesFragment();\n userLikesFragment.setArguments(bundle);\n\n adapter.addFragment(userPhotoFragment, \"PHOTOS\");\n adapter.addFragment(userFollowingFragment, \"FOLLOWING\");\n adapter.addFragment(userLikesFragment, \"LIKES\");\n viewPager.setAdapter(adapter);\n }", "private void setupViewPage(ViewPager viewPager) {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());\n adapter.addFrag(new SavedGamesFragment(), savedGamesLabel);\n adapter.addFrag(new HostGamesFragment(), hostedGamesLabel);\n viewPager.setAdapter(adapter);\n }", "protected void initializeViewPager(int id){\n //get ViewPager component\n mViewPager = (ViewPager)mActivity.findViewById(id);\n }", "private void initViewPager() {\n\t RelativeLayout.LayoutParams rl = new RelativeLayout.LayoutParams(\n\t ContextUtil.getWidth(SecurityMonitorActivity.this) / 2, PixelUtils.dp2px(2));\n\t rl.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);\n\t cursor.setLayoutParams(rl);\n\t\toffset = (ContextUtil.getWidth(SecurityMonitorActivity.this) / 2 - cursor.getWidth()/2);// 计算偏移量\n\t\tbmpW = cursor.getWidth();\n\t\tMatrix matrix = new Matrix();\n\t\tmatrix.postTranslate(offset, 0);\n\t\tcursor.setImageMatrix(matrix);// 设置动画初始位置\n\n\t\tmonitorPreviewFragment = new MonitorPreviewFragment();\n\t\tvideoPlaybackFragment = new VideoPlaybackFragment();\n\n\t mFragments.add(monitorPreviewFragment);\n\t mFragments.add(videoPlaybackFragment);\n\t tv_title1.setTextColor(getResources().getColor(R.color.gray));\n\t pager.setOffscreenPageLimit(3);\n\t pager.setAdapter(new MyPagerAdapter(SecurityMonitorActivity.this.getSupportFragmentManager(), mFragments));\n\t pager.setCurrentItem(0);\n\t pager.setOnPageChangeListener(new MyOnPageChangeListener());\n\t}", "public void initViewPager() {\n setWillNotDraw(false);\n setDescendantFocusability(262144);\n setFocusable(true);\n Context context = getContext();\n this.mScroller = new Scroller(context, sInterpolator);\n ViewConfiguration viewConfiguration = ViewConfiguration.get(context);\n float f = context.getResources().getDisplayMetrics().density;\n this.mTouchSlop = ViewConfigurationCompat.getScaledPagingTouchSlop(viewConfiguration);\n this.mMinimumVelocity = (int) (400.0f * f);\n this.mMaximumVelocity = viewConfiguration.getScaledMaximumFlingVelocity();\n this.mLeftEdge = new EdgeEffectCompat(context);\n this.mRightEdge = new EdgeEffectCompat(context);\n this.mFlingDistance = (int) (25.0f * f);\n this.mCloseEnough = (int) (2.0f * f);\n this.mDefaultGutterSize = (int) (f * 16.0f);\n ViewCompat.setAccessibilityDelegate(this, new MyAccessibilityDelegate());\n if (ViewCompat.getImportantForAccessibility(this) == 0) {\n ViewCompat.setImportantForAccessibility(this, 1);\n }\n }", "private void initializePaging() {\r\n\t\t\r\n\t\tList<Fragment> fragments = new Vector<Fragment>();\r\n\t\tfragments.add(Fragment.instantiate(this, ContactBookFragment.class.getName()));\r\n\t\tfragments.add(Fragment.instantiate(this, MainDashBoardFragment.class.getName()));\r\n\t\tfragments.add(Fragment.instantiate(this, GroupDashBoardFragment.class.getName()));\r\n\t\tthis.mPagerAdapter = new PagerAdapter(super.getSupportFragmentManager(), fragments);\r\n\t\t//\r\n\t\tViewPager pager = (ViewPager)super.findViewById(R.id.viewpager);\r\n\t\tpager.setAdapter(this.mPagerAdapter);\r\n\t\tpager.setCurrentItem(1);\t// Set the default page to Main Dash Board\r\n\t}", "private void setupViewPagerOne(ViewPager viewPager) {\n\n // Initialize new Bundle for Fragment arguments\n Bundle bundle = new Bundle();\n bundle.putBoolean(\"isHeaderVisible\", false);\n\n // Initialize Fragments\n productsNewest = new ProductsNewest();\n productsOnSale = new ProductsOnSale();\n productsFeatured = new ProductsFeatured();\n \n productsNewest.setArguments(bundle);\n productsOnSale.setArguments(bundle);\n productsFeatured.setArguments(bundle);\n\n \n // Initialize ViewPagerAdapter with ChildFragmentManager for ViewPager\n ViewPagerCustomAdapter viewPagerCustomAdapter = new ViewPagerCustomAdapter(getChildFragmentManager());\n \n // Add the Fragments to the ViewPagerAdapter with TabHeader\n viewPagerCustomAdapter.addFragment(productsNewest, getString(R.string.newest));\n viewPagerCustomAdapter.addFragment(productsOnSale, getString(R.string.super_deals));\n viewPagerCustomAdapter.addFragment(productsFeatured, getString(R.string.featured));\n\n \n viewPager.setOffscreenPageLimit(2);\n \n // Attach the ViewPagerAdapter to given ViewPager\n viewPager.setAdapter(viewPagerCustomAdapter);\n \n \n /*Configuration config = getResources().getConfiguration();\n if (config.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) {\n //use the RTL trick here\n viewPager.setRotationY(180);\n viewPager.setLayoutDirection(View.LAYOUT_DIRECTION_RTL);\n }*/\n \n }", "@Override\n protected void init() {\n REQUEST_PERMISSION_FOR_ACTIVITY = false;\n viewModel.setNavigator(this);\n viewModel.onStart(this);\n binding.welcomePager.setAdapter(adapter);\n\n addDots(0);\n binding.welcomePager.addOnPageChangeListener(viewListener);\n\n// handlingBackground();\n }", "private void setupViewPager(ViewPager viewPager) {\n statisticsTabAdapter adapter = new statisticsTabAdapter(getSupportFragmentManager());\n adapter.addFragment(new statisticsTabOne(), \"TODAY\");\n adapter.addFragment(new statisticsTabTwo(), \"WEEK\");\n adapter.addFragment(new statisticsTabThree(), \"MONTH\");\n viewPager.setAdapter(adapter);\n }", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "private void setAdapterAndListener() {\r\n CustomPagerAdapter = new CustomPagerAdapter(getSupportFragmentManager(), PhotoViewActivity.this, dataModelArrayList);\r\n pager.setAdapter(CustomPagerAdapter);\r\n pager.setOffscreenPageLimit(3);\r\n pager.setCurrentItem(position);\r\n\r\n pager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\r\n @Override\r\n public void onPageScrolled(final int pos, float positionOffset, int positionOffsetPixels) {\r\n /*\r\n * Setting the title on toolbar\r\n * */\r\n position = pos;\r\n String name = dataModelArrayList.get(position).getFile().getName();\r\n String actualName = FileUtils.getSecureFileName(name);\r\n if (actualName != null && !actualName.equalsIgnoreCase(\"\")) {\r\n updateTileBar(actualName);\r\n } else {\r\n updateTileBar(name);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n @Override\r\n public void onPageSelected(int num) {\r\n int pos = 0;\r\n //Update the toolbar menu item on page change\r\n invalidateOptionsMenu();\r\n\r\n }\r\n\r\n @Override\r\n public void onPageScrollStateChanged(int state) {\r\n\r\n }\r\n });\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_view_pager, container, false);\n\n getLoaderManager().initLoader(0, null, this);\n\n mPagerAdapter = new MyPagerAdapter(getFragmentManager(), mTwoPane);\n mPager = (ViewPager) rootView.findViewById(R.id.pager);\n mPager.setAdapter(mPagerAdapter);\n mPager.setPageMargin((int) TypedValue\n .applyDimension(TypedValue.COMPLEX_UNIT_DIP,\n 1,\n getResources().getDisplayMetrics()));//Margin between two pages\n mPager.setPageMarginDrawable(new ColorDrawable(0x22000000));\n\n mSimpleOnPageChangeListener = new ViewPager.SimpleOnPageChangeListener() {\n\n @Override\n public void onPageSelected(int position) {\n if (mPagerAdapter.mCursor != null) {\n mPagerAdapter.mCursor.moveToPosition(position);\n\n mSelectedItemId = mPagerAdapter.mCursor.getLong(ArticleLoader.Query._ID);\n }\n }\n };\n\n mPager.addOnPageChangeListener(mSimpleOnPageChangeListener);\n\n return rootView;\n }", "private void initViewPager() {\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n if (viewPager != null) {\n viewPager.setAdapter(new MainPagerAdapter(getFragmentManager()));\n }\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n if (tabLayout != null) {\n tabLayout.setTabMode(TabLayout.MODE_FIXED);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n }\n }", "public void setupViewPager(ViewPager viewPager) {\n ViewPagerAdapter adapter = new ViewPagerAdapter(getChildFragmentManager());\n adapter.addFragment(FollowingNotificationFragment.newInstance(), getActivity().getResources().getString(R.string.notification_following_tab));\n adapter.addFragment(YouNotificationFragment.newInstance(), getActivity().getResources().getString(R.string.notification_you_tab));\n viewPager.setAdapter(adapter);\n viewPager.setCurrentItem(1);\n }", "private void initViews() {\n tabLayout = findViewById(R.id.tabs);\n viewPager = findViewById(R.id.viewpager);\n myAdapter=new MyAdapter(getSupportFragmentManager());\n viewPager.setAdapter(myAdapter);\n viewPager.setAllowedSwipeDirection(SwipeDirection.all);\n\n Intent intent = getIntent();\n\n if(intent.hasExtra(\"matchStatus\")){\n sessionManager.setRefreshChatFragment(true);\n viewPager.setCurrentItem(2);\n }\n else\n viewPager.setCurrentItem(1);\n\n\n\n tabLayout.post(new Runnable() {\n @Override\n public void run() {\n tabLayout.setupWithViewPager(viewPager);\n setupIcons();\n }\n });\n\n receivePushNotification();\n }", "private void initViewPager() {\n List<Fragment> fragments = new ArrayList<>();\n FragmentManager fragmentManager = getSupportFragmentManager();\n ChatsFragment chatsFragment = new ChatsFragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"currentUser\", currentUser);\n chatsFragment.setArguments(bundle);\n GroupsFragment groupsFragment = new GroupsFragment();\n groupsFragment.setArguments(bundle);\n ContactsFragment contactsFragment = new ContactsFragment();\n contactsFragment.setArguments(bundle);\n fragments.add(chatsFragment);\n fragments.add(contactsFragment);\n fragments.add(groupsFragment);\n List<String> titles = new ArrayList<>();\n titles.add(\"Chats\");\n titles.add(\"Contacts\");\n titles.add(\"Groups\");\n TabsAdapter tabsAdapter = new TabsAdapter(fragmentManager, fragments, titles);\n viewPager.setAdapter(tabsAdapter);\n tabLayout.setupWithViewPager(viewPager);\n }", "private void setup() {\n adapter = new HomeAdapter(this);\n\n linearLayoutManager = new LinearLayoutManager\n (this, LinearLayoutManager.VERTICAL, false);\n rv.setLayoutManager(linearLayoutManager);\n rv.setItemAnimator(new DefaultItemAnimator());\n\n rv.setAdapter(adapter);\n showWait();\n if (NetworkUtils.isNetworkConnected(this)) {\n\n presenter.loadPage(currentPage);\n } else {\n onFailure(NetworkError.NETWORK_ERROR_MESSAGE);\n }\n rv.addOnScrollListener(new PaginationScrollListener(linearLayoutManager) {\n @Override\n protected void loadMoreItems() {\n AppLogger.d(TAG,\"currentPage:\"+currentPage);\n isLoading = true;\n currentPage += 1;\n presenter.loadPage(currentPage);\n\n\n }\n\n @Override\n public int getTotalPageCount() {\n AppLogger.d(TAG,\"TOTAL_PAGES:\"+TOTAL_PAGES);\n return TOTAL_PAGES;\n }\n\n @Override\n public boolean isLastPage() {\n return isLastPage;\n }\n\n @Override\n public boolean isLoading() {\n return isLoading;\n }\n });\n\n\n }", "private void setPersonPagerData() {\n viewPageAdaptor = new ViewPagePersonAdaptor(getChildFragmentManager());\n viewPagerPerson.setAdapter(viewPageAdaptor);\n tbPerson.setupWithViewPager(viewPagerPerson);\n }", "private void initView() {\n List<Fragment> fragmentList = new ArrayList<>();\n fragmentList.add(new FourthFragment());\n fragmentList.add(new FifthFragment(imagePath));\n// set titles\n List<String> title = new ArrayList<>();\n title.add(\"第一页\");\n title.add(\"第二页\");\n// set the adapter\n viewPager.setAdapter(new FragmentPagerAdapter(getChildFragmentManager()) {\n @NonNull\n @NotNull\n @Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }\n\n @Override\n public int getCount() {\n return fragmentList.size();\n }\n\n @Nullable\n @org.jetbrains.annotations.Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return title.get(position);\n }\n });\n tabLayout.setupWithViewPager(viewPager);\n }", "private void initPagerViewer() {\n pager = (ViewPager) findViewById(R.id.viewPageActivityWeightRecord);\n \n// System.out.println(\"---------------------mode:\"+Activity4thSettingMode.mode);\n \n if (Activity4thSettingMode.mode) {\t\t\t\n \t//普通体重秤\n \tlist = new ArrayList<View>();\n \tIntent intent = new Intent(Activity2ndWeightRecord.this, Activity2ndWeightRecordBmi.class);\n \tlist.add(getView(\"BMI\", intent));\n \tIntent intent2 = new Intent(Activity2ndWeightRecord.this, Activity2ndWeightRecordBmiTrend.class);\n \tlist.add(getView(\"TREND\", intent2));\n \tIntent intent3 = new Intent(Activity2ndWeightRecord.this, Activity2ndWeightRecordBmiHistory.class);\n \tlist.add(getView(\"HISTORY\", intent3));\n \t//startActivity(id, intent).getDecorView();\n\t\t}else {\t\t\t\n\t\t\t//Fat秤\n\t\t\tlist = new ArrayList<View>();\n \tIntent intent = new Intent(Activity2ndWeightRecord.this, Activity2ndWeightRecordFat.class);\n \tlist.add(getView(\"BMI\", intent));\n \tIntent intent2 = new Intent(Activity2ndWeightRecord.this, Activity2ndWeightRecordFatTrend.class);\n \tlist.add(getView(\"TREND\", intent2));\n \tIntent intent3 = new Intent(Activity2ndWeightRecord.this, Activity2ndWeightRecordFatHistory.class);\n \tlist.add(getView(\"HISTORY\", intent3));\n\t\t}\n\n pager.setAdapter(new WelcomePagerViewerAdapter(list));\n pager.setCurrentItem(0);\n pager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "void setupViewPager(){\n SectionStatePagerAdapter adapter=new SectionStatePagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new RecodingFragment(),\"Recording\");\n adapter.addFragment(new NoteFragment(),\"Notes\");\n ViewPager viewPager=findViewById(R.id.container);\n viewPager.setAdapter(adapter);\n TabLayout tableLayout= findViewById(R.id.tabs);\n tableLayout.setupWithViewPager(viewPager);\n tableLayout.getTabAt(0).setIcon(R.drawable.ic_your_voice);\n tableLayout.getTabAt(1).setIcon(R.drawable.ic_to_do_later);\n }", "private void initViews() {\n\t\tmViewPager = (ViewPager) findViewById(R.id.view_pager); \n mIndicator = (IconTabPageIndicator) findViewById(R.id.indicator); \n fragments = initFragments(); \n FragmentAdapter adapter = new FragmentAdapter(fragments, getSupportFragmentManager()); \n mViewPager.setAdapter(adapter); \n mIndicator.setViewPager(mViewPager); \n mViewPager.setCurrentItem(whichPage);\n \n \n \n\t}", "@Override\r\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\r\n\t\tsetContentView(R.layout.activity_photo_image_pager);\r\n\t\t\r\n\t\tgetIntentData();\r\n\t\tfindViewById();\r\n\t\tsetListener();\r\n\t\tinit();\r\n\t}", "private void bindViewPager() {\n\t\tmAdapter = new FragmentPagerAdapter(getSupportFragmentManager()) {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int getCount() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn 2;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Fragment getItem(int arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tswitch (arg0) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\treturn new VideoInforFragment();\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\treturn new VideoReplayFragment();\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t};\r\n\t\tmViewPager.setAdapter(mAdapter);\r\n\t}", "@Override\r\n\tpublic void setupView() {\n\t\tbitmapUtils.configDefaultBitmapConfig(Config.RGB_565);//设置图片压缩类型\r\n\t\tbitmapUtils.configDefaultLoadingImage(R.drawable.test_default_wait_img);// 默认背景图片\r\n\t\tbitmapUtils.configDefaultLoadFailedImage(R.drawable.test_default_wait_img);// 加载失败图片\r\n\t\t\r\n\t\t// 获取数据\r\n\t\tintent = getIntent();\r\n\t\tBlogsInfoEntity entity = (BlogsInfoEntity) intent.getSerializableExtra(\"entity\");\r\n\t\tlist_images = entity.getImg_attachment();\r\n\t\tint position = intent.getIntExtra(\"position\", 0);\r\n\t\tleft_btn = (ImageView) findViewById(R.id.left_btn);\r\n\t\tleft_btn.setOnClickListener(l);\r\n\t\tcenter_content = (TextView) findViewById(R.id.center_content);\r\n\t\tcenter_content.setText(String.valueOf(position + 1) + \"/\"+ String.valueOf(list_images.size()));\r\n\t\tmViewPager = (CustomViewPager) findViewById(R.id.pager);\r\n\t\tmViewPager.setScanScroll(true);\r\n\t\tSamplePagerAdapter adapter = new SamplePagerAdapter();// 声明适配器\r\n\t\tmViewPager.setAdapter(adapter);// 绑定\r\n\t\tmViewPager.setCurrentItem(position);\r\n\t\tmViewPager.setOnPageChangeListener(new OnPageChangeListener() {\r\n\t\t\t// 页面更变\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageSelected(int position) {\r\n\t\t\t\tcenter_content.setText(String.valueOf(position + 1) + \"/\"+ String.valueOf(list_images.size()));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int state) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrolled(int position, float positionOffset,\r\n\t\t\t\t\tint positionOffsetPixels) {\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void initListView() {\n viewPager.setAdapter(adapter);\n }", "private void setUpViewPager() {\n\n mDbProducts = realm.where(DbProduct.class).findAll();\n try {\n mViewPager.setAdapter(new FeedPagerAdapter(getChildFragmentManager()));\n } catch (Exception e) {\n// getFragmentManager().popBackStack();\n Log.e(LOG_TAG, e.toString());\n }\n\n int index = 0;\n\n try {\n long openingProductId = getActivity().getIntent().getLongExtra(MainActivity.EXTRA_PRODUCT_ID, 0);\n if (openingProductId != 0) {\n\n index = mDbProducts.indexOf(mDbProducts.where().equalTo(DbProduct.PRODUCT_ID, openingProductId).findFirst());\n }\n } catch (Exception e) {\n index = 0;\n }\n\n ViewPager.OnPageChangeListener onPageChangeListener = new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n @Override\n public void onPageSelected(int position) {\n try {\n setHeaderText(mDbProducts.get(position).getProductName());\n } catch (Exception e) {\n //\n }\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n };\n mViewPager.addOnPageChangeListener(onPageChangeListener);\n\n try {\n // indicator.setupWithViewPager(mViewPager);\n // indicator.addOnPageChangeListener(onPageChangeListener);\n\n } catch (Exception e)\n {\n\n }\n\n Log.d(LOG_TAG, \"Product Size: \" + mDbProducts.size() + \" Index: \" + index);\n\n mViewPager.setCurrentItem(index, true);\n setHeaderText(mDbProducts.get(index).getProductName());\n\n ivLeft.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int currentPosition = mViewPager.getCurrentItem();\n try {\n mViewPager.setCurrentItem(currentPosition - 1, true);\n } catch (Exception e) {\n //do nothing\n }\n }\n });\n\n ivRight.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int currentPosition = mViewPager.getCurrentItem();\n try {\n mViewPager.setCurrentItem(currentPosition + 1, true);\n } catch (Exception e) {\n //do nothing\n }\n }\n });\n }", "private void setupViewPager(){\n viewPager = (ViewPager) findViewById(R.id.pager);\n\n SectionsPagerAdapter adapter = new SectionsPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new SearchFragment()); //index 0\n adapter.addFragment(new ARViewFragment()); //index 1\n adapter.addFragment(new UpdatedsFragment()); //index 2\n\n\n viewPager.setAdapter(adapter);\n viewPager.setCurrentItem(1);\n\n viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n @Override\n public void onPageSelected(int position) {\n\n int C = viewPager.getCurrentItem();\n Fragment ARV = adapter.getItem(1);\n\n\n if (C != 1){\n ARV.onPause();\n }else\n ARV.onResume();\n\n\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n\n }", "private void initialisePaging() {\n\nList<Fragment> fragments = new Vector<Fragment>();\nfragments.add(Fragment.instantiate(this, Fragment0.class.getName()));\nfragments.add(Fragment.instantiate(this, Fragment1.class.getName()));\nfragments.add(Fragment.instantiate(this, Fragment2.class.getName()));\nthis.mPagerAdapter = new MyPagerAdapter(super.getSupportFragmentManager(), fragments);\n\nViewPager pager = (ViewPager) super.findViewById(R.id.awesomepager);\npager.setAdapter(this.mPagerAdapter);\n}", "public void initViewPager() {\n\n PagerAdapter adapter = new FragOrder.MyPagerAdapter();\n pager.setAdapter(adapter);\n pager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n\n @Override\n public void onPageSelected(int index) {\n // TODO Auto-generated method stub\n for (int i = 0; i < tvs.size(); i++) {\n if (i == index) {\n tvs.get(i).setTextColor(Color.BLUE);\n } else {\n tvs.get(i).setTextColor(Color.rgb(55, 55, 55));\n }\n }\n }\n\n @Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void onPageScrollStateChanged(int arg0) {\n // TODO Auto-generated method stub\n\n }\n });\n }", "private void initView() {\n\t\tmVPImageScanner=(ViewPager) findViewById(R.id.vp_image_scanner);\n\t}", "private void setupViewPager(ViewPager viewPager) {\n\n try {\n mFragmentList.clear();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n adapter.notifyDataSetChanged();\n\n mFragmentList.add(Constants.mMainActivity.productListPendingFragment);\n mFragmentTitleList.add(\"Pending\");\n\n mFragmentList.add(Constants.mMainActivity.productListApprovedFragment);\n mFragmentTitleList.add(\"Approved\");\n\n mFragmentList.add(Constants.mMainActivity.productListRejectedFragment);\n mFragmentTitleList.add(\"Rejected\");\n\n viewPager.setAdapter(adapter);\n }", "@NonNull\n protected abstract View onCreatePagerView(LayoutInflater inflater, ViewGroup container, int position);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(\n R.layout.fragment_pager,\n container,\n false);\n findViews(view);\n setupAdapter();\n setupTabLayout();\n return view;\n }", "private void setupListViewPager() {\n\t\tmSeverityListPager = (ViewPager) getView().findViewById(\n\t\t\t\tR.id.severity_list_viewpager);\n\t\tmSeverityListPageIndicator = (TabPageIndicator) getView().findViewById(\n\t\t\t\tR.id.severity_list_tabindicator);\n\t\t// Bind the tab indicator to the adapter\n\t\tmSeverityListPagerAdapter = retrievePagerAdapter();\n\t\tLog.d(TAG,\n\t\t\t\t\"current severity: \"\n\t\t\t\t\t\t+ mSeverityListPagerAdapter.getCurrentObject());\n\t\tmSeverityListPagerAdapter.setFragmentManager(getChildFragmentManager());\n\t\tmSeverityListPager.setAdapter(mSeverityListPagerAdapter);\n\t\tmSeverityListPager.setOffscreenPageLimit(1);\n\t\tmSeverityListPageIndicator.setViewPager(mSeverityListPager);\n\n\t\tmSeverityListPageIndicator.setCurrentItem(mSeverityListPagerAdapter\n\t\t\t\t.getCurrentPosition());\n\t\t// mCallbackMain.onSeveritySelected(mSeverityListPagerAdapter.getCurrentObject());\n\n\t\tmSeverityListPageIndicator\n\t\t\t\t.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPageSelected(int position) {\n\t\t\t\t\t\tLog.d(TAG, \"EventCategoryFragment:onPageSelected(\"\n\t\t\t\t\t\t\t\t+ position + \")\");\n\t\t\t\t\t\tmSeverityListPagerAdapter.setCurrentPosition(position);\n\n\t\t\t\t\t\tmCallbackMain\n\t\t\t\t\t\t\t\t.onSeveritySelected(mSeverityListPagerAdapter\n\t\t\t\t\t\t\t\t\t\t.getCurrentObject());\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPageScrollStateChanged(int position) {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t}", "private void init() {\n\t\tpager = (MainViewPager) findViewById(R.id.main_pager);\n\t\tfrageManager = getSupportFragmentManager();\n\t\tfoot_group = (RadioGroup) findViewById(R.id.foot_group);\n\t\tadapter = new MyFragmentAdapter(frageManager, list);\n\t}", "void initialise(){\n tabLayout = findViewById(R.id.tabLayout);\n viewPager = findViewById(R.id.view_pager);\n PageAdapter pagerAdapter = new PageAdapter(getSupportFragmentManager(), 3);\n viewPager.setAdapter(pagerAdapter);\n sharedPreferences = getSharedPreferences(SHARED_PREF, MODE_PRIVATE);\n }", "private void Init(){\n /*button_continue = (Button)findViewById(R.id.button_continue);\n textView_welcome = (TextView)findViewById(R.id.textView_welcome);*/\n viewPager_slide = (ViewPager)findViewById(R.id.viewPager_slide);\n dots_layout = (LinearLayout) findViewById(R.id.dots_layout);\n button_retour = (Button)findViewById(R.id.button_retour);\n button_suivant = (Button)findViewById(R.id.button_suivant);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_listas, container, false);\n unbinder = ButterKnife.bind(this, view);\n //ViewPager viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n // Set Tabs inside Toolbar\n //TabLayout tabs = (TabLayout) view.findViewById(R.id.tabs);\n tabs.setupWithViewPager(viewPager);\n //setupViewPager2(viewpager);\n // tabs.setupWithViewPager(viewpager);\n return view;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_person_center, container, false);\n CircleImageView headerIv = (CircleImageView) view.findViewById(R.id.head_iv);\n final MaterialTabHost tabHost = (MaterialTabHost) view.findViewById(R.id.content_tbhost);\n pager = (ViewPager) view.findViewById(R.id.person_viewpager);\n // init view pager\n initFraments();\n\n PersonViewPagerAdapter pagerAdapter = new PersonViewPagerAdapter(getChildFragmentManager());\n pager.setAdapter(pagerAdapter);\n res = getResources();\n// pager.setFocusableInTouchMode(false);\n pager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {\n @Override\n public void onPageSelected(int position) {\n // when user do a swipe the selected tab change\n tabHost.setSelectedNavigationItem(position);\n }\n });\n // insert all tabs from pagerAdapter data\n for (int i = 0; i < pagerAdapter.getCount(); i++) {\n tabHost.addTab(\n tabHost.newTab()\n .setText(pagerAdapter.getPageTitle(i))\n .setTabListener(this)\n );\n }\n\n ImageLoader loader = ImageLoader.getInstance();\n String url = Global.getmGlobalUser().getHeadIcon();\n loader.displayImage(url, headerIv);\n\n return view;\n }", "private void initView() {\n\t\tfragment_viewpager = (ViewPager) findViewById(R.id.fragment_viewpager);\n\n\t\tMain_bottom_change one = (Main_bottom_change) findViewById(R.id.Main_bottom_1);\n\t\tMain_bottom_change two = (Main_bottom_change) findViewById(R.id.Main_bottom_2);\n\t\tMain_bottom_change three = (Main_bottom_change) findViewById(R.id.Main_bottom_3);\n\n\t\tmTabIndicator.add(one);\n\t\tmTabIndicator.add(two);\n\t\tmTabIndicator.add(three);\n\n\t\tone.setOnClickListener(this);\n\t\ttwo.setOnClickListener(this);\n\t\tthree.setOnClickListener(this);\n\n\t\tone.setIconAlpha(1.0f);\n\t}", "private void initPager(View v)\n {\n pager = (ViewPager) v.findViewById(R.id.pager);\n pager.setPageMargin(10);\n\n pager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n\n @Override\n public void onPageSelected(int pos) {\n if (vDots == null || vDots.getTag() == null)\n return;\n ((ImageView) vDots.getTag())\n .setImageResource(R.drawable.dot_gray);\n ((ImageView) vDots.getChildAt(pos))\n .setImageResource(R.drawable.dot_blue);\n vDots.setTag(vDots.getChildAt(pos));\n }\n\n @Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }\n\n @Override\n public void onPageScrollStateChanged(int arg0) {\n }\n });\n vDots = (LinearLayout) v.findViewById(R.id.vDots);\n\n pager.setAdapter(new PageAdapter());\n setupDotbar(v);\n }", "private void initView() {\n\t\tmSeekButton = (Button) findViewById(R.id.seekButton);\r\n\t\tmViewPager = (ViewPager) findViewById(R.id.viewPager);\r\n\t}", "private void initViews() {\n\t\t// TODO Auto-generated method stub\n\t\t// venuePager = (ViewPager)findViewById(R.id.pager);\n\n\t\tmyGallery = (LinearLayout) findViewById(R.id.horizontalScrollItems);\n\n\t\tvenueImageLarge = (ImageView) findViewById(R.id.imageVenueLarge);\n\n\t\tinfoImageView = (ImageView) findViewById(R.id.imageInfo);\n\n\t\tcloseBtn = (ImageView) findViewById(R.id.imageclose);\n\n\t\tvenueCapacity = (TextView) findViewById(R.id.venueCapacity);\n\n\t\tvenueDes = (TextView) findViewById(R.id.venueDes);\n\n\t\tvenueName = (TextView) findViewById(R.id.venueName);\n\n\t\tvenueRelative = (RelativeLayout) findViewById(R.id.venue_relative);\n\n\t\tviewAnimator = (ViewAnimator) this.findViewById(R.id.viewFlipper_venue);\n\n\t\tvenueFullname = (TextView) findViewById(R.id.venueFullnameValue);\n\n\t\tvenueCity = (TextView) findViewById(R.id.venueCityValue);\n\n\t\tvenueOwner = (TextView) findViewById(R.id.venueOwnerValue);\n\n\t\tvenueOpened = (TextView) findViewById(R.id.venueOpenedValue);\n\n\t\tvenueSurface = (TextView) findViewById(R.id.venueSurfaceValue);\n\n\t\tvenueWebsite = (TextView) findViewById(R.id.venueWebsiteValue);\n\n\n\t}", "public void setUptoptabbar(){\n\n\n FragmentPagerItemAdapter adapter = new FragmentPagerItemAdapter(\n getSupportFragmentManager(), FragmentPagerItems.with(this)\n\n .add(\"All Songs\", All_Song_Fragment.class)\n .add(\"Albums\",All_Album_Fragment.class)\n .add(\"Artists\",All_Artist_Fragment.class)\n .add(\"Genres\",All_Song_Fragment.class)\n .add(\"Playlists\",All_Song_Fragment.class)\n .create());\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n viewPager.setAdapter(adapter);\n\n SmartTabLayout viewPagerTab = (SmartTabLayout) findViewById(R.id.viewpagertab);\n viewPagerTab.setViewPager(viewPager);\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n adapter = new ViewPagerAdapter(getChildFragmentManager(),Titles,Numboftabs);\n\n // Assigning ViewPager View and setting the adapter\n pager = (ViewPager) getView().findViewById(R.id.pager);\n pager.setAdapter(adapter);\n\n // Assiging the Sliding Tab Layout View\n tabs = (SlidingTabLayout) getView().findViewById(R.id.tabs);\n tabs.setDistributeEvenly(true); // To make the Tabs Fixed set this true, This makes the tabs Space Evenly in Available width\n\n // Setting Custom Color for the Scroll bar indicator of the Tab View\n tabs.setCustomTabColorizer(new SlidingTabLayout.TabColorizer() {\n @Override\n public int getIndicatorColor(int position) {\n return getResources().getColor(R.color.tabsScrollColor);\n }\n });\n\n // Setting the ViewPager For the SlidingTabsLayout\n tabs.setViewPager(pager);\n }", "protected abstract void setupMvpView();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_detail);\n\n btnPrev = findViewById(R.id.prev);\n btnNext = findViewById(R.id.next);\n\n\n /*seting btn prev di awal dengan visible agar btn prev menghilang/disable*/\n btnPrev.setVisibility(View.GONE);\n\n /*sekarang pasang adapter ke viewpager*/\n setupViewPager();\n\n /*buat metode page change*/\n pageChange();\n\n int page = getIntent().getIntExtra(\"page\",0);\n while(page > 0){\n next(null);\n page--;\n }\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View rootview= inflater.inflate(R.layout.fragment_board, container, false);\n mViewPager = (ViewPager) rootview.findViewById(R.id.viewPager);\n\n\n\n\n mCardAdapter = new CardPagerAdapter();\n mCardAdapter.addCardItem(new CardItem(R.string.title_1, R.string.text_1));\n mCardAdapter.addCardItem(new CardItem(R.string.title_2, R.string.text_1));\n mCardAdapter.addCardItem(new CardItem(R.string.title_3, R.string.text_1));\n\n\n\n mViewPager.setAdapter(mCardAdapter);\n\n mViewPager.setOffscreenPageLimit(3);\n\n return rootview;}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.guide);\n\n\t\tPrefUtil.putBoolean(GuideActivity.this, PrefKey.KEY_ISFIRST, false);\n\n\t\tLayoutInflater inflater = getLayoutInflater();\n\t\tpageViews = new ArrayList<View>();\n\t\tpageViews.add(inflater.inflate(R.layout.viewpager01, null));\n\t\tpageViews.add(inflater.inflate(R.layout.viewpager02, null));\n\t\tpageViews.add(inflater.inflate(R.layout.viewpager03, null));\n\n\t\tinitView();\n\n\t\t// 小圆点数组,大小是图片的个数\n\t\timageViews = new ImageView[pageViews.size()];\n\t\t// 从指定的XML文件中加载视图\n\n\t\tviewPager = (ViewPager) findViewById(R.id.guidePagers);\n\t\tviewPoints = (LinearLayout) findViewById(R.id.viewPoints);\n\n\t\t// 添加小圆点导航的图片\n\t\tfor (int i = 0; i < pageViews.size(); i++) {\n\t\t\timageView = new ImageView(this);\n\t\t\timageView.setLayoutParams(new LayoutParams(50, 50));\n\t\t\timageView.setPadding(15, 10, 15, 10);\n\t\t\t// 吧小圆点放进数组中\n\t\t\timageViews[i] = imageView;\n\t\t\t// 默认选中的是第一张图片,此时第一个小圆点是选中状态,其他不是\n\t\t\tif (i == 0)\n\t\t\t\timageViews[i].setImageDrawable(getResources().getDrawable(\n\t\t\t\t\t\tR.drawable.page_indicator_focused));\n\t\t\telse\n\t\t\t\timageViews[i].setImageDrawable(getResources().getDrawable(\n\t\t\t\t\t\tR.drawable.page_indicator_unfocused));\n\t\t\t// 将imageviews添加到小圆点视图组\n\t\t\tviewPoints.addView(imageViews[i]);\n\t\t}\n\n\t\tviewPager.setAdapter(new NavigationPageAdapter());\n\t\t// 为viewpager添加监听,当view发生变化时的响应\n\t\tviewPager.setOnPageChangeListener(new NavigationPageChangeListener());\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v =inflater.inflate(R.layout.prescription_home_fragment, container, false);\n\n newPrescriptionBtn = v.findViewById(R.id.newPrescriptionBTN);\n myPrescriptionsBtn = v.findViewById(R.id.myPrescriptionsBtn);\n\n newPrescriptionBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n ((PrescriptionHomeActivity)getActivity()).setViewPager(1);\n }\n });\n\n myPrescriptionsBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n ((PrescriptionHomeActivity)getActivity()).setViewPager(2);\n }\n });\n\n return v;\n }", "private void startImagePagerActivity(int position) {\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_survey); // calls layout activity_survey.xml\n viewPager=(ViewPager) findViewById(R.id.survey); // survey declared in activity_survey.xml\n FragmentManager fm = getSupportFragmentManager();\n viewPager.setAdapter(new MyAdapter(fm));\n }", "private void initialize() {\n\r\n\t\tpagerContainer = (ViewPager) rootView.findViewById(R.id.pagercontainer);\r\n\t\tindicator = (LinePageIndicator) rootView.findViewById(R.id.indicator);\r\n\r\n\t\t_layoutInflater = getActivity().getLayoutInflater();\r\n\t\tpages = new Vector<View>();\r\n\r\n\t\tpage1 = _layoutInflater.inflate(R.layout.checkout_your_details, null);\r\n\t\tpage2 = _layoutInflater.inflate(R.layout.checkout_schedule_payment,\r\n\t\t\t\tnull);\r\n\r\n\t\tpages.add(page1);\r\n\r\n\t\tpagerAdapter = new MediaPagerAdapter(getActivity(), pages);\r\n\t\tpagerContainer.setAdapter(pagerAdapter);\r\n\r\n\t\tindicator.setViewPager(pagerContainer);\r\n\t\tindicator.setClickable(true);\r\n\r\n\t\tet_firstname = (EditText) page1.findViewById(R.id.et_firstname);\r\n\t\tet_lastname = (EditText) page1.findViewById(R.id.et_lastname);\r\n\t\tet_landmark = (EditText) page1.findViewById(R.id.et_landmark);\r\n\t\tet_street = (EditText) page1.findViewById(R.id.et_street);\r\n\t\tet_flatno = (EditText) page1.findViewById(R.id.et_flatno);\r\n\t\tet_address = (EditText) page1.findViewById(R.id.et_address);\r\n\t\tet_pincode = (EditText) page1.findViewById(R.id.et_pincode);\r\n\t\tet_phone = (EditText) page1.findViewById(R.id.et_phone);\r\n\t\tspin_state = (Spinner) page1.findViewById(R.id.spin_state);\r\n\t\tspin_city = (Spinner) page1.findViewById(R.id.spin_city);\r\n\t\tspin_location = (Spinner) page1.findViewById(R.id.spin_location);\r\n\t\ttv_next = (TextView) page1.findViewById(R.id.tv_next);\r\n\r\n\t\tet_select_date = (EditText) page2.findViewById(R.id.et_select_date);\r\n\t\tet_select_time = (EditText) page2.findViewById(R.id.et_select_time);\r\n\r\n\t\trdGroup = (RadioGroup) page2.findViewById(R.id.rdGroup);\r\n\t\trdbtnone = (RadioButton) page2.findViewById(R.id.rdbtnone);\r\n\t\trdbtntwo = (RadioButton) page2.findViewById(R.id.rdbtntwo);\r\n\t\trdbtnthree = (RadioButton) page2.findViewById(R.id.rdbtnthree);\r\n\t\tbtn_checkout = (Button) page2.findViewById(R.id.btn_checkout);\r\n\r\n\t\tsharedpreference = new SharedPreferenceClass(getActivity());\r\n\r\n\t\ttv_next.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\r\n\t\t\t\tfirstname = et_firstname.getText().toString();\r\n\t\t\t\tlastname = et_lastname.getText().toString();\r\n\t\t\t\tlandmark = et_landmark.getText().toString();\r\n\t\t\t\tpincode = et_pincode.getText().toString();\r\n\t\t\t\tphone = et_phone.getText().toString();\r\n\r\n\t\t\t\tif (firstname.equals(\"\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter First Name\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (lastname.equals(\"\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter Last Name\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (phone.equals(\"\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter Phone Number\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (phone.length() < 10) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(),\r\n\t\t\t\t\t\t\t\"Phone Number should be 10 digit\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (state_id.equals(\"0\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter State\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (city_id.equals(\"0\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter City\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (location_id.equals(\"0\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter Location\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (pincode.equals(\"\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter Pincode\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (pincode.length() < 6) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Pincode should be 6 digit\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tif (!pages.contains(page2)) {\r\n\r\n\t\t\t\t\t\tpages.add(page2);\r\n\r\n\t\t\t\t\t\tpagerAdapter = new MediaPagerAdapter(getActivity(),\r\n\t\t\t\t\t\t\t\tpages);\r\n\t\t\t\t\t\tpagerContainer.setAdapter(pagerAdapter);\r\n\r\n\t\t\t\t\t\tindicator.setViewPager(pagerContainer);\r\n\t\t\t\t\t\tindicator.setClickable(true);\r\n\r\n\t\t\t\t\t\tpagerContainer.setCurrentItem(1);\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tpagerContainer.setCurrentItem(1);\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});\r\n\r\n\t}", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View x = inflater.inflate(R.layout.tablayout,null);\n tabLayout = (TabLayout) x.findViewById(R.id.tabs);\n viewPager = (ViewPager) x.findViewById(R.id.viewpager);\n\n /**\n *Set an Apater for the View Pager\n */\n viewPager.setAdapter(new MyAdapter(getChildFragmentManager()));\n\n /**\n * Now , this is a workaround ,\n * The setupWithViewPager dose't works without the runnable .\n * Maybe a Support Library Bug .\n */\n\n tabLayout.post(new Runnable() {\n @Override\n public void run() {\n tabLayout.setupWithViewPager(viewPager);\n }\n });\n\n return x;\n\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n TextPagerAdapter mTextPagerAdapter = new TextPagerAdapter(\n getChildFragmentManager(), getMyData());\n mViewPager = (ViewPager) view.findViewById(R.id.pager);\n mViewPager.setAdapter(mTextPagerAdapter);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n Intent myIntent = getIntent(); // gets the previously created intent\n indexOfArtWork = myIntent.getIntExtra(\"indexOfArtWork\", 0);\n\n\n // uses library for swiping to create swipe effect\n SwipeBack.attach(this, Position.LEFT)\n .setContentView(R.layout.view_pager)\n .setSwipeBackView(R.layout.custom_swipeback)\n .setDividerAsSolidColor(Color.WHITE)\n .setDividerSize(2)\n .setOnInterceptMoveEventListener(\n new SwipeBack.OnInterceptMoveEventListener() {\n @Override\n public boolean isViewDraggable(View v, int dx,\n int x, int y) {\n if (v == viewPager) {\n return !(mPagerPosition == 0 && mPagerOffsetPixels == 0)\n || dx < 0;\n }\n\n return false;\n }\n });\n\n\n //creates fragment adapter to display all images\n viewPager = (ViewPager) findViewById(R.id.viewPager);\n viewPager.setOffscreenPageLimit(1);\n\n viewPager.setAdapter(new FragmentAdapter(getSupportFragmentManager()));\n viewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n\n viewPager.getCurrentItem();\n mPagerPosition = position;\n mPagerOffsetPixels = 90;\n if (position == indexOfArtWork) {\n mPagerPosition = 0;\n mPagerOffsetPixels = 0;\n\n }\n\n }\n\n\n });\n\n\n viewPager.setPageTransformer(true, new ZoomOutPageTransformer());\n\n viewPager.setCurrentItem(indexOfArtWork, true);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate( R.layout.fragment_news, container, false );\n vp = (ViewPager)view.findViewById(R.id.vp);\n FragmentAdapter adapter = new FragmentAdapter(getFragmentManager(),getContext());\n vp.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout)view.findViewById(R.id.scrollTab);\n tabLayout.setupWithViewPager(vp);\n\n tabLayout.setTabGravity(TabLayout.GRAVITY_CENTER);\n\n return view;\n }", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n SID = (UUID) getIntent().getSerializableExtra(EXTRA_ID);\n\n mQurans = QueryUtilsList.get(this).getAllPages();\n\n mBinding = ActivitySurhPagerBinding.inflate(getLayoutInflater());\n setContentView(mBinding.getRoot());\n\n\n // setContentView(R.layout.activity_surh_pager);\n\n mainToolbar = findViewById(R.id.qourn_toolbar) ;\n\n setSupportActionBar(mainToolbar);\n\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n\n\n // isActionBarHidden = false;\n mActionBarStatus.setActionBarStatus(false);\n\n\n int p = (int)getIntent().getSerializableExtra(EXTRA_SURH_START_PAGE) ;\n\n\n\n\n // QueryUtilsList queryUtilsList = QueryUtilsList.get(this);\n\n\n\n Spinner spinner = (Spinner) findViewById(R.id.spinner);\n\n\n mBinding.surhViewPager.setAdapter(new FragmentStateAdapter(this) {\n @NonNull\n @Override\n public Fragment createFragment(int position) {\n\n //quran = mQurans.get(position);\n\n // return QuranFragment.newInstance(quran.getId());\n return QuranFragment.arrayList.get(position);\n\n }\n\n @Override\n public int getItemCount() {\n //return mQurans.size();\n\n return QuranFragment.arrayList.size();\n }\n });\n\n mBinding.surhViewPager.registerOnPageChangeCallback(pageChangeCallback);\n mBinding.surhViewPager.setCurrentItem(p-1, false) ;\n\n\n\n\n// mViewPager = findViewById(R.id.surh_view_pager);\n/*\n\n mViewPager.setAdapter(new FragmentStateAdapter(this) {\n @NonNull\n @Override\n public Fragment createFragment(int position) {\n quran = mQurans.get(position);\n return QuranFragment.newInstance(quran.getId());\n }\n\n @Override\n public int getItemCount() {\n return mQurans.size();\n }\n\n\n });\n\n mPageChangeCallback = new ViewPager2.OnPageChangeCallback() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n super.onPageScrolled(position, positionOffset, positionOffsetPixels);\n\n }\n\n @Override\n public void onPageSelected(int position) {\n super.onPageSelected(position);\n Toast.makeText(SurhPagerActivity.this, \" position= \" +position , Toast.LENGTH_SHORT).show();\n\n\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n super.onPageScrollStateChanged(state);\n }\n };*/\n\n\n\n\n\n\n\n\n\n\n }", "@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}", "@Override\n\tpublic void initData() {\n\n\t\tsuper.initData();\n\t\tinitLsitData();\n\n\t\tviewpager.setAdapter(new MyPagerAdapter());\n\t\tindicator.setViewPager(viewpager);\n\n\t}", "@Override\n\t\tprotected void onCreate(Bundle savedInstanceState){\n\t\t\tsuper.onCreate(savedInstanceState);\n\t\t\tsetContentView(R.layout.pagerroot);\n\t\t\t((ViewPager)findViewById(R.id.rootDrawer)).setAdapter(new PagerAdapter());\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n\n mScrollView = (ScrollView) findViewById(R.id.scroll_view);\n mScrollContent = (ViewGroup) findViewById(R.id.content);\n\n mPager = new ScrollViewPager(mScrollView, mScrollContent);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.detail_viewpager, container, false);\n title = getArguments().getString(\"title\");\n subtitle = getArguments().getString(\"subtitle\");\n writer = getArguments().getString(\"writer\");\n image = getArguments().getString(\"image\");\n position = getArguments().getInt(\"position\");\n max = getArguments().getInt(\"max\");\n\n TextView titleView = (TextView)v.findViewById(R.id.detail_viewpager_title);\n TextView subtitleView = (TextView)v.findViewById(R.id.detail_viewpager_subtitle);\n TextView writerView = (TextView)v.findViewById(R.id.detail_viewpager_writer);\n ImageView imageView = (ImageView)v.findViewById(R.id.detail_viewpager_image);\n TextView indexView = (TextView)v.findViewById(R.id.detail_viewPager_index);\n\n titleView.setText(title);\n subtitleView.setText(subtitle);\n writerView.setText(\"by.\"+writer);\n indexView.setText((position+1)+\"/\"+max);\n Glide.with(getContext()).load(image).into(imageView);\n imageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(getContext(), FullScreenImageActivity.class);\n intent.putExtra(\"url\", image);\n startActivity(intent);\n }\n });\n\n return v;\n\n }", "private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.gallery_pager, container, false);\n\n this.pager = view.findViewById(R.id.gallery_pager);\n this.progressBar = view.findViewById(R.id.gallery_progress);\n\n this.next = (ImageButton) view.findViewById(R.id.gal_pgr_next);\n this.next.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int currentItem = pager.getCurrentItem();\n if(currentItem < imagesLength - 1) {\n pager.setCurrentItem(currentItem + 1);\n }\n }\n });\n this.prev = (ImageButton) view.findViewById(R.id.gal_pgr_prev);\n this.prev.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int currentItem = pager.getCurrentItem();\n if(currentItem > 0) {\n pager.setCurrentItem(currentItem - 1);\n }\n }\n });\n showProgress(true);\n\n\n reloadImageList();\n\n\n return view;\n }", "private void setupView(){\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n frgPageAdapter = new WeatherFragmentPagerAdapter(getSupportFragmentManager(),\n WeatherActivity.this,\n forecastData, todayWeatherData);\n viewPager.setAdapter(frgPageAdapter);\n viewPager.setOffscreenPageLimit(WeatherFragmentPagerAdapter.PAGE_COUNT);\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n tabLayout.setupWithViewPager(viewPager);\n\n // Getting Google Play availability status\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());\n if(status != ConnectionResult.SUCCESS){ // Google Play Services are not available\n\n int requestCode = 10;\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(status, this, requestCode);\n dialog.show();\n\n }else { // Google Play Services are available\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n criteria.setAccuracy(Criteria.ACCURACY_FINE);\n provider = locationManager.getBestProvider(criteria, true);\n if(provider != null){\n location = locationManager.getLastKnownLocation(provider);\n\n locationChangeListener = new LocationChangeListener(this, null);\n locationManager.requestLocationUpdates(provider, 10000, Float.parseFloat(\"100.0\"), locationChangeListener);\n setLocation(locationManager.getLastKnownLocation(provider));\n }\n }\n }", "public MaterialView(AppCompatActivity activity, MaterialViewPager pager)\n {\n this._act = activity;\n View view = LayoutInflater.from(activity).inflate(R.layout.view_pager_material_drawer,null);\n _contentLayout = (FrameLayout)view.findViewById(R.id.content);\n if(pager.allowsTabLayout())\n {\n TabLayout tabLayout = (TabLayout)_contentLayout.findViewById(R.id.tabs);\n tabLayout.setVisibility(View.VISIBLE);\n\n }\n\n _toolbar = (android.support.v7.widget.Toolbar) view.findViewById(R.id.toolbar);\n\n (_act).setSupportActionBar(_toolbar);\n (_act).getSupportActionBar().setHomeButtonEnabled(true);\n (_act). getSupportActionBar().setDisplayShowHomeEnabled(true);\n\n applyLayout(view, _act, false);\n pager.init();\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n mViewPager = (ViewPager) view.findViewById(R.id.viewpager2);\n mViewPager.setAdapter(new SamplePagerAdapter());\n\n // Give the SlidingTabLayout the ViewPager, this must be done AFTER the ViewPager has had\n // it's PagerAdapter set.\n mSlidingTabLayout = (SlidingTabLayout) view.findViewById(R.id.sliding_tabs2);\n mSlidingTabLayout.setViewPager(mViewPager);\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.viewpager_fragment,container, false);\n\n /*Create the fragments for the view pager.*/\n final PinSearchFragment searchFragment = PinSearchFragment.newInstance(pinList);\n final BoardListFragment boardFragment = BoardListFragment.newInstance(boardList);\n\n /*Set the view pager.*/\n ViewPager viewPager = (ViewPager) view.findViewById(R.id.viewPager);\n viewPager.setAdapter(new FragmentPagerAdapter(getChildFragmentManager()) {\n @Override\n public Fragment getItem(int position) {\n searchFragment.setArguments(getArguments());\n boardFragment.setArguments(getArguments());\n return position == 0 ? searchFragment : boardFragment;\n }\n\n @Override\n public CharSequence getPageTitle(int position) {\n return position == 0 ? \"Search\" : \"Boards\";\n }\n\n @Override\n public int getCount() {\n return 2;\n }\n });\n\n /*Set the tabs.*/\n TabLayout tabLayout = (TabLayout) view.findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "@Override\r\n\tprotected void onStart() {\n\t\tadapter = new TabAdapter(this);\r\n\t\tgrid.setAdapter(adapter);\r\n\t\tsuper.onStart();\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsetContentView(R.layout.activity_qadisplay);\r\n\t\tsetupQAData();\r\n\t\t// Instantiate a ViewPager and a PagerAdapter.\r\n\t\tmPager = (ViewPager) findViewById(R.id.pager);\r\n\t\tmHomeButton = (Button) findViewById(R.id.actqascreen_btnhome);\r\n\t\tmHomeButton.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent mIntent = new Intent(QAScreenActivity.this,\r\n\t\t\t\t\t\tMainActivity.class);\r\n\t\t\t\tmIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tstartActivity(mIntent);\r\n\t\t\t}\r\n\t\t});\r\n\t\tmAdapter = new PagerAdapter(getSupportFragmentManager());\r\n\t\tmPager.setAdapter(mAdapter);\r\n\r\n\t\tPageListener pl = new PageListener();\r\n\t\tmPager.setOnPageChangeListener(pl);\r\n\t}", "private void setUpPageChangeListener() {\n mPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {\n @Override\n public void onPageScrollStateChanged(int state) {\n super.onPageScrollStateChanged(state);\n\n // hide the FAB and 'up' button while the user is swiping\n if (ViewPager.SCROLL_STATE_DRAGGING == state) {\n int fade_out = getResources().getInteger(R.integer.FAB_fade_out_time);\n mFab.animate().alpha(0f).setDuration(fade_out);\n if (null != mBackButton) {\n mBackButton.animate().alpha(0f).setDuration(fade_out);\n }\n }\n\n // once the swiping (horiz. page change) has stopped set the new FAB color and\n // show the FAB again by fading in\n if (ViewPager.SCROLL_STATE_IDLE == state) {\n int fade_in = getResources().getInteger(R.integer.FAB_fade_in_time);\n if (null != mFab) {\n mFab.animate().alpha(1f).setDuration(fade_in);\n }\n if (null != mBackButton) {\n mBackButton.animate().alpha(1f).setDuration(fade_in);\n }\n }\n }\n\n @Override\n public void onPageSelected(int position) {\n if (mCursor != null) {\n mCursor.moveToPosition(position);\n long selectedItemId = mCursor.getLong(ArticleLoader.Query._ID);\n Globals.getInstance().setSelectedItemId(selectedItemId);\n }\n }\n });\n }" ]
[ "0.7798475", "0.77212673", "0.7689138", "0.7587416", "0.753572", "0.75251025", "0.7464989", "0.74634856", "0.7415902", "0.7374161", "0.7367921", "0.7296047", "0.7285483", "0.72773856", "0.72576743", "0.7242744", "0.72390354", "0.7218206", "0.72045267", "0.7203787", "0.71565646", "0.7121657", "0.7107096", "0.7104946", "0.70673496", "0.7065815", "0.7047279", "0.7010145", "0.700025", "0.6986705", "0.6967836", "0.69567937", "0.69527805", "0.6951652", "0.69446117", "0.69326836", "0.692445", "0.68942934", "0.6871696", "0.68340456", "0.68293434", "0.6823058", "0.6788003", "0.6779297", "0.6775002", "0.6758313", "0.6714531", "0.6708361", "0.66801685", "0.66799545", "0.66719306", "0.66706383", "0.6652232", "0.6634415", "0.66188234", "0.66072994", "0.6586324", "0.6577645", "0.65669894", "0.6546988", "0.6545274", "0.653633", "0.6512281", "0.64736235", "0.6435008", "0.64234275", "0.63968617", "0.6364473", "0.6343181", "0.63272446", "0.63132", "0.6280281", "0.6260518", "0.6247816", "0.6246021", "0.6244718", "0.6228463", "0.6224043", "0.6212182", "0.62101114", "0.62082434", "0.6205315", "0.62019765", "0.6183431", "0.6179655", "0.61772656", "0.6176106", "0.6166564", "0.61656106", "0.6162888", "0.6154355", "0.61383677", "0.6138348", "0.6136074", "0.613457", "0.61113375", "0.6109917", "0.6104025", "0.61036265", "0.61021715" ]
0.74351263
8
gets the files and the types sizes, and orders the files according to their size.
private void orderer(double[] sizes, File[] files) { for (int i = 0; i < sizes.length - 1; i++) { boolean flag = true; if(i < sizes.length -1) { if (sizes[i] > sizes[i + 1]) { // this file size is bigger than the next double tempInt = sizes[i]; // switch between them sizes[i] = sizes[i + 1]; sizes[i + 1] = tempInt; File tempFile = files[i]; files[i] = files[i + 1]; files[i + 1] = tempFile; flag = false; // there was a switch made, make sure we go over it all again } } else { if (!flag){ // we're not done ordering, restart i = -1; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void calculateSizes() {\n for(EmailTypes type : EmailTypes.values()){\n File f = unpackedFiles.get(type);\n setSizes.put(type, Objects.requireNonNull(f.listFiles()).length);\n }\n }", "private void sort() {\n setFiles(getFileStreamFromView());\n }", "@Test\n \tpublic void testSize() throws FileNotFoundException {\n \n \t\tMain.main(new String[]{\n \t\t\t\tArgs.TEST_STYLE_ARG,\n \t\t\t\t\"--preserve-element-order\",\n \t\t\t\tArgs.TEST_RESOURCE_OSM + \"uk-test-1.osm.gz\"\n \t\t});\n \n \t\tFileSystem fs = ImgFS.openFs(Args.DEF_MAP_ID + \".img\");\n \t\tassertNotNull(\"file exists\", fs);\n \n \t\tList<DirectoryEntry> entries = fs.list();\n \t\tint count = 0;\n \t\tfor (DirectoryEntry ent : entries) {\n \t\t\tString ext = ent.getExt();\n \n \t\t\tint size = ent.getSize();\n \t\t\tif (ext.equals(\"RGN\")) {\n \t\t\t\tcount++;\n \t\t\t\tassertEquals(\"RGN size\", 153466, size);\n \t\t\t} else if (ext.equals(\"TRE\")) {\n \t\t\t\tcount++;\n \t\t\t\tassertEquals(\"TRE size\", 1897, size);\n \t\t\t} else if (ext.equals(\"LBL\")) {\n \t\t\t\tcount++;\n\t\t\t\tassertEquals(\"LBL size\", 28351, size);\n \t\t\t}\n \t\t}\n \t\tassertTrue(\"enough checks run\", count >= 3);\n \t}", "private void initializeFileArrays(){\n File downloadedFilesFolder = new File(MainActivity.DB_PATH);\n File[] files = downloadedFilesFolder.listFiles();\n System.out.println(\"*** \" + files.length + \" ***\");\n if(files != null){\n System.out.println(\"*** \" + files.length + \" ***\");\n for(File f : files){\n if(f != null){\n System.out.println(\"***\\n FILE FOUND - \" + f.getAbsolutePath()+\"\\nSIZE - \" +\n f.length() + \" BYTES \\n***\");\n fileNames.add(f.getName());\n fileSizes.add(f.length()+\"\");\n this.files.add(f);\n }\n }\n }\n }", "private void gatherFile(FileStatus[] fstat)\r\n\t{\r\n\t inputSize = 0;\t\r\n\t paths = new Path[fstat.length];\t\r\n\t for(int i=0;i<fstat.length;i++)\r\n\t {\r\n\t inputSize+=fstat[i].getLen();\r\n\t paths[i] = fstat[i].getPath();\r\n\t }\r\n\t }", "public void sortBySize() {\n\t\tCollections.sort(animals);\n\t}", "public static void main(String[] args) {\n\t\tFile dir = new File(\"H:\");\r\n\t\tString[] filelist = dir.list();\r\n\t\tlong total = 0;\r\n\t\tlong t = 0;\r\n\t\tfor(int i=0;i<filelist.length;i++){\r\n\t\t\t File readfile = new File(\"H:\" + \"\\\\\" + filelist[i]);\r\n\t\t\t t = readFile(readfile)/1024/1024;\r\n\t\t\t System.out.println(\"name=\" + readfile.getName() + \" size:=\" + t + \"MB\");\r\n\t\t\t total += t;\r\n\t\t}\r\n\t\tSystem.out.println(\"OK,all the files is list over,the number is \" + filelist.length + \"the total size is \" + total); \r\n\t}", "private static File[] sortFileList(File[] list, String sort_method) {\n // sort the file list based on sort_method\n // if sort based on name\n if (sort_method.equalsIgnoreCase(\"name\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return (f1.getName()).compareTo(f2.getName());\n }\n });\n }\n else if (sort_method.equalsIgnoreCase(\"size\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return Long.valueOf(f1.length()).compareTo(f2.length());\n }\n });\n }\n else if (sort_method.equalsIgnoreCase(\"time\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return Long.valueOf(f1.lastModified()).compareTo(f2.lastModified());\n }\n });\n }\n return list;\n }", "private static File[] sortFileList(File[] list, String sort_method) {\n // sort the file list based on sort_method\n // if sort based on name\n if (sort_method.equalsIgnoreCase(\"name\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return (f1.getName()).compareTo(f2.getName());\n }\n });\n } else if (sort_method.equalsIgnoreCase(\"size\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return Long.valueOf(f1.length()).compareTo(f2.length());\n }\n });\n } else if (sort_method.equalsIgnoreCase(\"time\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return Long.valueOf(f1.lastModified()).compareTo(f2.lastModified());\n }\n });\n }\n return list;\n }", "private static <T> List<File> sortInBatch(BufferedReader fbr, long blocksize, Comparator<T> cmp,\n Charset cs, File tmpdirectory,\n boolean distinct, int numHeader, Compression algorithm,\n Function<T, String> typeToString, Function<String, T> stringToType)\n throws IOException {\n List<File> files = new ArrayList<File>();\n try {\n List<T> tmplist = new ArrayList<>();\n String line = \"\";\n try {\n int counter = 0;\n while (line != null) {\n // in bytes\n long currentblocksize = 0;\n while ((currentblocksize < blocksize)\n && ((line = fbr.readLine()) != null)) {\n // as long as you have enough memory\n if (counter < numHeader) {\n counter++;\n continue;\n }\n tmplist.add(stringToType.apply(line));\n // ram usage estimation, not\n // very accurate, still more\n // realistic that the simple 2 *\n // String.length\n currentblocksize += StringSizeEstimator\n .estimatedSizeOf(line);\n }\n files.add(sortAndSave(tmplist, cmp, cs,\n tmpdirectory, distinct, algorithm, typeToString));\n tmplist.clear();\n }\n } catch (EOFException oef) {\n if (tmplist.size() > 0) {\n files.add(sortAndSave(tmplist, cmp, cs,\n tmpdirectory, distinct, algorithm, typeToString));\n tmplist.clear();\n }\n }\n } finally {\n fbr.close();\n }\n return files;\n }", "private static void stepSorter(String file, DataOutputStream d, int size) throws FileNotFoundException, IOException {\n\t\tDataInputStream inputA = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(file))));\n\t\tDataInputStream inputB = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(file))));\n\t\tint numDivisions = (int) Math.ceil(fileSize/((double) size));\n\t\tinputB.skip(size*4);\n\t\tfor (int j = 0; j < numDivisions/2; j++){\t\n\t\t\tint counterA = size;\n\t\t\tint counterB = Math.min(fileSize - j*size*2 - size, size);\n\t\t\tInteger a = inputA.readInt();\n\t\t\tInteger b = inputB.readInt();\n\t\t\twhile (counterA > 0 && counterB > 0){\n\t\t\t\tif (a < b){\n\t\t\t\t\td.writeInt(a);\n\t\t\t\t\tif (counterA > 1){\n\t\t\t\t\t\ta = inputA.readInt();\n\t\t\t\t\t}\n\t\t\t\t\tcounterA--;\n\t\t\t\t} else {\n\t\t\t\t\td.writeInt(b);\n\t\t\t\t\tif (counterB > 1){\n\t\t\t\t\t\tb = inputB.readInt();\n\t\t\t\t\t}\n\t\t\t\t\tcounterB--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (counterA == 0){\n\t\t\t\td.writeInt(b);\n\t\t\t\tcounterB--;\n\t\t\t\tfor (int i =0; i < counterB; i++){\n\t\t\t\t\td.writeInt(inputB.readInt());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\td.writeInt(a);\n\t\t\t\tcounterA--;\n\t\t\t\tfor (int i =0; i < counterA; i++){\n\t\t\t\t\td.writeInt(inputA.readInt());\n\t\t\t\t}\n\t\t\t}\n\t\t\tinputA.skip(size*4);\n\t\t\tinputB.skip(size*4);\n\t\t}\n\t\t\n\t\t//copy the excess\n\t\twhile (inputA.available()>0){\n\t\t\td.writeInt(inputA.readInt());\n\t\t}\n\t\tinputA.close();\n\t\tinputB.close();\n\t\td.flush();\n\t}", "public static File[] getSortedFiles(File[] files){\n Arrays.sort(files, new Comparator<File>() {\t\n \tpublic int compare(File o1, File o2){\n \t\tint n1 = getPageSequenceNumber(o1.getName());\n \t\tint n2 = getPageSequenceNumber(o2.getName());\n \t\treturn n1 - n2;\n \t}\n });\n \n return files;\n\t}", "String[] getFileTypes();", "public static void Java_ls(File dir, String display_method, String sort_method) {\n // TODO: list files\n File[] fileList = dir.listFiles();\n if (display_method == null) {\n for (File file : fileList) {\n System.out.println(file.getName());\n }\n } else if (sort_method == null) {\n for (File file : fileList) {\n System.out.format(\"%-15s Size: %-10s Last Modified: %-40s\", file.getName(), file.length(), new Date(file.lastModified()));\n System.out.println();\n }\n } else {\n File[] sorted = sortFileList(fileList, sort_method);\n for (File file : sorted) {\n System.out.format(\"%-15s Size: %-10s Last Modified: %-40s\", file.getName(), file.length(), new Date(file.lastModified()));\n System.out.println();\n }\n }\n }", "public Vector getTypedFiles() {\r\n\treturn getTypedFilesForDirectory(getCurrentDirectory());\r\n }", "List<File> compress(File directory, int size);", "int getFilesCount();", "int getFilesCount();", "private void getExtractWithFiles(){\n\t\ttry{\n\t\t\t\n\t\t\tFileInputStream fStream = new FileInputStream(tfile);\n\t\t\tfileBytes = new byte[(int)tfile.length()];\n\t\t\t\n\t\t\tfStream.read(fileBytes, 0, fileBytes.length);\n\t\t\tfileSize = fileBytes.length;\n\t\t}catch(Exception ex){\n\t\t\tSystem.err.println(\"File Packet \"+ex.getMessage());\n\t\t}\n\t}", "public static void getListOfAllFileVarianta2() {\n\t\tPath pathToSrc = Paths.get(\"D:\\\\TorrentsMd\");\r\n\t\ttry {\r\n\t\t\t//cu method references\r\n//\t\t\tFiles.walk(pathToSrc)\r\n//\t\t\t\t.map(Path::toFile)\r\n//\t\t\t\t.filter(File::isFile)\r\n//\t\t\t\t.map(File::getName)\r\n//\t\t\t\t.sorted()\r\n//\t\t\t\t.forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t//cu lambda, dar dpdv semantic sunt identice\r\n\t\t\tFiles.walk(pathToSrc)\r\n\t\t\t\t .map(path -> path.toFile()) //trasnform fiecare Path din stream intr-un File\r\n\t\t\t\t .filter(file -> file.isFile()) //filtrez doar fisierele\r\n\t\t\t\t .map(file -> file.getName())//transform fiecare File din stream intr-un String, care e numele sau\r\n\t\t\t\t .sorted()\r\n\t\t\t\t .forEach(file -> System.out.println(file));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "static void mergeSortedFiles() throws IOException {\n\n\t\tBufferedReader[] bufReaderArray = new BufferedReader[noOfFiles];\n\t\tList<String> intermediateList = new ArrayList<String>();\n\t\tList<String> lineDataList = new ArrayList<String>();\n\n\t\tfor (int file = 0; file < noOfFiles; file++) {\n\t\t\tbufReaderArray[file] = new BufferedReader(new FileReader(DividedfileList.get(file)));\n\n\t\t\tString fileLine = bufReaderArray[file].readLine();\n\n\t\t\tif (fileLine != null) {\n\t\t\t\tintermediateList.add(fileLine.substring(0, 10));\n\t\t\t\tlineDataList.add(fileLine);\n\t\t\t}\n\t\t}\n\n\t\tBufferedWriter bufw = new BufferedWriter(new FileWriter(Outputfilepath));\n\n\t\t// Merge files into one file\n\n\t\tfor (long lineNumber = 0; lineNumber < totalLinesInMainFile; lineNumber++) {\n\t\t\tString sortString = intermediateList.get(0);\n\t\t\tint sortFile = 0;\n\n\t\t\tfor (int iter = 0; iter < noOfFiles; iter++) {\n\t\t\t\tif (sortString.compareTo(intermediateList.get(iter)) > 0) {\n\t\t\t\t\tsortString = intermediateList.get(iter);\n\t\t\t\t\tsortFile = iter;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbufw.write(lineDataList.get(sortFile) + \"\\r\\n\");\n\t\t\tintermediateList.set(sortFile, \"-1\");\n\t\t\tlineDataList.set(sortFile, \"-1\");\n\n\t\t\tString nextString = bufReaderArray[sortFile].readLine();\n\n\t\t\tif (nextString != null) {\n\t\t\t\tintermediateList.set(sortFile, nextString.substring(0, 10));\n\t\t\t\tlineDataList.set(sortFile, nextString);\n\t\t\t} else {\n\t\t\t\tlineNumber = totalLinesInMainFile;\n\n\t\t\t\tList<String> ListToWrite = new ArrayList<String>();\n\n\t\t\t\tfor (int file = 0; file < intermediateList.size(); file++) {\n\t\t\t\t\tif (lineDataList.get(file) != \"-1\")\n\t\t\t\t\t\tListToWrite.add(lineDataList.get(file));\n\n\t\t\t\t\twhile ((sortString = bufReaderArray[file].readLine()) != null) {\n\t\t\t\t\t\tListToWrite.add(sortString);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tCollections.sort(ListToWrite);\n\t\t\t\tint index = 0;\n\t\t\t\twhile (index < ListToWrite.size()) {\n\t\t\t\t\tbufw.write(ListToWrite.get(index) + \"\\r\\n\");\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tbufw.close();\n\t\tfor (int file = 0; file < noOfFiles; file++)\n\t\t\tbufReaderArray[file].close();\n\t}", "int getFileInfoCount();", "public static int filesWithSizes (File f)\n\t{\n\t\tif (f.isFile())\n\t\t{\n\t\t\tif (f.length()>= 10000 && f.length() <= 25000)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint count = 0;\n\t\t\tfor (File file: f.listFiles())\n\t\t\t{\n\t\t\t\tcount += filesWithSizes(file);\n\t\t\t}\n\t\t\treturn count;\n\t\t}\n\t}", "public static void compareSizeBetween2Files(File f1, File f2)\n {\n\t if(f1.canRead() && f2.canRead())\n\t {\n\t\t if(f1.length() < f2.length())\n\t\t {\n\t\t\t System.out.println(f2.getName()+\" is bigger than \" +f1.getName());\n\t\t }\n\t\t else if(f1.length() > f2.length())\n\t\t {\n\t\t\t System.out.println(f1.getName()+\" is bigger than \" +f2.getName());\n\t\t }\n\t\t else\n\t\t {\n\t\t\t System.out.println(f1.getName()+\" and \" +f2.getName()+\" have the same size\");\n\t\t }\n\t }\n\t else\n\t {\n\t\t System.out.println(\"At least one of the file has not read permissions\");\n\t }\n }", "public void sort() throws IOException {\n for(int i = 0; i < 32; i++)\n {\n if(i%2 == 0){\n filePointer = file;\n onePointer = one;\n }else{\n filePointer = one;\n onePointer = file;\n }\n filePointer.seek(0);\n onePointer.seek(0);\n zero.seek(0);\n zeroCount = oneCount = 0;\n for(int j = 0; j < totalNumbers; j++){\n int n = filePointer.readInt();\n sortN(n,i);\n }\n //Merging\n onePointer.seek(oneCount*4);\n zero.seek(0L);\n for(int j = 0; j < zeroCount; j++){\n int x = zero.readInt();\n onePointer.writeInt(x);\n }\n //One is merged\n }\n }", "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}", "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 }", "private void testZipfileOrder(Path out) throws IOException {\n ZipFile outZip = new ZipFile(out.toFile());\n Enumeration<? extends ZipEntry> entries = outZip.entries();\n int index = 0;\n LinkedList<String> entryNames = new LinkedList<>();\n // We expect classes*.dex files first, in order, then the rest of the files, in order.\n while(entries.hasMoreElements()) {\n ZipEntry entry = entries.nextElement();\n if (!entry.getName().startsWith(\"classes\") || !entry.getName().endsWith(\".dex\")) {\n entryNames.add(entry.getName());\n continue;\n }\n if (index == 0) {\n Assert.assertEquals(\"classes.dex\", entry.getName());\n } else {\n Assert.assertEquals(\"classes\" + (index + 1) + \".dex\", entry.getName());\n }\n index++;\n }\n // Everything else should be sorted according to name.\n String[] entriesUnsorted = entryNames.toArray(StringUtils.EMPTY_ARRAY);\n String[] entriesSorted = entryNames.toArray(StringUtils.EMPTY_ARRAY);\n Arrays.sort(entriesSorted);\n Assert.assertArrayEquals(entriesUnsorted, entriesSorted);\n }", "@Test\n @Order(6)\n void tabuSizeTest() {\n for (String taillardFilename : SearchTestUtil.taillardFilenames) {\n System.out.println(\"-----------------\");\n System.out.println(\"Run \" + taillardFilename);\n System.out.println(\"-----------------\");\n tabuSizeTestWith(taillardFilename);\n }\n }", "protected void preprocess() {\n log.info(\"Processing files. Max size is {} bytes\", max);\n\n int idx = 0;\n boolean closed = false;\n\n Bag current = new Bag();\n PayloadManifest currentManifest = new PayloadManifest();\n\n for (PayloadFile file : b.getFiles().values()) {\n closed = false;\n current.addFile(file);\n currentManifest.addPayloadFile(file);\n\n if (current.getSize() >= max) {\n finishProcessing(current, currentManifest, idx++);\n\n closed = true;\n current = new Bag();\n currentManifest = new PayloadManifest();\n }\n }\n\n // Close out the final bag\n if (!closed) {\n finishProcessing(current, currentManifest, idx);\n }\n }", "private static void retrieveFiles(File fileDir) {\n List<String> files = Arrays.asList(fileDir.list());\n if (files.isEmpty()) {\n System.out.println(\"There are no files under current directory.\");\n return;\n }\n Collections.sort(files);\n int numOfFiles = files.size();\n System.out.println(\"There are \" + numOfFiles + \" files under current directory.\");\n for (int i = 1; i <= numOfFiles; i++) {\n System.out.println(i + \" - \" + files.get(i - 1));\n }\n }", "@Override\r\n\tprotected void sort(List<ObjectStatus> objects) {\r\n\t\tCollections.sort(objects, new Comparator<ObjectStatus>() {\r\n\t\t\tpublic int compare(ObjectStatus o2, ObjectStatus o1) {\r\n\t\t\t\treturn Integer.compare(o2.getSize(), o1.getSize());\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "ArrayList<String> sortFiles(String[] allFiles){\n\n ArrayList<String> tempArrayList = new ArrayList<String>();\n ArrayList<String> returnArrayList = new ArrayList<String>();\n String[] tempArray = allFiles;\n String[] returnArray;\n\n int numOfFiles = tempArray.length;\n\n //delete nonneeded files\n for(int k = 0; k < numOfFiles; k++){\n if (tempArray[k].startsWith(\"G-\") || tempArray[k].startsWith(\"M-\") || tempArray[k].startsWith(\"I-\")){\n tempArrayList.add(tempArray[k]);\n }\n }\n\n returnArray = new String[tempArrayList.size()];\n for(int i = 0; i < tempArrayList.size(); i++){\n returnArray[i] = tempArrayList.get(i);\n }\n\n //if 0 return empty array\n if (returnArray.length < 2){\n return returnArrayList;\n }\n\n //bubble sort\n for (int i = 0; i < returnArray.length-1; i++){\n for (int j = 0; j < returnArray.length-i-1; j++){\n //get string of full number from file\n String tempFirst = returnArray[j].split(\"_\")[2] + returnArray[j].split(\"_\")[3];\n String tempSecond = returnArray[j+1].split(\"_\")[2] + returnArray[j+1].split(\"_\")[3];\n //take out csv if it is not a subgraph\n if (!tempFirst.contains(\"_subgraph_\")){\n tempFirst = tempFirst.substring(0,14);\n }\n if (!tempSecond.contains(\"_subgraph_\")){\n tempSecond = tempSecond.substring(0,14);\n }\n //get int of string\n long tempFirstNum = Long.parseLong(tempFirst);\n long tempSecondNum = Long.parseLong(tempSecond);\n //compare and swap if bigger\n if (tempFirstNum >= tempSecondNum)\n {\n String temp = returnArray[j];\n returnArray[j] = returnArray[j+1];\n returnArray[j+1] = temp;\n }\n }\n }\n\n //add elements to arraylist with newest date being first\n for(int k = returnArray.length-1; k >= 0; k--){\n returnArrayList.add(returnArray[k]);\n System.out.println(allFiles[k]);\n }\n\n return returnArrayList;\n }", "public static void ascendingOrder(File folder) {\n try {\n\n folder.exists();\n File[] listOfFiles = folder.listFiles();\n Arrays.sort(listOfFiles);\n if (listOfFiles.length > 0) {\n for(int i = 0; i < listOfFiles.length; i++) {\n\n System.out.println(\"File :\" + listOfFiles[i].getName());\n }\n } else {\n System.out.println(\"No Files in the folder\");\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "private void readFileList(String mediaType){\n Log.v(TAG,\"Context = \" + mContext);\n Uri uri = null;\n if(mediaType.equals(IMAGE)) {\n uri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n }\n else if(mediaType.equals(VIDEO)){\n uri = android.provider.MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n }\n\n if(uri == null){\n Log.v(TAG, \"ERROR: Media type error\");\n return;\n }\n else {\n String[] projection = {MediaStore.MediaColumns._ID, MediaStore.MediaColumns.DATA\n , MediaStore.MediaColumns.DISPLAY_NAME, MediaStore.MediaColumns.SIZE};\n\n Cursor cursor = mContext.getContentResolver().query(uri, projection, null, null, null);\n while (cursor != null && cursor.moveToNext()) {\n int column_index_data = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n String data = cursor.getString(column_index_data);\n int column_index_id = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns._ID);\n int fileId = cursor.getInt(column_index_id);\n String displayName = cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DISPLAY_NAME));\n long fileSize = cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.SIZE));\n\n //Get information of files in friendsCameraSample folder\n if (data.contains(\"friendsCameraSample\")) {\n HashMap<String, String> info = new HashMap<>();\n info.put(OSCParameterNameMapper.FileInfo.NAME, displayName);\n info.put(OSCParameterNameMapper.FileInfo.URL, data);\n info.put(OSCParameterNameMapper.FileInfo.SIZE, String.valueOf(fileSize));\n adapter.addItem(info, fileId);\n adapter.notifyDataSetChanged();\n }\n }\n }\n }", "@Override\n public List<FileDescription> loadFileTree(FileTreeOptions fileTreeOptions) {\n try {\n String path = GetNormalizedBlobName(fileTreeOptions.getPath());\n List<FileDescription> fileTree = GetFileTree(path);\n// switch (fileTreeOptions.getOrderBy())\n// {\n// case Name:\n// fileTree = fileTreeOptions.getOrderAsc() ? fileTree.OrderBy(_ => _.Name).ToList() : fileTree.OrderByDescending(_ => _.Name).ToList();\n// break;\n// case LastModificationDate:\n// fileTree = fileTreeOptions.getOrderAsc() ? fileTree.OrderBy(_ => _.LastModificationDate).ToList() : fileTree.OrderByDescending(_ => _.LastModificationDate).ToList();\n// break;\n// case Size:\n// fileTree = fileTreeOptions.getOrderAsc() ? fileTree.OrderBy(_ => _.Size).ToList() : fileTree.OrderByDescending(_ => _.Size).ToList();\n// break;\n// default:\n// break;\n// }\n return fileTree;\n } catch (Exception ex) {\n throw new GroupDocsException(\"Failed to load file tree.\" + ex.getMessage());\n }\n }", "public Vector<file> count()\n {\n Vector<Model.file> files = new Vector<>();\n try\n {\n pw.println(11);\n\n files = (Vector<Model.file>) ois.readObject();\n\n }\n catch (ClassNotFoundException | IOException e)\n {\n System.out.println(e.getMessage());\n }\n return files ;\n }", "public static ArrayList<StatisticResult> composeStatisticalResult(List<LocalFile> files) {\n ArrayList<StatisticResult> result = new ArrayList<>();\n if (files.size() == 0) return result;\n Map<String, Long> sizeMap = new HashMap<>();\n Map<String, Integer> extensionMap = new HashMap<>();\n long totalSize = 0;\n\n for (LocalFile file : files) {\n if (sizeMap.containsKey(file.getFileName())) {\n sizeMap.put(file.getFileName(),\n sizeMap.get(file.getFileName()) > file.getFileSize() ?\n sizeMap.get(file.getFileName()) : file.getFileSize());\n } else {\n sizeMap.put(file.getFileName(), file.getFileSize());\n }\n if (extensionMap.containsKey(file.getFileExtension())) {\n extensionMap.put(file.getFileExtension(), extensionMap.get(file.getFileExtension())+1);\n } else {\n extensionMap.put(file.getFileExtension(), 1);\n }\n totalSize += file.getFileSize();\n }\n\n result.add(new StatisticResult(BIGEST_FILE_SIZE_TAB, BYTE_TAB));\n sortBySize(sizeMap, result);\n addDivider(result);\n result.add(new StatisticResult(AVERAGE_FILE_SIZE_TAB, (totalSize / files.size()) + BYTE_TAB));\n addDivider(result);\n result.add(new StatisticResult(POPULAR_FILE_EXTENSION, FREQUENCY_TAB));\n sortByExtension(extensionMap, result);\n return result;\n }", "public static long getAllSize2(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) && !file.getPath().equals(path.getPath()))\n \t\t\t{\n\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\treturn size;\n\t}", "public static ArrayList<File> sortOsmFiles(Set<File> files) {\n File[] sortingArray = files.toArray(new File[0]);\n Arrays.sort(sortingArray, LastModifiedFileComparator.LASTMODIFIED_COMPARATOR);\n ArrayList<File> sortedList = new ArrayList<>();\n for(int i = 0; i < sortingArray.length; i++) {\n sortedList.add(sortingArray[i]);\n }\n\n return sortedList;\n }", "public static void sortFiles(List<File> files)\r\n\t{\r\n\t\t/*\r\n\t\t * bubblesort algorithm\r\n\t\t */\r\n\t\tboolean changesMade = true;\r\n\t\t\r\n\t\twhile (changesMade)\r\n\t\t{\r\n\t\t\tchangesMade = false;\r\n\t\t\t\r\n\t\t\tfor(int x=1; x<files.size(); x++)\r\n\t\t\t{\r\n\t\t\t\t/*\r\n\t\t\t\t * if file at index x has a lower number than the file\r\n\t\t\t\t * at index x-1\r\n\t\t\t\t */\r\n\t\t\t\tif(getFileNum(files.get(x)) < getFileNum(files.get(x-1)))\r\n\t\t\t\t{\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * put this file in the previous index\r\n\t\t\t\t\t */\r\n\t\t\t\t\tFile tempFile = files.get(x);\r\n\t\t\t\t\tfiles.remove(x);\r\n\t\t\t\t\tfiles.add(x-1, tempFile);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//indicate changes were made\r\n\t\t\t\t\tchangesMade = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "protected void createFileList()\n {\n // get a sorted array of files\n File f = new File(appManagementDir);\n String[] files = f.list(new FileFilter(AppSettings.getFilter()));\n \n // get the adapter for this file list\n ArrayAdapter<String> a = (ArrayAdapter<String>)fileList.getAdapter();\n a.clear();\n \n // clear the check boxes\n fileList.clearChoices();\n \n if (files != null && files.length > 0)\n {\n Arrays.sort(files, 0, files.length, new Comparator<Object>() {\n \n @Override\n public int compare(Object object1, Object object2)\n {\n int comp = 0;\n if (object1 instanceof String \n && object2 instanceof String)\n {\n String str1 = (String)object1;\n String str2 = (String)object2;\n \n comp = str1.compareToIgnoreCase(str2);\n }\n \n return comp;\n }});\n \n \n // add all the files\n for (String fileName : files)\n {\n a.add(fileName);\n }\n \n fileList.invalidate();\n }\n }", "public static void sort(String f1, String f2) throws FileNotFoundException, IOException {\n\t\tDataInputStream input = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(f1))));\n\t\tfileSize = (int) input.available()/4;\n\t\tif (fileSize == 0){ input.close(); return;} //file is empty\t\n\t\t\n\t\tRandomAccessFile f1a = new RandomAccessFile(f1,\"rw\");\n\t\tRandomAccessFile f2a = new RandomAccessFile(f2,\"rw\");\n\t\tDataOutputStream f1d = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f1a.getFD())));\n\t\tDataOutputStream f2d = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f2a.getFD())));\n\t\t\n\t\t//perform quicksort on partitions of quickSortSize\n\t\tquickSortSize = (int) (Math.min(quickSortSize, fileSize)); \n\t\tint numDivisions = (int) (Math.floor(fileSize/quickSortSize));\n\t\tint excess = (int) (fileSize%(numDivisions*quickSortSize));\n\t\tint[] tmp = new int[quickSortSize];\n\t\tfor (int j = 0; j < numDivisions; j++){\n\t\t\tfor (int i = 0; i< quickSortSize; i++){\n\t\t\t\ttmp[i] = input.readInt();\n\t\t\t}\n\t\t\tquickSort(tmp);\n\t\t\tfor (int i: tmp){\n\t\t\t\tf2d.writeInt(i);\n\t\t\t}\n\t\t}\n\t\ttmp = new int[excess];\n\t\tfor (int i = 0; i< excess; i++){\n\t\t\ttmp[i] = input.readInt();\n\t\t}\n\t\tquickSort(tmp);\n\t\tfor (int i: tmp){\n\t\t\tf2d.writeInt(i);\n\t\t}\n\t\tf2d.flush();\n\t\tinput.close();\n\t\t\n\t\t//Perform Merge sort on the larger partitions\n\t\tint iteration = (int) Math.ceil(Math.log(fileSize/(quickSortSize))/Math.log(2));\n\t\tfor (int i = 0; i < iteration; i++){\n\t\t\tint size = (int) Math.pow(2, i)*quickSortSize;\n\t\t\tif (i%2 == 0){ \n\t\t\t\tf1a.seek(0);\n\t\t\t\tstepSorter(f2, f1d, size);\n\t\t\t} else {\n\t\t\t\tf2a.seek(0);\n\t\t\t\tstepSorter(f1, f2d, size);\n\t\t\t}\n\t\t}\n\n\t\t//Copies f2 to f1 if the iteration ends with f2\n\t\tif (iteration%2==0){\n\t\t\tFileChannel source = null;\n\t\t\tFileChannel destination = null;\n\t\t\ttry {\n\t\t\t\tsource = new FileInputStream(f2).getChannel();\n\t\t\t\tdestination = new FileOutputStream(f1).getChannel();\n\t\t destination.transferFrom(source, 0, source.size());\n\t\t }\n\t\t finally {\n\t\t if(source != null) {\n\t\t source.close();\n\t\t }\n\t\t if(destination != null) {\n\t\t destination.close();\n\t\t }\n\t\t }\n\t\t}\n\t\tf1a.close();\n\t\tf2a.close();\n\t\tf1d.close();\n\t\tf2d.close();\n\t}", "public void initializeAfterLoading() {\n sortMediaFiles();\n }", "public void getListaArchivos() {\n\n File rutaAudio = new File(Environment.getExternalStorageDirectory() + \"/RecordedAudio/\");\n File[] archivosAudio = rutaAudio.listFiles();\n\n for (int i = 0; i < archivosAudio.length; i++) {\n File file = archivosAudio[i];\n listadoArchivos.add(new Archivo(file.getName()));\n }\n\n File rutaVideos = new File(Environment.getExternalStorageDirectory() + \"/RecordedVideo/\");\n File[] archivosVideo = rutaVideos.listFiles();\n\n for (int i = 0; i < archivosVideo.length; i++) {\n File file = archivosVideo[i];\n listadoArchivos.add(new Archivo(file.getName()));\n }\n }", "@java.lang.Override\n public int getFilesCount() {\n return files_.size();\n }", "public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}", "private List<Integer> getSortedFileIds() {\n Set<Integer> fileIds = new HashSet<Integer>();\n BlockStoreMeta storeMeta = mBlockDataManager.getStoreMeta();\n for (List<Long> blockIds : storeMeta.getBlockList().values()) {\n for (long blockId : blockIds) {\n int fileId = BlockInfo.computeInodeId(blockId);\n fileIds.add(fileId);\n }\n }\n List<Integer> sortedFileIds = new ArrayList<Integer>(fileIds);\n Collections.sort(sortedFileIds);\n return sortedFileIds;\n }", "@Override\n public int getItemCount() {\n return sortedFilesArrList.size();\n }", "@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }", "public void compareFiles() {\n\t \n\t\tprepareLinesFile(fileName1, linesFile1);\n\t\tprepareLinesFile(fileName2, linesFile2);\n\t\t\n\t\t//If both files have the same number of lines then we compare each line\n\t if (linesFile1.size() == linesFile2.size()) {\n\t \t \tfor (int i = 0; i < linesFile1.size(); i++) {\n\t \t\tcompareLines(i);\t\t\t\t\n\t\t\t}\n\t }\n\t \n\t //Otherwise\n\t else {\n\t \t//We distinguish the files by their number of lines\n\t \tfinal ArrayList<String> linesLongerFile;\n\t \tfinal ArrayList<String> linesShorterFile;\n\t \t\n\t \t\n\t \tif (linesFile1.size() > linesFile2.size()) {\n\t \t\tlinesLongerFile = linesFile1;\n\t \t\tlinesShorterFile = linesFile2;\n\t \t}\n\t \t\n\t \telse {\n\t \t\tlinesLongerFile = linesFile2;\n\t \t\tlinesShorterFile = linesFile1;\n\t \t}\n\t \t\n\t \tint counter = 0;\n\t \t//We compare each line a number of times equals to the number of the shortest file lines\n\t \tfor (int i = 0; i < linesShorterFile.size(); i++) {\n\t \t\tcompareLines(i);\n\t \t\tcounter = i;\n\t \t}\n\t \t\n\t \t//We show the remaining lines to add into the first file\n\t \tfor (int i = counter+1; i < linesLongerFile.size(); i++) {\n\t \t\t\n\t \t\t//If the second file is the longest then we show the remaining lines to add into the first file\n\t \t\tif (linesLongerFile.size() == linesFile2.size()) {\n\t \t\t\tSystem.out.println(\"+ \"+linesLongerFile.get(i));\n\t \t\t}\n\t \t\t\n\t \t\t//If the first file is the longest then we show the remaining lines to delete \n\t \t\telse {\n\t \t\t\tSystem.out.println(\"- \"+linesLongerFile.get(i));\n\t \t\t}\n\t \t\t\n\t \t}\n\t }\t\t\n\t}", "private void sortSongs(Context context)\n {\n boolean foundArtist;\n for (Song song : songs)\n {\n foundArtist = false;\n for (Artist artist : artists)\n {\n if (song.artistName.equals(artist.name))\n {\n artist.addSong(song);\n foundArtist = true;\n break;\n }\n }\n if (!foundArtist)\n artists.add(new Artist(song));\n }\n\n //sorts all songs\n sortSongs(songs);\n\n //sort artists\n sortArtists(artists);\n\n //sort albums, songs and set cover\n for (Artist artist : artists)\n {\n //albums\n sortAlbums(artist.albums);\n\n for (Album album : artist.albums)\n {\n //sort album songs\n sortSongs(album.songs);\n\n //set cover\n album.cover = ImageLoader.getAlbumart(context, album.songs.get(0).albumId);\n }\n }\n }", "public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}", "private void sortFileToScreen() throws FileNotFoundException {\n Scanner file = new Scanner(new File(FILE_NAME));\n while (file.hasNext()) {\n addToOrderedList(file.nextInt());\n }\n file.close();\n printList();\n }", "static void viewFiles()\r\n\t {\n\t\t File directoryPath = new File(\"D:\\\\java_project\");\r\n\t File filesList[] = directoryPath.listFiles();\r\n System.out.println(\"List of files and directories in the specified directory:\");\r\n\t for(File file : filesList) \r\n\t {\r\n\t System.out.println(\"File name: \"+file.getName());\r\n\t System.out.println(\"File path: \"+file.getAbsolutePath());\r\n\t System.out.println(\"Size :\"+file.getTotalSpace());\r\n\t System.out.println(\"last time file is modified :\"+new Date(file.lastModified()));\r\n System.out.println(\" \");\r\n\t }\r\n }", "public void calculateDiskUsage() {\n\t\tdiskUsage = 0;\n\t\t// FIXME the speed of this can be improved by using a static map of content/ncc doc sizes \n\t\tfor (FilesetFile fsf : allFiles) {\n\t\t\tdiskUsage += fsf.getFile().length();\n\t\t}\t\t\n\t}", "@Override\n public void sort() throws IOException {\n long i = 0;\n // j represents the turn of writing the numbers either to g1 or g2 (or viceversa)\n long j = 0;\n long runSize = (long) Math.pow(2, i);\n long size;\n\n long startTime = System.currentTimeMillis();\n\n System.out.println(\"Strart sorting \"+ this.inputFileName);\n\n while(i <= Math.ceil(Math.log(this.n) / Math.log(2))){\n j = 0;\n do{\n size = merge(runSize, destinationFiles[(int)j % 2]);\n j += 1;\n }while (size/2 == runSize);\n\n System.out.println(\"iteration: \" + i + \", Run Size:\" + runSize + \", Total time elapsed: \" + (System.currentTimeMillis() - startTime));\n i += 1;\n runSize = (long) Math.pow(2, i);\n swipe();\n }\n System.out.println(\"The file has been sorted! Total time elapsed: \"+(System.currentTimeMillis() - startTime));\n\n destinationFiles[0].close();\n destinationFiles[1].close();\n originFiles[0].close();\n originFiles[1].close();\n\n createFile(OUT_PATH +inputFileName);\n copyFile(new File(originFileNames[0]), new File(\"out/TwoWayMergesort/OUT_\"+inputFileName));\n\n }", "public static void Java_ls(File dir, String display_method, String sort_method) {\n // TODO: list files\n File[] list = dir.listFiles();\n if (display_method==null&&sort_method==null){\n for (File file:list){\n System.out.println(file.getName());\n }\n }\n // list file properties\n else if (display_method.equalsIgnoreCase(\"property\")){\n if (sort_method!=null){\n list = sortFileList(list, sort_method);\n }\n for (File file:list){\n System.out.println(file.getName()+\" Size: \"+file.length()+\" Last Modified: \"+(new Date(file.lastModified())).toString());\n }\n }\n }", "private void mergeSort(int amtFiles, String outputFile) throws IOException {\n // Base case\n if (amtFiles > 1) {\n for (int i = 1; i <= amtFiles; i += 2) {\n\n if (i <= amtFiles - 1) {\n try (Scanner file1 = new Scanner(Paths.get(outputFile + i + \".txt\"));\n Scanner file2 = new Scanner(Paths.get(outputFile + (i + 1) + \".txt\"));\n BufferedWriter writer = Files.newBufferedWriter(Paths.get(outputFile + \".txt\"),\n StandardCharsets.UTF_8);) {\n merge(file1, file2, writer);\n\n } // close the Scanner and BufferedWriter\n // Replace a file\n Files.move(Paths.get(outputFile + \".txt\"), Paths.get(outputFile + ((i + 1) / 2) + \".txt\"),\n StandardCopyOption.REPLACE_EXISTING);\n } else {\n Files.move(Paths.get(outputFile + i + \".txt\"), Paths.get(outputFile + ((i + 1) / 2) + \".txt\"),\n StandardCopyOption.REPLACE_EXISTING);\n } // end of if\n } // end of for\n\n amtFiles = (amtFiles / 2) + (amtFiles % 2);\n mergeSort(amtFiles, outputFile);\n } // end of if\n }", "private static List<Path> listChunkableFiles(FileSystem fs) throws IOException {\r\n\r\n List<Path> resultMediaPathList = new ArrayList<Path>();\r\n\r\n Path mediaFolderInsideZipPath = getMediaDirectoryPath(fs);\r\n // list the contents of the result /media/ folder\r\n try (DirectoryStream<Path> mediaDirectoryStream = Files.newDirectoryStream(mediaFolderInsideZipPath)) {\r\n // for every file in the result /media/ folder\r\n // note: NOT expecting any subfolders\r\n for (Path mediaFilePath : mediaDirectoryStream) {\r\n if (BMPUtils.CHUNKABLE_IMAGE_FILE_EXTENSIONS.contains(FileUtils.getFileExtension(mediaFilePath.toString()))) {\r\n resultMediaPathList.add(mediaFilePath);\r\n }\r\n }\r\n }\r\n\r\n return resultMediaPathList;\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ApiFileDTO> getFilesForMetadata(MetaDataType type, Long id) {\n // Build the SQL statement\n StringBuilder sql = new StringBuilder();\n sql.append(\"SELECT mf.id as id, mf.extra as extra, mf.part as part, mf.part_title as partTitle, mf.movie_version as version, \");\n sql.append(\"mf.container as container, mf.codec as codec, mf.codec_format as codecFormat, mf.codec_profile as codecProfile, \");\n sql.append(\"mf.bitrate as bitrate, mf.overall_bitrate as overallBitrate, mf.fps as fps, \");\n sql.append(\"mf.width as width, mf.height as height, mf.aspect_ratio as aspectRatio, mf.runtime as runtime, mf.video_source as videoSource, \");\n sql.append(\"sf.id as fileId, sf.full_path as fileName, sf.file_date as fileDate, sf.file_size as fileSize, sf.file_type as fileType, \");\n\n if (type == MOVIE) {\n sql.append(\"null as season, null as episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf \");\n sql.append(\"WHERE mv.videodata_id=:id \");\n } else if (type == SERIES) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE sea.series_id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n } else if (type == SEASON) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE sea.id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n } else if (type == EPISODE) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE vd.id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n }\n\n sql.append(\"and mv.mediafile_id=mf.id and sf.mediafile_id=mf.id \");\n sql.append(\"and sf.file_type\");\n sql.append(SQL_SELECTABLE_VIDEOS);\n sql.append(\"and sf.status\");\n sql.append(SQL_IGNORE_STATUS_SET);\n\n if (type == SERIES || type == SEASON) {\n sql.append(\"ORDER BY sea.season ASC, vd.episode ASC\");\n }\n\n SqlScalars sqlScalars = new SqlScalars(sql);\n sqlScalars.addScalar(LITERAL_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_EXTRA, BooleanType.INSTANCE);\n sqlScalars.addScalar(\"part\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"partTitle\", StringType.INSTANCE);\n sqlScalars.addScalar(\"version\", StringType.INSTANCE);\n sqlScalars.addScalar(\"container\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codec\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codecFormat\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codecProfile\", StringType.INSTANCE);\n sqlScalars.addScalar(\"bitrate\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"overallBitrate\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"fps\", FloatType.INSTANCE);\n sqlScalars.addScalar(\"width\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"height\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"aspectRatio\", StringType.INSTANCE);\n sqlScalars.addScalar(\"runtime\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"videoSource\", StringType.INSTANCE);\n sqlScalars.addScalar(\"fileId\", LongType.INSTANCE);\n sqlScalars.addScalar(\"fileName\", StringType.INSTANCE);\n sqlScalars.addScalar(\"fileDate\", TimestampType.INSTANCE);\n sqlScalars.addScalar(\"fileSize\", LongType.INSTANCE);\n sqlScalars.addScalar(\"fileType\", StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_SEASON, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_EPISODE, LongType.INSTANCE);\n sqlScalars.addParameter(LITERAL_ID, id);\n\n List<ApiFileDTO> results = executeQueryWithTransform(ApiFileDTO.class, sqlScalars);\n for (ApiFileDTO file : results) {\n \t\tfile.setAudioCodecs(currentSession().getNamedQuery(AudioCodec.QUERY_METADATA).setParameter(LITERAL_ID, file.getId()).list());\n file.setSubtitles(currentSession().getNamedQuery(Subtitle.QUERY_METADATA).setParameter(LITERAL_ID, file.getId()).list());\n }\n return results;\n }", "public static long getAllSize1(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tStatFs stat = new StatFs(path.getPath()); \n\t\tlong blockSize = stat.getBlockSize(); \n\t\tlong availableBlocks = stat.getBlockCount();\n\t\tsize = availableBlocks * blockSize; \n\t\treturn size;\n\t}", "private void sortGallery_10_Runnable() {\r\n\r\n\t\tif (_allPhotos == null || _allPhotos.length == 0) {\r\n\t\t\t// there are no files\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfinal GalleryMT20Item[] virtualGalleryItems = _galleryMT20.getAllVirtualItems();\r\n\t\tfinal int virtualSize = virtualGalleryItems.length;\r\n\r\n\t\tif (virtualSize == 0) {\r\n\t\t\t// there are no items\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// sort photos with new sorting algorithm\r\n\t\tArrays.sort(_sortedAndFilteredPhotos, getCurrentComparator());\r\n\r\n\t\tupdateUI_GalleryItems(_sortedAndFilteredPhotos, null);\r\n\t}", "private List<ICompilationUnit> packageFiles(IPackageFragment p) throws JavaModelException\n {\n\tList<ICompilationUnit> files = new ArrayList<ICompilationUnit>();\n\tICompilationUnit[] compilationUnits = p.getCompilationUnits();\n\tfor (ICompilationUnit cu : compilationUnits)\n\t{\n\t files.add(cu);\n\t}\n\treturn files;\n }", "private List<org.jajuk.base.File> getFiles() {\n List<org.jajuk.base.File> files;\n if (Mode.DJ.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getDJFiles((String) data.get(Variable.ITEM));\n } else if (Mode.Ambience.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getAmbienceFiles((String) data.get(Variable.ITEM));\n } else if (Mode.Playlist.equals(data.get(Variable.MODE))\n || Mode.ProvidedPlaylist.equals(data.get(Variable.MODE))) {\n try {\n Playlist tempPlaylist = (Playlist) data.get(Variable.TEMP_PLAYLIST);\n files = UtilPrepareParty.getPlaylistFiles((String) data.get(Variable.ITEM), tempPlaylist);\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Shuffle.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getShuffleFiles();\n } else if (Mode.BestOf.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getBestOfFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Queue.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getQueueFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Bookmarks.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getBookmarkFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Novelties.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getNoveltiesFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else {\n throw new IllegalArgumentException(\"Unknown mode in PreparePartyWizard: \"\n + data.get(Variable.MODE));\n }\n // filter by media first\n if (isTrue(Variable.ONE_MEDIA_ENABLED) && !isTrue(Variable.CONVERT_MEDIA)) {\n files = UtilPrepareParty.filterMedia(files, (String) data.get(Variable.ONE_MEDIA));\n }\n // then filter out by rating\n if (data.containsKey(Variable.RATING_LEVEL)) {\n files = UtilPrepareParty.filterRating(files, (Integer) data.get(Variable.RATING_LEVEL));\n }\n // filter max length\n if (isTrue(Variable.MAXLENGTH_ENABLED)) {\n files = UtilPrepareParty.filterMaxLength(files, (Integer) data.get(Variable.MAXLENGTH));\n }\n // filter max size\n if (isTrue(Variable.MAXSIZE_ENABLED)) {\n files = UtilPrepareParty.filterMaxSize(files, (Integer) data.get(Variable.MAXSIZE));\n }\n // filter max tracks\n if (isTrue(Variable.MAXTRACKS_ENABLED)) {\n files = UtilPrepareParty.filterMaxTracks(files, (Integer) data.get(Variable.MAXTRACKS));\n }\n return files;\n }", "@Override\n public void sortCurrentList(FileSortHelper sort) {\n }", "@Override\n public void getAllOrdersToFile() throws FlooringMasteryPersistenceException{\n \n \n }", "public MediaFile getBiggestMediaFile(MediaFileType... types) {\n MediaFile mf = null;\n\n readWriteLock.readLock().lock();\n for (MediaFile mediaFile : mediaFiles) {\n for (MediaFileType type : types) {\n if (mediaFile.getType().equals(type)) {\n if (mf == null || mediaFile.getFilesize() >= mf.getFilesize()) {\n mf = mediaFile;\n }\n }\n }\n }\n readWriteLock.readLock().unlock();\n return mf;\n }", "@Override\n public int compare(File o1, File o2) {\n if (desc) {\n return -o1.getFileName().compareTo(o2.getFileName());\n }\n return o1.getFileName().compareTo(o2.getFileName());\n }", "private void processZipEntries(List<ZipEntry> contents, String prefix, int depth) throws SAXException {\r\n if (depth > 0) {\r\n // Get the zip-entries at this level.\r\n ArrayList<Map.Entry<String, ZipEntry>> level = new ArrayList<Map.Entry<String, ZipEntry>>();\r\n for (ZipEntry entry : contents) {\r\n String name = entry.getName();\r\n if (name.length() > prefix.length() && name.startsWith(prefix)) { // Entry is below this level.\r\n name = name.substring(prefix.length());\r\n // Names of files and directories at this level contain no '/' or '/' at the end.\r\n if ((name.indexOf('/') + 1) % name.length() == 0) {\r\n level.add(new AbstractMap.SimpleImmutableEntry<String, ZipEntry>(name, entry));\r\n }\r\n }\r\n }\r\n // Do sorting of the level, if required.\r\n if (sort.equals(\"name\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? o2.getKey().compareTo(o1.getKey())\r\n : o1.getKey().compareTo(o2.getKey());\r\n }\r\n });\r\n } else if (sort.equals(\"size\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? Long.compare(o2.getValue().getSize(), o1.getValue().getSize())\r\n : Long.compare(o1.getValue().getSize(), o2.getValue().getSize());\r\n }\r\n });\r\n } else if (sort.equals(\"lastmodified\")) {\r\n Collections.sort(level, new Comparator<Map.Entry<String, ZipEntry>>() {\r\n public int compare(Map.Entry<String, ZipEntry> o1, Map.Entry<String, ZipEntry> o2) {\r\n return reverse ? Long.compare(o2.getValue().getTime(), o1.getValue().getTime())\r\n : Long.compare(o1.getValue().getTime(), o2.getValue().getTime()) ;\r\n }\r\n });\r\n }\r\n // Output nodes in this level.\r\n for (Map.Entry<String, ZipEntry> entry : level) {\r\n if (isIncluded(entry.getKey()) && !isExcluded(entry.getKey())) {\r\n if (entry.getValue().isDirectory()) {\r\n startNode(DIR_NODE_NAME, entry);\r\n processZipEntries(contents, entry.getValue().getName(), depth - 1);\r\n endNode(DIR_NODE_NAME);\r\n } else {\r\n startNode(FILE_NODE_NAME, entry);\r\n endNode(FILE_NODE_NAME);\r\n }\r\n }\r\n }\r\n }\r\n }", "public static <T> List<File> sortInBatch(File file, Comparator<T> cmp,\n int maxtmpfiles, long maxMemory, Charset cs, File tmpdirectory,\n boolean distinct, int numHeader, boolean usegzip,\n Function<T, String> typeToString, Function<String, T> stringToType)\n throws IOException {\n return sortInBatch(file, cmp, maxtmpfiles, maxMemory, cs, tmpdirectory, distinct, numHeader,\n usegzip ? Compression.GZIP : Compression.NONE, typeToString, stringToType);\n }", "private Order retrieveContentOrder(List<Content> contentsLongList, Integer volume, ContentType type) {\n\n\t\tList<String> contentsUsedForOrder = new ArrayList<>();\n\t\tDouble price = 0.0;\n\t\tInteger contentVol = 0;\n\n\t\tfor (Content content : contentsLongList)\n\t\t\tif (content.getType().equals(type)) {\n\t\t\t\tcontentVol = content.getVolume();\n\t\t\t\tif (contentVol <= volume) {\n\t\t\t\t\tcontent.setVolume(0);\n\t\t\t\t\tvolume -= contentVol;\n\t\t\t\t\tprice += content.getPrice();\n\t\t\t\t\tcontentsUsedForOrder.add(content.getBarcode());\n\n\t\t\t\t} else if (volume == 0)\t break;\n\t\t\t\t else {\n\t\t\t\t\tcontent.setVolume( contentVol - volume);\n\t\t\t\t\tprice += volume * content.getPrice() / contentVol;\n\t\t\t\t\tvolume = 0;\n\t\t\t\t\tcontentsUsedForOrder.add(content.getBarcode());\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn contentsUsedForOrder.size() !=0 ?\n\t\t\t new Order(contentsUsedForOrder, price, volume, type) : null;\n\t}", "public ArrayList<String> getFileTypes() { return new ArrayList<String>(); }", "public static void rankFiles(Hashtable<?, Integer> fname, int numberOfOccurrences) \r\n\t{\n\t\tArrayList<Map.Entry<?, Integer>> arrayList = new ArrayList(fname.entrySet());\r\n\r\n\t\tCollections.sort(arrayList, new Comparator<Map.Entry<?, Integer>>() \r\n\t\t{\r\n\t\t\tpublic int compare(Map.Entry<?, Integer> obj1, Map.Entry<?, Integer> obj2) \r\n\t\t\t{\r\n\t\t\t\treturn obj1.getValue().compareTo(obj2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tCollections.reverse(arrayList);\r\n\r\n\t\tif (numberOfOccurrences > 0) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\n------Top 10 search results-----\\n\");\r\n\r\n\t\t\tint my_number = 10;\r\n\t\t\tint j = 1;\r\n\t\t\twhile (arrayList.size() > j && my_number > 0) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"(\" + j + \") \" + arrayList.get(j) + \" times \");\r\n\t\t\t\tj++;\r\n\t\t\t\tmy_number--;\r\n\t\t\t}\r\n\t\t} \r\n\t}", "public void determineFileSize() {\n \t//Creating scanner object\n \tScanner scan = new Scanner(System.in);\n \tSystem.out.println(\"Please enter the path of the file you'd like to determint the size of\");\n \t\n \t//Capturing file path as filePath variable\n \tString filePath = scan.next();\n \t//using Java Nio\n \tPath path = Paths.get(filePath);\n\t\t\n \ttry {\n\t\t\tLong fileSize = Files.size(path);\n\t\t\tSystem.out.println(String.format(\"%s, bytes\", fileSize));\n\t\t\tSystem.out.println(String.format(\"%s, kilobytes\", fileSize/1024));\n\n\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tscan.close();\n \t\n }", "public List<File> getFiles();", "@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }", "private void scanAndSort(File targetDir, String finishDir){\n\t\tif (targetDir.getPath().endsWith(\"AppData\") || targetDir.getPath().endsWith(\"Sorted Music\")){\n\t\t\t//Application Data; Cookies\n\t\t\treturn;\n\t\t}\n\t\tFile[] dirContent = targetDir.listFiles();\n\t\ttry{\n\t\t\tfor (File f: dirContent){\n\t\t\t\tif (f.isDirectory()){//recursion is used to handle dirs\n\t\t\t\t\tscanAndSort(f, finishDir);\n\t\t\t\t}\n\t\t\t\telse if (isMp3(f)){\n\t\t\t\t\tmoveFile(f, finishDir, getArtist(f), getAlbum(f));\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(NullPointerException e){\n\t\t\tSystem.out.println(targetDir.getPath());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "static void doSort(int location) throws Exception {\n\n\t\tList<String> sortedList = null;\n\n\t\tsortedList = readDataFile(DividedfileList.get(location));\n\t\tCollections.sort(sortedList);\n\t\twriteFile(sortedList, location);\n\t\tsortedList.clear();\n\n\t}", "public static void main(String[] args) {\n\n File path = new File(args[0]);\n File resultFileAbsolutePath = new File(args[1]);\n File allFilesContent = new File(resultFileAbsolutePath.getParent()+\"/allFilesContent.txt\");\n FileUtils.renameFile(resultFileAbsolutePath, allFilesContent);\n\n List<File> filesList = new ArrayList<>();\n List<File> directoriesList = new ArrayList<>();\n\n File[] mainDirectoryArray = path.listFiles();\n checkAndAddFile(mainDirectoryArray, directoriesList, filesList);\n\n for (int i = 0; i < filesList.size(); i++) {\n if (filesList.get(i).length() > 50L) {\n filesList.remove(i--);\n }\n }\n\n Collections.sort(filesList, Comparator.comparing(File::getName));\n\n writeFiles(allFilesContent, filesList);\n }", "public abstract List<LocalFile> getAllFiles();", "public static void userSort(ArrayList<FileData> fromFile, int primary_sort, int secondary_sort, int primary_order, int secondary_order)\n {\n \n // user wants to sort by primary = state code and secondary = county code\n if(primary_sort == 1 && secondary_sort == 2) \n {\n if(primary_order == 1 && secondary_order == 1){// user wants both primary and secondary in ascending order\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order == 2 && secondary_order == 2){ // user wants both primary and secondary in decending order\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){// primary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n // user wants to sort by primary = county code and secondary = state code\n if(primary_sort == 2 && secondary_sort == 1){\n if(primary_order == 1 && secondary_order == 1){\n //primary and seconary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2 && secondary_order == 2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){//primary is ascending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); // primary sort\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); // primary sort\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==1&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==1&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n } \n } \n }\n \n \n if(primary_sort==1&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n \n if(primary_sort==8&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==6&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==7&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==8&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==3&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==4&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==5&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n }", "private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}", "public static long getAllSize(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) || file.getPath().equals(path.getPath()))\n \t\t\t{\n \t\t\t\tif(file.canRead())\n \t\t\t\t{\n\t\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tStatFs stat = new StatFs(path.getPath()); \n\t\t\tlong blockSize = stat.getBlockSize(); \n\t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t\tsize = availableBlocks * blockSize; \n\t\t}\n\t\treturn size;\n\t}", "@Override\n\tpublic int compare(File f1, File f2) {\n\t\treturn f1.compareTo(f2);\n\t}", "private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}", "@Override\n public Collection<AbstractFile> visit(FileSystem fs) {\n \n SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();\n \n StringBuilder queryB = new StringBuilder();\n queryB.append(\"SELECT * FROM tsk_files WHERE (fs_obj_id = \").append(fs.getId());\n queryB.append(\") AND (size > 0)\");\n queryB.append(\" AND ( (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType());\n queryB.append(\") OR (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_DIR.getMetaType());\n queryB.append( \"AND (name != '.') AND (name != '..')\");\n queryB.append(\") )\");\n if (getUnallocatedFiles == false) {\n queryB.append( \"AND (type = \");\n queryB.append(TskData.TSK_DB_FILES_TYPE_ENUM.FS.getFileType());\n queryB.append(\")\");\n }\n \n try {\n final String query = queryB.toString();\n logger.log(Level.INFO, \"Executing query: \" + query);\n ResultSet rs = sc.runQuery(query);\n List<AbstractFile> contents = sc.resultSetToAbstractFiles(rs);\n Statement s = rs.getStatement();\n rs.close();\n if (s != null) {\n s.close();\n }\n return contents;\n } catch (SQLException ex) {\n logger.log(Level.WARNING, \"Couldn't get all files in FileSystem\", ex);\n return Collections.emptySet();\n }\n }", "private static void getFiles(String root, Vector files) {\n Location f = new Location(root);\n String[] subs = f.list();\n if (subs == null) subs = new String[0];\n Arrays.sort(subs);\n \n // make sure that if a config file exists, it is first on the list\n for (int i=0; i<subs.length; i++) {\n if (subs[i].endsWith(\".bioformats\") && i != 0) {\n String tmp = subs[0];\n subs[0] = subs[i];\n subs[i] = tmp;\n break;\n }\n }\n \n if (subs == null) {\n LogTools.println(\"Invalid directory: \" + root);\n return;\n }\n \n ImageReader ir = new ImageReader();\n Vector similarFiles = new Vector();\n \n for (int i=0; i<subs.length; i++) {\n LogTools.println(\"Checking file \" + subs[i]);\n subs[i] = new Location(root, subs[i]).getAbsolutePath();\n if (isBadFile(subs[i]) || similarFiles.contains(subs[i])) {\n LogTools.println(subs[i] + \" is a bad file\");\n String[] matching = new FilePattern(subs[i]).getFiles();\n for (int j=0; j<matching.length; j++) {\n similarFiles.add(new Location(root, matching[j]).getAbsolutePath());\n }\n continue;\n }\n Location file = new Location(subs[i]);\n \n if (file.isDirectory()) getFiles(subs[i], files);\n else if (file.getName().equals(\".bioformats\")) {\n // special config file for the test suite\n configFiles.add(file.getAbsolutePath());\n }\n else {\n if (ir.isThisType(subs[i])) {\n LogTools.println(\"Adding \" + subs[i]);\n files.add(file.getAbsolutePath());\n }\n else LogTools.println(subs[i] + \" has invalid type\");\n }\n file = null;\n }\n }", "double getOrderSize();", "@Test\n public void testStoreFileAlphabetical() {\n\n File file1 = new File(\"c\");\n File file2 = new File(\"b\");\n File file3 = new File(\"a\");\n parent.storeFile(file1);\n parent.storeFile(file2);\n parent.storeFile(file3);\n ArrayList<File> output = parent.getStoredFiles();\n ArrayList<File> expected = new ArrayList<File>();\n expected.add(file3);\n expected.add(file2);\n expected.add(file1);\n assertEquals(output, expected);\n }", "public void handleAllArchivedRequest(boolean z) {\n File[] listFiles = AVPersistenceUtils.getCommandCacheDir().listFiles();\n if (listFiles != null && listFiles.length > 0) {\n Arrays.sort(listFiles, fileModifiedDateComparator);\n for (File file : listFiles) {\n if (file.isFile()) {\n handleArchivedRequest(file, z);\n } else if (AVOSCloud.showInternalDebugLog()) {\n StringBuilder sb = new StringBuilder();\n sb.append(file.getAbsolutePath());\n sb.append(\" is a dir\");\n avlog.e(sb.toString());\n }\n }\n }\n }", "public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}", "public synchronized int load()\n {\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n files.clear();\n int fileNameOffset = maxFiles * SysLib.CBINT;\n int offset = 0;\n\n // Read the entire potential directory listing\n if (inode.read(0, b) < 0)\n {\n return -1;\n }\n\n for (int i = 0; i < maxFiles; i++)\n {\n // Read the file name length\n int strLen = SysLib.bytes2int(b, offset);\n offset += SysLib.CBINT;\n\n // Read the file name, if one is stored\n if (strLen > 0)\n {\n byte strBytes[] = new byte[strLen * SysLib.CBCHAR];\n\n System.arraycopy(b, fileNameOffset, strBytes, 0,\n strBytes.length);\n\n files.add(new String(strBytes));\n\n fileNameOffset += strLen;\n }\n // Add a zero-length placeholder for this listing\n else\n {\n files.add(new String(\"\"));\n }\n }\n\n return 0;\n }", "List<ConversionTypesEntity> loadFiles(FileTreeRequest fileTreeRequest);", "public File sort(String path){\n try {\r\n File file = new File(path);\r\n BufferedReader readStream = new BufferedReader(new FileReader(file));\r\n String currentLine;\r\n int index = 0;\r\n int fileNumber = 1;\r\n while((currentLine = readStream.readLine()) != null){\r\n tempArray[index++] = currentLine;//read next line into the temporary array\r\n if(index >= limit){//check whether the number of lines stored in the temp has reached the maximum allowed\r\n Arrays.sort(tempArray);//sort tempArray\r\n Writer writeStream = null;//create a writer\r\n String currentFileName = \"temp\" + fileNumber + \".txt\";//this name is passed to the buffered writer\r\n writeStream = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(currentFileName)));//create a new temporary file to be written to\r\n fileArrayList.add(new File(currentFileName));//add file to list\r\n for(String line : tempArray){// write the lines currently stored in the array into the newly created file\r\n writeStream.write(line);\r\n writeStream.write(\"\\n\");\r\n }\r\n writeStream.close();//close the output stream\r\n index = 0;//reset\r\n ++fileNumber;//increment the file number so that the next block of lines is written to a different file name\r\n }\r\n\r\n\r\n }\r\n readStream.close();\r\n }catch(Exception e){\r\n System.out.println(e.getMessage() + \" occurred during split\");\r\n }\r\n\r\n //merge temporary files and write to output file\r\n try {\r\n System.out.println(Arrays.toString(fileArrayList.toArray()));\r\n fileArrayList.trimToSize();\r\n int sortedFileID = 0;//used to differentiate between temporary files while merging\r\n int head = 0;//used to access file names stored in array list from the start\r\n int tail = fileArrayList.size() - 1;//used to access file names stored in array list from the end\r\n while(fileArrayList.size() > 1) {\r\n sortedFileID++;//increment to create a unique file name\r\n String mergedFileName = \"sorted\"+sortedFileID+\".txt\";\r\n File firstFile = fileArrayList.get(head);\r\n File secondFile = fileArrayList.get(tail);\r\n System.out.println(head + \" + \" + tail);\r\n //merge first and second\r\n File combinedFile = mergeFiles(firstFile, secondFile, mergedFileName);\r\n //delete both temporary files once they are merged\r\n\r\n if(!secondFile.delete()){\r\n System.out.println(\"warning file could not be deleted\");\r\n }\r\n if(!firstFile.delete()){\r\n System.out.println(\"warning file could not be deleted\");\r\n }\r\n fileArrayList.set(head, combinedFile);//replace the first of the two merged files with the new combined file\r\n fileArrayList.remove(tail);//remove the second of the two merged files\r\n head++;//increment both indexes one position closer towards the center of the array list\r\n tail--;\r\n if(head >= tail){//check if there are no remaining files between the head and the tail\r\n head = 0;//reset to the beginning of the array list\r\n fileArrayList.trimToSize();\r\n tail = fileArrayList.size() - 1;//reset to the end of the array list\r\n }\r\n }\r\n }catch(Exception e){\r\n System.out.println(e.getMessage() + \" occurred during merge\");\r\n }\r\n //after iteratively merging head and tail, and storing the result at the head index\r\n //the final resulting file that combines all temporary files will be stored at index (0)\r\n return fileArrayList.get(0);//return the final combined file\r\n }", "private List<String> scoutForFiles(FileType fileType, Path path) {\n\t\tfinal List<String> filesFound = new ArrayList<>();\n\n\t\t// Create a stream of Paths for the contents of the directory\n\t\ttry (Stream<Path> walk = Files.walk(path)) {\n\n\t\t\t// Filter the stream to find only Paths that match the filetype we are looking\n\t\t\tfilesFound.addAll(walk.map(x -> x.toString())\n\t\t\t\t.filter(f -> f.endsWith(fileType.suffix)).collect(Collectors.toList()));\n\t\t} catch (IOException e) {\n\t\t\tthrow new MessagePassableException(EventKey.ERROR_EXTERNAL_DIR_NOT_READABLE, e, path.toString());\n\t\t}\n\n\t\treturn filesFound;\n\t}", "long getFileSize();", "public static void main(String[] args) {\n\n /* public static Stream<Path> list(Path dir) throws IOException\n - List the contents of a directory */\n try (Stream<Path> files = Files.list(Path.of(\"D:\\\\Java\"))) { /* we put our Stream objects inside a\n try‐with‐resources method? The NIO.2\n stream‐ based methods open a connection\n to the file system that must be properly\n closed, else a resource leak could ensue */\n files.forEach(System.out::println);\n } catch (IOException e) { e.printStackTrace(); }\n\n /* Scroll down to copyPath() which deep copies a Path using Files.list() and Files.copy() */\n try {\n Files.createDirectory(Path.of(\"D:\\\\Java\\\\NewDirectory\")); // created a directory for testing purposes\n copyPath(Path.of(\"D:\\\\Java\"), Path.of(\"D:\\\\DeepCopied\")); // deep copy a directory\n\n /* Delete extra files and folders made */\n /* Scroll down to deletePath() which deletes a directory tree */\n deletePath(Path.of(\"D:\\\\DeepCopied\"));\n deletePath(Path.of(\"D:\\\\Java\\\\NewDirectory\"));\n } catch (IOException e) { e.printStackTrace(); }\n\n\n\n /* public static Stream<Path> walk(Path start, FileVisitOption… options) throws IOException\n - Default maximum depth of Integer.MAX_VALUE\n public static Stream<Path> walk(Path start, int maxDepth, FileVisitOption… options) throws IOException\n - Allows the user to set a maximum depth\n - Example: try (var s = Files.walk(source, 5)) {...}\n\n Here, I find the total size of all the files in a directory: */\n long totalSize = 0;\n try (Stream<Path> s = Files.walk(Path.of(\"C:\\\\Users\\\\abdul_nr6ehsg\\\\IdeaProjects\\\\IZ0-816-Java-SE-11-Developer\"))) {\n totalSize = s.parallel()\n .filter(p -> !Files.isDirectory(p))\n .mapToLong(p -> {\n try { return Files.size(p); }\n catch (IOException e) { e.printStackTrace(); }\n return 0L;\n }).sum();\n } catch (IOException e) { e.printStackTrace(); }\n System.out.format(\"Total size: %.2f MB \\n\", (totalSize / 1_000_000.0)); // Print total size in MegaBytes\n\n /* The walk() method is different in that it does not follow symbolic links by default and requires the\n FOLLOW_LINKS option to be enabled. Example:\n try (var s = Files.walk(source, FileVisitOption.FOLLOW_LINKS)) {...}\n\n - Make your the symbolic links do not create an endless cycle when using this option as a file or\n dir may point to an ancestor directory. A path may be caused to be visited twice or more resulting in\n an exception being thrown\n */\n\n\n\n /* public static Stream<Path> find(Path start, int maxDepth,\n BiPredicate<Path,BasicFileAttributes> matcher,\n FileVisitOption… options) throws IOException\n - The find() method behaves in a similar manner as the walk() method, except that it takes a\n BiPredicate to filter the data.\n - It also requires a depth limit be set.\n - Like walk(), find() also supports the FOLLOW_LINK option\n\n This following example searches a directory tree and prints all .java files with a size of at\n least 1,000 bytes, using a depth limit of 10: */\n try (Stream<Path> files = Files.find(\n Path.of(\"C:\\\\Users\\\\abdul_nr6ehsg\\\\IdeaProjects\\\\IZ0-816-Java-SE-11-Developer\"),\n 10,\n (p, a) -> a.isRegularFile() && p.toString().endsWith(\".java\") && a.size() > 1000)) {\n files.parallel().forEach(System.out::println);\n } catch (IOException e) { e.printStackTrace(); }\n\n /* Here is a similar but lengthier implementation of above code using walk() */\n try (Stream<Path> files = Files.walk(Path.of(\"C:\\\\Users\\\\abdul_nr6ehsg\\\\IdeaProjects\\\\IZ0-816-Java-SE-11-Developer\"))) {\n files.parallel().filter(p -> {\n BasicFileAttributes data = null;\n try { data = Files.readAttributes(p, BasicFileAttributes.class); }\n catch (IOException e) { e.printStackTrace(); }\n return (data.isRegularFile() && data.size() > 1000);\n }).filter(p -> p.toString().endsWith(\".java\")).forEach(System.out::println);\n } catch (IOException e) { e.printStackTrace(); }\n\n\n\n /* public static Stream<String> lines(Path path) throws IOException\n - Using Files.readAllLines() to read a very large file could result in an OutOfMemoryError problem\n - Luckily, NIO.2 solves this problem with the above Stream API method\n - REMEMBER: The readAllLines() method returns a List, not a Stream */\n try (Stream<String> lines = Files.lines(Path.of(\"D:\\\\Java\\\\test.txt\"))) {\n lines.forEach(System.out::println);\n } catch (IOException e) { e.printStackTrace(); }\n\n }", "public int getSize() {\n\t\treturn smilFiles.size();\n\t}" ]
[ "0.6667029", "0.63678384", "0.58130115", "0.57631147", "0.57198864", "0.5629941", "0.5616395", "0.5600898", "0.5592445", "0.553062", "0.55101025", "0.5505758", "0.54867446", "0.54683185", "0.537781", "0.53775036", "0.5376776", "0.5376776", "0.5365433", "0.5362636", "0.5353291", "0.5335079", "0.5334323", "0.5319167", "0.53041416", "0.53027415", "0.52976704", "0.5280924", "0.52654105", "0.52620775", "0.5261511", "0.52435595", "0.52404463", "0.5214696", "0.5204059", "0.51665336", "0.51661575", "0.51655483", "0.5135299", "0.51280653", "0.51256514", "0.51180273", "0.5116575", "0.51091456", "0.51039004", "0.5090135", "0.50816506", "0.5081156", "0.507592", "0.50726753", "0.50580657", "0.5057845", "0.5057632", "0.50472903", "0.503939", "0.50389093", "0.5036333", "0.5033784", "0.5029783", "0.502291", "0.5021872", "0.50215644", "0.501793", "0.5015316", "0.5014414", "0.5011369", "0.50078225", "0.4999977", "0.49924567", "0.4991265", "0.49825627", "0.49778745", "0.49674952", "0.49611232", "0.49591497", "0.49488702", "0.4947871", "0.49478635", "0.49457082", "0.49267793", "0.4926741", "0.49252954", "0.4924343", "0.4922966", "0.49223536", "0.4920187", "0.49200666", "0.4918823", "0.4917447", "0.49168062", "0.49155548", "0.49118412", "0.49025178", "0.48845673", "0.4884559", "0.4881683", "0.48743004", "0.4870566", "0.48579675", "0.48564592" ]
0.6455443
1
load home folder first to check for the existence of another similar request in progress
@Override public HomeFolderModificationRequest create(final Long homeFolderId, final Long requesterId) throws CvqException, CvqObjectNotFoundException { HomeFolder homeFolder = homeFolderService.getById(homeFolderId); checkIsAuthorized(homeFolder); HomeFolderModificationRequest hfmr = new HomeFolderModificationRequest(); hfmr.setHomeFolderId(homeFolderId); hfmr.setRequesterId(requesterId); hfmr.setRequestType(requestTypeService.getRequestTypeByLabel(getLabel())); performBusinessChecks(hfmr); setAdministrativeInformation(hfmr); requestDAO.create(hfmr); return hfmr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void refreshHome()\r\n/* 48: */ throws NamingException\r\n/* 49: */ {\r\n/* 50:121 */ synchronized (this.homeMonitor)\r\n/* 51: */ {\r\n/* 52:122 */ Object home = lookup();\r\n/* 53:123 */ if (this.cacheHome)\r\n/* 54: */ {\r\n/* 55:124 */ this.cachedHome = home;\r\n/* 56:125 */ this.createMethod = getCreateMethod(home);\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "private void showOrLoadApplications() {\n //nocache!!\n GetAppList getAppList = new GetAppList();\n if (plsWait == null && (getAppList.getStatus() == AsyncTask.Status.PENDING || getAppList.getStatus() == AsyncTask.Status.FINISHED)) {\n getAppList.setContext(this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }\n }", "private void checkFileSystemResource(UserRequest ureq) {\n\n if (FolderCommandStatus.STATUS_FAILED == FolderCommandHelper.sanityCheck(getWindowControl(), folderComponent)) {\n folderComponent.updateChildren();\n }\n\n VFSItem item = VFSManager.resolveFile(folderComponent.getRootContainer(), ureq.getModuleURI());\n\n if (FolderCommandStatus.STATUS_FAILED == FolderCommandHelper.sanityCheck2(getWindowControl(), folderComponent, ureq, item)) {\n folderComponent.setCurrentContainerPath(folderComponent.getCurrentContainerPath());\n }\n\n }", "private NodeRef getompanyHomeFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n return nodeLocatorService.getNode(\"companyhome\", null, null);\n }", "public void goHome() {\n shouldWork = false;\n }", "private void startAsyncLoader() {\n if (CheckInternetConnection.isNetworkAvailable(this)) {\n Log.e(\"connection\", \"connection available\");\n if (getLoaderManager().getLoader(ASYNC_LOADER_ID) == null) {\n getLoaderManager().initLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n } else {\n getLoaderManager().restartLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n }\n } else {\n showMessageDialog(getResources().getString(R.string.message), getResources().getString(R.string.no_int), 1);\n }\n }", "private void loadPage() {\n \t\n if (((sPref.equals(ANY)) && (wifiConnected || mobileConnected))\n || ((sPref.equals(WIFI)) && (wifiConnected))) {\n // AsyncTask subclass\n \t\n new DownloadXmlTask().execute(URL);\n } else {\n showErrorPage();\n }\n }", "public void gotoHome() // Wait for Home page or Verify Device page \n\t{\t\t\t\t \n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\n\t\t\n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\");\n\t\t}\t\t\n\t}", "public void requestFolderRefreshRequired() {\r\n if(!refreshInProgress.get()) {\r\n cleanBeforeNextUse();\r\n }\r\n }", "@Override\n public Home loadHome(String customPath) {\n return loadHome(customPath, DEFAULT_VERSION);\n }", "public void loadPage() { \n\t \n\t if((sPref.equals(ANY)) && (wifiConnected || mobileConnected)) {\n\t \tnew DownloadXmlTask().execute(URL);\n\t }\n\t else if ((sPref.equals(WIFI)) && (wifiConnected)) {\n\t new DownloadXmlTask().execute(URL);\n\t } else {\n\t // show error\n\t } \n\t }", "private void initFileSystem() {\n\tchkSD();\n\t appDirectory = new File(\"/sdcard/Subway/\");\n\n\t\tif(appDirectory.mkdirs()){\n\t\t\t//BRAND NEW PERSON PROJECT FIRST TIME THEY HAVE THE PHONE\n\t\t\tLog.e(\"SY\", \"First time with app!\");\n\t\t\tchangeUser();\n\t\t\n\t\t}\n\t\telse{\n\t\t\tappDirectory.mkdirs();\n\t\t\tLog.e(\"MYTT\", \"Used the App before\");\n\t\t\t\n\t\t\talreadyThereProjects = new ArrayList<String>();\n\n\t\t\t// Note that Arrays.asList returns a horrible fixed length list, Make\n\t\t\t// sure to cast to ArrayList\n\n\t\t\t\talreadyThereProjects = new ArrayList<String>(Arrays.asList(appDirectory.list()));\n\t\t\t\tif(alreadyThereProjects.size()>0)\n\t\t\t\t{\n\t\t\t\tuserID=Integer.parseInt( alreadyThereProjects.get(0).substring(5));\n\t\t\t\tmakeUser();\n\t\t\t\tloadUpAllPics();\n\t\t\t\tLog.e(\"SY\", \"THERE WAS ALREADY ONE:\"+alreadyThereProjects.get(0).substring(5));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tchangeUser();\n\t\t\t\t}\n\t\t\t\n\t\t}\n\n\n\t\t\t\n}", "public void gotoParentDir() {\n boolean z;\n if (!isRootDir() && this.mCurrentDir != null && this.mBox.hasAuthenticated()) {\n String sb = new StringBuilder(getCurrentDirPath()).toString();\n if (sb.endsWith(File.separator)) {\n sb = sb.substring(0, sb.lastIndexOf(File.separator));\n }\n String substring = sb.substring(0, sb.lastIndexOf(File.separator) + 1);\n if (!substring.equals(getCurrentDirName())) {\n if (!substring.equals(File.separator) && substring.endsWith(File.separator)) {\n substring = substring.substring(0, substring.length() - 1);\n }\n BoxFileObject boxFileObject = null;\n if (this.mDirCached.containsKey(substring)) {\n boxFileObject = (BoxFileObject) this.mDirCached.get(substring);\n }\n if (boxFileObject == null) {\n z = this.mBox.asyncLoadDir(substring, this.mLoadFolderListener);\n } else {\n z = this.mBox.asyncLoadDir(boxFileObject, this.mLoadFolderListener);\n }\n if (z) {\n showWaitingDialog(this.mActivity.getString(C4538R.string.zm_msg_loading), this.mWaitingDialogCancelListener);\n }\n }\n }\n }", "@Override\n public Home defaultHome() {\n Home h = null;\n for (String ver : VER_CURRENT) {\n for (String path : WKIP) {\n if (Utilities.isWindows() && path.contains(\"AppData\")) { //NOI18N\n // issue #251710 - Gluon SceneBuilder by default installs to C:\\Users\\<username>\\AppData\\Local\\SceneBuilder\n final String appDataPath = System.getenv(\"AppData\"); //NOI18N\n if (appDataPath != null) {\n final FileObject appDataFo = FileUtil.toFileObject(new File(appDataPath)).getParent();\n h = loadHome(path.replace(VER_DELIMITER, ver).replace(APPDATA_DELIMITER, appDataFo.getPath()));\n }\n } else {\n h = loadHome(path.replace(VER_DELIMITER, ver), ver);\n }\n if (h != null) {\n return h;\n }\n }\n }\n return h;\n }", "private void startLoading() {\n\t\tJSONObject obj = new JSONObject();\r\n\t\tobj.put(\"userId\", new JSONString(User.id));\r\n\t\tobj.put(\"userSID\", new JSONString(User.SID));\r\n\t\tapi.execute(RequestType.GetUserInfo, obj, this);\r\n\t}", "private static void initGameFolder() {\n\t\tString defaultFolder = System.getProperty(\"user.home\") + STENDHAL_FOLDER;\n\t\t/*\n\t\t * Add any previously unrecognized unix like systems here. These will\n\t\t * try to use ~/.config/stendhal if the user does not have saved data\n\t\t * in ~/stendhal.\n\t\t *\n\t\t * OS X is counted in here too, but should it?\n\t\t *\n\t\t * List taken from:\n\t\t * \thttp://mindprod.com/jgloss/properties.html#OSNAME\n\t\t */\n\t\tString unixLikes = \"AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris\";\n\t\tString system = System.getProperty(\"os.name\");\n\t\tif (system.matches(unixLikes)) {\n\t\t\t// Check first if the user has important data in the default folder.\n\t\t\tFile f = new File(defaultFolder + \"user.dat\");\n\t\t\tif (!f.exists()) {\n\t\t\t\tgameFolder = System.getProperty(\"user.home\") + separator\n\t\t\t\t+ \".config\" + separator + STENDHAL_FOLDER;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Everyone else should use the default top level directory in $HOME\n\t\tgameFolder = defaultFolder;\n\t}", "@Override\n public void preloadRecentApps() {\n if (!isUserSetup()) {\n return;\n }\n\n mImpl.preloadRecentApps();\n }", "protected Object getHome()\r\n/* 75: */ throws NamingException\r\n/* 76: */ {\r\n/* 77:159 */ if ((!this.cacheHome) || ((this.lookupHomeOnStartup) && (!isHomeRefreshable()))) {\r\n/* 78:160 */ return this.cachedHome != null ? this.cachedHome : lookup();\r\n/* 79: */ }\r\n/* 80:163 */ synchronized (this.homeMonitor)\r\n/* 81: */ {\r\n/* 82:164 */ if (this.cachedHome == null)\r\n/* 83: */ {\r\n/* 84:165 */ this.cachedHome = lookup();\r\n/* 85:166 */ this.createMethod = getCreateMethod(this.cachedHome);\r\n/* 86: */ }\r\n/* 87:168 */ return this.cachedHome;\r\n/* 88: */ }\r\n/* 89: */ }", "public Boolean isInCurrentHome() throws CallError, InterruptedException {\n return (Boolean)service.call(\"isInCurrentHome\").get();\n }", "private static boolean isFirstLaunch() {\n if (new File(\"couchbase-sync.state\").exists()) {\n return false;\n }\n return true;\n }", "private void init() {\r\n\t\t// check system property\r\n\t\tif (System.getProperty(TACOS_HOME) != null) {\r\n\t\t\tFile customHome = new File(System.getProperty(TACOS_HOME));\r\n\t\t\tif (initHome(customHome)) {\r\n\t\t\t\thomeDir = customHome;\r\n\t\t\t\tlogger.info(\"Using custom home directory ('\" + homeDir + \"')\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// custom home directory not available (or failed to initialize)\r\n\t\tFile defaultHome = new File(System.getProperty(DEFAULT_HOME), \".tacos\");\r\n\t\tif (initHome(defaultHome)) {\r\n\t\t\thomeDir = defaultHome;\r\n\t\t\tlogger.info(\"Using default home directory ('\" + homeDir + \"')\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// fallback if everything goes wrong\r\n\t\tlogger.warn(\"Using temporary directory to store files\");\r\n\t\thomeDir = new File(System.getProperty(\"java.io.tmpdir\"), \".tacos\");\r\n\t\tinitHome(homeDir);\r\n\t}", "private boolean initHome(File file) {\r\n\t\ttry {\r\n\t\t\tFileUtils.forceMkdir(file);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(\"Failed to initialize home directory '\" + file + \"'\", ex);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private void testGetCompanyHome() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n NodeRef companyHome = getompanyHomeFolder();\n assertNotNull(companyHome);\n String companyHomeName = (String) nodeService.getProperty(companyHome, ContentModel.PROP_NAME);\n assertNotNull(companyHomeName);\n assertEquals(\"Company Home\", companyHomeName);\n LOG.debug(\"Got \" + companyHomeName + \" NodeRef: \" + companyHome);\n }", "private void restOfTheActivity() {\n if(SharedPrefUtils.hasTrunch(mSharedPreferences)){\n showTrunch();\n }\n loadUserImage();\n long lastTimeDownloaded = SharedPrefUtils.lastTimeDownloaded(mSharedPreferences);\n long timeDifference = System.currentTimeMillis() - lastTimeDownloaded;\n // Compare to MIN_TIME_BETWEEN_JSON_DOWNLOAD and act accordingly.\n if (timeDifference > MIN_TIME_BETWEEN_JSON_DOWNLOAD) {\n // show the splash screen\n mSplashScreenView.setVisibility(View.VISIBLE);\n // go get JSON from server\n downloadJSON();\n\n } else {\n // init tempView\n initTempView();\n }\n }", "public void loadFileList() {\n\n if (mCredential.getSelectedAccountName() == null) {\n chooseAccount();\n } else {\n new MakeRequestTask(mCredential,MakeRequestTask.TASK_TYPE_FILELIST).execute();\n\n }\n }", "public void onLoad()\n {\n saveDefaultConfig();\n\n // Get the lobby name\n chatManager = new ChatManager(this);\n lobby = getConfig().getString(\"lobby\");\n\n // Loading up needed classes\n worldManager = new WorldManager(this);\n\n boolean backupsFound = false;\n\n File backupDir = new File(getDataFolder(), \"backups\");\n if (!backupDir.exists()) {\n getLogger().info(\"No backup directory found; creating one now.\");\n getLogger().info(\"Place world folders you want to reset from in '.../plugins/SkyblockWarriors/backups'\");\n backupDir.mkdirs();\n } else {\n for (File backup : backupDir.listFiles()) {\n if ((backup.isDirectory()) && (backup.listFiles().length != 0)) {\n backupsFound = true;\n }\n }\n\n if (backupsFound) {\n getLogger().info(\"Found backup folder, attempting to reset the world..\");\n // Resetting the world\n worldManager.resetWorld();\n } else {\n if (!getConfig().getBoolean(\"arena-setup\") == false) {\n getLogger().info(\"The plugin should be setup, please copy the world into the backup folder\");\n getLogger().info(\"so the plugin can reset the world on each restart!\");\n }\n }\n }\n }", "private void loadHome(){\n Intent intent = new Intent(this, NameListActivity.class);\n startActivity(intent);\n finish();\n }", "private void start() {\n\t\twhile(!navi.pathCompleted())\n\t\t{\n\t\t\tThread.yield();\n\t\t\t\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void setLookupHomeOnStartup(boolean lookupHomeOnStartup)\r\n/* 24: */ {\r\n/* 25: 72 */ this.lookupHomeOnStartup = lookupHomeOnStartup;\r\n/* 26: */ }", "@Override\n protected String doInBackground(String... params) {\n if (Utilities.isNetworkAvailable(getContext())) {\n\n // Call the method of StartAppRequests class to process App Startup Requests\n startAppRequests.RequestBanners();\n startAppRequests.RequestAllCategories(startAppRequests.page_number);\n\n return \"1\";\n } else {\n\n return \"0\";\n }\n }", "public static void SelfCallForLoading() {\n\t}", "private boolean verifyAsinstalldir(File home) throws ClassNotFoundException{\n if (home!= null && home.isDirectory()) {\n if ( new File(home, \"config\").isDirectory() ) {\n return true;\n } \n }\n throw new ClassNotFoundException(\"ClassCouldNotBeFound\");\n }", "@Override\n\tpublic boolean isInit() {\n\t\tFile path = new File(initService.defaultAddr);\n\t\tif(!path.exists()) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tFile set = new File(initService.defaultAddr+initFile);\n\t\tif(!set.exists()) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static void init()\n\t{\n\t\tusername2accesses.clear();\n\t\t//--- adds info.json in ./Home/Administrator for the system admin ---//\n\t\tfinal String adminAccessPath = Hierarchies.getSectionDir() + \"/\" + Hierarchies.getInfoFileName() + \".\" + Directories.getFileExt();\n\t\tfinal File adminAccessFile = new File(adminAccessPath);\n\t\tif (!adminAccessFile.exists())\n\t\t{\n\t\t\tfinal Access[] accesses = new Access[1];\n\t\t\taccesses[0] = new Access(\"admin\", Role.ADMINISTRATOR, null);\n\t\t\tfinal HierarchyItem hierarchyItem = new HierarchyItem(null, null, null, accesses);\n\t\t\tfinal String hierarchyItemAsJson = new Gson().toJson(hierarchyItem);\n\t\t\tFileIO.writeToFile(adminAccessPath, hierarchyItemAsJson);\n\t\t}\n\t\t//--- reads all JSON files recursively in ./Home/Administrator ---//\n\t\t//--- contents of JSON files will be processed to be cached in hash map username2accesses ---//\n\t\tfinal File file = new File(Hierarchies.getSectionDir());\n\t\tfinal Collection<File> jsonFiles = FileUtils.listFiles(file, new String[]{Directories.getFileExt()}, true);\n\t\tfor (File infoFile : jsonFiles) manage(infoFile, Op.STORE);\n\t}", "private void loadWelcomeContent() {\n\t\twebEngine = startScreen.getEngine();\n\t\tFile jarPath = SX3Manager.getInstance().getInstallLocation();\n\t\tString sx3helpContentPath = jarPath.getParentFile().getAbsolutePath() + \"/welcomeContent/startPage.html\";\n\t\tFile f = new File(sx3helpContentPath);\n\t\twebEngine.load(f.toURI().toString());\n\t}", "public void LoadedHomePage()\r\n {\r\n //Generating Alert Using Javascript Executor\r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"alert('Loaded Home Page');\");\r\n \r\n WaitTime(2000);\r\n driver.switchTo().alert().accept();\r\n driver.switchTo().defaultContent();\r\n }", "private void loadUser() {\n File dataFile = new File(getFilesDir().getPath() + \"/\" + DATA_FILE);\n\n if(dataFile.exists()) {\n loadData();\n } else { // First time CigCount is launched\n user = new User();\n }\n }", "private static boolean testNotFound() {\r\n\t\t// use ExecutorService to manage threads\r\n\t\tExecutorService executor = Executors.newFixedThreadPool(1);\r\n\t\t\r\n\t\tlogger.finest(\"sending request\");\r\n\t\tURL url = urlList.get(0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tURL notFoundURL = new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile() + \"random\");\r\n\t\t\tHttpClient client = new HttpClient(notFoundURL);\r\n\t\t\texecutor.execute(client);\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tlogger.severe(\"problem formatting URL\");\r\n\t\t}\r\n\t\t\r\n\t\t// wait for test to finish\r\n\t\tlogger.finest(\"waiting for request to complete...\");\r\n\t\texecutor.shutdown(); \r\n\t\twhile (!executor.isTerminated())\r\n\t\t\tThread.yield(); // return the control to system\r\n\t\tlogger.finest(\"not found request completed\");\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private void requestUsers(){\n if(mIsLoading)\n return;\n\n mIsLoading = true;\n UserManager.getsInstance().requestUsers(StackExchangeSite.STACK_OVERFLOW,100);\n }", "protected void callHome() {\n\t\tIntent intent = new Intent(this, AdminHome.class);\r\n\t\tstartActivity(intent);\r\n\t}", "private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }", "boolean existsPath(String requestedUrl);", "@SuppressWarnings(\"unchecked\")\n void initExisting() throws IOException {\n LOG.info(\"Initializing Existing Jobs...\");\n List<FileStatus> timestampedDirList = findTimestampedDirectories();\n Collections.sort(timestampedDirList);\n for (FileStatus fs : timestampedDirList) {\n // TODO Could verify the correct format for these directories.\n addDirectoryToSerialNumberIndex(fs.getPath());\n addDirectoryToJobListCache(fs.getPath());\n }\n }", "private void returnHome(){\n if (Boolean.toString(UpdatedHomePage.updatedHomeStarted).equals(\"false\")) {\n startActivity(new Intent(FinalPlan.this, Home.class));\n } else {\n Intent intent = new Intent(this, UpdatedHomePage.class);\n Bundle extras = new Bundle();\n extras.putBoolean(\"filtered\", true);\n intent.putExtras(extras);\n startActivity(intent);\n }\n }", "private void initLocalDirectory() throws IOException {\n\t\tSystem.out.println(\"initLocalDirectory() of thread number: \"\n\t\t\t\t+ Thread.currentThread().getId());\n\t\tBruteForceTask btask = (BruteForceTask) mTask;\n\t\tState targetState = SgUtils.get_last_state(btask.getPath());\n\t\tString toBruteId = (targetState == null ? \"\"\n\t\t\t\t+ Thread.currentThread().getId() : targetState.getId());\n\t\tSystem.out.println(\"to Brute id \" + toBruteId);\n\t\tSystem.out.println(toBruteId);\n\t\tmSgdEnvironnement.init(toBruteId);\n\n\t}", "private void startCusorLoader() {\n\n if (getLoaderManager().getLoader(CURSOR_LOADER_ID) == null) {\n getLoaderManager().initLoader(CURSOR_LOADER_ID, null, new CheckIfFavourite()).forceLoad();\n } else {\n getLoaderManager().restartLoader(CURSOR_LOADER_ID, null, new CheckIfFavourite()).forceLoad();\n }\n\n }", "public void start(){\n\t\tboolean readFromFile = readFromIndex();\r\n\t\tif (!readFromFile){\t\r\n\t\t\tfor (int i = 0;i<1000;++i){\r\n\t\t\t\tString file = \"../crawler/pages/page\"+i+\".html\";\r\n\t\t\t\taddFile(file);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void doHead() throws IOException {\n\n // search ressource\n\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\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}", "static void refreshFileSystem() {\n \t// Clear all existing registrations on the server via CORBA for this username\n server.clearSharedFiles(username);\n server.clearNotSharedFiles(username);\n // Register the files on the server through CORBA that have been added to the directories manually\n server.registerFiles(username);\n System.out.println();\n return;\n }", "public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }", "public void redirectToHomeSameSession() {\r\n\t\t\r\n\t\ttry{\r\n\t\twebAppDriver.get(baseUrl);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void checkFirstLaunch(){\n SharedPreferencesEditor editor = new SharedPreferencesEditor(this);\n boolean test = editor.GetBoolean(\"firstLaunch\");\n if(test){\n loadData();\n return;\n }\n startActivity(new Intent(MainActivity.this, FirstLaunch.class));\n editor.WriteBoolean(\"firstLaunch\", true);\n }", "private synchronized void lazyInit() {\n logger.debug(\"+\");\n if(lazyInitDone) {\n logger.debug(\"- already inited\");\n return;\n }\n lazyInitDone = true;\n AlbumUploadProfile.get().init();\n ImageUploadProfile.get().init();\n BannerUploadProfile.get().init();\n SiteMapBuilder.getInstance().getHandlers().put(\"menu\", new MenuPagesHandler());\n SiteMapBuilder.getInstance().getHandlers().put(\"unlinked\", new UnlinkedPagesHandler());\n try { DictionaryFileBuilder.getInstance().generate(false); }\n catch (CriticalException ex) { logger.error(\"Exception\", ex); }\n logger.debug(\"-\");\n }", "private boolean initialize() {\n\ttry {\n\t if (msPathToDefinitionFiles.equals(System.getenv(Constants.gsPathVariable)) == false) {\n\t\tmsPathToDefinitionFiles = System.getenv(Constants.gsPathVariable);\n\n\t\tif ((msPathToDefinitionFiles == null) || (msPathToDefinitionFiles.length() == 0)) {\n\t\t msPathToDefinitionFiles = Exceptions.gsPathToDefinitionFilesYetToBeSet;\n\n\t\t mLogger.fatal(Exceptions.gsPathNotDefined);\n\n\t\t return false;\n\t\t}// if ((msPathToDefinitionFiles == null) || (msPathToDefinitionFiles.length()\n\n\t\tmfDefinitionFile = null;\n\t\tmfDefinitionFile = new File(msPathToDefinitionFiles);\n\n\t\tif (mfDefinitionFile.isDirectory() == false) {\n\t\t mLogger.fatal(String.format(Exceptions.gsPathNotFound, msPathToDefinitionFiles));\n\n\t\t return false;\n\t\t}// if (mfDefinitionFile.isDirectory() == false)\n\n\t\tmfDefinitionFile = null;\n\t\tmfDefinitionFile = new File(msPathToDefinitionFiles, Constants.gsJrestRepository);\n\n\t\tif ((mfDefinitionFile.exists() == false)\n\t\t\t|| (mfDefinitionFile.isDirectory() == false)) {\n\t\t if (mfDefinitionFile.mkdirs() == false) {\n\t\t\tmLogger.error(Exceptions.gsCantCreateJrestRepository);\n\n\t\t\treturn false;\n\t\t }// if (mfDefinitionFile.mkdirs() == false )\n\t\t}// if( (mfDefinitionFile.exists() == false ) || (mfDefinitionFile.isDirectory() ==\n\t\t // false))\n\n\t\tmsPathToJrestRepo = mfDefinitionFile.getAbsolutePath();\n\t }// if(msPathToDefinitionFiles.equals(System.getenv(Constants.gsPathVariable))\n\n\t msJrestSweepInterval = System.getenv(Constants.gsRefreshInterval);\n\n\t if (msJrestSweepInterval != null) {\n\t\tmlJrestSweepInterval = Long.parseLong(msJrestSweepInterval);\n\t\tmlJrestSweepInterval *= Constants.gshMillisInSecond;\n\n\t\tif (mlJrestSweepInterval <= Constants.gshZero\n\t\t\t|| mlJrestSweepInterval <= Constants.glDefaultRefreshInterval) {\n\t\t mLogger.warn(Exceptions.gsLowSweepInterval);\n\n\t\t mlJrestSweepInterval = Constants.glDefaultRefreshInterval;\n\t\t}// if (mlJrestSweepInterval <= 0 ... )\n\t }// if (msJrestSweepInterval != null)\n\t} catch (Exception e) {\n\t e.printStackTrace(moPrintWriter);\n\n\t mLogger.error(moStringWriter.toString());\n\n\t return false;\n\t}// end of try ... catch\n\n\treturn true;\n }", "public void loadCache() {\n if (!directory.exists()) {\n directory.mkdirs();\n }\n File[] files = this.directory.listFiles();\n if (files == null) {\n return;\n }\n for (File file : files) {\n if (file.getName().endsWith(\".json\")) {\n cache.put(file.getName().split(\".json\")[0], new JsonDocument(file));\n }\n }\n }", "public void init() {\n // TODO start asynchronous download of heavy resources\n }", "void doHome()\n\t{\n\t\ttry\n\t\t{\n\t\t\tLocation l = getCurrentLocation();\n\t\t\tSourceFile file = l.getFile();\n\t\t\tint module = file.getId();\n\t\t\tint line = l.getLine();\n\n\t\t\t// now set it\n setListingPosition(module, line);\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"currentLocationUnknown\")); //$NON-NLS-1$\n\t\t}\n\t}", "private void launchHomeScreen(){\n\n prefManager.setFirstTimeLaunch(false);\n Intent i = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(i);\n }", "void initSharedConfiguration(boolean loadSharedConfigFromDir) throws IOException {\n status.set(SharedConfigurationStatus.STARTED);\n Region<String, Configuration> configRegion = getConfigurationRegion();\n lockSharedConfiguration();\n try {\n removeInvalidXmlConfigurations(configRegion);\n if (loadSharedConfigFromDir) {\n logger.info(\"Reading cluster configuration from '{}' directory\",\n InternalConfigurationPersistenceService.CLUSTER_CONFIG_ARTIFACTS_DIR_NAME);\n loadSharedConfigurationFromDir(configDirPath.toFile());\n } else {\n persistSecuritySettings(configRegion);\n // for those groups that have jar files, need to download the jars from other locators\n // if it doesn't exist yet\n for (Entry<String, Configuration> stringConfigurationEntry : configRegion.entrySet()) {\n Configuration config = stringConfigurationEntry.getValue();\n for (String jar : config.getJarNames()) {\n if (!getPathToJarOnThisLocator(stringConfigurationEntry.getKey(), jar).toFile()\n .exists()) {\n downloadJarFromOtherLocators(stringConfigurationEntry.getKey(), jar);\n }\n }\n }\n }\n } finally {\n unlockSharedConfiguration();\n }\n\n status.set(SharedConfigurationStatus.RUNNING);\n }", "protected void onStartLoading() { forceLoad();}", "private void initiateLoader() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = null;\n if (connMgr != null) {\n networkInfo = connMgr.getActiveNetworkInfo();\n }\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n avi.show();\n loadingIndicator.setVisibility(View.VISIBLE);\n errorContainer.setVisibility(View.GONE);\n LoaderManager loaderManager = getSupportLoaderManager();\n String url = BASE_URL + \"&from=\" + fromDate;\n url += \"&to=\" + toDate;\n url += \"&page=\" + currentPageNo;\n url += \"&sortBy=\" + sortPreference;\n if (queryText != null) {\n url += \"&q=\" + queryText;\n }\n\n Bundle args = new Bundle();\n args.putString(URL_KEY, url);\n if (forceLoad) {\n loaderManager.restartLoader(LAST_LOADER_ID, args, this);\n forceLoad = false;\n } else {\n LAST_LOADER_ID = NEWS_LOADER_ID;\n }\n if (!loaderInitiated) {\n loaderManager.initLoader(NEWS_LOADER_ID, args, this);\n loaderInitiated = true;\n } else {\n loaderManager.restartLoader(NEWS_LOADER_ID, args, this);\n }\n } else {\n avi.hide();\n loadingIndicator.setVisibility(View.GONE);\n ((TextView) errorContainer.findViewById(R.id.tvErrorDesc)).setText(R.string.no_conn_error_message);\n errorContainer.setVisibility(View.VISIBLE);\n }\n }", "public void start() {\n\n String pathFile = mainMenu.menuTakePathFile();\n int countThreads = mainMenu.menuCountThreads();\n int downloadSpeed = mainMenu.menuDownloadSpeed();\n String folderForDownload = mainMenu.menuPathDownload();\n\n List<String> urls = null;\n try {\n urls = bootPreparation.parsingFileForUrls(pathFile);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n List<String> fileNames = bootPreparation.parsingListUrlsForNames(urls);\n\n multiThreadedDownloader.startDownloading(countThreads, urls.size(), urls, fileNames, downloadSpeed, folderForDownload);\n\n }", "@Override\n protected void onStartLoading() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n if (mResult != null) // If we currently have a result available, deliver it immediately.\n deliverResult(mResult);\n\n if (isReload() || mResult == null)\n forceLoad();\n }\n });\n }", "private void processFromLastRun() {\n for (String configId : dirsFromLastRunToProcess.keySet()) {\r\n File dirToProcess = dirsFromLastRunToProcess.get(configId);\r\n processContentFiles(dirToProcess, configId);\r\n }\r\n \r\n dirsFromLastRunToProcess = new HashMap<String, File>();\r\n }", "public void doCheckGroovyHome( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {\n // this can be used to check the existence of a file on the server, so needs to be protected\n new FormFieldValidator(req,rsp,true) {\n public void check() throws IOException, ServletException {\n File f = getFileParameter(\"value\");\n if(!f.isDirectory()) {\n error(f+\" is not a directory\");\n return;\n }\n \n if(!new File(f,\"bin/groovy\").exists() && !new File(f,\"bin/groovy.bat\").exists()) {\n error(f+\" doesn't look like a Groovy directory\");\n return;\n }\n \n if(!new File(f,\"bin/gant\").exists() && !new File(f,\"bin/gant.bat\").exists()) {\n error(f+\" looks like a Groovy but Gant is not found in here\");\n return;\n }\n \n ok();\n }\n }.process();\n }", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "private EntryStorageHome home()\r\n {\r\n if( home == null )\r\n {\r\n\t\ttry\r\n\t\t{\r\n home = (EntryStorageHome) \r\n get_storage_home().get_catalog().find_storage_home( PSS_HOME );\r\n\t\t}\r\n\t\tcatch( Throwable e )\r\n\t\t{\r\n\t\t String error = \"Could not resolve the EntryStorageHome\";\r\n\t\t throw new RuntimeException( error, e );\r\n\t\t}\r\n }\r\n return home;\r\n }", "public boolean isMine(HttpServletRequest request) {\r\n String path = request.getPathInfo();\r\n return path.startsWith(\"/thredds/obis/\");\r\n }", "private void checkSingleInstance() {\r\n\t\t//Erzeugt ein RandomAccessFile \"flag\"\r\n\t\tfinal File file = new File(\"flag\");\r\n\t\tRandomAccessFile randomAccessFile;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//Ist es der Applikation nicht möglich, das erstellte File zu sperren, zeigt es an, dass bereits eines vorhanden ist.\r\n\t\t\t//Dementsprechend wird die Applikation beendet, da bereits eine Instanz geöffnet wurde.\r\n\t\t\trandomAccessFile = new RandomAccessFile(file, \"rw\");\r\n\t\t\tfinal FileLock fileLock = randomAccessFile.getChannel().tryLock();\r\n\r\n\t\t\tif (fileLock == null) {\r\n\t\t\t\tPlatform.exit();\r\n\t\t\t}\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}", "public void openHome() {\n connectionProgressDialog.dismiss();\n Intent i = new Intent(this, ZulipActivity.class);\n startActivity(i);\n finish();\n }", "public void procLoadFromFileThread() {\n try {\n\n do {\n /*----------Check Thread Interrupt----------*/\n Thread.sleep(1); if (!_running) break;\n /*------------------------------------------*/\n\n MemoryCacheEntry cacheEntry = _downloader.getMemCache().get(_cacheKey);\n\n if (cacheEntry!=null && cacheEntry.size()>0) {\n _cacheEntry = cacheEntry;\n _downloader.handleState(this, ImageDownloader.State.DOWNLOAD_SUCCESS);\n return;\n } else {\n _cacheEntry = null;\n }\n\n\n _isSuccess = false;\n\n _mutex.lock();\n if (_phoneAlbums!=null && _phoneAlbums.size()>0) {\n _isSuccess = true;\n } else {\n ImageManager.getPhoneAlbumInfo(SMDirector.getDirector().getActivity(), new ImageManager.OnImageLoadListener() {\n @Override\n public void onAlbumImageLoadComplete(ArrayList<PhoneAlbum> albums) {\n _isSuccess = true;\n _phoneAlbums = albums;\n// _cond.notify();\n synchronized (_this) {\n _this.notify();\n }\n }\n\n @Override\n public void onError() {\n synchronized (_this) {\n _this.notify();\n }\n// _cond.notify();\n }\n });\n\n synchronized (_this) {\n _this.wait();\n }\n\n// _cond.wait();\n }\n\n if (!_isSuccess || _phoneAlbums.size()==0) {\n Log.i(\"DT\", \"[[[[[ Failed to get Album list~\");\n _mutex.unlock();\n break;\n }\n\n /*----------Check Thread Interrupt----------*/\n Thread.sleep(1); if (!_running) break;\n /*------------------------------------------*/\n\n Bitmap bmp = getPhotoImage(_requestPath);\n if (bmp==null) {\n Log.i(\"DT\", \"[[[[[ Failed to get Album list~\");\n _mutex.unlock();\n break;\n }\n\n _imageEntry = ImageCacheEntry.createEntry(bmp);\n _mutex.unlock();\n\n _downloader.handleState(this, ImageDownloader.State.DECODE_SUCCESS);\n _cacheEntry = null;\n return;\n } while (false);\n\n\n } catch (InterruptedException e) {\n\n }\n\n _cacheEntry = null;\n _downloader.handleState(this, ImageDownloader.State.DOWNLOAD_FAILED);\n }", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "private void loadBasePaths() {\n\n Log.d(TAG, \"****loadBasePaths*****\");\n List<FileInfo> paths = BaseMediaPaths.getInstance().getBasePaths();\n for (FileInfo path : paths) {\n\n }\n }", "public void start(){\r\n if (isInitOk){\r\n if (firstStart) {\r\n firstStart = false;\r\n String userHome = System.getProperty(\"user.home\");\r\n String installDirName = userHome + File.separator + \".jogl_ext\"\r\n + File.separator + installDirectory; // should manage jogl versions here\r\n\r\n final File installDir = new File(installDirName);\r\n\r\n Thread refresher = new Thread() {\r\n public void run() {\r\n refreshJOGL(installDir);\r\n }\r\n };\r\n refresher.setPriority(Thread.NORM_PRIORITY - 1);\r\n refresher.start();\r\n } else if (joglStarted) {\r\n // we have to start again the applet (start can be called multiple times,\r\n // e.g once per tabbed browsing\r\n subApplet.start();\r\n }\r\n }\r\n }", "public void initLoadingFileEnviroment() {\n // file init\n try {\n DiskFileItemFactory fileFactory = new DiskFileItemFactory();\n File filepath = new File(DATA_PATH);\n fileFactory.setRepository(filepath);\n this._uploader = new ServletFileUpload(fileFactory);\n\n } catch (Exception ex) {\n System.err.println(\"Error init new file environment. \" + ex.getMessage());\n }\n }", "public void angelHomePage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"AngelHomePage > angelHomePage\", driver);\r\n\t\tswitchFrameToAngelContent();\r\n\t\tif(Element.verify(\"Logged in Message\", driver, \"XPATH\", \"//span[@class='pageTitleSpan' and text()='Home']\"))\r\n\t\t{\r\n\t\t\tResultUtil.report(\"PASS\", \"Successfully logged in\", driver);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tResultUtil.report(\"FAIL\", \"Login failed\", driver);\r\n\t\t}\t\t\r\n\t}", "private void requestFirstHug() {\n new ImageDownloader(this) {\n @Override\n protected void onPostExecute(String filePath) {\n super.onPostExecute(filePath);\n Hug hug = new Hug(\n getString(R.string.first_hug_message),\n filePath,\n System.currentTimeMillis());\n HugDatabaseHelper.insertHug(MainActivity.this, hug);\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, KramConstant.GOOGLE_SEARCH_URL);\n }", "@Override\n public void checkTaskStillAvailable(String path) {\n this.watcher\n .getRecoverableZooKeeper()\n .getZooKeeper()\n .getData(path, this.watcher, new GetDataAsyncCallback(),\n Long.valueOf(-1) /* retry count */);\n SplitLogCounters.tot_mgr_get_data_queued.incrementAndGet();\n }", "private void loadHomeclass(){\n // selecting appropriate nav menu item\n selectNavMenu();\n\n // set toolbar title\n setToolbarTitle();\n\n // if user select the current navigation menu again, don't do anything\n // just close the navigation drawer\n if (getClass().getSimpleName()==CURRENT_TAG) {\n\n drawerLayout.closeDrawers();\n\n return;\n }\n\n\n //Closing drawer on item click\n drawerLayout.closeDrawers();\n\n // refresh toolbar menu\n invalidateOptionsMenu();\n }", "private void prepareAndShowHomeScreen() {\n\t\tFraHeader header = FraHeader.newInstance(true);\n\t\theader.showBackButton(false);\n\t\tFraHomeContent homeContent = FraHomeContent.newInstance();\n\t\tFraFooter footer = FraFooter.newInstance(FooterIcons.TOP10);\n\t\tFraSearch search = FraSearch.newInstance();\n\t\tFraFont font = FraFont.newInstance();\n\t\tFraShare share = FraShare.newInstance();\n\n\t\treplaceScreenWithNavBarContentAndMenu(header, FraHeader.TAG,\n\t\t\t\thomeContent, FraHomeContent.TAG, footer, FraFooter.TAG,\n\t\t\t\tFraMenu.newInstance(), FraMenu.TAG, search, FraSearch.TAG,\n\t\t\t\tfont, FraFont.TAG, share, FraShare.TAG, false);\n\t\tprepareAndShowHomeScreen(false);\n\t\t/*\n\t\t * replaceScreenWithNavBarContentAndFooter(homeContent,\n\t\t * FraHomeContent.TAG, footer, FraFooter.TAG, false);\n\t\t */\n\t}", "private boolean processReload(boolean isDefault) {\n\t\tcleanDatabase();\n\n\t\t// reload desktop first\n\t\tboolean res = reloadDesktop(isDefault);\n\t\t\n// reloadHotseat();\n\t\treturn res;\n\t}", "private void startStep3() {\n\n //And it will be keep running until you close the entire application from task manager.\n //This method will executed only once.\n\n if (!mAlreadyStartedService && mMsgView != null) {\n mMsgView.setText(R.string.msg_location_service_started);\n //Start location sharing service to app server.........\n Intent intent = new Intent(this, LocationMonitoringService.class);\n startService(intent);\n mAlreadyStartedService = true;\n //Ends................................................\n }\n }", "@Override\n protected void isLoaded(){\n String url = driver.getCurrentUrl();\n Assert.assertTrue(url.contains(\"users\"), \"Not on Login page: \".concat(url));\n }", "protected void updateLoading()\n {\n scheduled = false;\n\n if (!valid)\n return;\n\n while (loading.size() < numConnections) {\n updateActiveStats();\n\n final TileInfo tile;\n synchronized (toLoad) {\n if (toLoad.isEmpty())\n break;\n tile = toLoad.last();\n if (tile != null) {\n toLoad.remove(tile);\n }\n }\n if (tile == null) {\n break;\n }\n\n tile.state = TileInfoState.Loading;\n synchronized (loading) {\n if (!loading.add(tile)) {\n Log.w(\"RemoteTileFetcher\", \"Tile already loading: \" + tile.toString());\n }\n }\n\n if (debugMode)\n Log.d(\"RemoteTileFetcher\",\"Starting load of request: \" + tile.fetchInfo.urlReq);\n\n // Set up the fetching task\n tile.task = client.newCall(tile.fetchInfo.urlReq);\n\n if (tile.isLocal) {\n // Try reading the data in the background\n new CacheTask(this,tile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,(Void)null);\n } else {\n startFetch(tile);\n }\n }\n\n updateActiveStats();\n }", "private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }", "protected boolean isHomeRefreshable()\r\n/* 92: */ {\r\n/* 93:178 */ return false;\r\n/* 94: */ }", "public static void waitWhileLoading()\r\n {\r\n while (isLoading())\r\n ThreadUtil.sleep(10);\r\n }", "@Override\n protected Boolean doInBackground(URL... urls)\n {\n PackageManager pkgMgr = getApplicationContext().getPackageManager();\n List<PackageInfo> pkgInfoList = pkgMgr.getInstalledPackages(0);\n List<PackageInfo> installedApks = new ArrayList<>();\n\n for(int i=0;i< pkgInfoList.size();i++)\n {\n PackageInfo pkg = pkgInfoList.get(i);\n if((pkg.applicationInfo.flags & pkg.applicationInfo.FLAG_SYSTEM) <= 0)\n { //user installed apks\n installedApks.add(pkg);\n }\n }\n\n for(int j=0;j<installedApks.size();j++)\n {\n if(installedApks.get(j).packageName.equals(agGamePkgName))\n {\n break;\n }\n }\n\n if( j == installedApks.size())\n {\n //AG game apk is not installed, download from internet\n try{\n downloadMgr = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request downloadReq = new DownloadManager.Request(Uri.parse(agGameSite));\n downloadReq.setDestinationInExternalPublicDir(\"AG Game\",\"AGGame.apk\");\n downloadReq.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n downloadID = downloadMgr.enqueue(downloadReq);\n }catch(IOException ex)\n {\n ex.printStackTrace();\n }\n }\n return true;\n }", "public void loadStatus (){\n\t}", "public void onModuleLoad() {\n \t\tMainPage.currentPage = this;\n \t\t\n \t\tif(Window.Location.getHash().length() == 0){\n \t\t\tloggedIn = false;\n \t\t}else{\n \t\t\tloggedIn = true;\n \t\t}\n \t\t\n \t\tinitUI();\n \t\t\n \t\tif(loggedIn){\n \t\t\tsetStatus(\"fetching JSON...\", false);\n \t\t\tfbFetcher.fetchNeededJSON();\n \t\t}\n \t\t\n \t}", "public boolean loadProgress() {\n return false;\n }", "private void checkFirstRun() {\r\n\r\n\t final String PREFS_NAME = \"MyPrefsFile\";\r\n\t final String PREF_VERSION_CODE_KEY = \"version_code\";\r\n\t final int DOESNT_EXIST = -1;\r\n\r\n\r\n\t // Get current version code\r\n\t int currentVersionCode = 0;\r\n\t try {\r\n\t currentVersionCode = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;\r\n\t } catch (android.content.pm.PackageManager.NameNotFoundException e) {\r\n\t // handle exception\r\n\t Log.e(\"PackageMissing\", \"Package Not Found\");\r\n\t return;\r\n\t }\r\n\r\n\t // Get saved version code\r\n\t SharedPreferences prefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);\r\n\t int savedVersionCode = prefs.getInt(PREF_VERSION_CODE_KEY, DOESNT_EXIST);\r\n\r\n\t // Check for first run or upgrade\r\n\t if (currentVersionCode == savedVersionCode) {\r\n\t \t// This is just a normal run\r\n\t return;\r\n\t } else {\r\n\t \tstartActivity(new Intent(DisplayBin.this, DisplayBinHelp.class));\r\n\t }\r\n\t // Update the shared preferences with the current version code\r\n\t prefs.edit().putInt(PREF_VERSION_CODE_KEY, currentVersionCode).commit();\r\n\t}", "public void viewListofHomes() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of homes\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of homes\");\n\t\t}\n\t}", "private void setupDirectory(String name){\n this.pokemon = toLowerCase(name);\n ServerSmogon sm;\n File folder = new File(getFilesDir() +\n \"/strategy_\" + gen + \"/\");\n File f = new File(getFilesDir() +\n \"/strategy_\" + gen + \"/\" + pokemon + \".txt\");\n //File[] contents = folder.listFiles();\n Thread thread;\n //check if directory is made\n if(folder.exists() && folder.isDirectory() && f.exists()){\n setupArticleandStats();\n refreshlayoutpart2();\n return;\n }\n //if not make it\n\n folder.mkdirs();\n try{\n f.createNewFile();\n } catch(IOException e){\n e.printStackTrace();\n }\n\n\n //download strategy articles\n sm = new ServerSmogon(getBaseContext(), gen, \"strategy\", pokemon, handler);\n thread = new Thread(sm);\n\n thread.start();\n dialog=new ProgressDialog(this);\n dialog.setMessage(\"Downloading \"+pokemon);\n dialog.setCancelable(false);\n dialog.setInverseBackgroundForced(false);\n dialog.show();\n// try{\n//\n// thread.join();\n// }catch (InterruptedException e){\n// e.printStackTrace();\n// }\n\n }", "public boolean isHome() {\n return getHomePackageNames().contains(\n mActivityManager.getRunningTasks(1).get(0).topActivity.getPackageName());\n }", "public BufferedReader reqGetHome() throws ServerStatusException,\n IOException {\n return reqGet(\"/\", USER_AGENT);\n }", "@Override\n public void stageForCache_destination_exists() throws Exception {\n assumeTrue( !isWindows() );\n super.stageForCache_destination_exists();\n }", "public boolean preHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject arg2) throws Exception {\n\t\tString basePath = (String) request.getSession().getAttribute(\"basePath\");\n\t\tif (basePath==null||\"null\".equals(basePath)||\"\".equals(basePath)) {\n\t\t\tString path = request.getContextPath();\n\t\t\tbasePath = request.getScheme() + \"://\"\n\t\t\t\t\t+ request.getServerName() + \":\" + request.getServerPort()\n\t\t\t\t\t+ path + \"/\";\n\t\t\trequest.getSession().setAttribute(\"path\", basePath);\n\t\t\trequest.getSession().setAttribute(\"ver\", new Date().getTime());\n\t\t}\n\t\treturn true;\n\t}", "public static void reload()\r\n {\r\n reloadAsynch();\r\n waitWhileLoading();\r\n }" ]
[ "0.58687264", "0.54266906", "0.54122514", "0.53991145", "0.5370327", "0.5367049", "0.53560364", "0.5352131", "0.5349987", "0.53451025", "0.5343738", "0.53087485", "0.5274777", "0.52683586", "0.52337044", "0.5229379", "0.5173123", "0.51655895", "0.5146842", "0.5133489", "0.51142305", "0.5103209", "0.5102806", "0.5101648", "0.5069542", "0.50655323", "0.5055931", "0.5055746", "0.5052152", "0.5040802", "0.502324", "0.5022111", "0.5017702", "0.50108904", "0.5003451", "0.4999673", "0.49923298", "0.49913055", "0.49910045", "0.49873766", "0.4970475", "0.49683842", "0.49674", "0.49535033", "0.49508741", "0.49399325", "0.4931893", "0.4930228", "0.49149275", "0.4896409", "0.48955667", "0.48921597", "0.48759088", "0.48745772", "0.4864388", "0.48608544", "0.48512316", "0.48468482", "0.48376092", "0.4832335", "0.48259398", "0.48248225", "0.48186824", "0.48134872", "0.4810332", "0.48045722", "0.48013827", "0.4800778", "0.47978482", "0.4795112", "0.4792672", "0.4790481", "0.4778272", "0.47764522", "0.4776053", "0.4770426", "0.47693637", "0.47673544", "0.4767139", "0.47664568", "0.47645712", "0.47622907", "0.47587326", "0.47582695", "0.47578025", "0.47572774", "0.47547883", "0.4750941", "0.4750016", "0.47456852", "0.47377107", "0.47354728", "0.4732875", "0.47299516", "0.47215816", "0.47189844", "0.471782", "0.47120222", "0.47059", "0.46928865", "0.46897316" ]
0.0
-1
Merge new homeFolder object if reuired
@Override public CreationBean modify(final HomeFolderModificationRequest hfmr, final List<Adult> newAdults, final List<Child> newChildren, Address adress) throws CvqException { for (int i = 0; i < newAdults.size(); i++) { if (newAdults.get(i).getId() != null) { Adult mergeAdult = (Adult)HibernateUtil.getSession().merge(newAdults.get(i)); newAdults.set(i, mergeAdult); } } for (int i = 0; i < newChildren.size(); i++) { if (newChildren.get(i).getId() != null) { Child mergeChild = (Child)HibernateUtil.getSession().merge(newChildren.get(i)); newChildren.set(i, mergeChild); } } if (adress.getId() != null) adress = (Address)HibernateUtil.getSession().merge(adress); historyInterceptor.setCurrentRequest(hfmr); historyInterceptor.setCurrentUser(SecurityContext.getCurrentUserLogin()); historyInterceptor.setCurrentSession(HibernateUtil.getSession()); CreationBean cb = null; HomeFolder oldHomeFolder = homeFolderService.getById(hfmr.getHomeFolderId()); // TODO REFACTORING // home folder will have to be validated again oldHomeFolder.setState(ActorState.PENDING); // take a snapshot of the "old" home folder // (ie as it was before issuing this modification request) List<Child> oldChildren = new ArrayList<Child>(); List<Adult> oldAdults = new ArrayList<Adult>(); for (Individual tempInd : oldHomeFolder.getIndividuals()) { if (tempInd instanceof Adult) { oldAdults.add((Adult) tempInd); } else { oldChildren.add((Child) tempInd); } } // first, deal with modifications related to children for (Child child : oldChildren) { logger.debug("modify() looking at old child : " + child); if (!containsIndividual(newChildren, child)) { logger.debug("modify() child removed from home folder : " + child); // just unlink from its home folder, don't remove it yet from DB // because request can be refused // if the request is validated, the child will be removed then child.setHomeFolder(null); // TODO INDEXED LISTS TO TEST MORE oldHomeFolder.getIndividuals().remove(child); individualService.modify(child); } } for (Child newChild : newChildren) { logger.debug("modify() looking at new child : " + newChild); if (!containsIndividual(oldChildren, newChild)) { logger.debug("modify() child added to home folder : " + newChild); individualService.create(newChild, oldHomeFolder, adress, false); oldChildren.add(newChild); } } // then, deal with modifications related to home folder adults boolean loggedInUserChange = false; for (Adult adult : oldAdults) { logger.debug("modify() looking at old adult : " + adult); if (!containsIndividual(newAdults, adult)) { logger.debug("modify() adult removed from home folder : " + adult); // check if adult was the currently logged in user // if so, prepare for a hot swap if (SecurityContext.getCurrentEcitizen().getLogin().equals(adult.getLogin())) { logger.info("modify() currently logged in user is going to be removed from its home folder !"); loggedInUserChange = true; } // just unlink from its home folder, don't remove it yet from DB // because request can be refused // if the request is validated, the adult will be removed then adult.setHomeFolder(null); // TODO INDEXED LISTS TO TEST MORE oldHomeFolder.getIndividuals().remove(adult); individualService.modify(adult); } else { if (!adult.getLogin().startsWith(adult.getFirstName().toLowerCase() + "." + adult.getLastName().toLowerCase())) { logger.debug("modify() adult changed of first or last name"); logger.debug("modify() adult login : " + adult.getLogin()); logger.debug("modify() adult names : " + adult.getFirstName() + " " + adult.getLastName()); } } } for (Adult adult : newAdults) { logger.debug("modify() looking at new adult : " + adult); // new passwords generation handling // -> a new adult which is home folder responsible // -> an home folder responsible change inside home folder if (adult.getPassword() != null && !adult.getPassword().startsWith("{SHA}")) { adult.setPassword(individualService.encryptPassword(adult.getPassword())); } if (!containsIndividual(oldAdults, adult)) { logger.debug("modify() adult added to home folder : " + adult); individualService.create(adult, oldHomeFolder, adult.getAdress(), true); } // currently logged in user has been removed from the home folder // set the new home folder responsible as the new logged in user if (loggedInUserChange) { for (IndividualRole individualRole : adult.getIndividualRoles()) { if (individualRole.getRole().equals(RoleType.HOME_FOLDER_RESPONSIBLE)) { logger.debug("modify() Got the new logged in user with login : " + adult.getLogin()); cb = new CreationBean(); cb.setLogin(adult.getLogin()); cb.setRequestId(hfmr.getId()); // and set it as the request's requester, to pass security checks hfmr.setRequesterId(adult.getId()); SecurityContext.setCurrentEcitizen(adult); } } } } homeFolderService.checkAndFinalizeRoles(hfmr.getHomeFolderId(), newAdults, newChildren); requestDAO.update(hfmr); // TODO REFACTORING : branch into common treatments logger.debug("modify() Gonna generate a pdf of the request"); byte[] pdfData = certificateService.generateRequestCertificate(hfmr); requestActionService.addCreationAction(hfmr.getId(), new Date(), pdfData); super.notifyRequestCreation(hfmr, pdfData); // inform history interceptor that it could stop intercepting after the next postFlush() historyInterceptor.releaseInterceptor(); return cb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void restoreOriginalHomeFolder(final HomeFolderModificationRequest request)\n throws CvqException {\n \n Set<Object> objectsToUpdate = new HashSet<Object>();\n Set<Object> objectsToRemove = new HashSet<Object>();\n \n // navigate through all the history entries and cancel previous changes\n \n Set<HistoryEntry> historiesSet = getHistoryEntries(request.getId());\n for (HistoryEntry he : historiesSet) {\n logger.debug(\"restoreOriginalHomeFolder() history entry : \" + he.getId());\n \n if (he.getOperation().equals(\"update\")) {\n logger.debug(\"restoreOriginalHomeFolder() update operation\");\n logger.debug(\"restoreOriginalHomeFolder() dealing with property : \" \n + he.getProperty() + \" of class \" + he.getClazz());\n \n // simple field value change\n if (!he.getProperty().startsWith(\"password\")\n && !he.getProperty().equals(\"homeFolder\")\n && !he.getProperty().equals(\"adress\")\n && !he.getProperty().equals(\"individualRoles\")\n && !he.getProperty().equals(\"individuals\")) {\n logger.debug(\"restoreOriginalHomeFolder() simple field value change (\" \n + he.getProperty() + \")\");\n Object object = restoreOldProperty(he, null, null);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n }\n \n // a individual has been planed for removal, re-attach it to home folder\n else if (he.getProperty().equals(\"homeFolder\")) {\n \n if (he.getNewValue() == null) {\n logger.debug(\"restoreOriginalHomeFolder() an object was planned for removal, re-attach it\");\n \n String oldValue = he.getOldValue();\n String oldHomeFolderId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3, \n oldValue.lastIndexOf(']'));\n HomeFolder oldHomeFolder = \n homeFolderService.getById(Long.valueOf(oldHomeFolderId));\n Object object = restoreOldProperty(he, HomeFolder.class, oldHomeFolder);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n } \n }\n \n // an adress change was planned, go back to the original one\n else if (he.getProperty().equals(\"adress\")) {\n logger.debug(\"restoreOriginalHomeFolder() an adress change was planned, \"\n + \"go back\");\n String oldValue = he.getOldValue();\n String oldAdressId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3,\n oldValue.lastIndexOf(']'));\n Address oldAdress = \n (Address) genericDAO.findById(Address.class, Long.valueOf(oldAdressId));\n Object object = restoreOldProperty(he, Address.class, oldAdress);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n }\n \n else if (he.getProperty().equals(\"individualRoles\")) {\n logger.debug(\"restoreOriginalHomeFolder() a role change was planned, go back\");\n \n // load the owner to restore its original roles\n Individual individual = \n (Individual) genericDAO.findById(Individual.class, he.getObjectId());\n Set<IndividualRole> oldIndividualRoles = new HashSet<IndividualRole>();\n \n // take old values and add them back to the set\n if (he.getOldValue() != null) {\n String[] oldValues =\n he.getOldValue().substring(1, he.getOldValue().length() - 1).split(\",\");\n for (int i=0; i < oldValues.length; i++) {\n String oldValue = oldValues[i];\n String oldIndividualRoleId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3,\n oldValue.lastIndexOf(']'));\n logger.debug(\"restoreOriginalHomeFolder() got old role id : \" \n + oldIndividualRoleId);\n IndividualRole individualRole = \n (IndividualRole) genericDAO.findById(IndividualRole.class, \n Long.valueOf(oldIndividualRoleId));\n oldIndividualRoles.add(individualRole);\n }\n }\n \n if (!oldIndividualRoles.isEmpty()) {\n logger.debug(\"restoreOriginalHomeFolder() restoring roles (\" \n + oldIndividualRoles.size() + \") for individual \"\n + individual.getId());\n individual.setIndividualRoles(oldIndividualRoles);\n \n if (!objectsToRemove.contains(individual))\n objectsToUpdate.add(individual);\n }\n }\n } else if (he.getOperation().equals(\"created\")) {\n logger.debug(\"restoreOriginalHomeFolder() creation operation\"); \n \n Object object = \n genericDAO.findById(getClassFromHistoryEntry(he.getClazz()), he.getObjectId());\n logger.debug(\"restoreOriginalHomeFolder() object \" + object \n + \" was planned for addition, unlink it\");\n \n if (object instanceof Individual) {\n if (!objectsToRemove.contains(object)) {\n Individual individual = (Individual) object;\n homeFolderService.deleteIndividual(request.getHomeFolderId(), \n individual.getId());\n }\n } else if (object instanceof IndividualRole) {\n IndividualRole individualRole = (IndividualRole) object;\n List<Individual> individuals = \n homeFolderService.getIndividuals(request.getHomeFolderId());\n for (Individual individual : individuals) {\n if (individual.getIndividualRoles() == null)\n continue;\n if (individual.getIndividualRoles().remove(individualRole)) {\n logger.debug(\"restoreOriginalHomeFolder() removed role \"\n + individualRole.getRole() + \" from \"\n + individual.getId() + \" on \"\n + individualRole.getIndividualId());\n break;\n }\n }\n }\n \n if (objectsToUpdate.contains(object)) {\n logger.debug(\"restoreOriginalHomeFolder() was in update list, removing\");\n objectsToUpdate.remove(object);\n }\n objectsToRemove.add(object);\n }\n }\n \n // clear history entries and persist changes in DB\n \n updateObjects(objectsToUpdate, objectsToRemove);\n \n historyEntryDAO.deleteEntries(request.getId());\n }", "protected void refreshHome()\r\n/* 48: */ throws NamingException\r\n/* 49: */ {\r\n/* 50:121 */ synchronized (this.homeMonitor)\r\n/* 51: */ {\r\n/* 52:122 */ Object home = lookup();\r\n/* 53:123 */ if (this.cacheHome)\r\n/* 54: */ {\r\n/* 55:124 */ this.cachedHome = home;\r\n/* 56:125 */ this.createMethod = getCreateMethod(home);\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "private NodeRef getompanyHomeFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n return nodeLocatorService.getNode(\"companyhome\", null, null);\n }", "Home saveOrUpdateHome(Home home);", "Update withFolderPath(String folderPath);", "public void setHome(Location home) {\n this.home = home;\n }", "@Override\n public Home defaultHome() {\n Home h = null;\n for (String ver : VER_CURRENT) {\n for (String path : WKIP) {\n if (Utilities.isWindows() && path.contains(\"AppData\")) { //NOI18N\n // issue #251710 - Gluon SceneBuilder by default installs to C:\\Users\\<username>\\AppData\\Local\\SceneBuilder\n final String appDataPath = System.getenv(\"AppData\"); //NOI18N\n if (appDataPath != null) {\n final FileObject appDataFo = FileUtil.toFileObject(new File(appDataPath)).getParent();\n h = loadHome(path.replace(VER_DELIMITER, ver).replace(APPDATA_DELIMITER, appDataFo.getPath()));\n }\n } else {\n h = loadHome(path.replace(VER_DELIMITER, ver), ver);\n }\n if (h != null) {\n return h;\n }\n }\n }\n return h;\n }", "public File getHome() {\n return home;\n }", "private void addFolder(){\n }", "public void newFolder ()\n {\n newNode(null);\n }", "protected Object getHome()\r\n/* 75: */ throws NamingException\r\n/* 76: */ {\r\n/* 77:159 */ if ((!this.cacheHome) || ((this.lookupHomeOnStartup) && (!isHomeRefreshable()))) {\r\n/* 78:160 */ return this.cachedHome != null ? this.cachedHome : lookup();\r\n/* 79: */ }\r\n/* 80:163 */ synchronized (this.homeMonitor)\r\n/* 81: */ {\r\n/* 82:164 */ if (this.cachedHome == null)\r\n/* 83: */ {\r\n/* 84:165 */ this.cachedHome = lookup();\r\n/* 85:166 */ this.createMethod = getCreateMethod(this.cachedHome);\r\n/* 86: */ }\r\n/* 87:168 */ return this.cachedHome;\r\n/* 88: */ }\r\n/* 89: */ }", "public void addHome( Class<?> homeClass, Home<?> home )\n {\n homes.put( homeClass, home );\n }", "@Override\n public void onRequestCancelled(final Request request)\n throws CvqException, CvqInvalidTransitionException,\n CvqObjectNotFoundException {\n restoreOriginalHomeFolder((HomeFolderModificationRequest) request);\n }", "private void replenishAuthFolderList(List<Folder> authFolderList) throws BizfwServiceException {\n List<Folder> parentFolderList = new ArrayList<>();\n for (Folder folder : authFolderList) {\n List<Folder> tempParentFolderList = getParentFolders(folder);\n parentFolderList.addAll(tempParentFolderList);\n }\n for (Folder folder : parentFolderList) {\n if (!authFolderList.contains(folder)) {\n authFolderList.add(folder);\n }\n }\n }", "private void updateAllFoldersTreeSet() throws MessagingException {\n\n Folder[] allFoldersArray = this.store.getDefaultFolder().list(\"*\");\n TreeSet<Folder> allFoldersTreeSet =\n new TreeSet<Folder>(new FolderByFullNameComparator());\n\n for(int ii = 0; ii < allFoldersArray.length; ii++) {\n\n allFoldersTreeSet.add(allFoldersArray[ii]);\n }\n\n this.allFolders = allFoldersTreeSet;\n }", "public Location getHome() {\n return home;\n }", "private EntryStorageHome home()\r\n {\r\n if( home == null )\r\n {\r\n\t\ttry\r\n\t\t{\r\n home = (EntryStorageHome) \r\n get_storage_home().get_catalog().find_storage_home( PSS_HOME );\r\n\t\t}\r\n\t\tcatch( Throwable e )\r\n\t\t{\r\n\t\t String error = \"Could not resolve the EntryStorageHome\";\r\n\t\t throw new RuntimeException( error, e );\r\n\t\t}\r\n }\r\n return home;\r\n }", "WithCreate withFolderPath(String folderPath);", "@Override\n public Home loadHome(String customPath) {\n return loadHome(customPath, DEFAULT_VERSION);\n }", "public File getHome() {\r\n\t\treturn homeDir;\r\n\t}", "public void setPersonHome(PersonHome pNewPersonHome) {\r\n\t\tmPersonHome = pNewPersonHome;\r\n\t}", "private static Home getHomeForPath(String path, String launcherPath, String propertiesPath, String defaultVersion) throws PathDoesNotExist {\n Parameters.notNull(\"path\", path); //NOI18N\n Parameters.notNull(\"launcherPath\", launcherPath); //NOI18N\n Parameters.notNull(\"propertiesPath\", propertiesPath); //NOI18N\n String homePath = path;\n if(path.startsWith(\"~\")) { // NOI18N\n String userHome = System.getProperty(\"user.home\"); // NOI18N\n homePath = userHome + path.substring(1);\n }\n File installDir = new File(homePath);\n if (installDir != null && installDir.exists() && installDir.isDirectory()) {\n FileObject installDirFO = FileUtil.toFileObject(installDir);\n\n File launcher = new File(homePath + File.separator + launcherPath);\n if(launcher != null && launcher.exists() && launcher.isFile()) {\n \n FileObject propertiesFO = installDirFO.getFileObject(propertiesPath); // NOI18N\n if (propertiesFO != null && propertiesFO.isValid() && propertiesFO.isData()) {\n try {\n Properties props = new Properties();\n FileReader reader = new FileReader(FileUtil.toFile(propertiesFO));\n try {\n props.load(reader);\n } finally {\n reader.close();\n }\n String version = props.getProperty(\"version\"); //NOI18N\n if (version == null) {\n version = props.getProperty(\"app.version\"); //NOI18N\n }\n return new Home(homePath, launcherPath, propertiesPath, version == null ? defaultVersion : version);\n } catch (IOException e) {\n }\n } else if (Utilities.isMac() && path.equals(NbBundle.getMessage(SBHomeFactory.class, \"MAC_GLUON_HOME\"))) { //NOI18N\n // Gluon SceneBuilder 8.0.0 does not have scenebuilder.properties file\n return new Home(homePath, launcherPath, propertiesPath, defaultVersion);\n }\n }\n } else {\n throw new PathDoesNotExist();\n }\n return null;\n }", "Folder createFolder();", "private void prepareFolder(String name, String newFolderName) {\n }", "public void setHomeGroup(HomeGroup group) {\n\t\tthis.homeGroup = group;\n\t}", "public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }", "@Override\n public GitLabFolderAuthorization reconfigure(StaplerRequest request, JSONObject formData)\n throws Descriptor.FormException {\n GitLabFolderAuthorization newFolderAuth = (GitLabFolderAuthorization)super.reconfigure(request, formData);\n if (newFolderAuth != null) {\n // preserve group ID\n newFolderAuth.folderACL.setGroupId(getGroupId());\n }\n\n return newFolderAuth;\n }", "public Path getInstallationHome() {\n return home;\n }", "private IFolder createFolder(IFolder topFolder) throws CoreException {\n \t\ttopFolder.create(IResource.NONE, true, getMonitor());\n \n \t\t//tree depth is log of total resource count with the width as the log base\n \t\tint depth = (int) (Math.log(TOTAL_RESOURCES) / Math.log(TREE_WIDTH));\n \t\trecursiveCreateChildren(topFolder, depth - 1);\n \t\treturn topFolder;\n \t}", "@Override\n\tpublic boolean createFolder(String pathfolder) {\n\t\treturn eDao.createFolder(pathfolder);\n\t}", "@Override\n public FileStorageResult<String> updateLastKnownFolder(FileStorageFolder folder, boolean ignoreWarnings, FileStorageFolder toUpdate) throws OXException {\n if (SetterAwareFileStorageFolder.class.isInstance(toUpdate) && ((SetterAwareFileStorageFolder) toUpdate).containsSubscribed()) {\n\n //Check for un-subscription and check if the last folder is going to be unscubscribed\n if (false == toUpdate.isSubscribed()) {\n List<FileStorageFolder> subscribedFolders = getVisibleRootFolders();\n Optional<FileStorageFolder> folderToUnsubscibe = subscribedFolders.stream().filter(f -> f.getId().equals(folder.getId())).findFirst();\n if (folderToUnsubscibe.isPresent()) {\n subscribedFolders.removeIf(f -> f == folderToUnsubscibe.get());\n if (subscribedFolders.isEmpty()) {\n //The last folder is going to be unsubscribed\n if (ignoreWarnings) {\n //Delete\n getService().getAccountManager().deleteAccount(getAccount(), session);\n } else {\n //Throw a warning\n String folderName = folderToUnsubscibe.get().getName();\n String accountName = getAccount().getDisplayName();\n return FileStorageResult.newFileStorageResult(null, Arrays.asList(ShareSubscriptionExceptions.ACCOUNT_WILL_BE_REMOVED.create(folderName, accountName)));\n }\n return FileStorageResult.newFileStorageResult(null, null);\n }\n }\n }\n\n //Do the update\n getSubscribedHelper().setSubscribed(session, folder, B(toUpdate.isSubscribed()));\n return FileStorageResult.newFileStorageResult(folder.getId(), null);\n }\n return FileStorageResult.newFileStorageResult(null, null);\n }", "public void saveCurrentFolders() {\n if (!this.oldConfigurationWasSaved) {\n this.oldResourcesFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF);\n this.oldUpdateScriptsFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF);\n this.oldInitScriptsFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF);\n this.oldEnvironmentName = getConfiguration().getString(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF);\n this.oldImpexLocaleCode = getConfiguration().getString(LocalizedImpexImportService.IMPEX_LOCALE_CONF);\n this.oldConfigurationWasSaved = true;\n }\n\n }", "private void processFolders(List<File> folderList, java.io.File parentFolder) {\n // process each folder to see if it needs to be updated;\n for (File f : folderList) {\n String folderName = f.getTitle();\n java.io.File localFolder = new java.io.File(parentFolder, folderName);\n Log.e(\"folder\",localFolder.getAbsolutePath());\n if (!localFolder.exists())\n localFolder.mkdirs();\n getFolderContents(f, localFolder);\n }\n }", "private static void initGameFolder() {\n\t\tString defaultFolder = System.getProperty(\"user.home\") + STENDHAL_FOLDER;\n\t\t/*\n\t\t * Add any previously unrecognized unix like systems here. These will\n\t\t * try to use ~/.config/stendhal if the user does not have saved data\n\t\t * in ~/stendhal.\n\t\t *\n\t\t * OS X is counted in here too, but should it?\n\t\t *\n\t\t * List taken from:\n\t\t * \thttp://mindprod.com/jgloss/properties.html#OSNAME\n\t\t */\n\t\tString unixLikes = \"AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris\";\n\t\tString system = System.getProperty(\"os.name\");\n\t\tif (system.matches(unixLikes)) {\n\t\t\t// Check first if the user has important data in the default folder.\n\t\t\tFile f = new File(defaultFolder + \"user.dat\");\n\t\t\tif (!f.exists()) {\n\t\t\t\tgameFolder = System.getProperty(\"user.home\") + separator\n\t\t\t\t+ \".config\" + separator + STENDHAL_FOLDER;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Everyone else should use the default top level directory in $HOME\n\t\tgameFolder = defaultFolder;\n\t}", "public boolean setDataFolder() {\n UserPrefs prefs = UserPrefs.getUserPrefs();\n String warningMsg = LanguageManager.getString(\"4_3\");\n\n // Get the data path in the Text Field\n String dataRoot = tfDataPath.getText().trim();\n\n // Nothing there, so add default based on username - this is OK\n if(dataRoot.length() == 0) {\n dataRoot = DataFiler.getDefaultDataFolder(prefs.getUserName());\n prefs.putProperty(UserPrefs.DATA_ROOT, dataRoot);\n return true;\n }\n\n // Compare current datapath with previous one\n // If different check for existing data and warn user\n if(!existingDataPath.equalsIgnoreCase(dataRoot)) {\n String dataFile1 = DataFiler.addFileSepChar(dataRoot) + DataFiler.treeFolder + DataFiler.fileSepChar + DataFiler.dataFileName;\n // legacy of 1.1\n String dataFile2 = DataFiler.addFileSepChar(dataRoot) + \"ll_data\" + DataFiler.fileSepChar + DataFiler.dataFileName;\n if(DataFiler.fileExists(dataFile1) || DataFiler.fileExists(dataFile2)) {\n int result = JOptionPane.showConfirmDialog(this, warningMsg, LanguageManager.getString(\"4_4\"), JOptionPane.YES_NO_OPTION);\n if(result != JOptionPane.YES_OPTION) {\n // Put back to original path\n tfDataPath.setText(existingDataPath);\n return false;\n }\n else {\n // Set and reload\n prefs.putProperty(UserPrefs.DATA_ROOT, dataRoot);\n if(MainFrame.getInstance() != null) {\n DataFiler.reloadData();\n }\n return true;\n }\n }\n }\n\n // Changed\n prefs.putProperty(UserPrefs.DATA_ROOT, dataRoot);\n return true;\n }", "public URI getHome() {\n return this.homeSpace;\n }", "private boolean setFolderProperty(PSPubServer server, IPSSite site, String publishFolderValue, Boolean isOwnServerSet,\n String ownServerVal, Boolean isDefaultServerSet)\n {\n String propertyValue = EMPTY;\n Boolean ownServer = false;\n\n String publishType = server.getPublishType();\n String serverType = server.getServerType();\n\n // Set the properties when the publish type is filesystem\n if (publishType.equalsIgnoreCase(PublishType.filesystem.toString()) || publishType.equalsIgnoreCase(PublishType.filesystem_only.toString()))\n {\n if(isDefaultServerSet)\n {\n propertyValue = siteDataService.getDefaultPublishingRoot(site, server.getPublishType(), Boolean.toString(isDefaultServerSet));\n }\n else if (isOwnServerSet)\n {\n //The property value is set from the ownServer value\n propertyValue = ownServerVal;\n ownServer = true;\n }\n }\n\n // Set the properties when the publish type is FTP or SFTP or FTPS\n if (publishType.equalsIgnoreCase(PublishType.ftp.toString()) || publishType.equalsIgnoreCase(PublishType.sftp.toString())\n || publishType.equalsIgnoreCase(PublishType.ftps.toString()) || publishType.equalsIgnoreCase(PublishType.ftps_only.toString())\n || publishType.equalsIgnoreCase(PublishType.ftp_only.toString()) || publishType.equalsIgnoreCase(PublishType.sftp_only.toString()))\n {\n if(isDefaultServerSet)\n {\n propertyValue = siteDataService.getDefaultPublishingRoot(site, server.getPublishType(), publishFolderValue);\n }\n else if (isOwnServerSet)\n {\n //The property value is set from the ownServer value\n propertyValue = publishFolderValue;\n ownServer = true;\n }\n }\n\n if (serverType.equalsIgnoreCase(\"STAGING\")\n && isDefaultServerSet\n && !StringUtils.containsIgnoreCase(propertyValue,\"Staging/Deployment\"))\n {\n propertyValue = propertyValue.replace(\"Deployment\", \"Staging\" + File.separator + \"Deployment\");\n }\n\n propertyValue = normalizePath(propertyValue);\n\n // Add the folder property to the server properties list\n String oldVal = server.getPropertyValue(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY);\n server.addProperty(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY, propertyValue);\n\n // Add the own server property to the server properties list\n server.addProperty(IPSPubServerDao.PUBLISH_OWN_SERVER_PROPERTY, ownServer.toString());\n\n return !propertyValue.equals(oldVal);\n }", "public void setCacheHome(boolean cacheHome)\r\n/* 29: */ {\r\n/* 30: 83 */ this.cacheHome = cacheHome;\r\n/* 31: */ }", "private void createFolderHelper(final IFolder folder,final IProgressMonitor monitor)\n throws CoreException\n {\n if(!folder.exists())\n {\n IContainer parent = folder.getParent();\n if(parent instanceof IFolder\n && (!((IFolder)parent).exists())) {\n createFolderHelper((IFolder)parent,monitor);\n }\n folder.create(false,true,monitor);\n }\n }", "private com.hps.july.persistence.SuperRegionHome ejbHome() throws java.rmi.RemoteException, javax.naming.NamingException {\n return (com.hps.july.persistence.SuperRegionHome) PortableRemoteObject.narrow(getHome(), com.hps.july.persistence.SuperRegionHome.class);\n }", "public HomeGroup getHomeGroup() {\n\t\treturn homeGroup;\n\t}", "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 }", "@Override\n public HomeFolderModificationRequest create(final Long homeFolderId, final Long requesterId)\n throws CvqException, CvqObjectNotFoundException {\n HomeFolder homeFolder = homeFolderService.getById(homeFolderId);\n checkIsAuthorized(homeFolder);\n \n HomeFolderModificationRequest hfmr = new HomeFolderModificationRequest();\n hfmr.setHomeFolderId(homeFolderId);\n hfmr.setRequesterId(requesterId);\n hfmr.setRequestType(requestTypeService.getRequestTypeByLabel(getLabel()));\n performBusinessChecks(hfmr);\n \n setAdministrativeInformation(hfmr);\n requestDAO.create(hfmr);\n return hfmr;\n }", "public void setFolderPath(Collection<PersonalFolder> folderPath) {\r\n\t\tthis.folderPath = folderPath;\r\n\t}", "public static void updateSearchBase(Project project, Folder folder, List<CharSequence> list){\n ConcurrentMap<Folder, List<CharSequence>> projectSearchBase = searchBase.get(project);\n if (projectSearchBase == null) {\n projectSearchBase = new ConcurrentHashMap<>();\n ConcurrentMap<Folder, List<CharSequence>> old = searchBase.putIfAbsent(project, projectSearchBase);\n if (old != null) {\n projectSearchBase = old;\n }\n }\n synchronized (projectSearchBase) {\n if (list == null) {\n projectSearchBase.remove(folder);\n } else {\n if (list.isEmpty()) {\n projectSearchBase.put(folder, new ArrayList<CharSequence>(0));\n } else {\n projectSearchBase.put(folder, list);\n }\n }\n }\n }", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public void setHome(int home) {\n m_home = home;\n }", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "@Override\n public void onRequestRejected(final Request request)\n throws CvqException, CvqInvalidTransitionException,\n CvqObjectNotFoundException {\n restoreOriginalHomeFolder((HomeFolderModificationRequest) request);\n }", "void folderCreated(String remoteFolder);", "@Override\r\n public void saveFolder(Folder folder) {\n this.folderRepository.save(folder);\r\n }", "private com.hps.july.persistence.SuperRegionAccHome ejbHome() throws java.rmi.RemoteException, javax.naming.NamingException {\n return (com.hps.july.persistence.SuperRegionAccHome) PortableRemoteObject.narrow(getHome(), com.hps.july.persistence.SuperRegionAccHome.class);\n }", "private File getBackupFolder() {\n File backupFolder = home.getUserHome();\n if (goodEventsFile()) { \n FileSpec fileSpec = recentFiles.get(0);\n String backupFolderStr = fileSpec.getBackupFolder();\n File defaultBackupFolder = new File (fileSpec.getFolder(), \"backups\");\n if (backupFolderStr == null\n || backupFolderStr.length() < 2) {\n backupFolder = defaultBackupFolder;\n } else {\n backupFolder = new File (backupFolderStr);\n if (backupFolder.exists()\n && backupFolder.canWrite()) {\n // leave as-is\n } else {\n backupFolder = defaultBackupFolder;\n }\n }\n }\n return backupFolder;\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 }", "private void setFolderProperty(PSPubServer server, PSPublishServerInfo pubServerInfo, IPSSite site)\n {\n String ownServerFlagVal = pubServerInfo.findProperty(OWN_SERVER_FLAG);\n String defaultServerVal = pubServerInfo.findProperty(DEFAULT_SERVER_FLAG);\n String publishFolderVal = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY);\n String ownServerVal = pubServerInfo.findProperty(IPSPubServerDao.PUBLISH_OWN_SERVER_PROPERTY);\n\n Boolean isOwnServerSet = Boolean.parseBoolean(ownServerFlagVal);\n Boolean isDefaultServerSet = Boolean.parseBoolean(defaultServerVal);\n\n setFolderProperty(server, site, publishFolderVal, isOwnServerSet, ownServerVal, isDefaultServerSet);\n }", "public void setPlatformHome(final File platformHome)\n {\n this.platformHome = platformHome;\n }", "private com.hps.july.trailcom.beans.OpticalHopHome ejbHome() throws java.rmi.RemoteException, javax.naming.NamingException {\n return (com.hps.july.trailcom.beans.OpticalHopHome) PortableRemoteObject.narrow(getHome(), com.hps.july.trailcom.beans.OpticalHopHome.class);\n }", "private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }", "public void restoreOldFolders() {\n setConfigurationAndLog(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF, this.oldResourcesFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF, this.oldUpdateScriptsFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF, this.oldInitScriptsFolder);\n setConfigurationAndLog(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF, this.oldEnvironmentName);\n setConfigurationAndLog(LocalizedImpexImportService.IMPEX_LOCALE_CONF, this.oldImpexLocaleCode);\n }", "public WorkingFolderInfo getCopy() { return new WorkingFolderInfo(this.myStatus, this.myLocalPath, this.myServerPath); }", "void initializeBath( File destinationFolderFile );", "public File getHomeDir() {\n return physicalHomeDir;\n }", "HomeDir getHome(BaseUser u);", "protected BoxFolder createFolderWithoutItems(BoxFolder folder) {\n JsonObject jsonObject = new JsonObject();\n for (String key: folder.getPropertiesKeySet()){\n if (!key.equals(BoxFolder.FIELD_ITEM_COLLECTION)){\n jsonObject.add(key, folder.getPropertyValue(key));\n } else {\n JsonObject itemCollection = new JsonObject();\n BoxIteratorItems iteratorItems = folder.getItemCollection();\n for (String collectionKey : iteratorItems.getPropertiesKeySet()){\n if (!collectionKey.equals(BoxIterator.FIELD_ENTRIES)) {\n itemCollection.add(collectionKey, iteratorItems.getPropertyValue(collectionKey));\n } else {\n itemCollection.add(collectionKey, new JsonArray());\n }\n }\n jsonObject.add(key, itemCollection);\n }\n }\n return new BoxFolder(jsonObject);\n }", "@SuppressWarnings(\"unchecked\")\n private void userinitComponents() {\n attendace.home = this;\n \n \n \n }", "private void createLocalFolder(File newFolder) {\n\n if (!newFolder.exists()) {\n newFolder.mkdirs();\n //TODO: what if the folder can't be created?\n PieLogger.trace(this.getClass(), \"Folder created!\");\n } else {\n PieLogger.debug(this.getClass(), \"Folder exits already?!\");\n }\n }", "public static final String getHome() { return home; }", "public void init(){\n\t\tm_Folders = new ArrayList<Folder>();\n\t\n\t\tm_Folders.add(new Folder(\"Inbox\"));\n\t\tm_Folders.add(new Folder(\"Today\"));\n\t\tm_Folders.add(new Folder(\"Next\"));\n\t\tm_Folders.add(new Folder(\"Someday/Maybe\"));\t\t\n\t}", "@Override\n\tpublic void returnHome()\n\t{\n\t\tif (!isInsideRadius(getSpawn(), 200, false, false))\n\t\t{\n\t\t\tif (Config.DEBUG)\n\t\t\t{\n\t\t\t\tLOG.debug(\"{} moving home\", getObjectId());\n\t\t\t}\n\t\t\tsetisReturningToSpawnPoint(true);\n\t\t\tclearAggroList();\n\t\t\t\n\t\t\tif (hasAI())\n\t\t\t{\n\t\t\t\tgetAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, getSpawn().getLocation());\n\t\t\t}\n\t\t}\n\t}", "public void setMatrixHome(MatrixHome pNewMatrixHome) {\n\t\tmMatrixHome = pNewMatrixHome;\n\t}", "private void returnHome(){\n if (Boolean.toString(UpdatedHomePage.updatedHomeStarted).equals(\"false\")) {\n startActivity(new Intent(FinalPlan.this, Home.class));\n } else {\n Intent intent = new Intent(this, UpdatedHomePage.class);\n Bundle extras = new Bundle();\n extras.putBoolean(\"filtered\", true);\n intent.putExtras(extras);\n startActivity(intent);\n }\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "private void setFolderFlags(IPSPubServer pubServer, IPSSite site, PSPublishServerInfo serverInfo)\n {\n Boolean isOwnServer = Boolean.parseBoolean(pubServer.getProperty(IPSPubServerDao.PUBLISH_OWN_SERVER_PROPERTY)\n .getValue()) ? true : false;\n String folderValue = pubServer.getProperty(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY).getValue();\n String publishType = pubServer.getPublishType();\n\n PSPublishServerProperty defaultServerFlagProperty = new PSPublishServerProperty();\n defaultServerFlagProperty.setKey(DEFAULT_SERVER_FLAG);\n\n PSPublishServerProperty ownServeFlagProperty = new PSPublishServerProperty();\n ownServeFlagProperty.setKey(OWN_SERVER_FLAG);\n\n if (publishType.equalsIgnoreCase(PublishType.filesystem.toString()) || publishType.equalsIgnoreCase(PublishType.filesystem_only.toString()))\n {\n String defaultServerValue = EMPTY;\n String ownServerValue = EMPTY;\n\n if (isOwnServer)\n {\n defaultServerFlagProperty.setValue(\"false\");\n ownServeFlagProperty.setValue(\"true\");\n ownServerValue = folderValue;\n }\n else\n {\n // This is a default CM1 server\n defaultServerFlagProperty.setValue(\"true\");\n ownServeFlagProperty.setValue(\"false\");\n defaultServerValue = normalizePath(siteDataService.getBasePublishingRoot(folderValue, site.getName()));\n folderValue = defaultServerValue;\n }\n // Add the default flag property\n serverInfo.getProperties().add(defaultServerFlagProperty);\n\n // Add the own flag property\n serverInfo.getProperties().add(ownServeFlagProperty);\n\n // Add the default server property\n PSPublishServerProperty defaultServerProperty = new PSPublishServerProperty();\n defaultServerProperty.setKey(IPSPubServerDao.PUBLISH_DEFAULT_SERVER_PROPERTY);\n defaultServerProperty.setValue(defaultServerValue);\n serverInfo.getProperties().add(defaultServerProperty);\n\n // Add the own server property\n PSPublishServerProperty ownServerProperty = new PSPublishServerProperty();\n ownServerProperty.setKey(IPSPubServerDao.PUBLISH_OWN_SERVER_PROPERTY);\n ownServerProperty.setValue(normalizePath(ownServerValue));\n serverInfo.getProperties().add(ownServerProperty);\n\n // Add the folder property\n PSPublishServerProperty folderProperty = new PSPublishServerProperty();\n folderProperty.setKey(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY);\n folderProperty.setValue(normalizePath(folderValue));\n serverInfo.getProperties().add(folderProperty);\n }\n\n if (publishType.equalsIgnoreCase(PublishType.ftp.toString()) || publishType.equalsIgnoreCase(PublishType.ftp_only.toString())\n || publishType.equalsIgnoreCase(PublishType.ftps.toString()) || publishType.equalsIgnoreCase(PublishType.ftps_only.toString())\n || publishType.equalsIgnoreCase(PublishType.sftp.toString()) || publishType.equalsIgnoreCase(PublishType.sftp_only.toString()))\n {\n String folderPropertyValue = EMPTY;\n\n if (isOwnServer)\n {\n defaultServerFlagProperty.setValue(\"false\");\n ownServeFlagProperty.setValue(\"true\");\n folderPropertyValue = folderValue;\n }\n else\n {\n // This is a default CM1 server\n defaultServerFlagProperty.setValue(\"true\");\n ownServeFlagProperty.setValue(\"false\");\n folderPropertyValue = normalizePath(siteDataService.getBasePublishingRoot(folderValue, site.getName()));\n }\n // Add the default flag property\n serverInfo.getProperties().add(defaultServerFlagProperty);\n\n // Add the own flag property\n serverInfo.getProperties().add(ownServeFlagProperty);\n\n // Add the folder property\n PSPublishServerProperty folderProperty = new PSPublishServerProperty();\n folderProperty.setKey(IPSPubServerDao.PUBLISH_FOLDER_PROPERTY);\n folderProperty.setValue(folderPropertyValue);\n serverInfo.getProperties().add(folderProperty);\n }\n }", "private void addDefaultDirectories(IProject project, String parentFolder, String[] folders\n \t\t, IProgressMonitor monitor) throws CoreException {\n for (String name : folders) {\n if (name.length() > 0) {\n IFolder folder = project.getFolder(parentFolder + name);\n if (!folder.exists()) {\n folder.create(true /* force */, true /* local */,\n new SubProgressMonitor(monitor, 10));\n }\n }\n }\n }", "@Override\n\tpublic void setHomeTeam() {\n\t\t\n\t}", "private void testGetCompanyHome() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n NodeRef companyHome = getompanyHomeFolder();\n assertNotNull(companyHome);\n String companyHomeName = (String) nodeService.getProperty(companyHome, ContentModel.PROP_NAME);\n assertNotNull(companyHomeName);\n assertEquals(\"Company Home\", companyHomeName);\n LOG.debug(\"Got \" + companyHomeName + \" NodeRef: \" + companyHome);\n }", "private void addNewHomework() {\n\t\tIntent myIntent = new Intent(HomeworkActivity.this,\n\t\t\t\tHomeworkDetailActivity.class);\n\n\t\tmyIntent.putExtra(HOMEWORK_EDIT, false);\n\n\t\tHomeworkActivity.this.startActivityForResult(myIntent,\n\t\t\t\tADD_NEW_HOMEWORK_REQUEST);\n\n\t}", "protected void changeFolder(Folder newFolder, AjaxRequestTarget target) {\n\t\tcurrentFolder = newFolder;\n\t\tcurrentResource = null;\n\t\tsend(getPage(), Broadcast.BREADTH, new FolderChangeEvent(target));\n\t}", "private void prepareAndShowHomeScreen() {\n\t\tFraHeader header = FraHeader.newInstance(true);\n\t\theader.showBackButton(false);\n\t\tFraHomeContent homeContent = FraHomeContent.newInstance();\n\t\tFraFooter footer = FraFooter.newInstance(FooterIcons.TOP10);\n\t\tFraSearch search = FraSearch.newInstance();\n\t\tFraFont font = FraFont.newInstance();\n\t\tFraShare share = FraShare.newInstance();\n\n\t\treplaceScreenWithNavBarContentAndMenu(header, FraHeader.TAG,\n\t\t\t\thomeContent, FraHomeContent.TAG, footer, FraFooter.TAG,\n\t\t\t\tFraMenu.newInstance(), FraMenu.TAG, search, FraSearch.TAG,\n\t\t\t\tfont, FraFont.TAG, share, FraShare.TAG, false);\n\t\tprepareAndShowHomeScreen(false);\n\t\t/*\n\t\t * replaceScreenWithNavBarContentAndFooter(homeContent,\n\t\t * FraHomeContent.TAG, footer, FraFooter.TAG, false);\n\t\t */\n\t}", "FileObject getBaseFolder();", "@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }", "private void copyRotatingWallpaperToLock() {\n\n mWallpaperPreferences.setLockWallpaperAttributions(\n mWallpaperPreferences.getHomeWallpaperAttributions());\n mWallpaperPreferences.setLockWallpaperActionUrl(\n mWallpaperPreferences.getHomeWallpaperActionUrl());\n mWallpaperPreferences.setLockWallpaperActionLabelRes(\n mWallpaperPreferences.getHomeWallpaperActionLabelRes());\n mWallpaperPreferences.setLockWallpaperActionIconRes(\n mWallpaperPreferences.getHomeWallpaperActionIconRes());\n mWallpaperPreferences.setLockWallpaperCollectionId(\n mWallpaperPreferences.getHomeWallpaperCollectionId());\n\n // Set the lock wallpaper ID to what Android set it to, following its having\n // copied the system wallpaper over to the lock screen when we changed from\n // \"both\" to distinct system and lock screen wallpapers.\n mWallpaperPreferences.setLockWallpaperId(\n mWallpaperManagerCompat.getWallpaperId(WallpaperManagerCompat.FLAG_LOCK));\n\n }", "public SongCollection getHome(){\n return this.home;\r\n }", "private void maintainMergeLocal() {\n logger.info(\"Maintaining Merge Local\");\n try {\n Bin mergeBin;\n synchronized (geometricParts) {\n mergeBin = geometricParts.findMergeCandidates();\n }\n if (!mergeBin.isEmpty()) {\n File indexShard = getNextIndexShardFolder(mergeBin.size + 1);\n // otherwise there's something to merge\n logger.info(\"Performing merge!\");\n\n\n // merge the shards\n Parameters p = this.globalParameters.clone();\n // override each of these particular parameters\n p.set(\"indexPath\", indexShard.getAbsolutePath());\n p.set(\"inputPath\", new ArrayList<>(mergeBin.getBinPaths()));\n p.set(\"renumberDocuments\", false);\n\n App.run(\"merge-index\", p, System.out);\n\n // should make sure that these two are uninteruppable\n synchronized (geometricParts) {\n geometricParts.add(mergeBin.size + 1, indexShard.getAbsolutePath());\n geometricParts.removeShards(mergeBin);\n updateIndex();\n }\n\n // now can delete the merged indexshard folders...\n for (String file : mergeBin.getBinPaths()) {\n FSUtil.deleteDirectory(new File(file));\n }\n\n logger.info(\"Done merging.\");\n }\n } catch (Exception ex) {\n Logger.getLogger(GeometricIndex.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic File getHieraFolder() {\n\t\t\n\t\tString hieraFolder = Configuration.getHieraFolder();\n\t\tif (hieraFolder != null) {\n\t\t\tFile file = new File(hieraFolder);\n\t\t\tif (! file.exists()){\n\t\t\t\tthrow new RuntimeException(\"Hiera folder '\"+file.getAbsolutePath()+\"' specified with property '\"+Configuration.DEPLOYMENT_CONFIG_HIERA_FOLDER+\"' does not exist.\");\n\t\t\t}\n\t\t\treturn file;\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\t// this is a bit hidden. But it shouldn't be created when we run tests\n\t\t\t\t// and the if here tells us if we are in a test.\n\t\t\t\tgitManager = new EMGitManager(jobId, getApplicationVersion(applicationShortName).getRelatedJiraIssue(), organisation);\n\t\t\t\tgitManager.checkoutHiera();\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(\"Git failed during making the checkout branch, fatal\", e);\n\t\t\t}\n\t\t\treturn gitManager.getCheckoutDir();\n\t\t}\n\t}", "public folderize() {\n }", "private Path initFolder(String folder) throws IOException {\n return Files.createDirectory(Paths.get(uploadFolder + \"/\" + folder));\n }", "void addHasInstitutionHomePage(Object newHasInstitutionHomePage);", "static void refreshFileSystem() {\n \t// Clear all existing registrations on the server via CORBA for this username\n server.clearSharedFiles(username);\n server.clearNotSharedFiles(username);\n // Register the files on the server through CORBA that have been added to the directories manually\n server.registerFiles(username);\n System.out.println();\n return;\n }", "private void populateNewChildDirectory(DirectoryEntry newEntry) {\n try (ClusterStream stream = new ClusterStream(fileSystem,\n FileAccess.Write,\n newEntry.getFirstCluster(),\n 0xffffffff)) {\n // First is the self-referencing entry...\n DirectoryEntry selfEntry = new DirectoryEntry(newEntry);\n selfEntry.setName(FileName.SelfEntryName);\n selfEntry.writeTo(stream);\n // Second is a clone of our self entry (i.e. parent) - though dates\n // are odd...\n DirectoryEntry parentEntry = new DirectoryEntry(getSelfEntry());\n parentEntry.setName(FileName.ParentEntryName);\n parentEntry.setCreationTime(newEntry.getCreationTime());\n parentEntry.setLastWriteTime(newEntry.getLastWriteTime());\n parentEntry.writeTo(stream);\n } catch (IOException e) {\n throw new dotnet4j.io.IOException(e);\n }\n }", "protected DocumentTestObject homeMembership() \n\t{\n\t\treturn new DocumentTestObject(\n getMappedTestObject(\"homeMembership\"));\n\t}", "private void shareFolder(FolderData folderToShare, TestUser to, FolderManager folderManager) throws ApiException {\n List<FolderPermission> permissions = new ArrayList<FolderPermission>(folderToShare.getPermissions().size() + 1);\n\n //Take over existing permissions\n permissions.addAll(folderToShare.getPermissions());\n\n //And ..create new guest permission\n permissions.add(prepareGuest(to, PermissionLevel.AUTHOR));\n\n //Set permission\n FolderData data = new FolderData();\n data.setId(folderToShare.getId());\n data.setPermissions(permissions);\n\n //update with new guest permission and send mail notification\n folderManager.updateFolder(sharedFolderId, data, null);\n }", "private void workerUpdate(final File newFolder, final boolean isReloadFolder) {\r\n\r\n\t\tif (newFolder == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (isReloadFolder == false && _workerNextFolder != null && _workerNextFolder.equals(newFolder)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsynchronized (_workerLock) {\r\n\r\n\t\t\t_workerNextFolder = newFolder;\r\n\r\n\t\t\t_workerStopped = false;\r\n\t\t\t_workerCancelled = true;\r\n\r\n\t\t\t_workerLock.notifyAll();\r\n\t\t}\r\n\r\n\t\tif (_workerThread == null) {\r\n\t\t\t_workerThread = new Thread(_workerRunnable, \"PicDirImages: Retrieving folder image files\");//$NON-NLS-1$\r\n\t\t\t_workerThread.start();\r\n\t\t}\r\n\t}", "private void prepareAndShowHomeScreen(boolean addToBackstack) {\n\t\tFraHeader header = FraHeader.newInstance(true);\n\t\theader.showBackButton(false);\n\t\tFraHomeContent homeContent = FraHomeContent.newInstance();\n\t\tFraFooter footer = FraFooter.newInstance(FooterIcons.TOP10);\n\t\tFraSearch search = FraSearch.newInstance();\n\t\tFraFont font = FraFont.newInstance();\n\t\tFraShare share = FraShare.newInstance();\n\n\t\treplaceScreenWithNavBarContentAndMenu(header, FraHeader.TAG,\n\t\t\t\thomeContent, FraHomeContent.TAG, footer, FraFooter.TAG,\n\t\t\t\tFraMenu.newInstance(), FraMenu.TAG, search, FraSearch.TAG,\n\t\t\t\tfont, FraFont.TAG, share, FraShare.TAG, addToBackstack);\n\n\t\t/*\n\t\t * replaceScreenWithNavBarContentAndFooter(homeContent,\n\t\t * FraHomeContent.TAG, footer, FraFooter.TAG, false);\n\t\t */\n\t}", "private void init() {\r\n\t\t// check system property\r\n\t\tif (System.getProperty(TACOS_HOME) != null) {\r\n\t\t\tFile customHome = new File(System.getProperty(TACOS_HOME));\r\n\t\t\tif (initHome(customHome)) {\r\n\t\t\t\thomeDir = customHome;\r\n\t\t\t\tlogger.info(\"Using custom home directory ('\" + homeDir + \"')\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// custom home directory not available (or failed to initialize)\r\n\t\tFile defaultHome = new File(System.getProperty(DEFAULT_HOME), \".tacos\");\r\n\t\tif (initHome(defaultHome)) {\r\n\t\t\thomeDir = defaultHome;\r\n\t\t\tlogger.info(\"Using default home directory ('\" + homeDir + \"')\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// fallback if everything goes wrong\r\n\t\tlogger.warn(\"Using temporary directory to store files\");\r\n\t\thomeDir = new File(System.getProperty(\"java.io.tmpdir\"), \".tacos\");\r\n\t\tinitHome(homeDir);\r\n\t}", "public static void createFolder(IResource res) {\r\n \t\tif (res instanceof IFolder) {\r\n \t\t\tIFolder folder=(IFolder)res;\r\n \t\t\t\r\n \t\t\tif (folder.exists() == false) {\r\n \t\t\t\tcreateFolder(folder.getParent());\r\n \r\n \t\t\t\ttry {\r\n \t\t\t\t\tfolder.create(true, true,\r\n \t\t\t\t\t\t\tnew org.eclipse.core.runtime.NullProgressMonitor());\r\n \t\t\t\t} catch(Exception e) {\r\n \t\t\t\t\te.printStackTrace();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} else if (res.getParent() != null) {\r\n \t\t\tcreateFolder(res.getParent());\r\n \t\t}\r\n \t}", "public void setHomeClass(Class homeAPI)\n {\n _homeClass = homeAPI;\n }", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "public void homeClicked() {\r\n Pane newRoot = loadFxmlFile(Home.getHomePage());\r\n Home.getScene().setRoot(newRoot);\r\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 WithCreate withFolderPath(String folderPath);\n }" ]
[ "0.6324396", "0.6214378", "0.60298485", "0.5854576", "0.5811237", "0.5796243", "0.5645566", "0.563822", "0.562935", "0.5611755", "0.555058", "0.5531039", "0.54915696", "0.5485586", "0.54732764", "0.5394495", "0.53829277", "0.53362304", "0.5259689", "0.52399683", "0.51972973", "0.5196255", "0.51758915", "0.51214015", "0.51155716", "0.51134694", "0.5096314", "0.5065404", "0.50588304", "0.5026736", "0.50230587", "0.50051564", "0.5002257", "0.50006825", "0.49718362", "0.49579895", "0.49563825", "0.49396625", "0.49089706", "0.49085587", "0.4906721", "0.489893", "0.48820388", "0.48679572", "0.4856946", "0.4852611", "0.48525733", "0.48518348", "0.48257756", "0.48221865", "0.4820491", "0.48156354", "0.4815441", "0.48073447", "0.47996384", "0.4796313", "0.47825566", "0.477646", "0.4774613", "0.4771729", "0.4765746", "0.47651932", "0.47638372", "0.47594467", "0.4752537", "0.47303116", "0.47278973", "0.472173", "0.47193077", "0.4714796", "0.47143272", "0.47124493", "0.4702283", "0.47019655", "0.46985465", "0.46983173", "0.46743765", "0.4667633", "0.4657098", "0.46497032", "0.46479332", "0.46448642", "0.4643752", "0.46302852", "0.46264783", "0.46246907", "0.46236494", "0.4611571", "0.46098128", "0.46000117", "0.45983353", "0.45979196", "0.45857856", "0.45770583", "0.45744047", "0.45698696", "0.45631948", "0.45630172", "0.4562544", "0.4553914" ]
0.59989023
3
Do the real work of making the changes (update or delete) persistent.
private void updateObjects(final Set<Object> objectsToUpdate, final Set<Object> objectsToRemove) throws CvqException { for (Object object : objectsToUpdate) { logger.debug("updateObjects() Updating " + object); // only for children because new adults are written when calling // modify method (because we need their login and pwd) // FIXME REFACTORING : validate this if (object instanceof Child) { Child child = (Child) object; individualService.assignLogin(child); } } for (Object object : objectsToRemove) { logger.debug("updateObjects() Removing " + object); genericDAO.delete(object); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updatePersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tserializeToFile(file);\n\t\tupdatePersistentSettings();\n\t}", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "public void save() {\n if(persistenceType == PropertyPersistenceType.Persistent) {\n if (!isSetToDefault()) {\n permanentStore.setBoolean(key, get());\n } else {\n permanentStore.remove(key);\n }\n }\n }", "public Boolean persistent();", "public void persist() {\r\n\t\tbeanDAO.attachClean(selected);\r\n\t}", "public void setPersistent ( boolean persistent ) {\n\t\texecute ( handle -> handle.setPersistent ( persistent ) );\n\t}", "public abstract boolean isPersistent();", "@Override\r\n\tpublic void persist() {\n\t}", "<T> void update(T persistentObject);", "public static void save() {\n if (instance != null) {\n // -> SyncedDatabases.syncAll();\n instance.markDirty();\n }\n }", "public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }", "@Override\n public void persist() {\n }", "protected void saveValues() {\n dataModel.persist();\n }", "public void save() {\n\t\tpreferences().flush();\n\t}", "private void setDirty() {\n\t}", "void persist() throws PersistenceException;", "public void persist() {\n getBuildContextHolder().persist();\n }", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "protected abstract void doSave();", "public boolean doModify() {\n return true;\n }", "private void updateDB() {\n }", "public void commitChanges()\n {\n }", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "void commit( boolean onSave );", "public void save() {\t\n\t\n\t\n\t}", "public void resetModification()\n {\n _modifiedSinceSave = false;\n }", "@Override\n\tpublic void persist() {\n\t\tif (this.isNew()) {\n\t\t\tQuxLocalServiceUtil.addQux(this);\n\t\t}\n\t\telse {\n\t\t\tQuxLocalServiceUtil.updateQux(this);\n\t\t}\n\t}", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "@Override\n\tpublic void posModify() {\n\t\tgetEntityManager().refresh(instance);\n\t\tcambiarTipoCuenta(instance);\n\t\tgetEntityManager().flush();\n\t\tgetEntityManager().refresh(instance);\n\t\tresultList = null;\n\t\trootNode = null;\n\t}", "protected boolean save() {\n\t\t// if modified... then do save\n\t\tif (stateProperty().getValue().contains(State.Modified) || \n\t\t\t\t// or if loaded from a dataset but was set inactive afterwards\n\t\t\t\t(stateProperty().getValue().contains(State.Dataset) && !activeProperty().getValue())) {\n\t\t\t// Save all the independent children first\n\t\t\tif (children != null) {\n\t\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\t\t// Attributes should be managed by the owner, and shouldn't need to manage themselves\n\t\t\t\t\tif(!(child.isAttribute()) &&\n\t\t\t\t\t\t\t// either independent and active, or dependent and inactive\n\t\t\t\t\t\t\tchild.independentProperty().getValue() == isActive()) {\n\t\t\t\t\t\tchild.save();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// We want to call doSave if the value is active, otherwise doDelete should be called\n\t\t\tif (activeProperty().getValue()) {\n\t\t\t\tdoSave();\n\t\t\t} else {\n\t\t\t\tdoDelete();\n\t\t\t}\n\t\t\t\n\t\t\t// Save all the dependent children after this object has been saved\n\t\t\tif (children != null) {\n\t\t\t\tfor (BusinessObject child: children.values()) {\n\t\t\t\t\t// Attributes should be managed by the owner, and shouldn't need to manage themselves\n\t\t\t\t\tif (!(child.isAttribute()) &&\n\t\t\t\t\t\t\t// either independent and inactive, or dependent and active\n\t\t\t\t\t\t\tchild.independentProperty().getValue() != isActive()) {\n\t\t\t\t\t\tchild.save();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Should be safe to assume the following state after successful saving\n\t\t\tstateProperty().getValue().remove(State.Modified);\n\t\t\tif (isActive()) {\n\t\t\t\tstateProperty().getValue().add(State.Dataset);\n\t\t\t} else {\n\t\t\t\tstateProperty().getValue().remove(State.Dataset);\n\t\t\t}\n\t\t\t// Let listeners know about the save\n\t\t\tfireModified(new ModifiedEvent(this, ModifiedEventType.Save));\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean doSave() {\n return true;\n }", "public void commitChanges(){\n\t\tskipRulesView.updateSkipRule();\n\t\tvalidationRulesView.updateValidationRule();\n\t\tdynamicListsView.updateDynamicLists();\n\t}", "@Override\n\tpublic boolean isPersistent() {\n\t\treturn id != -1;\n\t}", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "public void saveState() { }", "public boolean save() {\n executeCallbacks(CallbackType.BEFORE_SAVE);\n if (readOnly) throw new ReadOnlyException(getClass().getName() + \" is read only\");\n createOrUpdate();\n executeCallbacks(CallbackType.AFTER_SAVE);\n return true;\n }", "private void saveData() {\n }", "private Boolean persistRecords() {\n\t\t//Declarations\n\t\tBoolean persisted = false;\n\t\t\n\t\ttry{\t\t\t\t\t\n\t\t\t//Create the DB Handler\n\t\t\tDBHandler dbHandler = new DBHandler();\t\t\t\n\t\t\tDate date = new Date();\n\t\t\t\t\t\t\n\t\t\t//Set the updated time\n\t\t\t_medicalData.setUpdatedOn(date.toString());\n\t\t\t\n\t\t\t//Store the data to data store\n\t\t\tpersisted = dbHandler.storeData(_medicalData);\t\t\t\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tpersisted = false;\n\t\t}\n\t\t\n\t\treturn persisted;\t\t\n\t}", "public void flushData (){\n\t\tTransaction tx = this.pm.currentTransaction();\n\t\ttry {\n\t\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\t\tthis.pm.currentTransaction().commit();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tApplication.getLogger ().error (\"Error flushing data for persistence. \", e);\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n//\t\ttx.begin();\n\t}", "public void persist() {\r\n try {\r\n ComponentController componentController = new ComponentController();\r\n WorthController worthController = new WorthController();\r\n ParameterController parameterController = new ParameterController();\r\n AssemblyController assemblyController = new AssemblyController();\r\n for (Component component : components) {\r\n if (component.getId() == null) {\r\n componentController.create(component);\r\n } else {\r\n\r\n componentController.edit(component);\r\n\r\n }\r\n }\r\n for (int i = deletedComponents.size() - 1; i >= 0; i--) {\r\n if (deletedComponents.get(i).getId() != null) {\r\n for (int b = deletedComponents.get(i).getAssemblys().size() - 1; b >= 0; b--) {\r\n if (deletedComponents.get(i).getAssemblys().get(b).getId() != null) {\r\n try {\r\n assemblyController.destroy(deletedComponents.get(i).getAssemblys().get(b).getId());\r\n } catch (NonexistentEntityException ex) {\r\n\r\n }\r\n deletedComponents.get(i).getAssemblys().remove(i);\r\n }\r\n }\r\n\r\n try {\r\n componentController.destroy(deletedComponents.get(i).getId());\r\n } catch (NonexistentEntityException ex) {\r\n\r\n }\r\n }\r\n }\r\n deletedComponents.clear();\r\n\r\n if (ProjectViewController.isProjectOpened() == false) {\r\n worthController.create(new Worth(ProjectViewController.getOpenedProject(), parameterController.findParameterPByShortTerm(\"GP\"), getColmunSum(tc_Price)));\r\n worthController.create(new Worth(ProjectViewController.getOpenedProject(), parameterController.findParameterPByShortTerm(\"KZPG\"), getColmunSum(tc_CuttingPrice)));\r\n worthController.create(new Worth(ProjectViewController.getOpenedProject(), parameterController.findParameterPByShortTerm(\"GKV\"), getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price)));\r\n } else {\r\n Worth materialCost = worthController.findWorthByParameterIdAndProjectId(parameterController.findParameterPByShortTerm(\"GP\").getId(), ProjectViewController.getOpenedProject().getId());\r\n materialCost.setWorth(getColmunSum(tc_Price));\r\n Worth wageCost = worthController.findWorthByParameterIdAndProjectId(parameterController.findParameterPByShortTerm(\"KZPG\").getId(), ProjectViewController.getOpenedProject().getId());\r\n wageCost.setWorth(getColmunSum(tc_CuttingPrice));\r\n Worth totalCost = worthController.findWorthByParameterIdAndProjectId(parameterController.findParameterPByShortTerm(\"GKV\").getId(), ProjectViewController.getOpenedProject().getId());\r\n totalCost.setWorth(getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price));\r\n worthController.edit(materialCost);\r\n worthController.edit(wageCost);\r\n worthController.edit(totalCost);\r\n }\r\n } catch (Exception e) {\r\n Logging.getLogger().log(Level.SEVERE, \"Project_ConstructionMaterialListController: persist method didn't work.\", e);\r\n }\r\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public void update()\n {\n modifier = coral.getCurrentSubject();\n modified = new Date();\n try\n {\n persistence.save(this);\n }\n catch(SQLException e)\n {\n throw new BackendException(\"failed to update resource's persitent image\", e);\n }\n try\n {\n Resource impl = coral.getStore().getResource(getId());\n coralEventHub.getGlobal().fireResourceChangeEvent(impl, modifier);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"inconsistent data\", e);\n }\n }", "public void save()\n\t{\n\t\ttry\n\t\t{\n\t\t\tgetConnection().commit();\n\t\t\tgetPreparedStatement(\"SET FILES SCRIPT FORMAT COMPRESSED\").execute();\n\t\t\t// causes a checkpoint automatically.\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly save.\", e);\n\t\t}\n\t}", "private void save(MyContext myContext) {\n if (isMember.unknown || group.actorId == 0 || memberId == 0 || myContext == null ||\n myContext.getDatabase() == null) return;\n\n for (int pass=0; pass<5; pass++) {\n try {\n tryToUpdate(myContext, isMember.toBoolean(false));\n break;\n } catch (SQLiteDatabaseLockedException e) {\n MyLog.i(this, \"update, Database is locked, pass=\" + pass, e);\n if (DbUtils.waitBetweenRetries(\"update\")) {\n break;\n }\n }\n }\n }", "public void save()\n\t{\t\n\t\tfor (Preis p : items) {\n\t\t\titmDAO.create(p.getItem());\n\t\t\tprcDAO.create(p);\n\t\t}\n\t\tstrDAO.create(this);\n\t}", "public void markAsNotPersisted() {\n systemId=NOT_PERSISTED;\n externalSystemId=null;\n serialVersion=0;\n }", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}", "private void updateDatabase() {\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\tArrayList<String> updatedRecords = serializer.serialize(records);\n\t\tDatabaseHandler.writeToDatabase(DATABASE_NAME, updatedRecords);\n\t}", "@Override\n\tprotected void updateEntityBeforeSave(final Entity entity) {\n\t\tif (entity instanceof PersistenceInterceptor) {\n\t\t\t((PersistenceInterceptor) entity).executeBeforePersistAction();\n\t\t}\n\t}", "public void save() {\n\t\tSystem.out.println(\"-----------from PersonDao.save()\");\n\t}", "@Override\n public boolean isPersistent(Path path) {\n return true;\n }", "public synchronized void save() {\n/* 86 */ this.component.saveToDB();\n/* */ }", "void save() {\r\n if (actionCompleted) {\r\n forget();\r\n } else {\r\n AccountSettings.stateStored = new Bundle();\r\n save(AccountSettings.stateStored);\r\n }\r\n }", "public void initPersistence (){\n\t\tif (!this._onAppInit){\n\t\t\t/*\n\t\t\t * Evita stackoverflow\n\t\t\t */\n\t\t\tcloseActiveStoreData ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tfinal Properties properties = this._dataStoreEnvironment.getDataStoreProperties ();\n\t\tfinal PersistenceManagerFactory pmf =\n\t\t\t\t\t JDOHelper.getPersistenceManagerFactory(properties);\n\t\t\n//\t\tSystem.out.println (\"Setting persistent manager from \"+properties);\n\t\t\n\t\tthis.pm = pmf.getPersistenceManager();\n\t\t\n\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\tthis.pm.currentTransaction().commit();\n\t\t}\n\t\tthis.pm.currentTransaction().setOptimistic (false);\n//\t\tthis.pm.currentTransaction().begin();\n\t}", "boolean hasPersistent();", "public void SaveVsPersist() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry{\n\t\t\ttx = session.beginTransaction();\n//\t\t\tItem item = new Item(\"Premium Water\", 900);\n//\t\t\titem.setShops(((Item)session.get(Item.class, 1)).getShops());\n//\t\t\t\n//\t\t\t\n//\t\t\tSystem.out.println( \"BEFORE SAVE: \" + item.getId());\n//\t\t\tSystem.out.println(\"-----SAVE-----\");\n//\t\t\tSystem.out.println(\"ID IS:\" + session.save(item));\n//\t\t\t//When saving we are returned the id.\n//\t\t\tSystem.out.println(\"AFTER SAVE:\" + item.getId());\n\t\t\t\n\n\t\t\t\n\t\t\tItem item2 = new Item(\"Deluxe Premium Super Awesome Bargain Water\", 12);\n\t\t\tSystem.out.println(\"-----persist-----\");\n\t\t\tSystem.out.println( \"BEFORE Persist: \" + item2.getId());\n\t\t\tsession.persist(item2);\n\t\t\tSystem.out.println(\"AFTER PERSIST:\" + item2.getId());\n\n\t\t\t//We are not guaranteed an ID right away, so we have to return nothing.\n\t\t\t\n\t\t\ttx.commit();\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tsession.close(); \n\t\t}\n\t}", "public void run() {\n\n if (cancelUpdate(persistentEntity, entityAccess)) {\n return;\n }\n\n updateEntry(persistentEntity, updateId, e);\n firePostUpdateEvent(persistentEntity, entityAccess);\n }", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "public void performAdditionalUpdates() {\n\t\t// Default: do nothing - subclasses should override if needed\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "public void save() {\n\t\tthis.setState(Constants.CWorld.STATE_SAVING);\n\t\tthis.getWorld().saveAll();\n\t\tthis.setState(Constants.CWorld.STATE_ONLINE);\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "public void saveState() {\n table.saveState(store);\n }", "@PrePersist\n protected void onPersist() {\n this.data = LocalDate.now();\n }", "public void store() throws PersistenceException {\n }", "private void persistTable() {\n\n final EditText edit = findViewById(editId);\n final EditText edit2 = findViewById(editId2);\n String fileName = tableId;\n try {\n FileOutputStream fos = getBaseContext().openFileOutput(fileName, Context.MODE_PRIVATE);\n ObjectOutputStream os = new ObjectOutputStream(fos);\n os.writeObject(table);\n os.close();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n edit.setText(table.getSerializedProducts());\n if (lastProductAdded != null)\n edit2.setText(lastProductAdded.getName());\n else\n edit2.setText(\"\");\n\n productNames = table.getProductNames();\n currentlySelectedProduct=0;\n\n refreshPrice();\n\n if (table.map.size() == 0) {\n deleteFile(tableId);\n return;\n }\n }", "public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Test\n public void ensure_transient_persistent_of_user() {\n gameMapRepository.save( map );\n\n // THEN\n // map persisted?\n assertDomain( map );\n }", "public void save() {\n }", "public abstract HistoricalEntity persistHistoricalWrapper();", "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "public boolean save() {\n return save(Datastore.fetchDefaultService(), false);\n }", "public void markEverythingDirty() {\n fullUpdate = true;\n }", "@Override\n\tpublic void commit(boolean onSave) {\n\t\tsuper.commit(onSave);\n\t}", "public boolean save() {\n return false;\n }", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "public boolean save() {\n\t\tboolean isCreate = false;\n\t\tif(!validate() || !beforeSave(isCreate)){\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\tupdate();\n\t\t} catch (SQLException e) {\n\t\t\tnew Event(Event.getLeafLevelClassName(this), \"save\",\n\t\t\t\t\t\"SQL error while saving: \" + e.toString(), Event.ERROR);\n\t\t\treturn false;\n\t\t}\n\t\tthis.setPersisted(true);\n\t\tafterSave(isCreate);\n\t\treturn true;\n\t}", "void update(T obj) throws PersistException;", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "protected void doSave() {\n GWT.log(\"Please override\");\n }", "<T> void refresh(T persistentObject);", "public void commit() {\n\t\tcommitted = true;\n\t\tbackUp();\n\t\t//back up the current board info at the meanwhile\n\t}", "@Override\n public void save()\n {\n \n }", "private void saveCurrentObject() {\n\t}", "public void UpdatePrefs()\r\n {\r\n \t\r\n \t// Data from the first name field is being stored into persistent storage\r\n \teditor.putString\r\n \t(\"name\", \r\n \tfNameField.getText()\r\n \t.toString());\r\n \t\r\n \t// Data from the last name field is being stored into persistent storage\r\n editor.putString\r\n (\"lName\",\r\n lNameField.getText()\r\n .toString());\r\n \r\n // Data from the phone number field is being stored into persistent storage\r\n editor.putString\r\n (\"phoneNum\"\r\n , phoneNumField.getText()\r\n .toString());\r\n \r\n // Data from the address field is being stored into persistent storage\r\n editor.putString\r\n (\"address\"\r\n , homeAddressField.getText()\r\n .toString());\r\n \r\n // Push all fields data to persistent storage forever\r\n editor.commit();\r\n }", "@Override\n public void save() {\n\n }", "@Test\n void updateSuccess() {\n String newDescription = \"December X-Large T-Shirt\";\n Order orderToUpdate = dao.getById(3);\n orderToUpdate.setDescription(newDescription);\n dao.saveOrUpdate(orderToUpdate);\n Order retrievedOrder = dao.getById(3);\n assertEquals(newDescription, retrievedOrder.getDescription());\n\n String resetDescription = \"February Small Long-Sleeve\";\n Order orderToReset = dao.getById(3);\n orderToUpdate.setDescription(resetDescription);\n dao.saveOrUpdate(orderToReset);\n }", "@Override\n public void save() {\n \n }", "protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }", "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "public void commit() {\n\t\tcommitted = true;\n\t}" ]
[ "0.70192474", "0.65163773", "0.63982135", "0.63764113", "0.629734", "0.6294008", "0.6202321", "0.6090589", "0.60663295", "0.60571814", "0.6049205", "0.60188967", "0.6011551", "0.6006094", "0.5986204", "0.5968784", "0.5948177", "0.5916851", "0.5885687", "0.5864663", "0.58464056", "0.5840734", "0.5833486", "0.58051586", "0.58027697", "0.5802085", "0.57936394", "0.57932293", "0.5770902", "0.57633317", "0.573563", "0.5733472", "0.573331", "0.57316786", "0.57120776", "0.5708779", "0.5699544", "0.56774783", "0.56753963", "0.56746835", "0.5674083", "0.5653454", "0.563907", "0.56313604", "0.5630679", "0.5627829", "0.56237644", "0.56228673", "0.56216145", "0.56131786", "0.56117874", "0.5605179", "0.5592177", "0.558461", "0.55785984", "0.5570152", "0.5568938", "0.5565186", "0.556232", "0.5556118", "0.5524223", "0.55219793", "0.5510472", "0.5510472", "0.55003214", "0.5496746", "0.5496746", "0.5496746", "0.5496746", "0.5492899", "0.5481555", "0.5481333", "0.54682523", "0.54643923", "0.5463173", "0.5463173", "0.54582083", "0.5448711", "0.5444316", "0.543528", "0.54231197", "0.54122096", "0.5410703", "0.54075867", "0.5404367", "0.54043216", "0.5402942", "0.5402477", "0.5399041", "0.53978777", "0.53950715", "0.5392594", "0.5390611", "0.5385297", "0.5377315", "0.53769225", "0.5375837", "0.53706515", "0.5369738", "0.5368526", "0.5365544" ]
0.0
-1
Transform a field name into a setXXX method name
private String propertyToMethodName(final String property, final String modifier) { String charToUpper = property.substring(0,1); String methodName = property.replaceFirst(charToUpper, charToUpper.toUpperCase()); methodName = modifier + methodName; return methodName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFieldName(String fieldName);", "public static String setterName(String name) {\n return genMethodName(name, \"set\", null);\n }", "private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }", "public void set(Object requestor, String field);", "String attributeToSetter(String name);", "public FieldInstruction setFieldName(String name) {\n return setField(getFieldDeclarerName(), name, getFieldTypeName());\n }", "public MethodBuilder set(String name) {\n\t\treturn name(\"set \" + name);\n\t}", "public void setMethod(String newValue);", "public static String getSetterName(String propertyName){\r\n\t\treturn \"set\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\tpropertyName.substring(1);\r\n\t}", "public void setSetMethodName(String name) {\n m_setMethodName = name;\n }", "public void redefine(String field, String value){\n\t\tif(field.equals(\"function_name\")){\n\t\t\tfunction_name = (String)value;\n\t\t}\n\t\telse if(field.equals(\"str_repr\")){\n\t\t\tstr_repr = (String)value;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"That's not a valid option silly\");\n\t\t}\n\t}", "void setName(String s);", "public void set(Object requestor, String field, JComponent comp);", "@Override\n\tpublic void setFieldName(final String fieldName)\n\t{\n\t\tthis.fieldName = fieldName;\n\t}", "public FieldInstruction setField(String name, String type) {\n BCClass owner = getCode().getMethod().getDeclarer();\n return setField(owner.getName(), name, type);\n }", "@Override\n public void setField (String fieldToModify, String value, Double duration) {\n\n }", "protected abstract void setName(String string);", "public void setField(String field) {\n this.field = field;\n }", "private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }", "public void setName(String name) {\n fName= name;\n }", "void setName(String strName);", "void setName(String name_);", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public FieldInstruction setField(Field field) {\n if (field == null)\n return setFieldIndex(0);\n return setField(field.getDeclaringClass(), field.getName(),\n field.getType());\n }", "@Test\n public void test_setFirstName() {\n String value = \"new_value\";\n instance.setFirstName(value);\n\n assertEquals(\"'setFirstName' should be correct.\",\n value, TestsHelper.getField(instance, \"firstName\"));\n }", "protected Field setName(String name){\n\t\tif (name == null)\n\t\t\tname = \"\";\n\t\tthis.name = name;\n\t\tnameText.setText(name.equals(\"\") ? \"\" : this.name+\": \");\n\t\treturn this;\n\t}", "public FieldInstruction setField(String name, BCClass type) {\n BCClass owner = getCode().getMethod().getDeclarer();\n String typeName = (type == null) ? null : type.getName();\n return setField(owner.getName(), name, typeName);\n }", "public FieldInstruction setField(String name, Class type) {\n BCClass owner = getCode().getMethod().getDeclarer();\n String typeName = (type == null) ? null : type.getName();\n return setField(owner.getName(), name, typeName);\n }", "public FieldInstruction setField(BCField field) {\n if (field == null)\n return setFieldIndex(0);\n return setField(field.getDeclarer().getName(), field.getName(),\n field.getTypeName());\n }", "public void setFieldName(String newValue) {\n TF_Field_Name = newValue.toUpperCase().trim(); // Field names are all in UPPER CASE.\n }", "public void setFieldName(java.lang.String fieldName) {\n this.fieldName = fieldName;\n }", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "public void setFieldName(String name) {\n m_fieldName = name;\n }", "private void setValue(Object entity, Field targetField, String targetValue) {\n if ( null == entity || null == targetField || 0 >= targetField.getName().length() ) {\n throw new IllegalStateException();\n }\n final Method[] declaredMethods = entity.getClass().getDeclaredMethods();\n final String fieldName = targetField.getName();\n String expectedMethodName = null;\n if ( fieldName.length() > 1 ) {\n expectedMethodName = \"set\" + fieldName.substring(0).toUpperCase() + fieldName.substring(1, fieldName.length() - 1);\n } else {\n expectedMethodName = \"set\" + fieldName.substring(0).toUpperCase();\n }\n Method expectedMethod = null;\n for ( Method method : declaredMethods ) {\n if ( method.getName().equals(expectedMethodName) ) {\n expectedMethod = method;\n }\n }\n if ( null != expectedMethod ) {\n boolean accessibilityChanged = false;\n try {\n if ( !expectedMethod.isAccessible() ) {\n expectedMethod.setAccessible(true);\n accessibilityChanged = true;\n }\n expectedMethod.invoke(entity, targetValue);\n } catch (Exception e) {\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, e.getMessage(), e);\n } finally {\n if ( accessibilityChanged ) {\n expectedMethod.setAccessible(false);\n }\n }\n } else {\n boolean accessibilityChanged = false;\n if ( !targetField.isAccessible() ) {\n targetField.setAccessible(true);\n accessibilityChanged = true;\n }\n try {\n targetField.set(entity, targetValue);\n } catch (Exception e) {\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, e.getMessage(), e);\n } finally {\n if ( accessibilityChanged ) {\n targetField.setAccessible(false);\n }\n }\n }\n }", "@Test\n public void test_setUsername() {\n String value = \"new_value\";\n instance.setUsername(value);\n\n assertEquals(\"'setUsername' should be correct.\",\n value, TestsHelper.getField(instance, \"username\"));\n }", "public void setMethodName(@NotNull String newMethodName) {\n myMethodName = newMethodName;\n }", "public abstract void setName(String name);", "public abstract void setName(String name);", "public void set(String fieldName, Object value) {\n\t\tcommandList.add(new SetCommand(fieldName, value));\n\t}", "private void setNewField(String fieldName) {\n setNewField(fieldName, DBCreator.STRING_TYPE, null);\n }", "private void addSetter(JavaObject object, JavaModelBeanField field) {\n\t\tIJavaCodeLines arguments = getArguments(field, object.getImports());\n\t\tSetterMethod method = new SetterMethod(field.getName(), field.getType(), arguments, objectType);\n\t\tobject.addBlock(method);\n\t}", "public void setName(String newValue);", "public void setName(String newValue);", "public void setName(String n){ name=n; }", "void setValue4Po(String poFieldName, Object val);", "public void setField(String fieldName, String value, Class type) {\n Field field;\n try {\n field = this.getClass().getField(fieldName);\n } catch (NoSuchFieldException e) {\n log.error(String.format(\"Data record does not have field - %s. Error: %s\", fieldName, e.getMessage()));\n return;\n }\n\n final String typeString = type.toString();\n\n if (typeString.equals(Double.class.toString())) {\n setDouble(field, value);\n } else if (typeString.equals(String.class.toString())) {\n setString(field, value);\n }\n }", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public Builder setMethodName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n methodName_ = value;\n onChanged();\n return this;\n }", "public Builder setMethodName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n methodName_ = value;\n onChanged();\n return this;\n }", "public void setField(String field, String contents) throws RemoteException;", "public void setFieldName(String fieldName) {\r\n this.fieldName = fieldName;\r\n }", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public void set(Object requestor, String field, JLabel comp);", "public void set_fieldname(String fieldname) throws Exception{\n\t\tthis.fieldname = fieldname;\n\t}", "public void setName(java.lang.String aName);", "@Test\n public void test_setLastName() {\n String value = \"new_value\";\n instance.setLastName(value);\n\n assertEquals(\"'setLastName' should be correct.\",\n value, TestsHelper.getField(instance, \"lastName\"));\n }", "@Override\n public void changeField (String fieldToModify, String value, Double duration) {\n\n }", "public void setName(String string) {\n\t\t\n\t}", "public void setName (String Name);", "public void setName (String Name);", "public void setName (String Name);", "public void set(String name, Object value) {\n }", "public void setName(String name){this.name=name;}", "public final void setName(String name) {_name = name;}", "public void setFieldname(String newFieldname)\n\t{\n\t\tfieldname = newFieldname;\n\t}", "public void setFieldName(String fieldName) {\n this.fieldName = fieldName;\n }", "void setFields(Set<F> fields);", "public TestRenameFieldRefactoring(String name) {\r\n super(name);\r\n }", "protected abstract void setMyName(String name);", "@CheckReturnValue\n T setField(String field, @Nullable Object value);", "public void setName(String name){this.name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setFieldName(String fieldName)\n\t{\n\t\tthis.fieldName = fieldName;\n\t}", "public String getSetter() {\n return \"set\" + getCapName();\n }", "public void setName(String newName){\n\n //assigns the value newName to the name field\n this.name = newName;\n }", "public static <T> ReflectSetter<T> getReflectSetter(String fieldName, Class<?> clazz)\n {\n String fieldNameCpy = fieldName;\n fieldName = Character.toUpperCase(fieldName.charAt(0)) + fieldName.substring(1);\n Method m = null;\n\n try\n {\n m = clazz.getMethod(\"set\" + fieldName);\n }\n catch (NoSuchMethodException ignored2)\n {\n for (Method cm : clazz.getMethods())\n {\n if ((cm.getName().equalsIgnoreCase(\"set\" + fieldName)) && (cm.getReturnType() == void.class) && (cm.getParameterCount() == 1))\n {\n m = cm;\n break;\n }\n }\n }\n\n if (m != null)\n {\n return new ReflectMethodSetter<>(m);\n }\n else\n {\n return new ReflectField<>(getField(clazz, fieldNameCpy));\n }\n }", "public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }", "public static synchronized String getG_SetterName(String p, String type) {\r\n\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(type);//'get' or 'set'\r\n sb.append(Character.toUpperCase(p.charAt(0)));\r\n sb.append(p.substring(1));\r\n\r\n return sb.toString();\r\n }", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "private void setField( String fieldName, String value )\n {\n JTextField field =\n ( JTextField ) fields.get(fieldName);\n\n field.setText(value);\n }", "public ORM setS(String field, String val) {\n if (this.fields_values == \"\") {\n this.fields_values = field + \"='\" + val + \"'\";\n } else {\n this.fields_values = this.fields_values + \",\" + field + \"='\" + val + \"'\";\n }\n //System.out.println(\"after setS: \" + this.fields_values);\n return this;\n }", "public void setName (String newName)\n {\n this.name = newName; \n }", "public void setState(String fieldType, String fieldName, Object fieldValue) {\n }" ]
[ "0.70783365", "0.6850122", "0.68176925", "0.67802405", "0.67342794", "0.6653293", "0.6398887", "0.62052107", "0.6157863", "0.61475575", "0.61192185", "0.6096098", "0.60947686", "0.6085657", "0.6080647", "0.6075596", "0.60376495", "0.60302776", "0.6021103", "0.6012637", "0.5999485", "0.5972254", "0.5964882", "0.5964882", "0.59492797", "0.5944441", "0.59358853", "0.59278643", "0.5926683", "0.59046435", "0.59009445", "0.58925134", "0.5878779", "0.5878779", "0.5878779", "0.5878779", "0.5878779", "0.5878779", "0.5876744", "0.586979", "0.58602667", "0.5812509", "0.5807527", "0.5807527", "0.5799548", "0.57980305", "0.57864696", "0.5777406", "0.5777406", "0.5774066", "0.57604784", "0.5760277", "0.57451874", "0.57451874", "0.57451874", "0.57451874", "0.57451874", "0.57451874", "0.57451874", "0.57451874", "0.57451874", "0.57451874", "0.57451874", "0.5742335", "0.5742335", "0.5740185", "0.5737417", "0.572861", "0.5720242", "0.57045305", "0.56942576", "0.5685059", "0.56822425", "0.56803", "0.5679533", "0.5679533", "0.5679533", "0.56786907", "0.56750536", "0.5668032", "0.56647265", "0.566265", "0.5661489", "0.56575745", "0.5654454", "0.565195", "0.56500894", "0.5648548", "0.5648548", "0.5648548", "0.5642791", "0.5620563", "0.5616463", "0.56114775", "0.5607835", "0.5602199", "0.56017494", "0.5599007", "0.55810136", "0.5570304", "0.5561509" ]
0.0
-1
Load the class represented by this clazz string.
private Class<?> getClassFromHistoryEntry(final String clazz) { try { return Class.forName(clazz); } catch (ClassNotFoundException cnfe) { // I know this can't happen } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void loadClass(String name) {\n\n }", "public Class<?> loadClass(String name, byte[] bytes){\n return this.defineClass(name, bytes, 0, bytes.length);\n }", "protected Class loadClass(String type) {\n try {\n return getClass().getClassLoader().loadClass(type);\n }\n catch (ClassNotFoundException e) {\n try {\n return Thread.currentThread().getContextClassLoader().loadClass(type);\n }\n catch (ClassNotFoundException e2) {\n try {\n return Class.forName(type);\n }\n catch (ClassNotFoundException e3) {\n }\n }\n throw new GroovyRuntimeException(\"Could not load type: \" + type, e);\n }\n }", "@Override\n public JavaClass loadClass(String className) throws ClassNotFoundException {\n if ((className == null) || className.isEmpty()) {\n throw new IllegalArgumentException(\"Invalid class name \" + className);\n }\n className = className.replace('/', '.'); // Just in case, canonical form\n final JavaClass clazz = findClass(className);\n if (clazz != null) {\n return clazz;\n }\n\n IOException e = new IOException(\"Couldn't find: \" + className + \".class\");\n throw new ClassNotFoundException(\"Exception while looking for class \" +\n className + \": \" + e, e);\n }", "protected synchronized Class<?> loadClass(String paramString, boolean paramBoolean) throws ClassNotFoundException {\n/* 321 */ ReflectUtil.checkPackageAccess(paramString);\n/* 322 */ Class<?> clazz = findLoadedClass(paramString);\n/* 323 */ if (clazz == null) {\n/* */ try {\n/* 325 */ clazz = findClass(paramString);\n/* 326 */ } catch (ClassNotFoundException classNotFoundException) {}\n/* */ \n/* */ \n/* 329 */ if (clazz == null) {\n/* 330 */ clazz = getParent().loadClass(paramString);\n/* */ }\n/* */ } \n/* 333 */ if (paramBoolean) {\n/* 334 */ resolveClass(clazz);\n/* */ }\n/* 336 */ return clazz;\n/* */ }", "public final Class<?> mo7499a(String str) throws ClassNotFoundException {\n Class<?> cls = Class.forName(str);\n Intrinsics.checkReturnedValueIsNotNull((Object) cls, \"Class.forName(className)\");\n return cls;\n }", "void load ()\n {\n String name = this.getName();\n try\n {\n\tObject value = Class.forName (className).newInstance ();\n if (value instanceof Syntax)\n\t {\n\t loaded = (Syntax) value;\t\n\t if (name != null && loaded.getName() == null)\n\t loaded.setName(name);\n\t }\n\telse\n\t throw_error (\"failed to autoload valid syntax object \");\n }\n catch (ClassNotFoundException ex)\n {\tthrow_error (\"failed to find class \"); }\n catch (InstantiationException ex)\n { throw_error (\"failed to instantiate class \"); }\n catch (IllegalAccessException ex)\n { throw_error (\"illegal access in class \"); }\n catch (UnboundLocationException e)\n { throw_error (\"missing symbol '\" + e.getMessage () + \"' \"); }\n catch (WrongArguments ex)\n { throw_error (\"type error\"); }\n }", "private Class<?> loadClass(String className) {\n try {\n return Class.forName(className);\n } catch (ClassNotFoundException ignore) {\n return null;\n }\n }", "private static Class<?> loadInClassloader(ClassLoader loader, Class<?> cls)\n throws ClassNotFoundException {\n return cls.isPrimitive() ? cls : Class.forName(cls.getName(), true, loader);\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "@Override\n public Class<?> loadClassBytes(String name, ClassLoader cl) {\n return dexFile.loadClass(name.replace('.', '/'), cl);\n }", "public Class<?> loadClass(String str, boolean z) throws ClassNotFoundException {\n if (str.startsWith(BuildConfig.APPLICATION_ID) || str.startsWith(\"android\") || str.startsWith(\"external\") || str.startsWith(\"me.weishu.epic.art\") || str.startsWith(\"com.taobao.android.dexposed\")) {\n return this.mHostClassLoader.loadClass(str);\n }\n return super.loadClass(str, z);\n }", "private Class<?> loadClass(final ClassLoader lastLoader, final String className) {\n Class<?> clazz;\n if (lastLoader != null) {\n try {\n clazz = lastLoader.loadClass(className);\n if (clazz != null) {\n return clazz;\n }\n } catch (final Exception ex) {\n // Ignore exception.\n }\n }\n try {\n clazz = Thread.currentThread().getContextClassLoader().loadClass(className);\n } catch (final ClassNotFoundException e) {\n try {\n clazz = Class.forName(className);\n } catch (final ClassNotFoundException e1) {\n try {\n clazz = getClass().getClassLoader().loadClass(className);\n } catch (final ClassNotFoundException e2) {\n return null;\n }\n }\n }\n return clazz;\n }", "public Class<?> loadClass(String fullClassName) {\n\ttry {\n\t return classLoader.loadClass(fullClassName);\n\t} catch (ClassNotFoundException e) {\n\t e.printStackTrace();\n\t return null;\n\t}\n }", "private Class loadClass(ClassInfo classInfo) {\n Class type = null;\n try {\n URLClassLoader classLoader = new URLClassLoader(new URL[]{\n new File(classInfo.getPath()).toURI().toURL()\n });\n type = classLoader.loadClass(classInfo.getName());\n } catch (MalformedURLException ex) {\n Logger.getLogger(CDIC.class.getName()).log(Level.SEVERE, \"Class url stimmt nicht. Ggf. hat der ClassIndexer einen falschen Pfad!\", ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(CDIC.class.getName()).log(Level.SEVERE, \"Klasse konnte nicht gefunden werden!\", ex);\n }\n return type;\n }", "@Override\n public JavaClass loadClass(final Class<?> clazz) throws ClassNotFoundException {\n final String className = clazz.getName();\n final JavaClass repositoryClass = findClass(className);\n if (repositoryClass != null) {\n return repositoryClass;\n }\n String name = className;\n final int i = name.lastIndexOf('.');\n if (i > 0) {\n name = name.substring(i + 1);\n }\n JavaClass cls = null;\n try (InputStream clsStream = clazz.getResourceAsStream(name + \".class\")) {\n return cls = loadClass(clsStream, className);\n } catch (final IOException e) {\n return cls;\n }\n\n }", "public void load() throws ClassNotFoundException, IOException;", "private void loadClassName(Long classId) {\n\t\tclassName = null;\n\t\tif (classId != null && classId > -1) {\n\t\t\tdaoSession = LanguageApplication.getInstance().getDaoSession();\n\t\t\tClassNameDao classNameDao = daoSession.getClassNameDao();\n\t\t\tclassName = classNameDao.load(classId);\n\t\t}\n\t}", "String getStringClass();", "public void loadClassAndPrint() throws MalformedURLException {\n\t\tURL url = this.getClass().getResource(\"/\");\n\t\tSystem.out.println(url);\n\n\t\tURLClassLoader urlClassLoader = new URLClassLoader(new URL[]{url}, null);\n\n//\t\tURL classUrl = urlClassLoader.findResource(\"ConsolePrintString.class\");\n//\t\tSystem.out.println(classUrl);\n\n\t\ttry {\n\t\t\tClass<?> printStringClass = urlClassLoader.loadClass(\"com.classloader.changed.ConsolePrintString\");\n\t\t\tprintClassLoaderInfo(printStringClass.getClassLoader());\n\t\t\tObject object = printStringClass.newInstance();\n\n\t\t\tMethod method = printStringClass.getDeclaredMethod(\"print\", String.class);\n\t\t\tmethod.invoke(object, \"test\");\n\n//\t\t\tprintStringClass.getMethod(\"print\").invoke(object, \"test\");\n//\t\t\tPrintString printString = (PrintString) printStringClass.newInstance();\n//\t\t\tprintString.print(\"test message\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private Class m16122a(String str) {\n try {\n return Class.forName(str);\n } catch (ClassNotFoundException unused) {\n return null;\n }\n }", "public static <T> T loadJson(String input, Class<T> classOfT) {\n Gson gson = new GsonBuilder().create();\n return gson.fromJson(input, classOfT);\n }", "private static Class<?> loadClass(String className) {\n\t\tClass<?> theLogicClass = null;\n\t\ttry {\n\t\t\ttheLogicClass = ClassLoaderManager.getInstance().getLogicClassFromName(className);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tthrow new RuntimeException(\"Unable to load logic class: \" + className, ex);\n\t\t}\n\t\treturn theLogicClass;\n\t}", "private static <T> Class<T> m31778a(String str) {\n try {\n return Class.forName(str);\n } catch (Throwable th) {\n return null;\n }\n }", "@SuppressWarnings(\"unchecked\")\n private <T extends Annotation> Class<T> getLoadedClassFor(final Class<T> clazz) {\n try {\n return (Class<T>) classLoader.loadClass(clazz.getName());\n } catch (final ClassNotFoundException ex) {\n throw new IllegalStateException(\"Could not find class \" + clazz, ex);\n }\n }", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "public void importClass(String klass) throws Exception;", "<S> S fromStr(String s, Class<S> clazz);", "public static Class<?> loadClass(final String className) {\n try {\n return Class.forName(className);\n } catch(final ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n void load(String data) {\n }", "IArenaClass getClass(final String name);", "public void loadClass(String name) throws InstantiationException, IllegalAccessException, ClassNotFoundException{\n\t\tSystem.out.println(\"Class object address \" + InspectClassLoader.class.hashCode());\n\t\tObject obj = getClass().getClassLoader().loadClass(\"InsideJVM.InspectClassLoader\").newInstance();\n\t\tSystem.out.println(\"Same class object: \" + (obj.getClass() == InspectClassLoader.class));\n\t\t\n\t\t// Class<?> object's class is ???\n\t\tClass<?> s = getClass().getClassLoader().loadClass(\"InsideJVM.InspectClassLoader\");\n\t\tSystem.out.println(s.getClass()); // output: java.land.Class\n\t\t\n\t\tSystem.out.println(\"class loader hashcode \" + getClass().getClassLoader().hashCode());\n\t}", "public interface LoadClass {\n\n /**\n * Returns the {@link ObjectType} of the referenced class or interface that may be loaded and resolved.\n *\n * @param cpg A ConstantPoolGen\n * @return object type that may be loaded or null if a primitive is referenced\n */\n ObjectType getLoadClassType(ConstantPoolGen cpg);\n\n /**\n * Returns the type associated with this instruction. LoadClass instances are always typed, but this type does not always refer to the type of the class or\n * interface that it possibly forces to load. For example, {@link GETFIELD} would return the type of the field and not the type of the class where the field\n * is defined. If no class is forced to be loaded, {@code null} is returned. An example for this is an {@link NEWARRAY} instruction that creates an\n * {@code int[][]}.\n *\n * @param cpg A ConstantPoolGen\n * @return the type associated with this instruction.\n * @see #getLoadClassType(ConstantPoolGen)\n */\n Type getType(ConstantPoolGen cpg);\n}", "public static Class<?> lenientClassForName(String className) throws ClassNotFoundException {\n try {\n return loadClass(className);\n } catch (ClassNotFoundException ignored) {\n // try replacing the last dot with a $, in case that helps\n // example: tutorial.Tutorial.Benchmark1 becomes tutorial.Tutorial$Benchmark1\n // amusingly, the $ character means three different things in this one line alone\n String newName = className.replaceFirst(\"\\\\.([^.]+)$\", \"\\\\$$1\");\n return loadClass(newName);\n }\n }", "static Class loadClass(String name,\n Object fallbackClass) throws ClassNotFoundException {\n ClassLoader loader = getCurrentLoader(fallbackClass);\n return loader.loadClass(name);\n }", "@Override\n\tprotected Class<?> findClass(String name) throws ClassNotFoundException {\n\t\tFile file = new File(getSimpleName(name) + \".class\");\n FileInputStream fis = null;\n Class<?> clazz = null;\n try {\n fis = new FileInputStream(file);\n int content = 0;\n int i = 0;\n byte[] data = new byte[fis.available()];\n while ((content = fis.read()) != -1) {\n // convert to char and display it\n data[i] = (byte) content;\n i++;\n }\n clazz = defineClass(name, data, 0, data.length);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n \t\tex.printStackTrace();\n \t}\n }\n return clazz;\n\t}", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public static Class<?> loadClass(String className) throws ClassNotFoundException {\n // Use the thread context class loader. This is necessary because in some configurations, e.g.\n // when run from a single JAR containing caliper and all its dependencies the caliper JAR\n // ends up on the boot class path of the Worker and so needs to the use thread context class\n // loader to load classes provided by the user.\n return Class.forName(className, true, Thread.currentThread().getContextClassLoader());\n }", "public static Class loadClass(String h, String prefix) {\n if (h.indexOf(\".\") < 0) h = prefix + h;\n try {\n Class handleClass = Class.forName(h);\n return handleClass;\n } catch (Exception e) { }\n return null;\n }", "private void load() {\n\t\ttry {\r\n\t\t\tA a = new A();\r\n\t\t\ta.action();\r\n\t\t\tSystem.out.println(\"********下面为静态*********\");\r\n\t\t\tString name = a.getClass().getName();\r\n//\t\t\tClass aClass = Class.forName(\"com.guonl.dynamic.A\");\r\n\t\t\tClass<?> aClass = Class.forName(name);\r\n\t\t\tIC ic = (IC)aClass.newInstance();\r\n\t\t\tic.action();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public @Nullable <T> T fromJson(@Nullable String jsonString, @NonNull Class<T> clazz) {\n return gson.fromJson(jsonString, clazz);\n }", "@Override\n public Class getJavaClass() throws IOException, ClassNotFoundException {\n open();\n URL url;\n int p = path.lastIndexOf('/');\n int p2 = path.substring(0,p-1).lastIndexOf('/');\n\n File f = new File(path.substring(0,p2));\n url = f.toURI().toURL();\n URL[] urls = new URL[1];\n urls[0] = url;\n ClassLoader loader = new URLClassLoader(urls);\n\n String cls = path.substring(p2 + 1, path.lastIndexOf('.')).replace('/', '.');\n\n if (cfile.getParentFile().getParentFile().getName().equals(\"production\")) {\n cls = cls.substring(cls.lastIndexOf('.') + 1);\n }\n\n\n\n return loader.loadClass(cls);\n }", "public void setClazz(String clazz);", "protected Class<?> findClass(String paramString) throws ClassNotFoundException {\n/* 343 */ if (!paramString.startsWith(\"sun.reflect.misc.\")) {\n/* 344 */ throw new ClassNotFoundException(paramString);\n/* */ }\n/* 346 */ String str = paramString.replace('.', '/').concat(\".class\");\n/* 347 */ URL uRL = getResource(str);\n/* 348 */ if (uRL != null) {\n/* */ try {\n/* 350 */ return defineClass(paramString, uRL);\n/* 351 */ } catch (IOException iOException) {\n/* 352 */ throw new ClassNotFoundException(paramString, iOException);\n/* */ } \n/* */ }\n/* 355 */ throw new ClassNotFoundException(paramString);\n/* */ }", "Object getClass_();", "Object getClass_();", "public String getClassName(String path);", "public Class<?> lookupClass(String name) throws ClassNotFoundException {\n return getClass().getClassLoader().loadClass(name);\n }", "public static <T> T loadJson(String content, Class<T> valueType){\n return (T)JsonMapper.fromJsonString(content, valueType);\n }", "@Override\n public JavaClass findClass(final String className) {\n final SoftReference<JavaClass> ref = loadedClasses.get(className);\n if (ref == null) {\n return null;\n}\n return ref.get();\n }", "public Class<?> getClazz(ClassLoader loader);", "@Override\n protected Class \n findClass\n (\n String cname\n ) \n throws ClassNotFoundException\n {\n byte bs[] = pContents.get(cname);\n if(bs == null) \n throw new ClassNotFoundException\n\t(\"Unable to find class (\" + cname + \")!\");\n\n return defineClass(cname, bs, 0, bs.length);\n }", "public synchronized void defineClass(String fullClassName, byte[] bytes)\r\n {\r\n try\r\n {\r\n defineClass(fullClassName, bytes, 0, bytes.length);\r\n }\r\n finally\r\n {\r\n }\r\n }", "protected static synchronized Class<?> reverseOrDefault(String value) throws ClassNotFoundException{\n\t\tif (ClassRegistry.xmlprimitives.containsKey(value))\n\t\t\treturn ClassRegistry.xmlprimitives.get(value);\n\t\telse if (ClassRegistry.dictionary.containsValue(value))\n\t\t\treturn ClassRegistry.dictionary.reverse(value);\n\t\telse\n\t\t\treturn Class.forName(value);\n\t}", "public abstract <T> T read(String name, Class<T> clazz);", "public void visitLoadClass(LoadClass o){\n\t\tObjectType t = o.getLoadClassType(cpg);\n\t\tif (t != null){// null means \"no class is loaded\"\n\t\t\tVerifier v = VerifierFactory.getVerifier(t.getClassName());\n\t\t\tVerificationResult vr = v.doPass2();\n\t\t\tif (vr.getStatus() != VerificationResult.VERIFIED_OK){\n\t\t\t\tconstraintViolated((Instruction) o, \"Class '\"+o.getLoadClassType(cpg).getClassName()+\"' is referenced, but cannot be loaded and resolved: '\"+vr+\"'.\");\n\t\t\t}\n\t\t}\n\t}", "protected Class getAClass (String className) throws ClassNotFoundException {\n int dot_index = className.lastIndexOf(\".\");\n if (dot_index == -1) { // native class or string\n if (className.equals (\"String\"))\n return String.class;\n else if (className.equals (\"int\"))\n return int.class;\n\t\t\telse if (className.equals (\"long\"))\n return long.class;\n else if (className.equals (\"boolean\"))\n return boolean.class;\n else if (className.equals (\"char\"))\n\t\t\t\treturn char.class;\n else if (className.equals (\"double\"))\n return double.class;\n else if (className.equals (\"Date\") || className.equals (\"Timestamp\"))\n return Class.forName(\"java.sql.Timestamp\");\n else // try native classes\n return Class.forName(\"java.lang.\" + className);\n }\n else { //use class loader\n return Class.forName(className);\n }\n }", "public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderDomain domain, ClassLoaderPolicy policy)\n {\n // Remember some information\n this.system = system;\n this.domain = domain;\n this.policy = policy;\n \n // Create the classloader\n ClassLoader classLoader = system.registerClassLoaderPolicy(domain, policy);\n\n // Load the class from the isolated classloader\n try\n {\n clazz = classLoader.loadClass(clazz.getName());\n }\n catch (ClassNotFoundException e)\n {\n throw new RuntimeException(\"Unable to load test class in isolated classloader \" + clazz, e);\n }\n \n return clazz;\n }", "public synchronized Class<?> loadJPPFClass(String name) throws ClassNotFoundException\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"looking up resource [\" + name + \"]\");\n\t\t\tClass<?> c = findLoadedClass(name);\n\t\t\tif (c != null)\n\t\t\t{\n\t\t\t\tClassLoader cl = c.getClassLoader();\n\t\t\t\tif (debugEnabled) log.debug(\"classloader = \" + cl);\n\t\t\t}\n\t\t\t/*\n\t\t\tif (c == null)\n\t\t\t{\n\t\t\t\tClassLoader parent = getParent();\n\t\t\t\tif (parent instanceof AbstractJPPFClassLoader) c = ((AbstractJPPFClassLoader) parent).findLoadedClass(name);\n\t\t\t}\n\t\t\t*/\n\t\t\tif (c == null)\n\t\t\t{\n\t\t\t\tif (debugEnabled) log.debug(\"resource [\" + name + \"] not already loaded\");\n\t\t\t\tc = findClass(name);\n\t\t\t}\n\t\t\tif (debugEnabled) log.debug(\"definition for resource [\" + name + \"] : \" + c);\n\t\t\treturn c;\n\t\t}\n\t\tcatch(NoClassDefFoundError e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t}", "ITaskFactory<?> load(String classname);", "protected Class< ? extends Object > findClass( String name ) throws ClassNotFoundException {\n\t\tfinal Class< ? extends Object > c = load_classes.get( name );\n\t\tif ( c == null ) throw new ClassNotFoundException();\n\t\treturn c;\n\t}", "public static <T> T fromJson(final String jsonString, final Class<T> clazz) {\n\t\treturn gson.fromJson(jsonString, clazz);\n\t}", "public static synchronized Class<?> reverse(String value){\n\t\tif (ClassRegistry.xmlprimitives.containsKey(value))\n\t\t\treturn ClassRegistry.xmlprimitives.get(value);\n\t\telse {\n\t\t\tif (!ClassRegistry.dictionary.containsValue(value))\n\t\t\t\tthrow new IllegalArgumentException(\"Unknown class: \" + value.toString() +\". Please add keyword '\"+ value.toString() + \"' to class dictionary.\");\n\t\t\treturn ClassRegistry.dictionary.reverse(value);\n\t\t}\n\t}", "public static void checkClass(String clazz, I_Classes classes) {\n try {\n //actually load all of the classes using the default classloader here\n classes.forName(clazz, false, ClassLoader.getSystemClassLoader());\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "public static Class<?> classForName(String className) throws ClassNotFoundException {\r\n Class<?> loaded = null;\r\n try {\r\n loaded = Thread.currentThread().getContextClassLoader().loadClass(className);\r\n } catch (ClassNotFoundException ex) {\r\n // retry using standard classloader\r\n loaded = DiagnoseUtil.class.getClassLoader().loadClass(className);\r\n }\r\n return loaded;\r\n }", "public static <T> T loadObject(@NonNull String path, Charset encoding, Class<T> clazz) throws IOException {\n JsonElement json = ReaderUtils.loadJson(path, encoding);\n if(json == null){ return null; }\n Gson gson = GsonBuilder.gsonDefault();\n return gson.fromJson(json, clazz);\n }", "public Classifier loadClassifier() throws FileNotFoundException, IOException, ClassNotFoundException {\n\n Classifier classifier;\n\n File file = new File(getServletContext().getRealPath(\"/WEB-INF/tweets.classifier\"));\n ObjectInputStream ois = new ObjectInputStream (new FileInputStream (file));\n classifier = (Classifier) ois.readObject();\n ois.close();\n\n return classifier;\n }", "public void setClazzName(String clazz);", "public void assertClass(final String elementLocator, final String clazzString);", "@Override\n protected Class<?> loadClass(String name, boolean resolve)\n throws ClassNotFoundException {\n Class<?> loadedClass = findLoadedClass(name);\n if (loadedClass == null) {\n try {\n if (_classLoader != null) {\n loadedClass = _classLoader.loadClass(name);\n }\n } catch (ClassNotFoundException ex) {\n // class not found in system class loader... silently skipping\n }\n\n try {\n // find the class from given jar urls as in first constructor parameter.\n if (loadedClass == null) {\n loadedClass = findClass(name);\n }\n } catch (ClassNotFoundException e) {\n // class is not found in the given urls.\n // Let's try it in parent classloader.\n // If class is still not found, then this method will throw class not found ex.\n loadedClass = super.loadClass(name, resolve);\n }\n }\n\n if (resolve) { // marked to resolve\n resolveClass(loadedClass);\n }\n return loadedClass;\n }", "public static Class<?> load(String className, Class<?> expectedErrorClass) {\n try {\n Class<?> c = Class.forName(className);\n checkError(expectedErrorClass, null, false);\n return c;\n } catch (Throwable t) {\n if (expectedErrorClass != null) {\n checkError(expectedErrorClass, t, false);\n } else {\n t.printStackTrace(System.err);\n fail(\"Could not load class \" + className + \": \" + t);\n }\n return null;\n }\n }", "Object load(Class<?> clazz, Serializable id) throws HibernateException;", "public Class<?> loadLiveClass(ClassInfo liveClassInfo) throws LiveClassLoadException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASSLOADER >> Classe dinamica a ser carregada: \" + liveClassInfo.getName());\r\n\r\n\t\t\t// verifica se a classe ja esta carregada\r\n\t\t\tClass<?> clazz = ClassLoader.getSystemClassLoader().loadClass(liveClassInfo.getName());\r\n\t\t\t\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASSLOADER >> Classe dinamica ja estava carregada: \" + liveClassInfo.getName());\r\n\t\t\t\r\n\t\t\t// a classe ja esta carregada, retorna\r\n\t\t\treturn ( clazz );\r\n\t\t}\r\n\t\tcatch ( ClassNotFoundException cnfe )\r\n\t\t{\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASSLOADER >> Classe dinamica NAO estava carregada: \" + liveClassInfo.getName());\r\n\t\t\t\r\n\t\t\t// bytecode da classe\r\n\t\t\tbyte[] classBytecode = liveClassInfo.getBytecode();\r\n\t\t\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// tenta carregar a classe dinamica\r\n\t\t\t\tClass<?> clazz = (Class<?>) this.defineClassMethod.invoke(ClassLoader.getSystemClassLoader(), \r\n\t\t\t\t\t\tliveClassInfo.getName(), classBytecode, 0, classBytecode.length);\r\n\t\t\t\t\r\n\t\t\t\t// carrega as classes internas\r\n\t\t\t\tfor ( ClassInfo innerClassInfo : liveClassInfo.getInnerClassesInfo() )\r\n\t\t\t\t\tthis.loadLiveClass(innerClassInfo);\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t// verifica se o pacote da classe esta definido\r\n\t\t\t\tString packageName = null;\r\n\t\t\t\tint pos = name.lastIndexOf('.');\r\n\t\t\t\tif ( pos != -1 )\r\n\t\t\t\t{\r\n\t\t\t\t\tpackageName = name.substring(0, pos);\r\n\t\t\t\t\r\n\t\t\t\t\tPackage pkg = getPackage(packageName);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( pkg == null )\r\n\t\t\t\t\t\tdefinePackage(packageName, null, null, null, null, null, null, null);\r\n\t\t\t\t}\r\n\t\t\t\t*/\r\n\t\t\t\t\r\n\t\t\t\t// TODO: debug..\r\n\t\t\t\tSystem.out.println(\"CLASSLOADER >> Classe dinamica carregada: \" + liveClassInfo.getName());\r\n\t\t\t\t\r\n\t\t\t\t//\r\n\t\t\t\treturn ( clazz );\r\n\t\t\t}\r\n\t\t\tcatch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e)\r\n\t\t\t{\r\n\t\t\t\tthrow new LiveClassLoadException(\"Error loading live class!\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings({\"unchecked\", \"deprecation\"})\n protected static <T extends ExpandableStringEnum<T>> T fromString(String name, Class<T> clazz) {\n if (name == null) {\n return null;\n }\n\n ConcurrentHashMap<String, ?> clazzValues = VALUES.computeIfAbsent(clazz, key -> new ConcurrentHashMap<>());\n T value = (T) clazzValues.get(name);\n\n if (value != null) {\n return value;\n } else {\n MethodHandle ctor = CONSTRUCTORS.computeIfAbsent(clazz, ExpandableStringEnum::getDefaultConstructor);\n\n if (ctor == null) {\n // logged in ExpandableStringEnum::getDefaultConstructor\n return null;\n }\n\n try {\n value = (T) ctor.invoke();\n } catch (Throwable e) {\n LOGGER.warning(\"Failed to create {}, default constructor threw exception\", clazz.getName(), e);\n return null;\n }\n\n return value.nameAndAddValue(name, value, clazz);\n }\n }", "west.twouse.language.sparqlas.Class getClass_();", "public static <T> T toObject(String body, Class<T> cls) {\n\t\ttry {\n\t\t\treturn fullMapper.readValue(body, cls);\n\t\t} catch (Exception e) {\n\t\t\t//return null;\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Class loadClass( Plugin plugin, String className ) throws ClassNotFoundException {\n final PluginClassLoader loader;\n synchronized ( this ) {\n loader = classloaders.get( plugin );\n }\n return loader.loadClass( className );\n }", "private static Class<?> loadClass(String archiveImplClassName) throws Exception \n {\n return SecurityActions.getThreadContextClassLoader().loadClass(archiveImplClassName);\n }", "@Override\n\tpublic void setClassValue(final String value) {\n\n\t}", "public Class getConcreteClass(String str) {\n Iterator it = this.stack.iterator();\n while (it.hasNext()) {\n Class concreteClass = ((Generics) it.next()).getConcreteClass(str);\n if (concreteClass != null) {\n return concreteClass;\n }\n }\n return null;\n }", "@Programmatic\n public boolean loaded(final Class<?> cls) {\n return loaded(cls.getName());\n }", "@Override\n protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {\n // First, check if the class has already been loaded\n Class<?> c = findLoadedClass(name);\n if (c == null) {\n try {\n\n // Next, try to resolve it from the mutated path. \n c = super.findClass(name);\n } catch (ClassNotFoundException e) {\n // And if all else fails delegate to the parent.\n c = super.loadClass(name, resolve);\n }\n }\n if (resolve) {\n resolveClass(c);\n }\n return c;\n }", "public Object stringToObject(String s, Class c){\n Gson gson = new Gson();\n Object o = gson.fromJson(s, c);\n return o;\n }", "public Builder setClassNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n className_ = value;\n onChanged();\n return this;\n }", "public static Class load(String jarPath, String classNameToLoad) throws IOException, ClassNotFoundException {\n JarFile jarFile = new JarFile(jarPath);\n Enumeration<JarEntry> entries = jarFile.entries();\n URLClassLoader classLoader = URLClassLoader.newInstance(new URL[]{new URL(\"jar:file:\" + jarPath + \"!/\")});\n\n while (entries.hasMoreElements()) {\n JarEntry entry = entries.nextElement();\n if (entry.isDirectory() || !entry.getName().endsWith(\".class\")) {\n continue;\n }\n String className = entry.getName().substring(0, entry.getName().length() - 6).replace('/', '.');\n if (className.equals(classNameToLoad)) {\n return classLoader.loadClass(className);\n }\n }\n\n /*\n some exception message will be added\n Piter: I'm thinking about adding some property bundle for managing exceptiom messages\n and other configuration stuff\n */\n throw new ClassNotFoundException();\n }", "public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderPolicy policy)\n {\n return initializeClassLoader(clazz, system, policy, getParentPackages());\n }", "private byte[] loadUrlClass(final String name) throws ClassNotFoundException {\n\t\tfinal byte[] result;\n\t\ttry {\n\t\t\tresult = AccessController.doPrivileged(\n\t\t\t\tnew PrivilegedExceptionAction<byte[]>() {\n\t\t\t\t\t@SneakyThrows\n\t\t\t\t\tpublic byte[] run() {\n\t\t\t\t\t\tString path = name.replace('.', '/').concat(\".class\");\n\t\t\t\t\t\tResource res = getUcp().getResource(path, false); // ucp replaced by getUcp()\n\t\t\t\t\t\tif (res != null) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn toBytes(name, res); // defineClass() replaced by toBytes()\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new ClassNotFoundException(name, e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, getAcc());\n\t\t} catch (java.security.PrivilegedActionException pae) {\n\t\t\tthrow (ClassNotFoundException) pae.getException();\n\t\t}\n\t\tif (result == null) {\n\t\t\tthrow new ClassNotFoundException(name);\n\t\t}\n\t\treturn result;\n\t}", "public <T> T fromJson(String json, Class<T> clazz) {\n return getGson().fromJson(json, clazz);\n }", "public byte[] get(String res) {\n return classes.get(res);\n }", "public ClassNotFoundException (String s) {\n\t\tsuper(s, null); // Disallow initCause\n\t}", "public static Class<?> desc2class(String desc) throws ClassNotFoundException\n\t{\n\t\treturn desc2class(ClassHelper.getClassLoader(), desc);\n\t}", "public interface ClassContainer {\n\n void addLoadableClass(String className, byte[] classData);\n}", "public final <T> T m2177a(String str, Class<T> cls, Class cls2, JsonValue jsonValue) {\n return mo511a((Class) cls, cls2, jsonValue.m2259a(str));\n }", "public static JsonDeserializer<?> m26165a(Class<?> cls, String str) {\n if (cls.isPrimitive()) {\n if (cls == Integer.TYPE) {\n return IntegerDeserializer.primitiveInstance;\n }\n if (cls == Boolean.TYPE) {\n return BooleanDeserializer.primitiveInstance;\n }\n if (cls == Long.TYPE) {\n return LongDeserializer.primitiveInstance;\n }\n if (cls == Double.TYPE) {\n return DoubleDeserializer.primitiveInstance;\n }\n if (cls == Character.TYPE) {\n return CharacterDeserializer.primitiveInstance;\n }\n if (cls == Byte.TYPE) {\n return ByteDeserializer.primitiveInstance;\n }\n if (cls == Short.TYPE) {\n return ShortDeserializer.primitiveInstance;\n }\n if (cls == Float.TYPE) {\n return FloatDeserializer.primitiveInstance;\n }\n } else if (!f20100a.contains(str)) {\n return null;\n } else {\n if (cls == Integer.class) {\n return IntegerDeserializer.wrapperInstance;\n }\n if (cls == Boolean.class) {\n return BooleanDeserializer.wrapperInstance;\n }\n if (cls == Long.class) {\n return LongDeserializer.wrapperInstance;\n }\n if (cls == Double.class) {\n return DoubleDeserializer.wrapperInstance;\n }\n if (cls == Character.class) {\n return CharacterDeserializer.wrapperInstance;\n }\n if (cls == Byte.class) {\n return ByteDeserializer.wrapperInstance;\n }\n if (cls == Short.class) {\n return ShortDeserializer.wrapperInstance;\n }\n if (cls == Float.class) {\n return FloatDeserializer.wrapperInstance;\n }\n if (cls == Number.class) {\n return NumberDeserializer.instance;\n }\n if (cls == BigDecimal.class) {\n return BigDecimalDeserializer.instance;\n }\n if (cls == BigInteger.class) {\n return BigIntegerDeserializer.instance;\n }\n }\n throw new IllegalArgumentException(\"Internal error: can't find deserializer for \" + cls.getName());\n }", "abstract public Node load();", "public static <T> T parse(String value, Class<T> clz){\r\n\r\n if (StringUtils.isEmpty(value)) {\r\n return null;\r\n }\r\n try {\r\n return mapper.readValue(value, clz);\r\n }\r\n catch (Exception e) {\r\n throw new IllegalStateException(e);\r\n }\r\n }", "public Class loadClass(Result result, String className) {\n\t\n try {\n WebTestsUtil webTestsUtil = WebTestsUtil.getUtil(context.getClassLoader());\n\t //webTestsUtil.appendCLWithWebInfContents();\n\t return webTestsUtil.loadClass(className);\n } catch (Throwable e) {\n\n // @see preVerify Method of Verifier.java\n try {\n ClassLoader cl = getVerifierContext().getAlternateClassLoader();\n if (cl == null) {\n throw e;\n }\n Class c = cl.loadClass(className);\n return c;\n }catch(Throwable ex) {\n /*\n result.addErrorDetails(smh.getLocalString\n (\"com.sun.enterprise.tools.verifier.tests.web.WebTest.Exception\",\n \"Error: Unexpected exception occurred [ {0} ]\",\n new Object[] {ex.toString()}));\n */\n }\n } \n return null;\n }", "public static <T> T fromJSON(final String json, final Class<T> clazz) {\n return gson.fromJson(json, clazz);\n }", "private static Class<?> tryName(String name) throws ClassNotFoundException {\n return Class.forName(name);\r\n }" ]
[ "0.65554774", "0.6447217", "0.637516", "0.62300843", "0.608112", "0.606812", "0.6055308", "0.6037999", "0.5995484", "0.5984791", "0.5984791", "0.5976626", "0.59398806", "0.59026396", "0.59001255", "0.58196205", "0.57593685", "0.57588917", "0.5734041", "0.5699534", "0.5691046", "0.56772983", "0.56599045", "0.56409234", "0.5613562", "0.5603211", "0.5599624", "0.55882555", "0.5577733", "0.5546248", "0.5544039", "0.5518874", "0.5509102", "0.5508468", "0.548086", "0.5464958", "0.5434157", "0.54337865", "0.5404862", "0.54028374", "0.5376668", "0.5350632", "0.5340851", "0.5337216", "0.5322063", "0.5296018", "0.5296018", "0.52933013", "0.5260351", "0.5255484", "0.5241378", "0.5234468", "0.5233076", "0.5229128", "0.5228552", "0.5227983", "0.52275395", "0.52200794", "0.52168775", "0.52165115", "0.521197", "0.5209104", "0.5207751", "0.51951754", "0.519311", "0.51915395", "0.5190339", "0.5187571", "0.5183886", "0.5171034", "0.5166372", "0.51638323", "0.5155244", "0.51529247", "0.51527977", "0.51496214", "0.5139173", "0.513726", "0.5129511", "0.51151013", "0.5095898", "0.50839365", "0.5080404", "0.5078139", "0.50317913", "0.50245345", "0.5017523", "0.50138205", "0.5013568", "0.500933", "0.49863243", "0.4984722", "0.49839404", "0.49838454", "0.49790254", "0.49772257", "0.49724516", "0.49662736", "0.49386874", "0.4930287" ]
0.5225241
57
Restore the original home folder as it was before the given request was issued.
private void restoreOriginalHomeFolder(final HomeFolderModificationRequest request) throws CvqException { Set<Object> objectsToUpdate = new HashSet<Object>(); Set<Object> objectsToRemove = new HashSet<Object>(); // navigate through all the history entries and cancel previous changes Set<HistoryEntry> historiesSet = getHistoryEntries(request.getId()); for (HistoryEntry he : historiesSet) { logger.debug("restoreOriginalHomeFolder() history entry : " + he.getId()); if (he.getOperation().equals("update")) { logger.debug("restoreOriginalHomeFolder() update operation"); logger.debug("restoreOriginalHomeFolder() dealing with property : " + he.getProperty() + " of class " + he.getClazz()); // simple field value change if (!he.getProperty().startsWith("password") && !he.getProperty().equals("homeFolder") && !he.getProperty().equals("adress") && !he.getProperty().equals("individualRoles") && !he.getProperty().equals("individuals")) { logger.debug("restoreOriginalHomeFolder() simple field value change (" + he.getProperty() + ")"); Object object = restoreOldProperty(he, null, null); if (!objectsToRemove.contains(object)) objectsToUpdate.add(object); } // a individual has been planed for removal, re-attach it to home folder else if (he.getProperty().equals("homeFolder")) { if (he.getNewValue() == null) { logger.debug("restoreOriginalHomeFolder() an object was planned for removal, re-attach it"); String oldValue = he.getOldValue(); String oldHomeFolderId = oldValue.substring(oldValue.indexOf("id=") + 3, oldValue.lastIndexOf(']')); HomeFolder oldHomeFolder = homeFolderService.getById(Long.valueOf(oldHomeFolderId)); Object object = restoreOldProperty(he, HomeFolder.class, oldHomeFolder); if (!objectsToRemove.contains(object)) objectsToUpdate.add(object); } } // an adress change was planned, go back to the original one else if (he.getProperty().equals("adress")) { logger.debug("restoreOriginalHomeFolder() an adress change was planned, " + "go back"); String oldValue = he.getOldValue(); String oldAdressId = oldValue.substring(oldValue.indexOf("id=") + 3, oldValue.lastIndexOf(']')); Address oldAdress = (Address) genericDAO.findById(Address.class, Long.valueOf(oldAdressId)); Object object = restoreOldProperty(he, Address.class, oldAdress); if (!objectsToRemove.contains(object)) objectsToUpdate.add(object); } else if (he.getProperty().equals("individualRoles")) { logger.debug("restoreOriginalHomeFolder() a role change was planned, go back"); // load the owner to restore its original roles Individual individual = (Individual) genericDAO.findById(Individual.class, he.getObjectId()); Set<IndividualRole> oldIndividualRoles = new HashSet<IndividualRole>(); // take old values and add them back to the set if (he.getOldValue() != null) { String[] oldValues = he.getOldValue().substring(1, he.getOldValue().length() - 1).split(","); for (int i=0; i < oldValues.length; i++) { String oldValue = oldValues[i]; String oldIndividualRoleId = oldValue.substring(oldValue.indexOf("id=") + 3, oldValue.lastIndexOf(']')); logger.debug("restoreOriginalHomeFolder() got old role id : " + oldIndividualRoleId); IndividualRole individualRole = (IndividualRole) genericDAO.findById(IndividualRole.class, Long.valueOf(oldIndividualRoleId)); oldIndividualRoles.add(individualRole); } } if (!oldIndividualRoles.isEmpty()) { logger.debug("restoreOriginalHomeFolder() restoring roles (" + oldIndividualRoles.size() + ") for individual " + individual.getId()); individual.setIndividualRoles(oldIndividualRoles); if (!objectsToRemove.contains(individual)) objectsToUpdate.add(individual); } } } else if (he.getOperation().equals("created")) { logger.debug("restoreOriginalHomeFolder() creation operation"); Object object = genericDAO.findById(getClassFromHistoryEntry(he.getClazz()), he.getObjectId()); logger.debug("restoreOriginalHomeFolder() object " + object + " was planned for addition, unlink it"); if (object instanceof Individual) { if (!objectsToRemove.contains(object)) { Individual individual = (Individual) object; homeFolderService.deleteIndividual(request.getHomeFolderId(), individual.getId()); } } else if (object instanceof IndividualRole) { IndividualRole individualRole = (IndividualRole) object; List<Individual> individuals = homeFolderService.getIndividuals(request.getHomeFolderId()); for (Individual individual : individuals) { if (individual.getIndividualRoles() == null) continue; if (individual.getIndividualRoles().remove(individualRole)) { logger.debug("restoreOriginalHomeFolder() removed role " + individualRole.getRole() + " from " + individual.getId() + " on " + individualRole.getIndividualId()); break; } } } if (objectsToUpdate.contains(object)) { logger.debug("restoreOriginalHomeFolder() was in update list, removing"); objectsToUpdate.remove(object); } objectsToRemove.add(object); } } // clear history entries and persist changes in DB updateObjects(objectsToUpdate, objectsToRemove); historyEntryDAO.deleteEntries(request.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRequestCancelled(final Request request)\n throws CvqException, CvqInvalidTransitionException,\n CvqObjectNotFoundException {\n restoreOriginalHomeFolder((HomeFolderModificationRequest) request);\n }", "@Override\n public void onRequestRejected(final Request request)\n throws CvqException, CvqInvalidTransitionException,\n CvqObjectNotFoundException {\n restoreOriginalHomeFolder((HomeFolderModificationRequest) request);\n }", "public void restoreOldFolders() {\n setConfigurationAndLog(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF, this.oldResourcesFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF, this.oldUpdateScriptsFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF, this.oldInitScriptsFolder);\n setConfigurationAndLog(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF, this.oldEnvironmentName);\n setConfigurationAndLog(LocalizedImpexImportService.IMPEX_LOCALE_CONF, this.oldImpexLocaleCode);\n }", "protected void refreshHome()\r\n/* 48: */ throws NamingException\r\n/* 49: */ {\r\n/* 50:121 */ synchronized (this.homeMonitor)\r\n/* 51: */ {\r\n/* 52:122 */ Object home = lookup();\r\n/* 53:123 */ if (this.cacheHome)\r\n/* 54: */ {\r\n/* 55:124 */ this.cachedHome = home;\r\n/* 56:125 */ this.createMethod = getCreateMethod(home);\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "public void restore() {\n this.prefs.edit().putBoolean(PREFKEY_IS_KIOSK, tempIsKiosk).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_TABLET, tempIsTablet).apply();\n this.prefs.edit().putBoolean(PREFKEY_HTTP_SSL, tempSSL).apply();\n this.prefs.edit().putBoolean(PREFKEY_RES_FETCHED, tempFetched).apply();\n this.prefs.edit().putString(PREFKEY_HTTP_PORT, tempHttpPort).apply();\n this.prefs.edit().putString(PREFKEY_HTTP_HOST, tempHttpHost).apply();\n this.prefs.edit().putString(PREFKEY_PASSWORD, temppassword).apply();\n this.prefs.edit().putString(PREFKEY_USERNAME, tempUsername).apply();\n this.prefs.edit().putString(PREFKEY_BOOTSTRAP, tempBootstrap).apply();\n this.prefs.edit().putString(PREFKEY_ROOM_SELECTED, roomSelected).apply();\n this.prefs.edit().putString(PREFKEY_TO_IGNORE, toIgnore).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_IMAGE_DOWNLOADED, isImageDownloaded).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_IMAGE_LAN, isImageLan).apply();\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 }", "String restore(String request) throws RemoteException;", "public void resetPath();", "public File getHome() {\n return home;\n }", "@Override\r\n\tpublic String back() {\n\t\treturn RDIR + \"homeContents\";\r\n\t}", "public void setHome(Location home) {\n this.home = home;\n }", "public void redirectToHomeSameSession() {\r\n\t\t\r\n\t\ttry{\r\n\t\twebAppDriver.get(baseUrl);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public abstract void restore();", "public static void back() {\n\t\tString[] parts = MenuPath.path.split(\"_\");\n\t\tint len = parts.length;\n\t\t\n\t\tMenuPath.path = parts[0];\n\t\t\n\t\tfor(int i = 1; i < (len - 1); i++) {\t\t\t\n\t\t\tMenuPath.path = MenuPath.path + \"_\" + parts[i];\n\t\t}\t\n\t}", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "private void back_home(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tresponse.sendRedirect(\"restaurant\");\n\t\treturn;\n\t}", "public void restoreApplication() {\n /*\n * Note: on Windows, this is called from the Windows system tray\n * handler thread (created in the Windows DLL), and not from the\n * Swing Event handler thread. It is unsafe to call\n * GUIMediator.restoreView();\n * directly as Swing is not synchronized!\n * Instead, we should create an AWT Event and post it to the\n * default Toookit's EventQueue, and the application should\n * implement a Listener for that Event.\n */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n GUIMediator.restoreView();\n }\n });\n }", "public File getHome() {\r\n\t\treturn homeDir;\r\n\t}", "@Override\n public void restore() {\n }", "private File getBackupFolder() {\n File backupFolder = home.getUserHome();\n if (goodEventsFile()) { \n FileSpec fileSpec = recentFiles.get(0);\n String backupFolderStr = fileSpec.getBackupFolder();\n File defaultBackupFolder = new File (fileSpec.getFolder(), \"backups\");\n if (backupFolderStr == null\n || backupFolderStr.length() < 2) {\n backupFolder = defaultBackupFolder;\n } else {\n backupFolder = new File (backupFolderStr);\n if (backupFolder.exists()\n && backupFolder.canWrite()) {\n // leave as-is\n } else {\n backupFolder = defaultBackupFolder;\n }\n }\n }\n return backupFolder;\n }", "protected void restoreLastState() {\n\t\tInteger ii = Accessors.INT_ACCESSOR.get(\"numberOfFiles\");\n\t\tif(ii == null)\n\t\t\tii = 0;\n\t\tint jj = 0;\n\t\t\n\t\tFile file;\n\t\twhile(jj < ii) {\n\t\t\tfile = new File(Preference.PREFERENCES_NODE.get(\"editSession\" + ++jj, \"\"));\n\t\t\topen(file);\n\t\t}\n\t}", "public void saveCurrentFolders() {\n if (!this.oldConfigurationWasSaved) {\n this.oldResourcesFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF);\n this.oldUpdateScriptsFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF);\n this.oldInitScriptsFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF);\n this.oldEnvironmentName = getConfiguration().getString(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF);\n this.oldImpexLocaleCode = getConfiguration().getString(LocalizedImpexImportService.IMPEX_LOCALE_CONF);\n this.oldConfigurationWasSaved = true;\n }\n\n }", "private void restore() {\n AppSettings.setInstance(backupConfig);\n }", "private EntryStorageHome home()\r\n {\r\n if( home == null )\r\n {\r\n\t\ttry\r\n\t\t{\r\n home = (EntryStorageHome) \r\n get_storage_home().get_catalog().find_storage_home( PSS_HOME );\r\n\t\t}\r\n\t\tcatch( Throwable e )\r\n\t\t{\r\n\t\t String error = \"Could not resolve the EntryStorageHome\";\r\n\t\t throw new RuntimeException( error, e );\r\n\t\t}\r\n }\r\n return home;\r\n }", "@RequestMapping(value=\"/admin/restore\", method = RequestMethod.GET)\r\n public String restore() throws JAXBException, IOException {\r\n return \"admin/restore\";\r\n }", "public Path getInstallationHome() {\n return home;\n }", "@FXML\n\tvoid backHome(MouseEvent event) throws IOException {\n\n\t\tMainAllControllers.setWindowVar(\"userHome\");\n\t\tMainAllControllers.changeWin();\n\t}", "private void recallLastDir(String name) {\r\n\t\tString lastDir = prefs.get( PREFS_KEY+name , null ) ;\r\n\t\tif ( lastDir==null ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tFile last = new File( lastDir ) ;\r\n\t\tif ( last.exists() && last.isDirectory() ) {\r\n\t\t\tsetCurrentDirectory( last );\r\n\t\t}\r\n\t}", "private void returnHome() {\n parentPane.getChildren().clear();\n parentPane.setTop(mainMenu);\n parentPane.setCenter(imgHome);\n }", "@Override\n public GitLabFolderAuthorization reconfigure(StaplerRequest request, JSONObject formData)\n throws Descriptor.FormException {\n GitLabFolderAuthorization newFolderAuth = (GitLabFolderAuthorization)super.reconfigure(request, formData);\n if (newFolderAuth != null) {\n // preserve group ID\n newFolderAuth.folderACL.setGroupId(getGroupId());\n }\n\n return newFolderAuth;\n }", "private String downloadFolder(){\n\t\tFile home = new File(System.getProperty(\"user.home\"));\n\t\tFile folder = new File (home,\"Downloads/PaluDownloads\");\n\t\tif (!folder.exists()){\n\t\t\tfolder.mkdir();\n\t\t}\n\t\treturn folder.getAbsolutePath();\n\t}", "protected void changeFolder(Folder newFolder, AjaxRequestTarget target) {\n\t\tcurrentFolder = newFolder;\n\t\tcurrentResource = null;\n\t\tsend(getPage(), Broadcast.BREADTH, new FolderChangeEvent(target));\n\t}", "@Override\n\tpublic void resetLocation() {\n\t\t\n\t}", "@Override\n public Home defaultHome() {\n Home h = null;\n for (String ver : VER_CURRENT) {\n for (String path : WKIP) {\n if (Utilities.isWindows() && path.contains(\"AppData\")) { //NOI18N\n // issue #251710 - Gluon SceneBuilder by default installs to C:\\Users\\<username>\\AppData\\Local\\SceneBuilder\n final String appDataPath = System.getenv(\"AppData\"); //NOI18N\n if (appDataPath != null) {\n final FileObject appDataFo = FileUtil.toFileObject(new File(appDataPath)).getParent();\n h = loadHome(path.replace(VER_DELIMITER, ver).replace(APPDATA_DELIMITER, appDataFo.getPath()));\n }\n } else {\n h = loadHome(path.replace(VER_DELIMITER, ver), ver);\n }\n if (h != null) {\n return h;\n }\n }\n }\n return h;\n }", "public void resetReferenciado();", "private void returnHome(){\n if (Boolean.toString(UpdatedHomePage.updatedHomeStarted).equals(\"false\")) {\n startActivity(new Intent(FinalPlan.this, Home.class));\n } else {\n Intent intent = new Intent(this, UpdatedHomePage.class);\n Bundle extras = new Bundle();\n extras.putBoolean(\"filtered\", true);\n intent.putExtras(extras);\n startActivity(intent);\n }\n }", "public Resolution undoCheckOut() throws ServiceException {\r\n vocabularyService.undoCheckOut(vocabularyFolder.getId(), getUserName());\r\n addSystemMessage(\"Checked out version successfully deleted\");\r\n RedirectResolution resolution = new RedirectResolution(VocabularyFolderActionBean.class);\r\n resolution.addParameter(\"vocabularyFolder.identifier\", vocabularyFolder.getIdentifier());\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", false);\r\n return resolution;\r\n }", "public Resolution cancel() {\r\n return new RedirectResolution(HOME_PAGE);\r\n }", "private void setDefaultPath(){\n\t\tdownloadPath = System.getProperty(\"user.home\") + File.separator + \"Downloads\" + File.separator;\n\t\tif(!downloadPath.endsWith(File.separator)){\n\t\t\tdownloadPath += File.separator;\n\t\t}\n\t\tcurrentPath.setText(downloadPath);\n\t\tcurrentPath.setToolTipText(downloadPath);\n\t}", "protected Object getHome()\r\n/* 75: */ throws NamingException\r\n/* 76: */ {\r\n/* 77:159 */ if ((!this.cacheHome) || ((this.lookupHomeOnStartup) && (!isHomeRefreshable()))) {\r\n/* 78:160 */ return this.cachedHome != null ? this.cachedHome : lookup();\r\n/* 79: */ }\r\n/* 80:163 */ synchronized (this.homeMonitor)\r\n/* 81: */ {\r\n/* 82:164 */ if (this.cachedHome == null)\r\n/* 83: */ {\r\n/* 84:165 */ this.cachedHome = lookup();\r\n/* 85:166 */ this.createMethod = getCreateMethod(this.cachedHome);\r\n/* 86: */ }\r\n/* 87:168 */ return this.cachedHome;\r\n/* 88: */ }\r\n/* 89: */ }", "private final void restoreOriginalGraph() {\n // Safeguard against multiple restores\n if (startIndex == -1) return;\n \n markEdgesFrom(startIndex, false);\n markEdgesFrom(endIndex, false);\n markHasEdgeToGoal(false);\n nOutgoingEdgess[endIndex] = endOriginalSize;\n nOutgoingEdgess[startIndex] = startOriginalSize;\n nEdges = originalNEdges;\n\n nNodes = originalSize;\n startIndex = -1;\n endIndex = -1;\n }", "public void restore() {\n setOrientation(0);\n setCropRect(getMaxCenteredCropRect(), false);\n autoZoom(true);\n }", "public void restore() {\n currentIm= originalIm.copy();\n }", "private String persistState(HttpServletRequest request)\n\t{\n\t\tToolSession ts = SessionManager.getCurrentToolSession();\n\t\tif (isPageToolDefault(request))\n\t\t{\n\t\t\tif (log.isDebugEnabled())\n\t\t\t{\n\t\t\t\tlog.debug(\"Incomming URL is \" + request.getRequestURL().toString() + \"?\" + request.getQueryString());\n\t\t\t\tlog.debug(\"Restore \" + ts.getAttribute(SAVED_REQUEST_URL));\n\t\t\t}\n\t\t\treturn (String) ts.getAttribute(SAVED_REQUEST_URL);\n\t\t}\n\t\tif (isPageRestorable(request))\n\t\t{\n\t\t\tts.setAttribute(SAVED_REQUEST_URL, request.getRequestURL()\n\t\t\t\t\t.toString()\n\t\t\t\t\t+ \"?\" + request.getQueryString());\n\t\t\tif (log.isDebugEnabled())\n\t\t\t{\n\t\t\t\tlog.debug(\"Saved \" + ts.getAttribute(SAVED_REQUEST_URL));\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void goHome() {\n shouldWork = false;\n }", "public URI getHome() {\n return this.homeSpace;\n }", "void resetToRest() {\n\t\t\t\tsimulate = false;\n\t\t\t\ttask = null;\n\t\t\t}", "public Resolution cancelSave() {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyFolderActionBean.class);\r\n resolution.addParameter(\"vocabularyFolder.identifier\", vocabularyFolder.getIdentifier());\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n return resolution;\r\n }", "@Override\n public void reset(final ActionMapping mapping,\n final HttpServletRequest request) {\n today = null;\n\n //key.reset();\n\n editAuthUserType = 0;\n }", "public Resolution reset() {\r\n this.resetData();\r\n return new RedirectResolution(ADD_ORG_PAGE).flash(this);\r\n }", "public CompletableFuture<RestoreResponse> restore(RestoreRequest request) throws IOException {\n\t\treturn this.transport.performRequestAsync(request, RestoreRequest.ENDPOINT, this.requestOptions);\n\t}", "@Override\n\tpublic void returnHome()\n\t{\n\t\tif (!isInsideRadius(getSpawn(), 200, false, false))\n\t\t{\n\t\t\tif (Config.DEBUG)\n\t\t\t{\n\t\t\t\tLOG.debug(\"{} moving home\", getObjectId());\n\t\t\t}\n\t\t\tsetisReturningToSpawnPoint(true);\n\t\t\tclearAggroList();\n\t\t\t\n\t\t\tif (hasAI())\n\t\t\t{\n\t\t\t\tgetAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, getSpawn().getLocation());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tresetHomeScreen();\n\t\t\t\t}", "private NodeRef getompanyHomeFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n return nodeLocatorService.getNode(\"companyhome\", null, null);\n }", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "abstract protected URI getSavedMasterUri();", "private void refreshHomePage()\r\n {\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n //currentStage.hide();\r\n FXMLLoader fxmlLoader = new FXMLLoader();\r\n String filePath = \"/com/jjlcollectors/fxml/homepage/HomePage.fxml\";\r\n URL location = HomePageController.class.getResource(filePath);\r\n fxmlLoader.setLocation(location);\r\n fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());\r\n try\r\n {\r\n Parent root = fxmlLoader.load(location.openStream());\r\n } catch (IOException ex)\r\n {\r\n MyLogger.log(Level.SEVERE, LOG_CLASS_NAME + \" couldn't load homepage to refresh coin update!\", ex);\r\n }\r\n HomePageController homePageController = (HomePageController) fxmlLoader.getController();\r\n homePageController.refreshCoinList();\r\n }", "@Override\n public Home loadHome(String customPath) {\n return loadHome(customPath, DEFAULT_VERSION);\n }", "private void currentStateRestoreFromSharedPref() {\n sharedPreferences = getPreferences(MODE_PRIVATE);\n int key1DeffaultValue = -1;\n key1OfActiveChallenge = sharedPreferences.getInt(\"key1OfActiveChallenge\", key1DeffaultValue);\n nameOfCurrentChallenge = sharedPreferences.getString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n\n dateOfLastEdit = sharedPreferences.getString(\"dateOfLastEdit\", dateOfLastEdit);\n\n goal = sharedPreferences.getFloat(\"goal\", goal);\n carry = sharedPreferences.getFloat(\"carry\", carry);\n\n challengeDaysRunning = sharedPreferences.getInt(\"challengeDaysRunning\", challengeDaysRunning);\n }", "@Override\n\tpublic void reset(ActionMapping mapping, HttpServletRequest request) {\n\t\tsuper.reset(mapping, request);\n\t}", "void doHome()\n\t{\n\t\ttry\n\t\t{\n\t\t\tLocation l = getCurrentLocation();\n\t\t\tSourceFile file = l.getFile();\n\t\t\tint module = file.getId();\n\t\t\tint line = l.getLine();\n\n\t\t\t// now set it\n setListingPosition(module, line);\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"currentLocationUnknown\")); //$NON-NLS-1$\n\t\t}\n\t}", "public void requestFolderRefreshRequired() {\r\n if(!refreshInProgress.get()) {\r\n cleanBeforeNextUse();\r\n }\r\n }", "@ManagedOperation(description = \"Reset and reloads the file store\")\n public synchronized void reset() throws IOException {\n synchronized (cache) {\n // trunk and clear, before we reload the store\n trunkStore();\n cache.clear();\n loadStore();\n }\n }", "public void openHome() {\n connectionProgressDialog.dismiss();\n Intent i = new Intent(this, ZulipActivity.class);\n startActivity(i);\n finish();\n }", "public File getHomeDir() {\n return physicalHomeDir;\n }", "public void setCacheHome(boolean cacheHome)\r\n/* 29: */ {\r\n/* 30: 83 */ this.cacheHome = cacheHome;\r\n/* 31: */ }", "private void restart(HttpServletRequest request, HttpServletResponse response) throws Exception {\n SimApi.resetSim();\n }", "public synchronized void unbind()\n\t\t{\n\t\t\tpageStore.folders.remove(sessionIdentifier);\n\n\t\t\tsessionIdentifier = null;\n\t\t}", "public void homeClicked() {\r\n Pane newRoot = loadFxmlFile(Home.getHomePage());\r\n Home.getScene().setRoot(newRoot);\r\n }", "public void setBackupServerFolderLocation(String argBackupServerFolderLoaction){\n\t backupServerFolderLocation=argBackupServerFolderLoaction;\n }", "public void backHome(View view) {\n\t\tIntent resultIntent = new Intent();\n\t\tsetResult(Activity.RESULT_CANCELED, resultIntent);\n\t\tfinish();\n\t overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n\t}", "public void reset(ActionMapping mapping, HttpServletRequest request) {\n\t}", "protected void reset()\n\t{\n\t\tretcode = JOptionPane.CANCEL_OPTION;\n\t\tfiles = null;\n\t\taliases = null;\n\t\tjPathPanel.setText(\"\");\n\t\trpFilesTextArea.setText(\"\");\n\t\tsupTextField.setText(\"\");\n\t\tconfTextField.setText(\"\");\n\t}", "void resetStore() {\n File storeFile = new File(getStoreName());\n if (storeFile.exists()) {\n storeFile.delete();\n }\n }", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public void resetPacks() {\n user.resetPacks();\n saveData();\n }", "public URI getAbsoluteLobFolder();", "public static final String getHome() { return home; }", "private void launchHomeScreen(){\n\n prefManager.setFirstTimeLaunch(false);\n Intent i = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(i);\n }", "public static void resetUser() throws FileNotFoundException {\n\t\tworkers.clear();\n\t\tUserList.setUser();\n\t}", "private void doRecenter(HttpServletRequest request)\n {\n int x = 0, y =0;\n x = Integer.parseInt(request.getParameter(\"mouseClick.x\"));\n y = Integer.parseInt(request.getParameter(\"mouseClick.y\"));\n // p is the world coordinate corresponding to the mouse click\n Point2D p = mv.getUserPoint(x,y); \n mv.setCenter(p.getX(), p.getY()); \n try{\n success = mv.run(); \n }catch(Exception ex) { \n errorMsg = ex.getMessage();\n }\n }", "public void restoreState() {\n\tMachine.processor().setPageTable(pageTable);\n }", "public final void restartApp() {\r\n Intent intent = new Intent(getApplicationContext(), SplashActivity.class);\r\n intent.addFlags(32768);\r\n intent.addFlags(268435456);\r\n startActivity(intent);\r\n }", "public void reset(ActionMapping mapping, HttpServletRequest request) {\n\n\t\trfc = null;\n\t\taddress = null;\n\t\tname = null;\n\t\tpassword = null;\n\n\t}", "public void setApplicationDir( String path ) {\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n Editor editor = preferences.edit();\r\n editor.putString(LibraryConstants.PREFS_KEY_BASEFOLDER, path);\r\n editor.commit();\r\n resetManager();\r\n }", "private void refresh() {\n\t\tIntent intent = new Intent(BacklogActivity.this, BacklogActivity.class);\n\t\tstartActivity(intent);\n\t}", "public Location getHome() {\n return home;\n }", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "public void resetRepository() {\n repository.clear();\n addDirectories( directory );\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "private void cleanupStagingDir() {\n if (getApplicationId() != null) {\n dagUtils.cleanMr3Dir(getStagingDir(), sessionConf);\n }\n sessionScratchDir = null;\n }", "void restoreBefore() {\r\n\t\t\tsurface.basemap.clear();\r\n\t\t\tsurface.basemap.putAll(basemapBefore);\r\n\t\t\tsurface.buildingmap.clear();\r\n\t\t\tsurface.buildingmap.putAll(buildingmapBefore);\r\n\t\t\tsurface.features.clear();\r\n\t\t\tsurface.features.addAll(surfaceBefore);\r\n\t\t\tsurface.buildings.clear();\r\n\t\t\tsurface.buildings.addAll(buildingsBefore);\r\n\t\t}", "private void setCarbonHome() {\n Path carbonHome = Paths.get(\"\");\n carbonHome = Paths.get(carbonHome.toString(), \"src\", \"test\");\n System.setProperty(CARBON_HOME, carbonHome.toString());\n logger.info(\"Carbon Home Absolute path set to: \" + carbonHome.toAbsolutePath());\n\n }", "public void restore() {\n if (isMaximized()) {\n getRestoreButton().click();\n } else {\n throw new IllegalStateException(\n \"Window is not maximized, cannot be restored.\");\n }\n }", "private void upPath() {\n if (!path.equals(FilePathUtil.getRootPath())) {\n onPathChanged(path, new File(path.getParent()));\n path = new File(path.getParent());\n load(null);\n }\n }", "@Test\n\tpublic void editFolderAsUserTest() {\n\t\tauthenticate(\"agent1\");\n\t\tint principalId = actorService.findByPrincipal().getId();\n\t\tFolderForm folderFormAux = new FolderForm();\n\t\tfolderFormAux.setName(\"New auditor5 folder for testing its edition\");\n\t\tFolder folder = folderService.reconstruct(folderFormAux,0);\n\t\tfolderService.save(folder);\n\t\t\n\t\tFolder folderToEdit = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString actualName = folderToEdit.getName();\n\t\tFolderForm folderFormAux2 = new FolderForm();\n\t\tfolderFormAux2.setName(\"New folder name\");\n\t\tFolder folderToSave = folderService.reconstruct(folderFormAux2, folderToEdit.getId());\n\t\tfolderService.save(folderToSave);\n\t\tFolder editedFolder = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString expectedName = editedFolder.getName();\n\t\tAssert.isTrue(!actualName.equals(expectedName));\n\t\tunauthenticate();\t\t\n\t}", "String backup(String request) throws RemoteException;", "public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }", "static void refreshFileSystem() {\n \t// Clear all existing registrations on the server via CORBA for this username\n server.clearSharedFiles(username);\n server.clearNotSharedFiles(username);\n // Register the files on the server through CORBA that have been added to the directories manually\n server.registerFiles(username);\n System.out.println();\n return;\n }" ]
[ "0.7645146", "0.72915506", "0.5726937", "0.54964983", "0.5293869", "0.5284941", "0.52727985", "0.52350926", "0.5182638", "0.5079754", "0.5069956", "0.50680995", "0.50603557", "0.5053019", "0.50454074", "0.50453454", "0.5041866", "0.5032611", "0.5021024", "0.50103164", "0.4955137", "0.4949407", "0.4942374", "0.487934", "0.48695937", "0.4868939", "0.48598164", "0.48597527", "0.48359275", "0.48185682", "0.4794649", "0.47837725", "0.47644857", "0.47501332", "0.47384995", "0.47380427", "0.4731558", "0.4712701", "0.46959049", "0.4684288", "0.46839297", "0.4676572", "0.4673986", "0.46703923", "0.466657", "0.463776", "0.4635762", "0.46233097", "0.462099", "0.46151093", "0.4600529", "0.46003726", "0.4581577", "0.45803565", "0.4580179", "0.4577159", "0.4576794", "0.4576522", "0.45744234", "0.45741075", "0.4572807", "0.45723358", "0.45683733", "0.4567274", "0.4565976", "0.45640567", "0.45556644", "0.4548128", "0.45438007", "0.45398456", "0.45253858", "0.45240444", "0.45196986", "0.45185378", "0.4517779", "0.4504437", "0.44859338", "0.44858292", "0.44825837", "0.44762713", "0.44756347", "0.4461702", "0.44593734", "0.4452799", "0.44523937", "0.44509205", "0.44488013", "0.44458392", "0.4441573", "0.44349673", "0.4433881", "0.4432049", "0.44257626", "0.44099748", "0.44092947", "0.44048023", "0.44023255", "0.44005972", "0.43993992", "0.4399374" ]
0.69702053
2
modification request has been cancelled, restore original home folder state
@Override public void onRequestCancelled(final Request request) throws CvqException, CvqInvalidTransitionException, CvqObjectNotFoundException { restoreOriginalHomeFolder((HomeFolderModificationRequest) request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRequestRejected(final Request request)\n throws CvqException, CvqInvalidTransitionException,\n CvqObjectNotFoundException {\n restoreOriginalHomeFolder((HomeFolderModificationRequest) request);\n }", "private void restoreOriginalHomeFolder(final HomeFolderModificationRequest request)\n throws CvqException {\n \n Set<Object> objectsToUpdate = new HashSet<Object>();\n Set<Object> objectsToRemove = new HashSet<Object>();\n \n // navigate through all the history entries and cancel previous changes\n \n Set<HistoryEntry> historiesSet = getHistoryEntries(request.getId());\n for (HistoryEntry he : historiesSet) {\n logger.debug(\"restoreOriginalHomeFolder() history entry : \" + he.getId());\n \n if (he.getOperation().equals(\"update\")) {\n logger.debug(\"restoreOriginalHomeFolder() update operation\");\n logger.debug(\"restoreOriginalHomeFolder() dealing with property : \" \n + he.getProperty() + \" of class \" + he.getClazz());\n \n // simple field value change\n if (!he.getProperty().startsWith(\"password\")\n && !he.getProperty().equals(\"homeFolder\")\n && !he.getProperty().equals(\"adress\")\n && !he.getProperty().equals(\"individualRoles\")\n && !he.getProperty().equals(\"individuals\")) {\n logger.debug(\"restoreOriginalHomeFolder() simple field value change (\" \n + he.getProperty() + \")\");\n Object object = restoreOldProperty(he, null, null);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n }\n \n // a individual has been planed for removal, re-attach it to home folder\n else if (he.getProperty().equals(\"homeFolder\")) {\n \n if (he.getNewValue() == null) {\n logger.debug(\"restoreOriginalHomeFolder() an object was planned for removal, re-attach it\");\n \n String oldValue = he.getOldValue();\n String oldHomeFolderId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3, \n oldValue.lastIndexOf(']'));\n HomeFolder oldHomeFolder = \n homeFolderService.getById(Long.valueOf(oldHomeFolderId));\n Object object = restoreOldProperty(he, HomeFolder.class, oldHomeFolder);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n } \n }\n \n // an adress change was planned, go back to the original one\n else if (he.getProperty().equals(\"adress\")) {\n logger.debug(\"restoreOriginalHomeFolder() an adress change was planned, \"\n + \"go back\");\n String oldValue = he.getOldValue();\n String oldAdressId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3,\n oldValue.lastIndexOf(']'));\n Address oldAdress = \n (Address) genericDAO.findById(Address.class, Long.valueOf(oldAdressId));\n Object object = restoreOldProperty(he, Address.class, oldAdress);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n }\n \n else if (he.getProperty().equals(\"individualRoles\")) {\n logger.debug(\"restoreOriginalHomeFolder() a role change was planned, go back\");\n \n // load the owner to restore its original roles\n Individual individual = \n (Individual) genericDAO.findById(Individual.class, he.getObjectId());\n Set<IndividualRole> oldIndividualRoles = new HashSet<IndividualRole>();\n \n // take old values and add them back to the set\n if (he.getOldValue() != null) {\n String[] oldValues =\n he.getOldValue().substring(1, he.getOldValue().length() - 1).split(\",\");\n for (int i=0; i < oldValues.length; i++) {\n String oldValue = oldValues[i];\n String oldIndividualRoleId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3,\n oldValue.lastIndexOf(']'));\n logger.debug(\"restoreOriginalHomeFolder() got old role id : \" \n + oldIndividualRoleId);\n IndividualRole individualRole = \n (IndividualRole) genericDAO.findById(IndividualRole.class, \n Long.valueOf(oldIndividualRoleId));\n oldIndividualRoles.add(individualRole);\n }\n }\n \n if (!oldIndividualRoles.isEmpty()) {\n logger.debug(\"restoreOriginalHomeFolder() restoring roles (\" \n + oldIndividualRoles.size() + \") for individual \"\n + individual.getId());\n individual.setIndividualRoles(oldIndividualRoles);\n \n if (!objectsToRemove.contains(individual))\n objectsToUpdate.add(individual);\n }\n }\n } else if (he.getOperation().equals(\"created\")) {\n logger.debug(\"restoreOriginalHomeFolder() creation operation\"); \n \n Object object = \n genericDAO.findById(getClassFromHistoryEntry(he.getClazz()), he.getObjectId());\n logger.debug(\"restoreOriginalHomeFolder() object \" + object \n + \" was planned for addition, unlink it\");\n \n if (object instanceof Individual) {\n if (!objectsToRemove.contains(object)) {\n Individual individual = (Individual) object;\n homeFolderService.deleteIndividual(request.getHomeFolderId(), \n individual.getId());\n }\n } else if (object instanceof IndividualRole) {\n IndividualRole individualRole = (IndividualRole) object;\n List<Individual> individuals = \n homeFolderService.getIndividuals(request.getHomeFolderId());\n for (Individual individual : individuals) {\n if (individual.getIndividualRoles() == null)\n continue;\n if (individual.getIndividualRoles().remove(individualRole)) {\n logger.debug(\"restoreOriginalHomeFolder() removed role \"\n + individualRole.getRole() + \" from \"\n + individual.getId() + \" on \"\n + individualRole.getIndividualId());\n break;\n }\n }\n }\n \n if (objectsToUpdate.contains(object)) {\n logger.debug(\"restoreOriginalHomeFolder() was in update list, removing\");\n objectsToUpdate.remove(object);\n }\n objectsToRemove.add(object);\n }\n }\n \n // clear history entries and persist changes in DB\n \n updateObjects(objectsToUpdate, objectsToRemove);\n \n historyEntryDAO.deleteEntries(request.getId());\n }", "void cancelOriginal();", "public void restart() {\r\n\t\tthis.cancel = false;\r\n\t}", "protected void restoreLastState() {\n\t\tInteger ii = Accessors.INT_ACCESSOR.get(\"numberOfFiles\");\n\t\tif(ii == null)\n\t\t\tii = 0;\n\t\tint jj = 0;\n\t\t\n\t\tFile file;\n\t\twhile(jj < ii) {\n\t\t\tfile = new File(Preference.PREFERENCES_NODE.get(\"editSession\" + ++jj, \"\"));\n\t\t\topen(file);\n\t\t}\n\t}", "public Resolution cancelSave() {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyFolderActionBean.class);\r\n resolution.addParameter(\"vocabularyFolder.identifier\", vocabularyFolder.getIdentifier());\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n return resolution;\r\n }", "public final synchronized void restart() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t}", "@Override\n\tpublic void undo() {\n\t\tsecurity.off();\n\t}", "public void remoteOfficeCancel() {\r\n\t\tif (isChanged) {\r\n\t\t\tlogTrace(this.getClass().getName(), \"remoteOfficeCancel()\", \"Going to cancel the currrent changes.\");\r\n\t\t\tloadStatus();\r\n\t\t\tisChanged = false;\r\n\t\t\tlogTrace(this.getClass().getName(), \"remoteOfficeCancel()\", \"Current changes are ignored\");\r\n\t\t}\r\n\r\n\t}", "void cancelBaseStateOverrideRequest() {\n cancelCurrentBaseStateRequestLocked();\n }", "public boolean shouldRevertToOriginalAuthorizationOnCopy() {\n return false;\n }", "public Resolution undoCheckOut() throws ServiceException {\r\n vocabularyService.undoCheckOut(vocabularyFolder.getId(), getUserName());\r\n addSystemMessage(\"Checked out version successfully deleted\");\r\n RedirectResolution resolution = new RedirectResolution(VocabularyFolderActionBean.class);\r\n resolution.addParameter(\"vocabularyFolder.identifier\", vocabularyFolder.getIdentifier());\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", false);\r\n return resolution;\r\n }", "public void requestFolderRefreshRequired() {\r\n if(!refreshInProgress.get()) {\r\n cleanBeforeNextUse();\r\n }\r\n }", "void cancelOverrideRequest() {\n cancelCurrentRequestLocked();\n }", "public void undo() {\n setExecuted(false);\n }", "public void restoreOldFolders() {\n setConfigurationAndLog(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF, this.oldResourcesFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF, this.oldUpdateScriptsFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF, this.oldInitScriptsFolder);\n setConfigurationAndLog(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF, this.oldEnvironmentName);\n setConfigurationAndLog(LocalizedImpexImportService.IMPEX_LOCALE_CONF, this.oldImpexLocaleCode);\n }", "public void onRestorePendingState() {\n }", "@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }", "@Override\n protected void done() {\n super.done();\n if (!this.isCancelled()) {\n openMergeModifiedFile(); \n }\n }", "protected void reset()\n\t{\n\t\tretcode = JOptionPane.CANCEL_OPTION;\n\t\tfiles = null;\n\t\taliases = null;\n\t\tjPathPanel.setText(\"\");\n\t\trpFilesTextArea.setText(\"\");\n\t\tsupTextField.setText(\"\");\n\t\tconfTextField.setText(\"\");\n\t}", "public void markFileAsNotSaved()\r\n {\r\n saved = false;\r\n }", "@Override\n public void restore() {\n }", "public void undo() {\n\t\t\r\n\t}", "@Override\n public void undo() {\n\n }", "@Override\n public void undo() {\n\n }", "public void beforeExit (){\n\t\tsynchronized (this){\n\t\t\tsetChanged ();\n\t\t\tnotifyObservers (ObserverCodes.APPLICATIONEXITING);\n\t\t}\n\t\tUserSettings.getInstance ().storeProperties ();\n\t\t\n\t\tcloseActiveStoreData ();\n\t\t\n\t\tActionPool.getInstance ().getProjectSaveAction ().execute ();\n\t\t/* Forza chiusura logger. */\n\t\t_logger.close ();\n\t}", "@Override\n\tpublic void undo()\n\t{\n\t}", "protected void cancelChanges() {\n }", "public void resetModification()\n {\n _modifiedSinceSave = false;\n }", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "public boolean backupWithoutPrompt() {\n boolean modOK = modIfChanged();\n boolean backedUp = false;\n if (modOK) {\n File backupFolder = getBackupFolder();\n if(backupFolder != null) {\n backedUp = backup (backupFolder);\n if (backedUp) {\n FileSpec fileSpec = recentFiles.get(0);\n fileSpec.setBackupFolder(backupFolder);\n }\n } // end if the user selected a backup location\n } // end if modIfChanged had no problems\n \n if (! backedUp) {\n trouble.report(\"Could not complete backup\", \"Backup Errors\");\n }\n \n return backedUp;\n }", "public void resetFail() {\n borraArchivos();\n addMessage(\"Carga Cancelada\", null);\n }", "@Override\n void undo() {\n assert false;\n }", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "private void endingAction() {\n this.detectChanges();\n if (this.isModifed) {\n //System.out.println(JOptionPane.showConfirmDialog(null, \"Do you want to save unsaved changes?\", \"Hey User!\", JOptionPane.YES_NO_CANCEL_OPTION));\n switch (JOptionPane.showConfirmDialog(null, \"Do you want to save current data?\", \"Hey User!\", JOptionPane.YES_NO_CANCEL_OPTION)) {\n case 0: {\n if (this.file != null) {\n INSTANCE.saveData();\n INSTANCE.dispose();\n System.exit(0);\n break;\n }\n }\n\n case 1: {\n INSTANCE.dispose();\n System.exit(0);\n break;\n }\n }\n\n //cancel op 2\n //no op 1\n //yes op 0\n } else {\n INSTANCE.dispose();\n System.exit(0);\n }\n }", "protected boolean processSeeksCleared(){return false;}", "private void onCancelExistingLibraryDialog() {\n rootView.findViewById(R.id.import_step1_check).setVisibility(View.INVISIBLE);\n rootView.findViewById(R.id.import_step2).setVisibility(View.INVISIBLE);\n ((TextView) rootView.findViewById(R.id.import_step1_folder)).setText(\"\");\n step1FolderButton.setVisibility(View.VISIBLE);\n setCancelable(true);\n }", "private void uploadFileFinished(SucceededEvent event) {\n try {\n // String fileName = event.getFilename();\n // File f = getFile(fileName);\n // f.setReadOnly(READONLY_REPLICATION_MODE);\n } catch (Exception e) {\n Logging.logMessage(Logging.LEVEL_WARN, this,\"%s, %s, %s\", \"Readonly Exception\", \"Can't set file \" + event.getFilename() + \" to ReadOnly.\", e);\n }\n\n // Update der Liste durchführen\n loadXtreemFSData();\n }", "@Override\r\n public void undo() {\n\r\n }", "@Override\n\tpublic void onUndoNotPossible() {\n\n\t}", "void cancelClone();", "@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 }", "public void undoLastCapturedPhoto() {\n\t\t\n\t}", "@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }", "public void undo() {\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == SETTINGS_REQUEST) {\n updatePreferences();\n if(data != null && data.getBooleanExtra(\"overwrite\", false)){\n restartButton.setVisibility(View.VISIBLE);\n restartButton.playAnimation();\n }\n }\n }", "public boolean promptForBackup() {\n boolean modOK = modIfChanged();\n boolean backedUp = false;\n if (modOK) {\n fileChooser.setDialogTitle (\"Make Backup of Club Planner Events folder\");\n fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n FileName eventsFileName = new FileName (home.getUserHome());\n if (goodEventsFile()) {\n eventsFileName = new FileName (eventsFile);\n }\n File backupFolder = getBackupFolder();\n fileChooser.setCurrentDirectory (backupFolder);\n File selectedFile = fileChooser.showSaveDialog (this);\n if(selectedFile != null) {\n File backupFile = selectedFile;\n backedUp = backup (backupFile);\n FileSpec fileSpec = recentFiles.get(0);\n fileSpec.setBackupFolder(backupFile);\n if (backedUp) {\n JOptionPane.showMessageDialog(this,\n \"Backup completed successfully\",\n \"Backup Results\",\n JOptionPane.INFORMATION_MESSAGE,\n Home.getShared().getIcon());\n } // end if backed up successfully\n } // end if the user selected a backup location\n } // end if modIfChanged had no problems\n \n return backedUp;\n }", "@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}", "public void cancel(){\n cancelled = true;\n }", "protected void actionPerformedCancel ()\n {\n Preferences rootPreferences = Preferences.systemRoot ();\n PreferencesTableModel rootPrefTableModel = new PreferencesTableModel (rootPreferences);\n rootPrefTableModel.undo ();\n Preferences userPreferences = Preferences.userRoot ();\n PreferencesTableModel userPrefTableModel = new PreferencesTableModel (userPreferences);\n userPrefTableModel.undo ();\n this.setVisible (false);\n this.dispose ();\n }", "public void mailStoreRequestFailed(MailStoreRequest request, Throwable exception, boolean isFinal) {\n folderMessageCache.commit();\r\n mailStoreServices.fireFolderMessagesAvailable(folderTreeItem, null, false);\r\n }", "@Override\n public void cancel() {\n\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n switch (requestCode) {\r\n case REQUEST_STORAGE_PERMISSION_API29:\r\n if (resultCode == Activity.RESULT_OK) {\r\n Uri uri = data.getData();\r\n root = DocumentFile.fromTreeUri(this, uri);\r\n\r\n // ==> TODO no idea if needed\r\n int takeFlags = data.getFlags();\r\n takeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION |\r\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\r\n\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\r\n this.getContentResolver().takePersistableUriPermission(uri, takeFlags);\r\n }\r\n // <== no idea if needed\r\n\r\n setPath(\"\");\r\n enableWidgets();\r\n }\r\n }\r\n }", "public void saveCurrentFolders() {\n if (!this.oldConfigurationWasSaved) {\n this.oldResourcesFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF);\n this.oldUpdateScriptsFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF);\n this.oldInitScriptsFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF);\n this.oldEnvironmentName = getConfiguration().getString(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF);\n this.oldImpexLocaleCode = getConfiguration().getString(LocalizedImpexImportService.IMPEX_LOCALE_CONF);\n this.oldConfigurationWasSaved = true;\n }\n\n }", "@Override\n public StepResult undoStep(FlightContext context) throws InterruptedException {\n return StepResult.getStepResultSuccess();\n }", "@Override\n public void cancel() {\n }", "String restore(String request) throws RemoteException;", "@Override\n protected void onRestart() {\n super.onRestart();\n Intent returnIntent = new Intent();\n setResult(RESULT_CANCELED, returnIntent);\n onRestart = true;\n finish();\n }", "@Override\n public boolean canUndo() {\n return false;\n }", "public void cancelUpdate(View view) {\n Intent intent = new Intent(getApplicationContext(), SettingsActivity.class);\n startActivity(intent);\n }", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "public abstract void restore();", "@Override\n public void cancel() {\n }", "public void doUpdate() {\n fileChooser.setCurrentDirectory(new File(getPath()));\n fileChooser.rescanCurrentDirectory();\n }", "private void bypassIt(){\n rebootDialog();\n }", "@Override\n protected void handleSetBackup()\n {\n }", "private void cancel() {\n\t\tfinish();\n\t}", "@Override\n T undo();", "private void recallLastDir(String name) {\r\n\t\tString lastDir = prefs.get( PREFS_KEY+name , null ) ;\r\n\t\tif ( lastDir==null ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tFile last = new File( lastDir ) ;\r\n\t\tif ( last.exists() && last.isDirectory() ) {\r\n\t\t\tsetCurrentDirectory( last );\r\n\t\t}\r\n\t}", "public void undo() {\n compositionManager.ungroup(group);\n }", "private void onFolderChange(FolderChangeEvent event) {\n\t\tthis.currentResource = null;\n\t}", "@Override\n protected void onCancel() {\n }", "@Override\r\n public void onNeutral(String callerTag) {\r\n ComponentsGetter cg = (ComponentsGetter)getSherlockActivity();\r\n cg.getFileOperationsHelper()\r\n .removeFile(mTargetFile, true);\r\n \r\n FileDataStorageManager storageManager = cg.getStorageManager();\r\n \r\n boolean containsKeepInSync = false;\r\n if (mTargetFile.isFolder()) {\r\n Vector<OCFile> files = storageManager.getFolderContent(mTargetFile);\r\n for(OCFile file: files) {\r\n containsKeepInSync = file.keepInSync() || containsKeepInSync;\r\n\r\n if (containsKeepInSync)\r\n break;\r\n }\r\n }\r\n\r\n // Remove etag for parent, if file is a keep_in_sync \r\n // or is a folder and contains keep_in_sync \r\n if (mTargetFile.keepInSync() || containsKeepInSync) {\r\n OCFile folder = null;\r\n if (mTargetFile.isFolder()) {\r\n folder = mTargetFile;\r\n } else {\r\n folder = storageManager.getFileById(mTargetFile.getParentId());\r\n }\r\n \r\n folder.setEtag(\"\");\r\n storageManager.saveFile(folder);\r\n }\r\n }", "@Override\n\tpublic boolean doReOpen() { return false; }", "@Override\n public void cancel() {\n\n }", "@Override\n public GitLabFolderAuthorization reconfigure(StaplerRequest request, JSONObject formData)\n throws Descriptor.FormException {\n GitLabFolderAuthorization newFolderAuth = (GitLabFolderAuthorization)super.reconfigure(request, formData);\n if (newFolderAuth != null) {\n // preserve group ID\n newFolderAuth.folderACL.setGroupId(getGroupId());\n }\n\n return newFolderAuth;\n }", "public void restore() {\n this.prefs.edit().putBoolean(PREFKEY_IS_KIOSK, tempIsKiosk).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_TABLET, tempIsTablet).apply();\n this.prefs.edit().putBoolean(PREFKEY_HTTP_SSL, tempSSL).apply();\n this.prefs.edit().putBoolean(PREFKEY_RES_FETCHED, tempFetched).apply();\n this.prefs.edit().putString(PREFKEY_HTTP_PORT, tempHttpPort).apply();\n this.prefs.edit().putString(PREFKEY_HTTP_HOST, tempHttpHost).apply();\n this.prefs.edit().putString(PREFKEY_PASSWORD, temppassword).apply();\n this.prefs.edit().putString(PREFKEY_USERNAME, tempUsername).apply();\n this.prefs.edit().putString(PREFKEY_BOOTSTRAP, tempBootstrap).apply();\n this.prefs.edit().putString(PREFKEY_ROOM_SELECTED, roomSelected).apply();\n this.prefs.edit().putString(PREFKEY_TO_IGNORE, toIgnore).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_IMAGE_DOWNLOADED, isImageDownloaded).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_IMAGE_LAN, isImageLan).apply();\n }", "@Override\n public void onBackPressed() {\n if (!mEditSymptomChanged) {\n super.onBackPressed();\n return;\n }\n //otherwise if there are unsaved changes setup a dialog to warn the user\n //handles the user confirming that changes should be made\n mHomeChecked = false;\n showUnsavedChangesDialogFragment();\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@Override\r\n\t\t\tprotected void restoreContext() {\n\t\t\t\t\r\n\t\t\t}", "public void resetPath();", "@Override\n public Uri undoDeletion(Bundle deletedGroupData) {\n if (!undoDeletionInSim(deletedGroupData)) {\n Log.d(TAG, \"undoDeletionInSim fail, no need undoDeletion in db, return\");\n return null;\n }\n // undo deletion in db\n return super.undoDeletion(deletedGroupData);\n }", "@Test\n\tpublic void editFolderAsUserTest() {\n\t\tauthenticate(\"agent1\");\n\t\tint principalId = actorService.findByPrincipal().getId();\n\t\tFolderForm folderFormAux = new FolderForm();\n\t\tfolderFormAux.setName(\"New auditor5 folder for testing its edition\");\n\t\tFolder folder = folderService.reconstruct(folderFormAux,0);\n\t\tfolderService.save(folder);\n\t\t\n\t\tFolder folderToEdit = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString actualName = folderToEdit.getName();\n\t\tFolderForm folderFormAux2 = new FolderForm();\n\t\tfolderFormAux2.setName(\"New folder name\");\n\t\tFolder folderToSave = folderService.reconstruct(folderFormAux2, folderToEdit.getId());\n\t\tfolderService.save(folderToSave);\n\t\tFolder editedFolder = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString expectedName = editedFolder.getName();\n\t\tAssert.isTrue(!actualName.equals(expectedName));\n\t\tunauthenticate();\t\t\n\t}", "protected void executionSuccess() {\n this.isUndoable = true;\n }", "protected void interrupted() {\n\t\tdrive.setBoth(0);\n\t}", "@Override\n\tpublic void resetLocation() {\n\t\t\n\t}", "private void moveShapeDenied() {\n System.out.println(\"moving file to \" + BUFFER_DENIED_PATH\n + currentFileName);\n File file = new File(BUFFER_ACC_PATH + currentFileName);\n File newFile = new File(BUFFER_DENIED_PATH + currentFileName);\n file.renameTo(newFile);\n }", "protected void failed()\r\n {\r\n //overwrite\r\n }", "@Override\n public void restart() {\n }", "void resetUndoneData(ReadOnlyTaskManager newData);", "public void goHome() {\n shouldWork = false;\n }", "boolean undoLastCommand() throws Exception;", "public void askModification() {\n\t\t\n\t\n\t}", "public void UndoRecover()\n\t{\n\t\t//System.out.println(\"Undo!\");\n\t\tif (m_backupLayerIndex != -1)\n\t\t{\n\t\t\t//if the last change was a new gate added to layer,\n\t\t\t//we need to change again the sizes of layers, as we save them\n\t\t\tif (m_layers.get(m_backupLayerIndex).IsLastChangeNewGate())\n\t\t\t{\n\t\t\t\t//system.out.format(\"Undoing a new gate: resizing the layer %d to have one less item, now %d\\n\", m_backupLayerIndex, m_layersSizes.get(m_backupLayerIndex+1)-1);\n\t\t\t\tLogger.write(\"Undoing a new gate: resizing the layer \" + String.valueOf(m_backupLayerIndex ) + \" to have one less item, now \" + String.valueOf(m_layersSizes.get(m_backupLayerIndex+1)-1 ));\n\t\t\t\tm_layersSizes.set(m_backupLayerIndex+1, m_layersSizes.get(m_backupLayerIndex+1) - 1);\n\t\t\t}\n\t\t\tm_layers.get(m_backupLayerIndex).UndoRecoverLayer();\n\t\t\tm_backupLayerIndex = -1;\n\t\t}\n\t\tif (m_secondBackupLayerIndex != -1)\n\t\t{\n\t\t\tm_layers.get(m_secondBackupLayerIndex).UndoRecoverLayer();\n\t\t\tm_secondBackupLayerIndex = -1;\n\t\t}\n\t\tm_backupLayerIndex = -1;\n\t\tm_secondBackupLayerIndex = -1;\n\t}", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "private void onCancelEditing() {\n setResponsePage(responsePage);\n }" ]
[ "0.7567351", "0.7035862", "0.5843124", "0.5808992", "0.5655878", "0.5596712", "0.5566917", "0.55573606", "0.5552546", "0.5530005", "0.5527632", "0.5526434", "0.55195254", "0.55154216", "0.5512111", "0.55086344", "0.54658943", "0.5461285", "0.5459836", "0.545822", "0.54405564", "0.5435739", "0.542132", "0.54031205", "0.54031205", "0.53786707", "0.53743154", "0.5356062", "0.53510785", "0.53433037", "0.5334389", "0.5330946", "0.5324064", "0.53231555", "0.53231555", "0.53231555", "0.5322037", "0.53075916", "0.52829516", "0.52758026", "0.5263412", "0.5262681", "0.52517575", "0.5247466", "0.5246921", "0.520731", "0.5200605", "0.5184317", "0.5183444", "0.5178252", "0.5173199", "0.51646984", "0.5146816", "0.5126152", "0.5115159", "0.5111097", "0.51110774", "0.5108756", "0.5098921", "0.5097416", "0.5088799", "0.5086604", "0.5084718", "0.50834376", "0.5079258", "0.50774914", "0.5069866", "0.5069064", "0.50682473", "0.50665814", "0.50627244", "0.5062658", "0.50522745", "0.5050151", "0.5049261", "0.50492084", "0.5047428", "0.5038919", "0.50377226", "0.50353837", "0.50345194", "0.5034397", "0.50301576", "0.5028933", "0.50275874", "0.5015985", "0.5015543", "0.50152385", "0.5012989", "0.49985808", "0.4995192", "0.49942252", "0.4990701", "0.49879164", "0.4987885", "0.4987439", "0.498367", "0.498367", "0.498367", "0.49806187" ]
0.8062303
0
modification request has been rejected, restore original home folder state
@Override public void onRequestRejected(final Request request) throws CvqException, CvqInvalidTransitionException, CvqObjectNotFoundException { restoreOriginalHomeFolder((HomeFolderModificationRequest) request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRequestCancelled(final Request request)\n throws CvqException, CvqInvalidTransitionException,\n CvqObjectNotFoundException {\n restoreOriginalHomeFolder((HomeFolderModificationRequest) request);\n }", "private void restoreOriginalHomeFolder(final HomeFolderModificationRequest request)\n throws CvqException {\n \n Set<Object> objectsToUpdate = new HashSet<Object>();\n Set<Object> objectsToRemove = new HashSet<Object>();\n \n // navigate through all the history entries and cancel previous changes\n \n Set<HistoryEntry> historiesSet = getHistoryEntries(request.getId());\n for (HistoryEntry he : historiesSet) {\n logger.debug(\"restoreOriginalHomeFolder() history entry : \" + he.getId());\n \n if (he.getOperation().equals(\"update\")) {\n logger.debug(\"restoreOriginalHomeFolder() update operation\");\n logger.debug(\"restoreOriginalHomeFolder() dealing with property : \" \n + he.getProperty() + \" of class \" + he.getClazz());\n \n // simple field value change\n if (!he.getProperty().startsWith(\"password\")\n && !he.getProperty().equals(\"homeFolder\")\n && !he.getProperty().equals(\"adress\")\n && !he.getProperty().equals(\"individualRoles\")\n && !he.getProperty().equals(\"individuals\")) {\n logger.debug(\"restoreOriginalHomeFolder() simple field value change (\" \n + he.getProperty() + \")\");\n Object object = restoreOldProperty(he, null, null);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n }\n \n // a individual has been planed for removal, re-attach it to home folder\n else if (he.getProperty().equals(\"homeFolder\")) {\n \n if (he.getNewValue() == null) {\n logger.debug(\"restoreOriginalHomeFolder() an object was planned for removal, re-attach it\");\n \n String oldValue = he.getOldValue();\n String oldHomeFolderId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3, \n oldValue.lastIndexOf(']'));\n HomeFolder oldHomeFolder = \n homeFolderService.getById(Long.valueOf(oldHomeFolderId));\n Object object = restoreOldProperty(he, HomeFolder.class, oldHomeFolder);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n } \n }\n \n // an adress change was planned, go back to the original one\n else if (he.getProperty().equals(\"adress\")) {\n logger.debug(\"restoreOriginalHomeFolder() an adress change was planned, \"\n + \"go back\");\n String oldValue = he.getOldValue();\n String oldAdressId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3,\n oldValue.lastIndexOf(']'));\n Address oldAdress = \n (Address) genericDAO.findById(Address.class, Long.valueOf(oldAdressId));\n Object object = restoreOldProperty(he, Address.class, oldAdress);\n \n if (!objectsToRemove.contains(object))\n objectsToUpdate.add(object);\n }\n \n else if (he.getProperty().equals(\"individualRoles\")) {\n logger.debug(\"restoreOriginalHomeFolder() a role change was planned, go back\");\n \n // load the owner to restore its original roles\n Individual individual = \n (Individual) genericDAO.findById(Individual.class, he.getObjectId());\n Set<IndividualRole> oldIndividualRoles = new HashSet<IndividualRole>();\n \n // take old values and add them back to the set\n if (he.getOldValue() != null) {\n String[] oldValues =\n he.getOldValue().substring(1, he.getOldValue().length() - 1).split(\",\");\n for (int i=0; i < oldValues.length; i++) {\n String oldValue = oldValues[i];\n String oldIndividualRoleId =\n oldValue.substring(oldValue.indexOf(\"id=\") + 3,\n oldValue.lastIndexOf(']'));\n logger.debug(\"restoreOriginalHomeFolder() got old role id : \" \n + oldIndividualRoleId);\n IndividualRole individualRole = \n (IndividualRole) genericDAO.findById(IndividualRole.class, \n Long.valueOf(oldIndividualRoleId));\n oldIndividualRoles.add(individualRole);\n }\n }\n \n if (!oldIndividualRoles.isEmpty()) {\n logger.debug(\"restoreOriginalHomeFolder() restoring roles (\" \n + oldIndividualRoles.size() + \") for individual \"\n + individual.getId());\n individual.setIndividualRoles(oldIndividualRoles);\n \n if (!objectsToRemove.contains(individual))\n objectsToUpdate.add(individual);\n }\n }\n } else if (he.getOperation().equals(\"created\")) {\n logger.debug(\"restoreOriginalHomeFolder() creation operation\"); \n \n Object object = \n genericDAO.findById(getClassFromHistoryEntry(he.getClazz()), he.getObjectId());\n logger.debug(\"restoreOriginalHomeFolder() object \" + object \n + \" was planned for addition, unlink it\");\n \n if (object instanceof Individual) {\n if (!objectsToRemove.contains(object)) {\n Individual individual = (Individual) object;\n homeFolderService.deleteIndividual(request.getHomeFolderId(), \n individual.getId());\n }\n } else if (object instanceof IndividualRole) {\n IndividualRole individualRole = (IndividualRole) object;\n List<Individual> individuals = \n homeFolderService.getIndividuals(request.getHomeFolderId());\n for (Individual individual : individuals) {\n if (individual.getIndividualRoles() == null)\n continue;\n if (individual.getIndividualRoles().remove(individualRole)) {\n logger.debug(\"restoreOriginalHomeFolder() removed role \"\n + individualRole.getRole() + \" from \"\n + individual.getId() + \" on \"\n + individualRole.getIndividualId());\n break;\n }\n }\n }\n \n if (objectsToUpdate.contains(object)) {\n logger.debug(\"restoreOriginalHomeFolder() was in update list, removing\");\n objectsToUpdate.remove(object);\n }\n objectsToRemove.add(object);\n }\n }\n \n // clear history entries and persist changes in DB\n \n updateObjects(objectsToUpdate, objectsToRemove);\n \n historyEntryDAO.deleteEntries(request.getId());\n }", "public boolean shouldRevertToOriginalAuthorizationOnCopy() {\n return false;\n }", "public void mailStoreRequestFailed(MailStoreRequest request, Throwable exception, boolean isFinal) {\n folderMessageCache.commit();\r\n mailStoreServices.fireFolderMessagesAvailable(folderTreeItem, null, false);\r\n }", "public void restoreOldFolders() {\n setConfigurationAndLog(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF, this.oldResourcesFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF, this.oldUpdateScriptsFolder);\n setConfigurationAndLog(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF, this.oldInitScriptsFolder);\n setConfigurationAndLog(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF, this.oldEnvironmentName);\n setConfigurationAndLog(LocalizedImpexImportService.IMPEX_LOCALE_CONF, this.oldImpexLocaleCode);\n }", "@Override\n public GitLabFolderAuthorization reconfigure(StaplerRequest request, JSONObject formData)\n throws Descriptor.FormException {\n GitLabFolderAuthorization newFolderAuth = (GitLabFolderAuthorization)super.reconfigure(request, formData);\n if (newFolderAuth != null) {\n // preserve group ID\n newFolderAuth.folderACL.setGroupId(getGroupId());\n }\n\n return newFolderAuth;\n }", "String restore(String request) throws RemoteException;", "public void mailStoreRequestFailed(MailStoreRequest request, Throwable exception, boolean isFinal) {\n endFolderRefreshOperation(false);\r\n }", "@Override\n protected void handleSetBackup()\n {\n }", "@Override\n public void restore() {\n }", "public boolean backupWithoutPrompt() {\n boolean modOK = modIfChanged();\n boolean backedUp = false;\n if (modOK) {\n File backupFolder = getBackupFolder();\n if(backupFolder != null) {\n backedUp = backup (backupFolder);\n if (backedUp) {\n FileSpec fileSpec = recentFiles.get(0);\n fileSpec.setBackupFolder(backupFolder);\n }\n } // end if the user selected a backup location\n } // end if modIfChanged had no problems\n \n if (! backedUp) {\n trouble.report(\"Could not complete backup\", \"Backup Errors\");\n }\n \n return backedUp;\n }", "private void moveShapeDenied() {\n System.out.println(\"moving file to \" + BUFFER_DENIED_PATH\n + currentFileName);\n File file = new File(BUFFER_ACC_PATH + currentFileName);\n File newFile = new File(BUFFER_DENIED_PATH + currentFileName);\n file.renameTo(newFile);\n }", "public void requestFolderRefreshRequired() {\r\n if(!refreshInProgress.get()) {\r\n cleanBeforeNextUse();\r\n }\r\n }", "public Resolution undoCheckOut() throws ServiceException {\r\n vocabularyService.undoCheckOut(vocabularyFolder.getId(), getUserName());\r\n addSystemMessage(\"Checked out version successfully deleted\");\r\n RedirectResolution resolution = new RedirectResolution(VocabularyFolderActionBean.class);\r\n resolution.addParameter(\"vocabularyFolder.identifier\", vocabularyFolder.getIdentifier());\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", false);\r\n return resolution;\r\n }", "@Override\n public CreationBean modify(final HomeFolderModificationRequest hfmr,\n final List<Adult> newAdults, final List<Child> newChildren, Address adress)\n throws CvqException {\n for (int i = 0; i < newAdults.size(); i++) {\n if (newAdults.get(i).getId() != null) {\n Adult mergeAdult = (Adult)HibernateUtil.getSession().merge(newAdults.get(i));\n newAdults.set(i, mergeAdult);\n }\n }\n for (int i = 0; i < newChildren.size(); i++) {\n if (newChildren.get(i).getId() != null) {\n Child mergeChild = (Child)HibernateUtil.getSession().merge(newChildren.get(i));\n newChildren.set(i, mergeChild);\n }\n }\n if (adress.getId() != null)\n adress = (Address)HibernateUtil.getSession().merge(adress);\n \n historyInterceptor.setCurrentRequest(hfmr);\n historyInterceptor.setCurrentUser(SecurityContext.getCurrentUserLogin());\n historyInterceptor.setCurrentSession(HibernateUtil.getSession());\n \n CreationBean cb = null;\n \n HomeFolder oldHomeFolder = homeFolderService.getById(hfmr.getHomeFolderId());\n \n // TODO REFACTORING\n // home folder will have to be validated again\n oldHomeFolder.setState(ActorState.PENDING);\n \n // take a snapshot of the \"old\" home folder\n // (ie as it was before issuing this modification request)\n \n List<Child> oldChildren = new ArrayList<Child>();\n List<Adult> oldAdults = new ArrayList<Adult>();\n for (Individual tempInd : oldHomeFolder.getIndividuals()) {\n if (tempInd instanceof Adult) {\n oldAdults.add((Adult) tempInd);\n } else {\n oldChildren.add((Child) tempInd);\n }\n }\n \n // first, deal with modifications related to children\n for (Child child : oldChildren) {\n logger.debug(\"modify() looking at old child : \" + child);\n if (!containsIndividual(newChildren, child)) {\n logger.debug(\"modify() child removed from home folder : \" + child);\n // just unlink from its home folder, don't remove it yet from DB\n // because request can be refused\n // if the request is validated, the child will be removed then\n child.setHomeFolder(null);\n \n // TODO INDEXED LISTS TO TEST MORE\n oldHomeFolder.getIndividuals().remove(child);\n \n individualService.modify(child);\n }\n }\n for (Child newChild : newChildren) {\n logger.debug(\"modify() looking at new child : \" + newChild);\n if (!containsIndividual(oldChildren, newChild)) {\n logger.debug(\"modify() child added to home folder : \" + newChild);\n \n individualService.create(newChild, oldHomeFolder, adress, false);\n oldChildren.add(newChild);\n }\n }\n \n // then, deal with modifications related to home folder adults\n boolean loggedInUserChange = false;\n for (Adult adult : oldAdults) {\n logger.debug(\"modify() looking at old adult : \" + adult);\n if (!containsIndividual(newAdults, adult)) {\n logger.debug(\"modify() adult removed from home folder : \" + adult);\n \n // check if adult was the currently logged in user\n // if so, prepare for a hot swap\n if (SecurityContext.getCurrentEcitizen().getLogin().equals(adult.getLogin())) {\n logger.info(\"modify() currently logged in user is going to be removed from its home folder !\");\n loggedInUserChange = true;\n }\n \n // just unlink from its home folder, don't remove it yet from DB\n // because request can be refused\n // if the request is validated, the adult will be removed then\n adult.setHomeFolder(null);\n \n // TODO INDEXED LISTS TO TEST MORE\n oldHomeFolder.getIndividuals().remove(adult);\n \n individualService.modify(adult);\n } else {\n if (!adult.getLogin().startsWith(adult.getFirstName().toLowerCase() + \".\" \n + adult.getLastName().toLowerCase())) {\n logger.debug(\"modify() adult changed of first or last name\");\n logger.debug(\"modify() adult login : \" + adult.getLogin());\n logger.debug(\"modify() adult names : \" + adult.getFirstName() + \" \" + adult.getLastName());\n }\n }\n }\n \n for (Adult adult : newAdults) {\n logger.debug(\"modify() looking at new adult : \" + adult);\n \n // new passwords generation handling\n // -> a new adult which is home folder responsible\n // -> an home folder responsible change inside home folder\n if (adult.getPassword() != null && !adult.getPassword().startsWith(\"{SHA}\")) {\n adult.setPassword(individualService.encryptPassword(adult.getPassword()));\n }\n \n if (!containsIndividual(oldAdults, adult)) {\n logger.debug(\"modify() adult added to home folder : \" + adult);\n individualService.create(adult, oldHomeFolder, adult.getAdress(), true);\n }\n \n // currently logged in user has been removed from the home folder\n // set the new home folder responsible as the new logged in user\n if (loggedInUserChange) {\n \n for (IndividualRole individualRole : adult.getIndividualRoles()) {\n if (individualRole.getRole().equals(RoleType.HOME_FOLDER_RESPONSIBLE)) {\n logger.debug(\"modify() Got the new logged in user with login : \"\n + adult.getLogin());\n cb = new CreationBean();\n cb.setLogin(adult.getLogin());\n cb.setRequestId(hfmr.getId());\n // and set it as the request's requester, to pass security checks\n hfmr.setRequesterId(adult.getId());\n SecurityContext.setCurrentEcitizen(adult);\n }\n }\n }\n }\n \n homeFolderService.checkAndFinalizeRoles(hfmr.getHomeFolderId(), newAdults, newChildren);\n \n requestDAO.update(hfmr);\n \n // TODO REFACTORING : branch into common treatments\n logger.debug(\"modify() Gonna generate a pdf of the request\");\n byte[] pdfData =\n certificateService.generateRequestCertificate(hfmr);\n requestActionService.addCreationAction(hfmr.getId(), new Date(), pdfData);\n \n super.notifyRequestCreation(hfmr, pdfData);\n \n // inform history interceptor that it could stop intercepting after the next postFlush()\n historyInterceptor.releaseInterceptor();\n \n return cb;\n }", "@Override\n\tpublic void undo() {\n\t\tsecurity.off();\n\t}", "protected void failed()\r\n {\r\n //overwrite\r\n }", "private void uploadFileFinished(SucceededEvent event) {\n try {\n // String fileName = event.getFilename();\n // File f = getFile(fileName);\n // f.setReadOnly(READONLY_REPLICATION_MODE);\n } catch (Exception e) {\n Logging.logMessage(Logging.LEVEL_WARN, this,\"%s, %s, %s\", \"Readonly Exception\", \"Can't set file \" + event.getFilename() + \" to ReadOnly.\", e);\n }\n\n // Update der Liste durchführen\n loadXtreemFSData();\n }", "@Test\n\tpublic void editFolderAsUserTest() {\n\t\tauthenticate(\"agent1\");\n\t\tint principalId = actorService.findByPrincipal().getId();\n\t\tFolderForm folderFormAux = new FolderForm();\n\t\tfolderFormAux.setName(\"New auditor5 folder for testing its edition\");\n\t\tFolder folder = folderService.reconstruct(folderFormAux,0);\n\t\tfolderService.save(folder);\n\t\t\n\t\tFolder folderToEdit = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString actualName = folderToEdit.getName();\n\t\tFolderForm folderFormAux2 = new FolderForm();\n\t\tfolderFormAux2.setName(\"New folder name\");\n\t\tFolder folderToSave = folderService.reconstruct(folderFormAux2, folderToEdit.getId());\n\t\tfolderService.save(folderToSave);\n\t\tFolder editedFolder = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString expectedName = editedFolder.getName();\n\t\tAssert.isTrue(!actualName.equals(expectedName));\n\t\tunauthenticate();\t\t\n\t}", "protected void updatePermanentWorkItems() throws NbaBaseException {\t//SPR2992 changed method signature\n\t\tgetLogger().logDebug(\"Starting updatePermanentWorkItems\");\n\t\t// get the receipt date from the temporary work item\n\t\t// NBA3290 code deleted\n\t\tfor (int i = 0; i < getPermWorkItems().size(); i++) {\t//SPR2992\n\t\t\tNbaDst perm = (NbaDst) getPermWorkItems().get(i);\t//SPR2992\n\t\t\t//NBA213 deleted code\n\t\t\tsetWiStatus(new NbaProcessStatusProvider(getUser(), perm)); //SPR1715 SPR2992\n\t\t\tperm.setStatus(getWiStatus().getPassStatus());\t//SPR2992\n\t\t\tNbaUtils.setRouteReason(perm,perm.getStatus());//APSL462\n\t\t\tperm.increasePriority(getWiStatus().getWIAction(), getWiStatus().getWIPriority());\t//SPR2992\n\t\t\tcopyCreateStation(perm);//ALS5191\n\t\t\tupdateWork(getUser(), perm);\t//SPR3009, NBA213\n\t\t\tif (perm.isSuspended()) {\n\t\t\t\tNbaSuspendVO suspendVO = new NbaSuspendVO();\n\t\t\t\tsuspendVO.setTransactionID(perm.getID());\n\t\t\t\tunsuspendWork(getUser(), suspendVO);\t//SPR3009, NBA213\n\t\t\t}\n\t\t\tif (!perm.getID().equals(getWork().getID())) { // APSL5055-NBA331.1\n\t\t\t\tunlockWork(getUser(), perm);\t//SPR3009, NBA213\t\t\t\t\n\t\t\t} // APSL5055-NBA331.1 \n\t\t\t//NBA213 deleted code\n\t\t}\n\t}", "String backup(String request) throws RemoteException;", "public void onRestorePendingState() {\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 }", "public boolean promptForBackup() {\n boolean modOK = modIfChanged();\n boolean backedUp = false;\n if (modOK) {\n fileChooser.setDialogTitle (\"Make Backup of Club Planner Events folder\");\n fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n FileName eventsFileName = new FileName (home.getUserHome());\n if (goodEventsFile()) {\n eventsFileName = new FileName (eventsFile);\n }\n File backupFolder = getBackupFolder();\n fileChooser.setCurrentDirectory (backupFolder);\n File selectedFile = fileChooser.showSaveDialog (this);\n if(selectedFile != null) {\n File backupFile = selectedFile;\n backedUp = backup (backupFile);\n FileSpec fileSpec = recentFiles.get(0);\n fileSpec.setBackupFolder(backupFile);\n if (backedUp) {\n JOptionPane.showMessageDialog(this,\n \"Backup completed successfully\",\n \"Backup Results\",\n JOptionPane.INFORMATION_MESSAGE,\n Home.getShared().getIcon());\n } // end if backed up successfully\n } // end if the user selected a backup location\n } // end if modIfChanged had no problems\n \n return backedUp;\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n switch (requestCode) {\r\n case REQUEST_STORAGE_PERMISSION_API29:\r\n if (resultCode == Activity.RESULT_OK) {\r\n Uri uri = data.getData();\r\n root = DocumentFile.fromTreeUri(this, uri);\r\n\r\n // ==> TODO no idea if needed\r\n int takeFlags = data.getFlags();\r\n takeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION |\r\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\r\n\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\r\n this.getContentResolver().takePersistableUriPermission(uri, takeFlags);\r\n }\r\n // <== no idea if needed\r\n\r\n setPath(\"\");\r\n enableWidgets();\r\n }\r\n }\r\n }", "public void saveChanges() throws MessagingException {\n/* 546 */ throw new IllegalWriteException(\"POP3 messages are read-only\");\n/* */ }", "public void saveCurrentFolders() {\n if (!this.oldConfigurationWasSaved) {\n this.oldResourcesFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.RESOURCES_FOLDER_CONF);\n this.oldUpdateScriptsFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.UPDATE_SCRIPTS_FOLDER_CONF);\n this.oldInitScriptsFolder = getConfiguration().getString(ArecoDeploymentScriptFinder.INIT_SCRIPTS_FOLDER_CONF);\n this.oldEnvironmentName = getConfiguration().getString(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF);\n this.oldImpexLocaleCode = getConfiguration().getString(LocalizedImpexImportService.IMPEX_LOCALE_CONF);\n this.oldConfigurationWasSaved = true;\n }\n\n }", "public void askModification() {\n\t\t\n\t\n\t}", "public abstract void restore();", "protected void restoreLastState() {\n\t\tInteger ii = Accessors.INT_ACCESSOR.get(\"numberOfFiles\");\n\t\tif(ii == null)\n\t\t\tii = 0;\n\t\tint jj = 0;\n\t\t\n\t\tFile file;\n\t\twhile(jj < ii) {\n\t\t\tfile = new File(Preference.PREFERENCES_NODE.get(\"editSession\" + ++jj, \"\"));\n\t\t\topen(file);\n\t\t}\n\t}", "protected void changeFolder(Folder newFolder, AjaxRequestTarget target) {\n\t\tcurrentFolder = newFolder;\n\t\tcurrentResource = null;\n\t\tsend(getPage(), Broadcast.BREADTH, new FolderChangeEvent(target));\n\t}", "public void allowManageStorage() {\n Intent intent = new Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION);\n intent.setData(Uri.parse(\"package:com.live.gitandroidmalware\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private void checkFileSystemResource(UserRequest ureq) {\n\n if (FolderCommandStatus.STATUS_FAILED == FolderCommandHelper.sanityCheck(getWindowControl(), folderComponent)) {\n folderComponent.updateChildren();\n }\n\n VFSItem item = VFSManager.resolveFile(folderComponent.getRootContainer(), ureq.getModuleURI());\n\n if (FolderCommandStatus.STATUS_FAILED == FolderCommandHelper.sanityCheck2(getWindowControl(), folderComponent, ureq, item)) {\n folderComponent.setCurrentContainerPath(folderComponent.getCurrentContainerPath());\n }\n\n }", "public Resolution cancelSave() {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyFolderActionBean.class);\r\n resolution.addParameter(\"vocabularyFolder.identifier\", vocabularyFolder.getIdentifier());\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n return resolution;\r\n }", "public void markFileAsNotSaved()\r\n {\r\n saved = false;\r\n }", "@Override\n\tprotected void onPostExecute(String path) {\n\t\t//Remove Notificacions\n \t\tmNotificationManager.cancel(mId);\n \t\tIntent i = new Intent();\n\t i.setAction(Intent.ACTION_VIEW);\n\t File f = new File(path);\n\t f.setReadable(true, false);\n\t i.setDataAndType(Uri.fromFile(f), \"application/vnd.android.package-archive\" );\n\t i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t Log.d(context.getString(R.string.app_name), \"Installing new version\");\n\t context.startActivity(i);\n\t}", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "public void setChunkAsReclaimed(){\n this.setState(State.RECLAIMED);\n this.remNetworkCopy(Server.getInstance().getId());\n }", "@Override\n public FileStorageResult<String> updateLastKnownFolder(FileStorageFolder folder, boolean ignoreWarnings, FileStorageFolder toUpdate) throws OXException {\n if (SetterAwareFileStorageFolder.class.isInstance(toUpdate) && ((SetterAwareFileStorageFolder) toUpdate).containsSubscribed()) {\n\n //Check for un-subscription and check if the last folder is going to be unscubscribed\n if (false == toUpdate.isSubscribed()) {\n List<FileStorageFolder> subscribedFolders = getVisibleRootFolders();\n Optional<FileStorageFolder> folderToUnsubscibe = subscribedFolders.stream().filter(f -> f.getId().equals(folder.getId())).findFirst();\n if (folderToUnsubscibe.isPresent()) {\n subscribedFolders.removeIf(f -> f == folderToUnsubscibe.get());\n if (subscribedFolders.isEmpty()) {\n //The last folder is going to be unsubscribed\n if (ignoreWarnings) {\n //Delete\n getService().getAccountManager().deleteAccount(getAccount(), session);\n } else {\n //Throw a warning\n String folderName = folderToUnsubscibe.get().getName();\n String accountName = getAccount().getDisplayName();\n return FileStorageResult.newFileStorageResult(null, Arrays.asList(ShareSubscriptionExceptions.ACCOUNT_WILL_BE_REMOVED.create(folderName, accountName)));\n }\n return FileStorageResult.newFileStorageResult(null, null);\n }\n }\n }\n\n //Do the update\n getSubscribedHelper().setSubscribed(session, folder, B(toUpdate.isSubscribed()));\n return FileStorageResult.newFileStorageResult(folder.getId(), null);\n }\n return FileStorageResult.newFileStorageResult(null, null);\n }", "void cancelBaseStateOverrideRequest() {\n cancelCurrentBaseStateRequestLocked();\n }", "public void setBackupServerFolderLocation(String argBackupServerFolderLoaction){\n\t backupServerFolderLocation=argBackupServerFolderLoaction;\n }", "public void restore() {\n this.prefs.edit().putBoolean(PREFKEY_IS_KIOSK, tempIsKiosk).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_TABLET, tempIsTablet).apply();\n this.prefs.edit().putBoolean(PREFKEY_HTTP_SSL, tempSSL).apply();\n this.prefs.edit().putBoolean(PREFKEY_RES_FETCHED, tempFetched).apply();\n this.prefs.edit().putString(PREFKEY_HTTP_PORT, tempHttpPort).apply();\n this.prefs.edit().putString(PREFKEY_HTTP_HOST, tempHttpHost).apply();\n this.prefs.edit().putString(PREFKEY_PASSWORD, temppassword).apply();\n this.prefs.edit().putString(PREFKEY_USERNAME, tempUsername).apply();\n this.prefs.edit().putString(PREFKEY_BOOTSTRAP, tempBootstrap).apply();\n this.prefs.edit().putString(PREFKEY_ROOM_SELECTED, roomSelected).apply();\n this.prefs.edit().putString(PREFKEY_TO_IGNORE, toIgnore).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_IMAGE_DOWNLOADED, isImageDownloaded).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_IMAGE_LAN, isImageLan).apply();\n }", "void cancelOverrideRequest() {\n cancelCurrentRequestLocked();\n }", "@Override\n public HomeFolderModificationRequest create(final Long homeFolderId, final Long requesterId)\n throws CvqException, CvqObjectNotFoundException {\n HomeFolder homeFolder = homeFolderService.getById(homeFolderId);\n checkIsAuthorized(homeFolder);\n \n HomeFolderModificationRequest hfmr = new HomeFolderModificationRequest();\n hfmr.setHomeFolderId(homeFolderId);\n hfmr.setRequesterId(requesterId);\n hfmr.setRequestType(requestTypeService.getRequestTypeByLabel(getLabel()));\n performBusinessChecks(hfmr);\n \n setAdministrativeInformation(hfmr);\n requestDAO.create(hfmr);\n return hfmr;\n }", "private File getBackupFolder() {\n File backupFolder = home.getUserHome();\n if (goodEventsFile()) { \n FileSpec fileSpec = recentFiles.get(0);\n String backupFolderStr = fileSpec.getBackupFolder();\n File defaultBackupFolder = new File (fileSpec.getFolder(), \"backups\");\n if (backupFolderStr == null\n || backupFolderStr.length() < 2) {\n backupFolder = defaultBackupFolder;\n } else {\n backupFolder = new File (backupFolderStr);\n if (backupFolder.exists()\n && backupFolder.canWrite()) {\n // leave as-is\n } else {\n backupFolder = defaultBackupFolder;\n }\n }\n }\n return backupFolder;\n }", "void recover();", "public void revert()\n {\n throw new UnsupportedOperationException(\"this is a security delegate object\"); \n }", "public final synchronized void restart() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t}", "@Override\n\tpublic boolean renew() {\n\t\treturn false;\n\t}", "public void markRequestRetryReplace() throws JNCException {\n markLeafReplace(\"requestRetry\");\n }", "public void beforeExit (){\n\t\tsynchronized (this){\n\t\t\tsetChanged ();\n\t\t\tnotifyObservers (ObserverCodes.APPLICATIONEXITING);\n\t\t}\n\t\tUserSettings.getInstance ().storeProperties ();\n\t\t\n\t\tcloseActiveStoreData ();\n\t\t\n\t\tActionPool.getInstance ().getProjectSaveAction ().execute ();\n\t\t/* Forza chiusura logger. */\n\t\t_logger.close ();\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == SETTINGS_REQUEST) {\n updatePreferences();\n if(data != null && data.getBooleanExtra(\"overwrite\", false)){\n restartButton.setVisibility(View.VISIBLE);\n restartButton.playAnimation();\n }\n }\n }", "public void performRecovery();", "@Override\r\n public void onPermissionDenied(PermissionDeniedResponse response) {\n if (response.isPermanentlyDenied()) {\r\n showSettingsDialog();\r\n }\r\n }", "@Override\r\n public void onPermissionDenied(PermissionDeniedResponse response) {\n if (response.isPermanentlyDenied()) {\r\n showSettingsDialog();\r\n }\r\n }", "public void resetModification()\n {\n _modifiedSinceSave = false;\n }", "@Override\r\n\t\t\tprotected void restoreContext() {\n\t\t\t\t\r\n\t\t\t}", "public abstract void doBackup();", "private void checkout() {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }", "protected boolean processSeeksCleared(){return false;}", "@Test\n public void testRedeployAfterExpiredValidationOverride() {\n ManualClock clock = new ManualClock(\"2016-10-09T00:00:00\");\n List<ModelFactory> modelFactories = List.of(createHostedModelFactory(clock),\n createFailingModelFactory(Version.fromString(\"1.0.0\"))); // older than default\n DeployTester tester = new DeployTester.Builder(temporaryFolder).modelFactories(modelFactories)\n .build();\n tester.deployApp(\"src/test/apps/validationOverride/\");\n\n // Redeployment from local active works\n {\n Optional<com.yahoo.config.provision.Deployment> deployment = tester.redeployFromLocalActive();\n assertTrue(deployment.isPresent());\n deployment.get().activate();\n }\n\n clock.advance(Duration.ofDays(2)); // validation override expires\n\n // Redeployment from local active also works after the validation override expires\n {\n Optional<com.yahoo.config.provision.Deployment> deployment = tester.redeployFromLocalActive();\n assertTrue(deployment.isPresent());\n deployment.get().activate();\n }\n\n // However, redeployment from the outside fails after this date\n {\n try {\n tester.deployApp(\"src/test/apps/validationOverride/\", \"myApp\");\n fail(\"Expected redeployment to fail\");\n }\n catch (Exception expected) {\n // success\n }\n }\n }", "public void undo() throws ProvisioningException {\n try(ProvisioningLayout<FeaturePackRuntimeBuilder> layout = newConfigLayout(StateHistoryUtils.readUndoConfig(home, log), Collections.emptyMap())) {\n doProvision(layout, getFsDiff(), true);\n }\n }", "public void resetFail() {\n borraArchivos();\n addMessage(\"Carga Cancelada\", null);\n }", "@RequestMapping(value=\"/admin/restore\", method = RequestMethod.GET)\r\n public String restore() throws JAXBException, IOException {\r\n return \"admin/restore\";\r\n }", "@Override\n\tpublic void resetFileDeliveryNotification() {\n\t\t\n\t}", "@Override\n public void onPermissionDenied(PermissionDeniedResponse response) {\n if (response.isPermanentlyDenied()) {\n showSettingsDialog();\n }\n }", "static void refreshFileSystem() {\n \t// Clear all existing registrations on the server via CORBA for this username\n server.clearSharedFiles(username);\n server.clearNotSharedFiles(username);\n // Register the files on the server through CORBA that have been added to the directories manually\n server.registerFiles(username);\n System.out.println();\n return;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tUtils.upgradeRootPermission(getPackageCodePath());\n\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void appUpdateFaild() {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t}", "private void replenishAuthFolderList(List<Folder> authFolderList) throws BizfwServiceException {\n List<Folder> parentFolderList = new ArrayList<>();\n for (Folder folder : authFolderList) {\n List<Folder> tempParentFolderList = getParentFolders(folder);\n parentFolderList.addAll(tempParentFolderList);\n }\n for (Folder folder : parentFolderList) {\n if (!authFolderList.contains(folder)) {\n authFolderList.add(folder);\n }\n }\n }", "@Override\n void undo() {\n assert false;\n }", "public static void main_revertBackup(){\n try {\n table = (HiringTable) tableClone.clone();\n System.out.println(\"Successfully reverted to the backup copy.\");\n } catch (CloneNotSupportedException ex){\n System.out.println(\"Clone not successful.\");\n main_menu();\n }\n }", "@Override\n public void contentChanged() {\n unpackFilesFromArchiveRegexpType = unpackFilesFromArchRegexp.getText();\n model.setUnpackFilesFromArchiveRegexpOrFileRestrictions(unpackFilesFromArchiveRegexpType);\n }", "public void onPowerSaveUnwhitelisted(AppStateTracker sender) {\n updateAllJobs();\n unblockAllUnrestrictedAlarms();\n }", "@Override\n protected void done() {\n super.done();\n if (!this.isCancelled()) {\n openMergeModifiedFile(); \n }\n }", "public void recover() {\n _siteStatus = true;\n for (Integer varIndex : _dataMap.keySet()) {\n List<Data> dataList;\n if (varIndex % 2 == 0) {\n dataList = _dataMap.get(varIndex);\n Data d = dataList.get(dataList.size() - 1);\n // set the last commit variable to unavailable to read\n d.setAccess(false);\n // set the unavailable time for the variable which is the time it fails\n // When a particular version of variable is unavailable, it will never\n // become available, but we may have new version of variable\n d.setUnavailableTime(_lastFailTime);\n }\n }\n }", "@Test\n public void testRevokePropagatedOnUpgradeNewToNewModel_part2() throws Exception {\n assertPermissionsGrantState(new String[] {Manifest.permission.READ_CALENDAR},\n PackageManager.PERMISSION_GRANTED);\n // Also make sure one of the not granted permissions is still not granted\n assertPermissionsGrantState(new String[] {Manifest.permission.READ_EXTERNAL_STORAGE},\n PackageManager.PERMISSION_DENIED);\n }", "public void resetReferenciado();", "private void resetPattenIfNeeded() {\n if (KeyguardCfg.isBackupPinEnabled() && getSecurityMode() == SecurityMode.PIN && this.mLockPatternUtils.isLockPatternEnabled(KeyguardUpdateMonitor.getCurrentUser())) {\n Intent ai = new Intent(\"com.android.settings.action.HW_RESET_NEW_PASSWORD\");\n ai.setFlags(268435456);\n OsUtils.startUserActivity(this.mContext, ai);\n }\n }", "public static void noOverwrite() {\n\t\tdefaultOverwriteMode = NO_OVERWRITE;\n\t}", "private void tempTOuserFolder (HttpServletRequest request,String folderName,String fileName,String original_name,String fileType)throws IOException{\n try {\n String tempPath=request.getSession().getServletContext().getRealPath(\"/\")+\"\\\\\"+REPOSITORY+\"\\\\\"+username+\"\\\\\"+TEMP;\n String persistentPath=request.getSession().getServletContext().getRealPath(\"/\")+\"\\\\\"+REPOSITORY+\"\\\\\"+username+\"\\\\\"+PERSISTENT+\"\\\\\"+folderName;\n File newFile=new File(persistentPath);\n if(!newFile.exists()){\n newFile.mkdirs();//创建永久文件路径\n }\n if(original_name.endsWith(\".csv\")){\n original_name.replace(\"csv\",\"xls\");\n System.out.println(original_name);\n }\n if(original_name.endsWith(\".txt\")){\n original_name.replace(\"txt\",\"xls\");\n System.out.println(original_name);\n }\n //临时文件\n File oldFile=new File(tempPath,original_name);\n if(oldFile==null){\n return;\n }\n //永久文件\n StringBuffer strBuffer=new StringBuffer(fileName);\n strBuffer.append(\".\").append(fileType);\n System.out.println(\"strbuffer:\"+strBuffer);\n File file=new File(newFile,new String(strBuffer));\n Files.copy(oldFile.toPath(), file.toPath());\n oldFile.delete();\n }catch (IOException io){\n io.printStackTrace();\n throw new IOException(\"文件移动失败!\");\n\n }\n }", "public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }", "private void updateFiles() {\n\t}", "public void resetRemoteObject() {\n synchronized (INSTANCE_LOCK) {\n if (resetFlag) {\n IRemoteObject sysAbility = SysAbilityManager.getSysAbility(403);\n if (sysAbility == null) {\n HiLog.info(LABEL_LOG, \"BundleManager reset remoteObject failed, remote is null\", new Object[0]);\n return;\n }\n if (!sysAbility.addDeathRecipient(new FormManagerDeathRecipient(), 0)) {\n HiLog.info(LABEL_LOG, \"BundleManager register BundleManagerDeathRecipient failed\", new Object[0]);\n }\n this.remote = sysAbility;\n resetFlag = false;\n }\n }\n }", "public void doFolder_permissions(RunData data, Context context)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState(((JetspeedRunData)data).getJs_peid());\n\t\tParameterParser params = data.getParameters();\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\t// get the current collection id and the related site\n\t\tString collectionId = params.getString(\"collectionId\"); //(String) state.getAttribute (STATE_COLLECTION_ID);\n\t\tString title = \"\";\n\t\ttry\n\t\t{\n\t\t\ttitle = ContentHostingService.getProperties(collectionId).getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t}\n\t\tcatch (PermissionException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"notread\"));\n\t\t}\n\t\tcatch (IdUnusedException e)\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"notfindfol\"));\n\t\t}\n\n\t\t// the folder to edit\n\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(collectionId));\n\t\tstate.setAttribute(PermissionsHelper.TARGET_REF, ref.getReference());\n\n\t\t// use the folder's context (as a site) for roles\n\t\tString siteRef = SiteService.siteReference(ref.getContext());\n\t\tstate.setAttribute(PermissionsHelper.ROLES_REF, siteRef);\n\n\t\t// ... with this description\n\t\tstate.setAttribute(PermissionsHelper.DESCRIPTION, rb.getString(\"setpermis\") + \" \" + title);\n\n\t\t// ... showing only locks that are prpefixed with this\n\t\tstate.setAttribute(PermissionsHelper.PREFIX, \"content.\");\n\n\t\t// get into helper mode with this helper tool\n\t\tstartHelper(data.getRequest(), \"sakai.permissions.helper\");\n\n\t}", "public default boolean canBePermanent(){ return false; }", "public void resetForExecutionForRetry() {\n assertInvariants(ItemProcessingState.WAIT_FOR_MAPPING_UPDATE, ItemProcessingState.EXECUTED);\n currentItemState = ItemProcessingState.INITIAL;\n requestToExecute = null;\n executionResult = null;\n assertInvariants(ItemProcessingState.INITIAL);\n }", "@Override\r\n\tpublic void updateNiakworkHostDenied(NiakworkHostSocket nssocket,\r\n\t\t\tString reason) {\n\t\t\r\n\t}", "@Override\r\n public void onNeutral(String callerTag) {\r\n ComponentsGetter cg = (ComponentsGetter)getSherlockActivity();\r\n cg.getFileOperationsHelper()\r\n .removeFile(mTargetFile, true);\r\n \r\n FileDataStorageManager storageManager = cg.getStorageManager();\r\n \r\n boolean containsKeepInSync = false;\r\n if (mTargetFile.isFolder()) {\r\n Vector<OCFile> files = storageManager.getFolderContent(mTargetFile);\r\n for(OCFile file: files) {\r\n containsKeepInSync = file.keepInSync() || containsKeepInSync;\r\n\r\n if (containsKeepInSync)\r\n break;\r\n }\r\n }\r\n\r\n // Remove etag for parent, if file is a keep_in_sync \r\n // or is a folder and contains keep_in_sync \r\n if (mTargetFile.keepInSync() || containsKeepInSync) {\r\n OCFile folder = null;\r\n if (mTargetFile.isFolder()) {\r\n folder = mTargetFile;\r\n } else {\r\n folder = storageManager.getFileById(mTargetFile.getParentId());\r\n }\r\n \r\n folder.setEtag(\"\");\r\n storageManager.saveFile(folder);\r\n }\r\n }", "private void goUpdatePasswordSucess() {\n\n AppManager.getAppManager().finishActivity(ForgetpasswordActivity.class);\n finish();\n }", "@Override\n public Uri undoDeletion(Bundle deletedGroupData) {\n if (!undoDeletionInSim(deletedGroupData)) {\n Log.d(TAG, \"undoDeletionInSim fail, no need undoDeletion in db, return\");\n return null;\n }\n // undo deletion in db\n return super.undoDeletion(deletedGroupData);\n }", "@Override\n public void undo() {\n\n }", "@Override\n public void undo() {\n\n }", "public boolean getAllowModifications() {\n return true;\n }", "public void approveSelection()\r\n/* 24: */ {\r\n/* 25:23 */ if ((!getFileFilter().accept(getSelectedFile())) && \r\n/* 26:24 */ ((getFileFilter() instanceof FileNameExtensionFilter)))\r\n/* 27: */ {\r\n/* 28:25 */ String[] extensions = ((FileNameExtensionFilter)getFileFilter()).getExtensions();\r\n/* 29:26 */ String ext = extensions.length > 0 ? extensions[0] : \"\";\r\n/* 30:27 */ setSelectedFile(new File(getSelectedFile().getAbsolutePath() + ((ext == null) || (ext.length() == 0) ? \"\" : new StringBuilder().append(\".\").append(ext).toString())));\r\n/* 31: */ }\r\n/* 32:32 */ File f = getSelectedFile();\r\n/* 33:33 */ if ((f.exists()) && (getDialogType() == 1))\r\n/* 34: */ {\r\n/* 35:34 */ int result = JOptionPane.showConfirmDialog(this, \"Are you sure you want to override existing file?\", \"Existing file\", 1, 3);\r\n/* 36:40 */ switch (result)\r\n/* 37: */ {\r\n/* 38: */ case 0: \r\n/* 39:42 */ super.approveSelection();\r\n/* 40:43 */ return;\r\n/* 41: */ case 2: \r\n/* 42:45 */ cancelSelection();\r\n/* 43:46 */ return;\r\n/* 44: */ }\r\n/* 45:48 */ return;\r\n/* 46: */ }\r\n/* 47:51 */ super.approveSelection();\r\n/* 48: */ }", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "public static void disablePackageNamePermissionCache() {\n sPackageNamePermissionCache.disableLocal();\n }", "private void restore() {\n AppSettings.setInstance(backupConfig);\n }", "private int recover(HttpRequestGenerator requestor, CommCareTransactionParserFactory factory) {\n\t\tthis.publishProgress(PROGRESS_RECOVERY_NEEDED);\n\t\t\n\t\tLogger.log(AndroidLogger.TYPE_USER, \"Sync Recovery Triggered\");\n\n\t\t\n\t\tInputStream cacheIn;\n\t\tBitCache cache = null;\n\t\t\n\t\t//This chunk is the safe field of operations which can all fail in IO in such a way that we can\n\t\t//just report back that things didn't work and don't need to attempt any recovery or additional\n\t\t//work\n\t\ttry {\n\n\t\t\t//Make a new request without all of the flags\n\t\t\tHttpResponse response = requestor.makeCaseFetchRequest(server, false);\n\t\t\tint responseCode = response.getStatusLine().getStatusCode();\n\t\t\t\n\t\t\t//We basically only care about a positive response, here. Anything else would have been caught by the other request.\n\t\t\tif(!(responseCode >= 200 && responseCode < 300)) {\n\t\t\t\treturn PROGRESS_RECOVERY_FAIL_SAFE;\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise proceed with the restore\n\t\t\tint dataSizeGuess = -1;\n\t\t\tif(response.containsHeader(\"Content-Length\")) {\n\t\t\t\tString length = response.getFirstHeader(\"Content-Length\").getValue();\n\t\t\t\ttry{\n\t\t\t\t\tdataSizeGuess = Integer.parseInt(length);\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t//Whatever.\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Grab a cache. The plan is to download the incoming data, wipe (move) the existing db, and then\n\t\t\t//restore fresh from the downloaded file\n\t\t\tcache = BitCacheFactory.getCache(c, dataSizeGuess);\n\t\t\tcache.initializeCache();\n\t\t\t\n\t\t\tOutputStream cacheOut = cache.getCacheStream();\n\t\t\tAndroidStreamUtil.writeFromInputToOutput(response.getEntity().getContent(), cacheOut);\n\t\t\n\t\t\tcacheIn = cache.retrieveCache();\n\t\t\t\t\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tif(cache != null) {\n\t\t\t\t//If we made a temp file, we're done with it here.\n\t\t\t\tcache.release();\n\t\t\t}\n\t\t\t//Ok, well, we're bailing here, but we didn't make any changes\n\t\t\tLogger.log(AndroidLogger.TYPE_USER, \"Sync Recovery Failed due to IOException|\" + e.getMessage());\n\t\t\treturn PROGRESS_RECOVERY_FAIL_SAFE;\n\t\t}\n\t\t\n\t\t\n\t\tthis.publishProgress(PROGRESS_RECOVERY_STARTED);\n\t\tLogger.log(AndroidLogger.TYPE_USER, \"Sync Recovery payload downloaded\");\n\n\t\t//Ok. Here's where things get real. We now have a stable copy of the fresh data from the\n\t\t//server, so it's \"safe\" for us to wipe the casedb copy of it.\n\t\t\n\t\t//CTS: We're not doing this in a super good way right now, need to be way more fault tolerant.\n\t\t//this is the temporary implementation of everything past this point\n\t\t\n\t\t//Wipe storage\n\t\t//TODO: move table instead. Should be straightforward with sandboxed db's\n\t\tCommCareApplication._().getUserStorage(ACase.STORAGE_KEY, ACase.class).removeAll();\n\t\t\n\t\t\n\t\tString failureReason = \"\";\n\t\ttry { \n\t\t\t//Get new data\n\t\t\tString syncToken = readInput(cacheIn, factory);\n\t\t\tupdateUserSyncToken(syncToken);\n\t\t\tLogger.log(AndroidLogger.TYPE_USER, \"Sync Recovery Succesful\");\n\t\t\treturn PROGRESS_DONE;\n\t\t} catch (InvalidStructureException e) {\n\t\t\te.printStackTrace();\n\t\t\tfailureReason = e.getMessage();\n\t\t} catch (XmlPullParserException e) {\n\t\t\te.printStackTrace();\n\t\t\tfailureReason = e.getMessage();\n\t\t} catch (UnfullfilledRequirementsException e) {\n\t\t\te.printStackTrace();\n\t\t\tfailureReason = e.getMessage();\n\t\t} catch (StorageFullException e) {\n\t\t\te.printStackTrace();\n\t\t\tfailureReason = e.getMessage();\n\t\t} \n\t\t\n\t\t//These last two aren't a sign that the incoming data is bad, but\n\t\t//we still can't recover from them usefully\n\t\tcatch (SessionUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t\tfailureReason = e.getMessage();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tfailureReason = e.getMessage();\n\t\t} finally {\n\t\t\t//destroy temp file\n\t\t\tcache.release();\n\t\t}\n\t\t\n\t\t//OK, so we would have returned success by now if things had worked out, which means that instead we got an error\n\t\t//while trying to parse everything out. We need to recover from that error here and rollback the changes\n\t\t\n\t\t//TODO: Roll back changes\n\t\tLogger.log(AndroidLogger.TYPE_USER, \"Sync recovery failed|\" + failureReason);\n\t\treturn PROGRESS_RECOVERY_FAIL_BAD;\n\t}" ]
[ "0.7445049", "0.69974697", "0.57863706", "0.5716138", "0.5603392", "0.5514305", "0.5481565", "0.54426765", "0.54068506", "0.5392513", "0.5335185", "0.5293814", "0.5253474", "0.5231688", "0.52238107", "0.52203304", "0.5190837", "0.51719147", "0.5156552", "0.5148584", "0.51406705", "0.51346964", "0.51242274", "0.51166093", "0.5111213", "0.5099685", "0.509016", "0.5074809", "0.5064947", "0.5056449", "0.5033637", "0.5030877", "0.502439", "0.5021982", "0.50207144", "0.49973896", "0.49881136", "0.4976808", "0.49671724", "0.49637997", "0.49619484", "0.49607474", "0.4960724", "0.49387676", "0.49242997", "0.49193916", "0.49137744", "0.4899128", "0.4895705", "0.48907498", "0.4879252", "0.4874709", "0.4865223", "0.48594564", "0.48594564", "0.48591566", "0.4854866", "0.4845636", "0.48453158", "0.48430693", "0.4836955", "0.48245978", "0.4807317", "0.47968906", "0.47871873", "0.47778615", "0.47773334", "0.4773869", "0.4771505", "0.47637632", "0.4757465", "0.4753013", "0.47518873", "0.47515696", "0.4749438", "0.47408247", "0.47306505", "0.4726875", "0.47227365", "0.4722725", "0.47192404", "0.47186923", "0.47154495", "0.47136015", "0.46985868", "0.46926188", "0.4687539", "0.46818605", "0.4681524", "0.46802855", "0.46748388", "0.46743277", "0.46686417", "0.46686417", "0.4666756", "0.46634147", "0.4659643", "0.4656779", "0.46530125", "0.46498135" ]
0.76883155
0
java gives you a TreeSet and a HashSet
public static void main(String[] args) { HashSet<String> wordsWithNoDuplicates = new HashSet<>(); wordsWithNoDuplicates.add("poop"); wordsWithNoDuplicates.add("butt"); wordsWithNoDuplicates.add("ass"); wordsWithNoDuplicates.add("ass"); for (String word : wordsWithNoDuplicates) { System.out.println(word); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n\t\tHashSet h1=new HashSet();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\th1.add(3);\r\n\t\th1.add(7); //Homogeous \r\n\t\th1.add(9);//hetrogeous\r\n\t\th1.add(10);\r\n\t\t\r\n\t\tTreeSet t1=new TreeSet(h1);\r\n\t\tt1.add(100);\r\n\t\tSystem.out.println(t1);\r\n\t}", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "Set<X> toSet();", "Set createSet();", "void mo30185a(HashSet<zzawj> hashSet);", "Set<Node<K, V>> entrySet();", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "public static void main(String[] args){\n\t\tTreeSet hs=new TreeSet();\n\t\t\n\t\ths.add(\"d\");\n\t\ths.add(\"c\");\n\t\ths.add(\"b\");\n\t\ths.add(\"a\");\n\t\ths.add(\"c\");\n\t\ths.add(\"i\");\n\t\ths.add(\"l\");\n\t\ths.add(new Integer(2));\n\t\ths.add(new Float(2));\n\t\t\n\t\t\t\t\n\t\tSystem.out.println(\"Hashset is \"+hs);\n\t\tSystem.out.println(\"Size of Hashset is \"+ hs.size());\n\t\t\n\t\tSystem.out.println(\"Does hashset contains this 'u' element \" + hs.contains(\"u\"));\t\t\n\t\tSystem.out.println(\"is hashset empty \" + hs.isEmpty());\n\t\tSystem.out.println(\"remove the element \"+hs.remove(\"i\"));\n\t\t\n\t\t\n\t hs.clear();\n\t System.out.println(\"get class \" +hs.getClass());\n\t\t\n\t System.out.println(\"is hashset empty \" +hs.isEmpty());\n\t \n\t \n\t\t\n\t}", "public static <T extends Comparable> Set<T> CreateSortedSet() {\n return new TreeSet<>();\n }", "public static <T> HashSet<T> createHashSet() {\n \t\treturn new HashSet<T>();\n \t}", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "public Set<T> toSet()\r\n\t{\r\n\t\tSet<T> s = new HashSet<T>();\r\n//\t\tSystem.out.println(\"in toSet method\");\r\n//\t\tSystem.out.println(\"thisTable.tostring \" + this.toString());\r\n\t\tIterator<T> thisTableIter = this.iterator();\r\n\t\t\r\n\t\twhile (thisTableIter.hasNext())\r\n\t\t{\r\n\t\t\tT e = thisTableIter.next();\r\n\t\t//\tSystem.out.println(e + \" \");\r\n\t\t\ts.add(e);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "HSet entrySet();", "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,\"j\"));\n set.add(new User(14,\"x\"));\n System.out.println(set);\n }", "HSet keySet();", "public static void main(String[] args) {\n\r\n TreeSet<point> ts1 = new TreeSet<>();\r\n ts1.add(new point(1,1));\r\n ts1.add(new point(5, 5));\r\n ts1.add(new point(5, 2));\r\n\r\n System.out.println(ts1);\r\n }", "public interface Set {\n\n /**\n * Create an empty set.\n *\n * @return the empty set\n */\n static Set createEmpty() {\n return new EmptySet();\n }\n\n /**\n * Checks if the ASet is empty.\n *\n * @return true if the set is empty, false otherwise\n */\n boolean isEmpty();\n\n /**\n * Given an {@code Integer} {@code element} add the element to the set. If {@code element} is\n * already a member of the set, we perform no operation and return back the set intact.\n *\n * @param element the new element to add to the set\n *\n * @return a newly created set that contains {@code element} and the original elements of the set.\n */\n Set add(Integer element);\n\n /**\n * Given an {@code Integer} {@code element} returns {@code true} if the element is already in the\n * set and {@code false} otherwise.\n *\n * @param element the element to check\n *\n * @return true if {@code element} is in the set, false otherwise\n */\n Boolean contains(Integer element);\n\n /**\n * Return the size of the set.\n *\n * @return return the size of the set\n */\n Integer size();\n\n /**\n * Given an element {@code element} remove it from the this list if it exists.\n *\n * @param element the element to remove\n *\n * @return set without {@code element}\n */\n Set remove(Integer element);\n\n\n /**\n * Given a set {@code other} return a new set which is the set union between {@code this} set and\n * {@code other} set.\n *\n * @param other set to perform union\n *\n * @return set union of this and other\n */\n Set union(Set other);\n\n\n /**\n * Returns the set intersection between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform intersection with\n *\n * @return set intersection between {@code this} and {@code otherSet}\n */\n Set intersect(Set otherSet);\n\n\n /**\n * Returns the set difference between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform set difference with\n *\n * @return set difference between {@code this} and {@code otherSet}\n */\n Set difference(Set otherSet);\n\n\n /**\n * Returns true if {@code this} set is a subset of {@code otherSet}.\n *\n * @param otherSet the set to check against\n *\n * @return true if this is a subset of otherSet, false otherwise\n */\n Boolean subset(Set otherSet);\n\n\n}", "Set<K> keySet();", "public static void main(String[] args) {\n HashSet<String> hashSet = new HashSet<>();\n hashSet.add(\"Orange\");\n hashSet.add(\"Red\");\n hashSet.add(\"Pink\");\n hashSet.add(\"Red\");\n hashSet.add(\"White\");\n System.out.println(hashSet);\n TreeSet<String> treeSet = new TreeSet<>(hashSet);\n for (String color : treeSet) {\n System.out.println(color);\n }\n\n }", "public static void main(String[] args) \n\t{\n\t\tSortedSet<String> ts = new TreeSet<String>(); \n\n\t\t// Adding elements into the TreeSet \n\t\t// using add() \n\t\tts.add(\"Sravan\"); \n\t\tts.add(\"Ojaswi\"); \n\t\tts.add(\"Bobby\"); \n\t\tts.add(\"Rohith\"); \n\t\tts.add(\"Gnanesh\"); \n\t\tts.add(\"Devi2\"); \n\n\t\t// Adding the duplicate \n\t\t// element \n\t\tts.add(\"Sravan\"); \n\n\t\t// Displaying the TreeSet \n\t\tSystem.out.println(ts); \n\n\t\t// Removing items from TreeSet \n\t\t// using remove() \n\t\tts.remove(\"Ojaswi\"); \n\n\t\t// Iterating over Tree set items \n\t\tSystem.out.println(\"Iterating over set:\"); \n\t\tIterator<String> i = ts.iterator(); \n\t\twhile (i.hasNext()) \n\t\t\tSystem.out.println(i.next()); \n\t}", "private Set<E> toSet(Node<E> n) {\n Set<E> result = new HashSet<>();\n toSet(result, n);\n return result;\n }", "<T extends Comparable> SortedSet<T> sorted(Set<T> in) {\n return new TreeSet<>(in);\n }", "public abstract Set<Map.Entry<K, V>> entrySet();", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tTreeSet<String> ts = new TreeSet<String>();\n\t\tts.add(\"D\");\n\t\tts.add(\"B\");\n\t\tts.add(\"E\");\n\t\tts.add(\"A\");\n\t\tts.add(\"C\");\n\t\tts.add(\"B\");\t\t//duplicates are not stored\n\t\tts.add(null);\n\t\tSystem.out.println(\"Elements of TreeSet:\\n\" + ts);\n\t\t\n\t\tSortedSet<String> ts2 = new TreeSet<String>();\t//SortedSet is an interface\n\t\tts2 = ts.subSet(\"B\", \"D\");\n\t\tSystem.out.println(ts2);\n\t\t\n\t\tts2 = ts.subSet(\"B\", false, \"E\", true);\n\t\tSystem.out.println(ts2);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t TreeSet<String> treeset = new TreeSet<String>();\r\n\t\t treeset.add(\"Good\");\r\n\t\t treeset.add(\"For\");\r\n\t\t treeset.add(\"Health\");\r\n\t\t //Add Duplicate Element\r\n\t\t treeset.add(\"Good\");\r\n\t\t System.out.println(\"TreeSet : \");\r\n\t\t for (String temp : treeset) {\r\n\t\t System.out.println(temp);\r\n\t\t }\r\n\t\t }", "@Override\n public Set<K> keySet() {\n Set<K> keyset = new TreeSet<>();\n Inorder(root, keyset);\n return keyset;\n }", "public static void main(String[] args) {\n\n Set<Student> set = Sets.newTreeSet();\n Student s3 = new Student(3);\n Student s4 = new Student(4);\n Student s5 = new Student(5);\n Student s1 = new Student(1);\n Student s2 = new Student(2);\n List<Student> list = Lists.newArrayList();\n list.add(s4);\n list.add(s3);\n list.add(s5);\n list.add(s1);\n list.add(s2);\n\n list.sort(new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n return o1.getAge() - o2.getAge() < 0 ? 1 : -1;\n }\n });\n System.out.println(list);\n\n// s1.toString();\n// set.add(s3);\n// set.add(s4);\n// set.add(s5);\n// set.add(s1);\n// set.add(s2);\n// System.out.println(set);\n// for (Student s : set) {\n// System.out.println(s);\n// }\n\n\n }", "Boolean superset(MultiSet<X> s);", "public static void main(String[] args) {\n\t\tclass Person {\n\t\t\tprivate String nome;\n\n\t\t\tpublic Person(String nome) {\n\t\t\t\tthis.nome = nome;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn nome;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean equals(Object obj) {\n\t\t\t\tSystem.out.println(\"Equals\");\n\t\t\t\tPerson person = (Person) obj;\n\t\t\t\treturn this.nome.equals(person.nome) ? true : false;\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int hashCode() {\n\t\t\t\tSystem.out.println(\"Hashcode!\");\n\t\t\t\treturn nome.charAt(0);\n\t\t\t}\n\t\t}\n\t\tSet<String> setComHashSet = new HashSet<>();\n\t\tsetComHashSet.add(\"Nicholas\");\n\t\tsetComHashSet.add(\"Cabral\");\n\t\tsetComHashSet.add(\"Barbosa\");\n\t\tSystem.out.println(\"I dont care about order! I care about performance to add() \" + setComHashSet);\n\t\tSet<String> setTreeSet = new TreeSet<>(Set.copyOf(setComHashSet));\n\t\tSystem.out.println(\"I care about order, however I dont care about performance to add() \" + setTreeSet);\n\t\tSystem.out.println();\n\t\tSet<Person> setPerson = new HashSet<>();\n\t\tPerson person = new Person(\"Nicholas\");\n\t\tPerson person2 = new Person(\"Nicholas2\");\n\t\tsetPerson.add(person);\n\t\tsetPerson.add(person2);\n\t\tSystem.out.println(setPerson);\n\t\tString[] arr = { \"Nihcolas\" };\n\t\tList<String> lista = Arrays.asList(arr);\n\n\t\tA a = new A();\n\t\tSetCollection b = (SetCollection) a;\n\t\tSystem.out.println(a == b);\n\t}", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public static <T extends Comparable> Set<T> AsSortedSet(@NonNull T... ts) {\n return Create_UnModifiableSet_By_InputElements(ContainerUtil.<T>CreateSortedSet(), ts);\n }", "public static void main(String[] args) {\n Set<Inner> set = new HashSet<>();\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n\n System.out.println(set);\n }", "BSet createBSet();", "public static void main(String[] args) {\n\t\tTreeSet<String> ts = new TreeSet<String>();\n\t\t\n\t\tts.add(\"\");\n\t\t//System.out.println(ts);\n\n\t\tts.add(\"Red\");\n\t\tts.add(\"Green\");\n\t\tts.add(\"Blue\");\n\t\tts.add(\"White\");\n\t\tts.add(\"Orange\");\n\t\tts.add(\"\");\n\n\t\tSystem.out.println(ts);\n\t\tSystem.out.println(ts.size());\n\n\t\t// List<String> li = new ArrayList<String>(ts);\n\n\t\tTreeSet<String> ts1 = new TreeSet<String>();\n\n\t\tts1.add(\"Red\");\n\t\tts1.add(\"Green\");\n\t\tts1.add(\"Blue\");\n\t\tts1.add(\"WWhite\");\n\t\tts1.add(\"OOrange\");\n\n\t\tfor (String tss : ts) {\n\t\t\tSystem.out.println(ts1.contains(tss) ? \"YES\" : \"NO\");\n\t\t}\n\n\t\tTreeSet<Integer> ts2 = new TreeSet<Integer>();\n\n\t\tts2.add(1);\n\t\tts2.add(2);\n\t\tts2.add(3);\n\t\tts2.add(5);\n\t\tts2.add(9);\n\n\t\tIterator<Integer> itr = ts2.headSet(3).iterator();\n\n\t\twhile (itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\n\t\tSystem.out.println(\"======\");\n\n\t\tIterator<Integer> itr2 = ts2.tailSet(3).iterator();\n\n\t\twhile (itr2.hasNext()) {\n\t\t\tSystem.out.println(itr2.next());\n\t\t}\n\n\t\tSystem.out.println(\"======\");\n\n\t\tSystem.out.println(ts2.ceiling(11));\n\t\tSystem.out.println(ts2.floor(3));\n\n\t\tSystem.out.println(\"======\");\n\n\t\tSystem.out.println(ts2.lower(3));\n\t\tSystem.out.println(ts2.higher(3));\n\t\t\n\t\tSystem.out.println(\"======\");\n\t\t\n\t\tTreeSet t = new TreeSet();\n\t\t\n\t\tt.add(new StringBuffer(\"AA\"));\n\t\tt.add(new StringBuffer(\"BB\"));\n\t\tSystem.out.println(t);\n\t\t\n\n\t\t// ts1.addAll(ts);\n\t\t// System.out.println(ts1);\n\n\t\t/*\n\t\t * System.out.println(\"Treeset to ArrayList: \" + li); Collections.reverse(li);\n\t\t * System.out.println(\"After Reversing: \" + li);\n\t\t */\n\n\t\t/*\n\t\t * Iterator<String> itr = ts.iterator();\n\t\t * \n\t\t * while (itr.hasNext()) { System.out.println(itr.next()); }\n\t\t */\n\t}", "GeneralizationSet createGeneralizationSet();", "public abstract Set<Map.Entry<K, V>> a();", "public static void main(String[] args) {\n HashSet<Person> set = new HashSet<>();\n Person p1 = new Person(\"小妹妹\", 18);\n Person p2 = new Person(\"小妹妹\", 18);\n Person p3 = new Person(\"小妹妹\", 19);\n System.out.println(p1.hashCode());\n System.out.println(p2.hashCode());\n System.out.println(p1 == p2);\n System.out.println(p1.equals(p2));\n set.add(p1);\n set.add(p2);\n set.add(p3);\n System.out.println(set);\n }", "public static void main(String[] args) {\n\t\tSet<String> set = new HashSet<String>();\n\t\t\t\n\t\tset.add(\"BMW\");\n\t\tset.add(\"Audi\");\n\t\tset.add(\"Honda\");\n\t\tset.add(\"Honda\");\n\t\t\n\t\tSystem.out.println(\"Hash Set\");\n\t\t\n\t\tfor (String item: set) {\n\t\t\tSystem.out.println(item);\n\t\t}\n\t\t\n\t\t// LinkedHashSet - Maintains the order in which elements are added\n\t\tSet<String> lHSet = new LinkedHashSet<String>();\n\t\tlHSet.add(\"BMW\");\n\t\tlHSet.add(\"Audi\");\n\t\tlHSet.add(\"Honda\");\n\t\tSystem.out.println(\"Linked Set\");\n\t\tfor (String item: lHSet) {\n\t\t\tSystem.out.println(item);\n\t\t}\n\t\t\n\t\t// TreeSet - Maintains the natural order , ie, 1, 2, 3, 4, \n\t\tSet<String> tSet = new TreeSet<String>();\n\t\ttSet.add(\"BMW\");\n\t\ttSet.add(\"Audi\");\n\t\ttSet.add(\"Honda\");\n\t\tSystem.out.println(\"Tree Set\");\n\t\tfor (String item: tSet) {\n\t\t\tSystem.out.println(item);\n\t\t}\n\t\t\n\t\tList<String> list = new ArrayList<String>();\n\t\t\n\t\tlist.add(\"BMW\");\n\t\tlist.add(\"Audi\");\n\t\tlist.add(\"Honda\");\n\t\t\n\t\tSystem.out.println(list);\n\t}", "@Override\n public Set<K> keySet() {\n Set<K> ks = new HashSet<>();\n keySetHelper(root, ks);\n return ks;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }", "public static <T> Set<T> AsSet(@NonNull T... ts) {\n return Create_UnModifiableSet_By_InputElements(new HashSet<T>(), ts);\n }", "public static void main(String[] args) {\n\t\tHashSet set1 = new HashSet();\n\n\t\t/*\n\t\t * It creates empty HS object with specified initial capacity and\n\t\t * default fill ratio 0.75. \n\t\t * HashSet set2 = new HashSet(int initialCapacity);\n\t\t */\n\t\tHashSet set2 = new HashSet(20);\n\n\t\t/*\n\t\t * It creates equivalent HS object for given Collection\n\t\t * HashSet set3 = new HashSet(Collection c);\n\t\t */\n\t\tArrayList list = new ArrayList();\n\t\tlist.add(1);\n\t\tlist.add(1);\n\t\tSystem.out.println(\"List is \" + list);\n\t\tHashSet set3 = new HashSet(list);\n\t\tSystem.out.println(\"equivalent HashSet is \" + set3);\n\n\t}", "public static void main(String[] args) {\n\t\tTreeSet<String> myset=new TreeSet<String>();\r\n\t\t myset.add(\"ardra\");\r\n\t\t myset.add(\"anakha\");\r\n\t\t myset.add(\"anusha\");\r\n\t\t myset.add(\"ananya\");\r\n\t\t \r\n\t\t \r\n\t\t TreeSet<String> myset1=new TreeSet<String>();\r\n\t\t myset1=(TreeSet<String>) myset.clone();\r\n\t\t System.out.println(myset1);\r\n\t\t \r\n\r\n\t}", "public static Set orderedSet(Set set) {\n/* 236 */ return (Set)ListOrderedSet.decorate(set);\n/* */ }", "public boolean equals (SetADT<T> set);", "Lista<K> keySet();", "public SyncedTreeSet() {\n _treeSet = new TreeSet<T>();\n }", "public static void main( String[] args )\n {\n OrderedSet set = new OrderedSet( true );\n set.add( new Integer( 6 ) );\n set.add( new Integer( 1 ) );\n set.add( new Integer( 4 ) );\n set.add( new Integer( 1 ) );\n System.out.println( set );\n System.out.println();\n\n System.out.println( \"Enumerate the OrderedSet\" );\n Enumeration e = set.elements();\n while ( e.hasMoreElements() )\n System.out.println( e.nextElement() );\n System.out.println();\n\n System.out.println( \"Iterate through the OrderedSet\" );\n for ( OrderedSetIterator i = set.begin(); !i.atEnd(); i.advance() )\n System.out.println( i.get() );\n System.out.println();\n\n System.out.println( \"Show that duplicates can be added.\" );\n set.add( new Integer( 8 ) );\n System.out.println( \"set = \" + set );\n\n set.add( new Integer( 4 ) );\n System.out.println( \"set = \" + set );\n }", "<V extends Object> Set<V> getSet(String setName);", "@Override\n\tpublic Set<Entry<K, V>> entrySet() {\n\t\tSet<Entry<K, V>> set = new HashSet<Entry<K, V>>();\n\t\tIterator it1 = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it1.hasNext()) {\n\t\t\tit1.next();\n\t\t\tIterator it2 = tabla.get(i).keySet().iterator();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.next();\n\t\t\t\tK clave = tabla.get(i).keySet().get(j);\n\t\t\t\tV valor = tabla.get(i).valueSet().get(j);\n\t\t\t\tEntrada<K, V> entry = new Entrada<K, V>(clave, valor);\n\t\t\t\tset.add(entry);\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn set;\n\t}", "public BSTSet intersection(BSTSet s) {\n int[] thisArray = BSTToArray();\n int[] sArray = s.BSTToArray();\n int[] interArray = justDuplicates(thisArray, sArray);\n\n sortArray(interArray);\n\n return new BSTSet(interArray);\n }", "public HashSet<T> removeDups(Node root, HashSet set) {\n if(root == null) {\n return set;\n }\n if(root.getLeftChildNode() != null) {\n removeDups(root.getLeftChildNode(), set);\n }\n if(set.contains(root.getData())){\n set.add(root.getData());\n }\n if(root.getRightChildNode() != null) {\n removeDups(root.getRightChildNode(), set);\n }\n return set;\n }", "public static void main(String[] args) {\n\t\tList l1=new ArrayList();\n\t\tl1.add(0, \"Gyan\");\n\t\tl1.add(1, \"Ranjan\");\n\t\tl1.add(2, \"Mahapatra\");\n\t\tSystem.out.println(l1);\n\t\tl1.add(2,\"xyz\");\n\t\tSystem.out.println(l1 + \" \" +l1.get(2));\nint a[]=new int[8];\nfor(int i=0;i<8;i++){\n\ta[i]=i;\n}\n//for(int j:a)\n//\tSystem.out.println(j);\nList l2=new ArrayList();\nl2.add(\"Sonit\");\nl2.add(\"Dora\");\nl2.add(\"Sourav\");\n/*System.out.println(l2);\nl2.remove(1);*/\nSystem.out.println(l2);\nSet s=new HashSet();\ns.add(\"seta\");\ns.add(\"setc\");\ns.add(\"setb\");\nSystem.out.println(s);\nCollections.sort((List) s);\nSystem.out.println(s);\n\nSet s1=new TreeSet(s);\nSystem.out.println(s1.size());\nSystem.out.println(\"Gyan\");\n\t}", "@SuppressWarnings(\"unchecked\")\n \tpublic static <T> Set<T> createConcurrentHashSet() {\n \t\treturn (Set<T>) Collections.synchronizedSet(CollectionFactory.createHashSet());\n \t}", "@Override\n\tpublic Set<K> keySet() {\n\t\tArrayList<K> claves = new ArrayList<K>();\n\t\tIterator it = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tIterator it2 = tabla.get(i).keySet().iterator();\n\t\t\tit.next();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.next();\n\t\t\t\tclaves.add(tabla.get(i).keySet().get(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn new HashSet<K>(claves);\n\t}", "@Override\n public Set<T> asSet() {\n return new AbstractSet<T>() {\n @Override\n public Iterator<T> iterator() {\n return new Iterator<T>() {\n boolean foundNext;\n boolean hasNext;\n T next;\n \n private void findNext() {\n if (!foundNext) {\n hasNext = isPresent();\n if (hasNext) {\n try {\n next = get();\n } catch (NoSuchElementException e) {\n // in case there was a race and the value became absent\n hasNext = false;\n next = null;\n }\n } else {\n next = null;\n }\n foundNext = true;\n }\n }\n \n @Override\n public boolean hasNext() {\n findNext();\n return hasNext;\n }\n\n @Override\n public T next() {\n findNext();\n if (hasNext) {\n // no next after consuming the single present value \n hasNext = false;\n T ret = next;\n next = null;\n return ret;\n }\n throw new NoSuchElementException();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }\n\n @Override\n public int size() {\n return isPresent() ? 1 : 0;\n }\n };\n }", "public Set<Edge<V>> edgeSet();", "public HashSet<N> getNodes()\r\n/* 99: */ {\r\n/* 100:182 */ assert (checkRep());\r\n/* 101: */ \r\n/* 102:184 */ return new HashSet(this.map.keySet());\r\n/* 103: */ }", "public static void main(String[] args) {\nSystem.out.println(\"**********************HashSet********************\");\n\t Set<String> set=new HashSet<String>();\n\t set.add(\"abc\");\n\t set.add(\"abc\");\n\t set.add(\"def\");\n\t print(set);\n\t \n\t System.out.println(\"**********************LinkedHashSet********************\"); \n\t Set<Integer> lset=new LinkedHashSet<Integer>();\n\t lset.add(1);\n\t lset.add(100);\n\t lset.add(100);\n\t print(lset);\n\t \n\t System.out.println(\"**********************TreeSet********************\");\n\t Set<String> ts=new TreeSet<String>();\n\t ts.add(\"aabbcc\");\n\t ts.add(\"ddeeff\");\n\t ts.add(\"awsedr\");\n\t print(ts);\n\t \n\t System.out.println(\"**********************ArrayList********************\");\n\t List<Integer> list=new ArrayList<Integer>();\n\t list.add(1);\n\t list.add(2);\n\t list.add(3);\n\t list.add(3);\n\t list.add(4);\n\t print(list);\n\t \n\t \n\t System.out.println(\"**********************Vector********************\");\n\t List<String> vect=new Vector<String>();\n\t vect.add(\"a\");\n\t vect.add(\"b\");\n\t vect.add(\"c\");\n\t vect.add(\"d\");\n\t vect.add(\"d\");\n\t print(vect);\n\t \n\t System.out.println(\"**********************LinkedList********************\");\n\t List<Integer> linkedList=new LinkedList<Integer>();\n\t linkedList.add(9);\n\t linkedList.add(7);\n\t linkedList.add(1);\n\t linkedList.add(7);\n\t print(linkedList);\n\t \n\t System.out.println(\"**********************HashMap<Integer, Integer>********************\");\n\t Map<Integer, Integer> mp=new HashMap<Integer,Integer>();\n\t mp.put(1, 2);\n\t mp.put(3, 4);\n\t mp.put(5, 6);\n\t mp.put(7, 8);\n\t printMap(mp);\n\t \n\t \n\t System.out.println(\"**********************HashMap<Integer, String>********************\");\n\t Map<Integer, String> mp1=new HashMap<Integer,String>();\n\t mp1.put(1, \"a\");\n\t mp1.put(2, \"b\");\n\t mp1.put(3, \"c\");\n\t mp1.put(4, \"d\");\n\t printMap(mp1);\n\t \n\t System.out.println(\"**********************LinkedHashMap<String, Integer>********************\");\n\t Map<String, Integer> mp2=new HashMap<String, Integer>();\n\t mp2.put(\"a\", 1);\n\t mp2.put(\"a\", 2);\n\t mp2.put(\"b\", 3);\n\t mp2.put(\"d\", 4);\n\t printMap(mp2);\n\t \n\t \n\t System.out.println(\"**********************TreeMap<String, String>********************\");\n\t Map<String, String> mp3=new HashMap<String, String>();\n\t mp3.put(\"a\", \"z\");\n\t mp3.put(\"a\", \"y\");\n\t mp3.put(\"a\", \"y\");\n\t mp3.put(\"b\", \"x\");\n\t mp3.put(\"d\", \"w\");\n\t printMap(mp3);\n\t \n\t \n\t \n\t \n\t}", "public Set<V> put(K key, Collection<V> set) {\n // Remove any possibly existing prior association with the key\n Set<V> result = remove(key);\n\n // Note: The second argument is effectless, as we cannot encounter item type errors here\n NavigableSet<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n SetTrieNode currentNode = superRootNode;\n while(it.hasNext()) {\n V v = it.next();\n\n SetTrieNode nextNode = currentNode.nextValueToChild == null ? null : currentNode.nextValueToChild.get(v);\n if(nextNode == null) {\n nextNode = new SetTrieNode(nextId++, currentNode, v);\n if(currentNode.nextValueToChild == null) {\n currentNode.nextValueToChild = new TreeMap<>(comparator);\n }\n currentNode.nextValueToChild.put(v, nextNode);\n }\n currentNode = nextNode;\n }\n\n if(currentNode.keyToSet == null) {\n currentNode.keyToSet = new HashMap<>();\n }\n\n currentNode.keyToSet.put(key, navSet);\n\n keyToNode.put(key, currentNode);\n\n return result;\n }", "@Override\r\n\tpublic MySet intersectSets(MySet[] t) {\r\n\t\tallElements = new ArrayList<Integer>();\r\n\r\n\t\t\r\n\t\tfor(Object element: t[0]) {\r\n\t\t\tallElements.add(element);\r\n\t\t}\r\n\t\r\n\t\tfor(Object e: allElements) {\r\n\t\t\tInteger c = map.getOrDefault(e, 0);\r\n\t\t\tmap.put((E)e, c + 1);\r\n\t\t}\r\n\t\t\r\n\t\tMySet<E> returnSet = (MySet<E>) new Set2<Integer>();\r\n\t\tfor(Map.Entry<E, Integer> entry :map.entrySet())\r\n\t\t\tif(entry.getValue() >= dataSet[0].length) // check\r\n\t\t\t\treturnSet.add(entry.getKey());\r\n\t\t\r\n\t\t\r\n\t\treturn returnSet;\r\n\t}", "static SortedSet<Integer> getSet(int[] array){\n SortedSet<Integer> result = new TreeSet<Integer>();\n for (int i=0; i<array.length; i++){\n result.add(array[i]);\n }\n return result;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\\n\"+\"===================HashSet======================\");\n\n\t\tHashSet<Integer> set = new HashSet<Integer>();\n\t\t\t\t\n\t\tset.add(1);\n\t\tset.add(1);\n\t\tset.add(2);\n\t\tset.add(30);\n\t\tset.add(2);\n\t\tset.add(4);\n\t\tset.add(5);\n\t\tset.add(3);\n\t\tset.add(7);\n\n\t\tIterator<Integer> it = set.iterator();\n\t\t \n\t\twhile (it.hasNext()) {\n\t\t\tSystem.out.print(it.next()+\" \");\n\t\t}\n\t\tSystem.out.println(\"\\n\"+\"=========================================\");\n\t\t\n\t\tfor (Iterator iterator = set.iterator(); iterator.hasNext();) {\n\t\t\tSystem.out.print(iterator.next()+\" \");\n\t\t}\n\t\tSystem.out.println(\"\\n\"+\"=========================================\");\n\n\t\tfor (Integer integer : set) {\n\t\t\tSystem.out.print(integer+\" \");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\"+\"==============HashSet添加学生类对象===========================\");\n\n\t\tHashSet<Student> stu = new HashSet<>();\n\t\t\n\t\tstu.add(new Student(\"alice\", 22, 01));\n\t\tstu.add(new Student(\"corrun\", 23, 02));\n\t\tstu.add(new Student(\"bear\", 20, 03));\n\t\tstu.add(new Student(\"bear\", 20, 03));\n\n\t\tfor (Student student : stu) {\n\t\t\tSystem.out.println(student);\n\t\t}\n\t}", "MultiSet<X> add(X x);", "public static void main(String[] args) {\n Set<String> list = new TreeSet<>();\n list.add(\"Song\");\n list.add(\"Album\");\n list.add(\"Artist\");\n list.add(\"Year\");\n list.add(\"Genre\");\n list.add(\"Song\");\n list.add(\"Song\");\n\n System.out.println();\n for(String x : list){\n System.out.println(x);\n }\n\n //NO REPITTED VALUES AND ASCENDED ORDER WHIT COMPARABLE, HASHCODE AND EQUALS\n Set<Persona> list2 = new TreeSet<>();\n list2.add(new Persona(1, \"Rayman\"));\n list2.add(new Persona(2, \"Castlevania\"));\n list2.add(new Persona(3, \"Silent Hill\"));\n list2.add(new Persona(4, \"Silent Hill\"));\n list2.add(new Persona(1, \"Rayman\"));\n\n System.out.println();\n for(Persona x : list2){\n System.out.println(x.getId() + \" - \" + x.getName());\n }\n }", "@Override\n public Set keySet() {\n OmaLista palautettava = new OmaLista();\n\n for (int i = 0; i < this.values.length; i++) {\n if (this.values[i] != null) {\n for (int z = 0; z < this.values[i].size(); z++) {\n palautettava.add(this.values[i].value(z).getKey());\n }\n }\n }\n\n return palautettava;\n }", "SelectSubSet createSelectSubSet();", "public SortedSet(ISet<E> other) {\n\n }", "public static void main(String[] args) {\n Set<BankAccount> set=new TreeSet(new BankAccountTest());\n\tset.add(new BankAccount(128,\"mallika\",2000.0));\n\tset.add(new BankAccount(124,\"sallika1\",21000.0));\n\tset.add(new BankAccount(125,\"nallika2\",20000));\t\n\tfor(BankAccount bank:set){\n\t\tSystem.out.println(bank);\n\t}\n \n\t}", "private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }", "public interface TransformsToUnsortedSetTrait extends RichIterableTestCase\n{\n @Override\n default <T> UnsortedSetIterable<T> getExpectedTransformed(T... elements)\n {\n return Sets.immutable.with(elements);\n }\n\n @Override\n default <T> MutableSet<T> newMutableForTransform(T... elements)\n {\n return Sets.mutable.with(elements);\n }\n\n @Override\n default MutableBooleanSet newBooleanForTransform(boolean... elements)\n {\n return new BooleanHashSet(elements);\n }\n\n @Override\n default MutableByteSet newByteForTransform(byte... elements)\n {\n return new ByteHashSet(elements);\n }\n\n @Override\n default MutableCharSet newCharForTransform(char... elements)\n {\n return new CharHashSet(elements);\n }\n\n @Override\n default MutableDoubleSet newDoubleForTransform(double... elements)\n {\n return new DoubleHashSet(elements);\n }\n\n @Override\n default MutableFloatSet newFloatForTransform(float... elements)\n {\n return new FloatHashSet(elements);\n }\n\n @Override\n default MutableIntSet newIntForTransform(int... elements)\n {\n return new IntHashSet(elements);\n }\n\n @Override\n default MutableLongSet newLongForTransform(long... elements)\n {\n return new LongHashSet(elements);\n }\n\n @Override\n default MutableShortSet newShortForTransform(short... elements)\n {\n return new ShortHashSet(elements);\n }\n}", "@Override\n public Set<K> keySet() {\n keySet(root);\n return KeySet;\n }", "Boolean same(MultiSet<X> s);", "@Override\n public Set<Map.Entry<String, T>> entrySet() {\n Set<Map.Entry<String, T>> entrySet = new TreeSet<>();\n for (Map.Entry<String, Map.Entry<String, T>> v : entries.entrySet()) {\n entrySet.add(new Entry<>(v));\n }\n return entrySet;\n }", "@Override \n public Set<String> keySet() {\n \n \n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n \n try {\n \n // abre uma conecção\n conn = Connect.connect();\n \n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT nome FROM Componente WHERE visivel=TRUE;\");\n \n \n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n \n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"nome\")); // adiciona o aluno\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }", "public static void main(String[] args) {\n\t\tSet<String> colorSet = new HashSet<>();\n\t\tString[] colorArray = { \"red\", \"blue\", \"green\", \"orange\", \"gray\", \"red\" };\n\t\tfor (String color : colorArray) {\n\t\t\tSystem.out.println(colorSet.add(color));\n//\t\t\tcolorSet.add(color);\n\n\t\t}\n\t\tSystem.out.println(colorSet);\n\t\tSortedSet<String> tree = new TreeSet<>(colorSet);\n\t\tSystem.out.println(tree);\n\t\t//[blue, gray, green, orange, red]\n\t\tSystem.out.println(tree.headSet(\"green\"));\n\t\tSystem.out.println(tree.tailSet(\"green\"));\n\t\ttree.add(\"pink\");\n\t\tSystem.out.println(tree);\n\t\tSystem.out.println(tree.first());\n\t\tSystem.out.println(tree.last());\n\n\t}", "public static void main(String[] args) {\n\t\tHashSet<String> set1 = new HashSet<String>();\n\t\tset1.add(\"a\");\n\t\tset1.add(\"b\");\n\t\tset1.add(\"z\");\n\t\tset1.add(\"w\");\n\t\tset1.add(\"a\");\n\t\tset1.add(null);\n\t\t\n\t\t\n\t\tIterator itr = set1.iterator();\n\t\t\n\t\twhile(itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"+++++++++++++++++++\");\n\t\t\n\t\tfor(String s:set1){\n\t\t\tSystem.out.println(\"Set1 Elements : \" + s);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"+++++++++++++++++++\");\n\t\t\n\t\tSystem.out.println(\"Print All HashSet Elements \" + set1);\n\t\t\n\t\tEmployeeSet ravi = new EmployeeSet(101, \"Ravi\", 1000.00);\n\t\tEmployeeSet veera = new EmployeeSet(102, \"Veera\", 1001.00);\n\t\tEmployeeSet Sam = new EmployeeSet(103, \"Sam\", 1005.00);\n\t\tEmployeeSet Manju = new EmployeeSet(104, \"Manju\", 1010.00);\n\t\tEmployeeSet Virat = new EmployeeSet(101, \"Ravi\", 1000.00);\n\t\t\n\t\tHashSet<EmployeeSet> emp2 = new HashSet<EmployeeSet>();\n\t\t\n\t\temp2.add(ravi);\n\t\temp2.add(veera);\n\t\temp2.add(Manju);\n\t\temp2.add(Sam);\n\t\temp2.add(Virat);\n\t\t\n\t\tSystem.out.println(\"+++++++++++++++++++++++++++++++++++++++++\");\n\t\t\n\t\t//Collections.sort(emp2);\n\t\t//Set is unordered collection and \n\t\t\n\t\tfor(EmployeeSet h:emp2){\n\t\t\tSystem.out.println(\"HashSet \" + h);\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\" Employee HashSet : \" + emp2);\n\t\t\t\t\t\t\n\t}", "public Object clone()\n/* */ {\n/* 251 */ return new IntHashSet(this);\n/* */ }", "public static SortedSet transformedSortedSet(SortedSet set, Transformer transformer) {\n/* 322 */ return TransformedSortedSet.decorate(set, transformer);\n/* */ }", "public static void main(String[] args) {\n TreeSet<Employee> treeEmp = new TreeSet<>();\n \n for(int i =0; i<100 ; i++){\n treeEmp.add(new Employee(\"Pera\"+i, (int)(Math.random()*100+1)));\n } \n \n \n Iterator<Employee> iteratorEmp = treeEmp.iterator();\n while (iteratorEmp.hasNext()) { \n Employee ite = iteratorEmp.next();\n System.out.println(\"Empployee name: \"+ite.name+\" id: \"+ite.id);\n }\n \n System.out.println(treeEmp.first());\n System.out.println(treeEmp.last());\n \n Employee e = new Employee(\"Perica499\");\n e.id = \"50\";\n treeEmp.add(e);\n Iterator<Employee> headSetIterator = treeEmp.headSet(e).iterator();\n while (headSetIterator.hasNext()) { \n System.out.println(\"object Id \"+headSetIterator.next().id);\n }\n \n System.out.println(\"*****************************\");\n \n TreeSet<Employee> emps = new TreeSet<>(new CustomComparator());\n \n \n }", "public static void main(String[] args) {\n SortedSet<Long> longTreeSet = new TreeSet<>();\n longTreeSet.add(3L);\n longTreeSet.add(3L);\n longTreeSet.add(39L);\n longTreeSet.add(30L);\n longTreeSet.add(30L);\n\n System.out.println(\"longTreeSet = \" + longTreeSet);\n System.out.println(\"longTreeSet.size() = \" + longTreeSet.size());\n System.out.println(\"longTreeSet.first() = \" + longTreeSet.first());\n System.out.println(\"longTreeSet.last() = \" + longTreeSet.last());\n\n longTreeSet.addAll(Arrays.asList(15L, 18L, 15L, 18L));\n System.out.println(\"longTreeSet = \" + longTreeSet);\n\n //longTreeSet.add(null);\n // System.out.println(\"longTreeSet = \" + longTreeSet);\n\n\n System.out.println(\"longTreeSet.subSet(15L, 21L) = \" + longTreeSet.subSet(15L, 30L));\n System.out.println(\"longTreeSet.headSet(18L) = \" + longTreeSet.headSet(18L));\n System.out.println(\"longTreeSet.tailSet(18L) = \" + longTreeSet.tailSet(18L));\n\n SortedSet<Long> tailView = longTreeSet.tailSet(18L);\n System.out.println(\"tailView.remove(30L) = \" + tailView.remove(30L));\n System.out.println(\"longTreeSet = \" + longTreeSet);\n\n\n\n }", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "@Override\r\n\tpublic Set<K> keySet() {\r\n\t\tSet<K> keySet = new HashSet<K>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tkeySet.addAll(b.keySet());\r\n\t\t}\r\n\t\treturn keySet;\r\n\t}", "public Map<K, Set<V>> coreGetAllSupersetsOf(Collection<?> set, int mode) {\n // Skip elements in the collection having an incorrect type, as we are looking for subsets which simply\n // cannot contain the conflicting items\n Set<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n List<SetTrieNode> frontier = new ArrayList<>();\n frontier.add(superRootNode);\n\n // For every value, extend the frontier with the successor nodes for that value.\n V from = null;\n V upto = null;\n\n // Use a flag for null safety so we do not rely on the comparator to treat null as the least element\n boolean isLeastFrom = true;\n while(it.hasNext()) {\n from = upto;\n upto = it.next();\n\n List<SetTrieNode> nextNodes = new ArrayList<>();\n\n // Based on the frontier, we need to keep scanning nodes whose values is in the range [from, upto]\n // until we find the nodes whose values equals upto\n // Only these nodes then constitute the next frontier\n Collection<SetTrieNode> currentScanNodes = frontier;\n do {\n Collection<SetTrieNode> nextScanNodes = new ArrayList<>();\n for(SetTrieNode currentNode : currentScanNodes) {\n if(currentNode.nextValueToChild != null) {\n NavigableMap<V, SetTrieNode> candidateNodes = isLeastFrom\n ? currentNode.nextValueToChild.headMap(upto, true)\n : currentNode.nextValueToChild.subMap(from, true, upto, true);\n\n for(SetTrieNode candidateNode : candidateNodes.values()) {\n if(Objects.equals(candidateNode.value, upto)) {\n nextNodes.add(candidateNode);\n } else {\n nextScanNodes.add(candidateNode);\n }\n }\n }\n }\n currentScanNodes = nextScanNodes;\n } while(!currentScanNodes.isEmpty());\n\n frontier = nextNodes;\n\n isLeastFrom = false;\n }\n\n Map<K, Set<V>> result = new HashMap<>();\n\n // Copy all data entries associated with the frontier to the result\n Stream<SetTrie<K, V>.SetTrieNode> stream = frontier.stream();\n\n if(mode != 0) {\n stream = stream.flatMap(node -> reachableNodesAcyclic(\n node,\n x -> (x.nextValueToChild != null ? x.nextValueToChild.values() : Collections.<SetTrieNode>emptySet()).stream()));\n }\n\n stream.forEach(currentNode -> {\n if(currentNode.keyToSet != null) {\n for(Entry<K, NavigableSet<V>> e : currentNode.keyToSet.entrySet()) {\n result.put(e.getKey(), e.getValue());\n }\n }\n });\n\n return result;\n }", "public static SortedSet synchronizedSortedSet(SortedSet set) {\n/* 263 */ return SynchronizedSortedSet.decorate(set);\n/* */ }", "static void arrayToSet()\n\t{\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\tString arr[] = {\"A\",\"B\",\"C\",\"D\",\"E\",\"A\"};\n\t\t\t\n\t\t\toList = Arrays.asList(arr);\n\t\t\tSystem.out.println(\"List: \"+oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>(oList);\n\t\t\t\n\t\t\tSystem.out.println(\"Set: \"+oSet);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet = null;\n\t\t}\n\t}", "public SortedSet() {\n\n }", "public MyHashSet() {\n \n }", "@Override \n public Set<String> keySet() {\n \n \n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n \n try {\n \n // abre uma conecção\n conn = Connect.connect();\n \n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT nomePacote FROM Pacote WHERE visivel=TRUE;\");\n \n \n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n \n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"nomePacote\")); \n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }", "public MyHashSet() {\n s = new ArrayList<>();\n }", "public Iterator iterator()\n {\n return new HashSetIterator();\n }", "public static void main(String[] args) {\n HashSetTest hashSetTest = new HashSetTest();\n hashSetTest.operations();\n //TreeSet\n TreesetTest treesetTest = new TreesetTest();\n treesetTest.operations();\n }", "public static void main(String[] args) {\n\t\tHashSet<Integer> st = new HashSet<Integer>();\n\t\t/*The HashSet class is an inherent implementation of the hash table data structure. \n\t\t * The objects that we insert into the HashSet do not guarantee to be inserted in the same order. \n\t\t * The objects are inserted based on their hashcode. \n\t\t * This class also allows the insertion of NULL elements*/\n\t\tst.add(13);\n\t\t//st.get(0); As the values are stored according to hash values we can't access them by indices\n\t\tIterator<Integer> itr = st.iterator();\n\t\twhile(itr.hasNext())\n\t\t\tSystem.out.println(itr.next());\n\t\t/*A linked hashset is similar to that of Hash set but it uses a doubly linked list to store the data\n\t\t and retains the ordering of elements */\n\t\tLinkedHashSet<String> s1 = new LinkedHashSet<String>();\n\t\ts1.add(\"Prashanth\");\n\t\ts1.add(\"Pranavi\");\n\t\tSystem.out.println(s1);\n\t\t/*Tree set class uses tree for storage of elements. The ordering of elements is maintained by using\n\t\t a set using their natural ordering */\n\t\tTreeSet<String> s2 = new TreeSet<String>();\n\t\ts2.add(\"Shobha Rani\");\n\t\ts2.add(\"Raj Kumar\");\n\t\tSystem.out.println(s2);\n\t}", "public static <T> Set<T> CreateLinkedHashSet() {\n return new LinkedHashSet<>();\n }", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "@Override\n public SetInterface<T> intersection(SetInterface<T> rhs) {\n //create the return SetInterface\n SetInterface<T> result = new LinkedSet();\n Node n = first;\n //move through the modes\n while(n != null){\n //check if the item is also in rhs\n if(rhs.contains(n.value))\n result.addItem(n.value);\n n = n.next;\n }\n return result;\n }", "public ClosedHashSet(){\r\n super();\r\n buildHashSet(capacity(), hashSet);\r\n }", "public static <V> LinkedHashSet<V> asSet(V... values) {\n LinkedHashSet<V> ans = new LinkedHashSet<V>();\n for (int i = 0; i < values.length; i++)\n ans.add(values[i]);\n return ans;\n }", "public static Set asSet(Object[] items) {\r\n \t\r\n \tSet set = new HashSet(items.length);\r\n \tfor (int i=0; i<items.length; i++) {\r\n \t\tset.add(items[i]);\r\n \t}\r\n \treturn set;\r\n }", "public static void main(String[] args) {\n\t\t\tList<String> hrLeaders = new ArrayList<>();\n\t\t\thrLeaders.add(\"762 - Barry Bonds\");\n\t\t\thrLeaders.add(\"755 - Hank Aaron\");\n\t\t\thrLeaders.add(\"714 - Babe Ruth\");\n\t\t\thrLeaders.add(\"687 - Alex Rodriquez\");\n\t\t\thrLeaders.add(\"686 - Brandon Davis\");\n\t\t\thrLeaders.add(\"686 - Brandon Davis\");\n\t\t\thrLeaders.add(\"660 - Willie Mays\");\n\t\t\t\n\t\t\tSystem.out.println(\"*****LIST EXAMPLE*****\");\n\t\t\tSystem.out.println(\"Here are the top \" + hrLeaders.size() + \" homerun leaders of all time!\");\n\t\t\tSystem.out.print(hrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\thrLeaders.set(0, \"763 - Mike Trout\");\n\t\t\tSystem.out.println(\"Updated Home Run List \\n\" + hrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\t\t\t\n\t\t\tSystem.out.print(\"Sorted Set after passing into TreeSet: \\n\"); \n\t Set<String> tree_Set1 = new TreeSet<String>(hrLeaders); \n\t System.out.println(tree_Set1);\n\t \n\t System.out.print( \"\\n\\n\" );\t\n\t\t\t\n\t\t\tSystem.out.print( \"_______________________________________________________________________\" );\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\t\n\n//Map EXAMPLE//\t\t\n\t\t\tSystem.out.println(\"*****Map EXAMPLE*****\");\n\t\t\tMap<Integer, String> AhrLeaders = new HashMap<>();\n\t\t\tAhrLeaders.put(762, \"Barry Bonds\");\n\t\t\tAhrLeaders.put(755, \"Hank Aaron\");\n\t\t\tAhrLeaders.put(714, \"Babe Ruth\");\n\t\t\tAhrLeaders.put(687, \"Alex Rodriquez\");\n\t\t\tAhrLeaders.put(686, \"Brandon Davis\");\n\t\t\tAhrLeaders.put(686, \"Brandon Davis\");\n\t\t\tAhrLeaders.put(660, \"Willie Mays\");\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Here are the top \" + AhrLeaders.size() + \" homerun leaders of all time!\");\n\t\t\tSystem.out.print(AhrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\t\n\t\t\tArrayList<Integer> keyList = new ArrayList<Integer>(AhrLeaders.keySet());\n\t\t ArrayList<String> valueList = new ArrayList<String>(AhrLeaders.values());\n\n\t\t System.out.println(\"Top Homerun Leaders by number of Homeruns ::\"+keyList);\n\t\t System.out.println(\"Top Homerun Leaders by Name ::\"+valueList);\n\t\t\t\n\t\t System.out.print( \"_______________________________________________________________________\" );\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\t\n//Set EXAMPLE and Treeset//\t\t\n\t\t\tSystem.out.println(\"*****Set EXAMPLE*****\");\n\t\t\tSet<String> BhrLeaders = new HashSet<String>();\n\t\t\tBhrLeaders.add(\"762 - Barry Bonds\");\n\t\t\tBhrLeaders.add(\"755 - Hank Aaron\");\n\t\t\tBhrLeaders.add(\"714 - Babe Ruth\");\n\t\t\tBhrLeaders.add(\"687 - Alex Rodriquez\");\n\t\t\tBhrLeaders.add(\"686 - Brandon Davis\");\n\t\t\tBhrLeaders.add(\"686 - Brandon Davis\");\n\t\t\tBhrLeaders.add(\"660 - Willie Mays\");\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Here are the top \" + BhrLeaders.size() + \" homerun leaders of all time!\");\n\t\t\tSystem.out.print(BhrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\n\t\t\tBhrLeaders.add(\"661 - Mike Trout\"); \n\t\t\tSystem.out.println(\"Updated Home Run List: \\n\" + BhrLeaders);\n\t\t\t\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\t\t\t\n\t\t\tSystem.out.print(\"Sorted Set after passing into TreeSet: \\n\"); \n\t Set<String> tree_Set = new TreeSet<String>(BhrLeaders); \n\t System.out.println(tree_Set);\n\t\t\t\n\t System.out.print( \"_______________________________________________________________________\" );\n\t\t\tSystem.out.print( \"\\n\\n\" );\n\n//Queue EXAMPLE//\t\t\n\t\t\tSystem.out.println(\"*****QUEUE EXAMPLE*****\");\n\t\t\t\n\t\t\tList<String> listhrLeaders = Arrays.asList(\"Barry Bond - 762\", \"Hank Aaron - 755\", \"Babe Ruth - 714\", \"Alex Rodriequez - 687\", \"Brandon Davis - 686\", \"Brandon Davis - 686\", \"Willie Mays - 660\");\n\t\t\tQueue<String> queueNames = new LinkedList<>(listhrLeaders);\n\t\t\tSystem.out.println(queueNames);\n\t\t\t\n\t\t\tqueueNames.add(\"661 - Mike Trout\");\n\t\t\tqueueNames.add(\"660 - Bryce Harper\");\n\t\t\tSystem.out.println(queueNames);\n\t\t\t\n\t\t\t\t\t\n\t\n\t}", "public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }", "@Override\n public Set<K> keySet() {\n if (isEmpty()) return new HashSet<K>();\n return keys(min(), max());\n }" ]
[ "0.72725475", "0.72309774", "0.7062217", "0.70539767", "0.672987", "0.6673298", "0.666898", "0.66261846", "0.66086817", "0.6608216", "0.6600254", "0.6553322", "0.6549465", "0.6549194", "0.6527264", "0.6525382", "0.6516525", "0.6504753", "0.6461037", "0.6429076", "0.6395546", "0.63689727", "0.6358832", "0.63339615", "0.6330844", "0.6311249", "0.63038", "0.62703717", "0.62629336", "0.625887", "0.6243554", "0.6238384", "0.6230993", "0.6225274", "0.62236714", "0.62187874", "0.62065214", "0.618096", "0.61769754", "0.61447793", "0.61274254", "0.61140174", "0.60901684", "0.6087684", "0.60786784", "0.6076972", "0.60697997", "0.60592824", "0.604615", "0.60337865", "0.6032656", "0.603029", "0.602848", "0.60043687", "0.5988905", "0.59795433", "0.5970167", "0.59565604", "0.59553283", "0.5921973", "0.59208", "0.5918546", "0.5917666", "0.59152925", "0.59082633", "0.59007365", "0.5896211", "0.5894347", "0.5893089", "0.5892198", "0.5891108", "0.5889512", "0.58887833", "0.5881233", "0.587119", "0.5867954", "0.58655405", "0.5864926", "0.586392", "0.58614993", "0.5850211", "0.5847509", "0.5845178", "0.58428544", "0.584151", "0.5833405", "0.58235085", "0.5821233", "0.5820965", "0.58132726", "0.5813007", "0.58106726", "0.58013296", "0.5793107", "0.5792974", "0.5791671", "0.5790188", "0.5785585", "0.57797754", "0.5759864", "0.57560486" ]
0.0
-1
flag to know that captcha contains alphabets or not
public static void main(String[] args) throws Exception { System.out.println("Does the captcha contain alphabets (yes or no) :"); Scanner sc=new Scanner(System.in); String in=sc.nextLine(); // taking imput (yes or no) if(in.toLowerCase().equals("yes") || in.toLowerCase().equals("y")) // checking if the input is yes { alpha=true; // if input is yes alpha flag is set to true for (int i=0; i<35; i++) { // for each possible character templates[i] = ImageIO.read(new File("template" + i+ ".gif")); // taking all the templates along with alphabets into consideration } } else { alpha=false;// if input is not yes alpha flag is set to true for (int i=0; i<10; i++) { // for each possible character templates[i] = ImageIO.read(new File("template" + i+ ".gif"));// taking all the templates along with out alphabets into consideration } } int numTests = 100; // total number of trials // read in the templates for each character for (int i=0; i<35; i++) { // for each possible character templates[i] = ImageIO.read(new File("template" + i+ ".gif")); } int correct = 0; for (int i=0; i<numTests; i++) { // generate a random string String rightAnswer = randomString(6,alpha); // make a captcha from it BufferedImage captchaImage = generateCaptcha(rightAnswer); if (show) { ImageIO.write(captchaImage, "jpeg", new File("see.jpg")); show = false; } // guess the captcha String guess = guessCaptcha(captchaImage); // see if we got it right if (guess.equals(rightAnswer)) correct++; } System.out.println("accuracy: " + (correct / (double) numTests)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isAllLetters(String text) {\n for ( int i = 0; i < text.length(); i++){\n if(!(Character.isAlphabetic(text.charAt(i)) || text.charAt(i) == ' '))\n {\n return false;\n }\n }\n return true;\n }", "public boolean isEncodingAlpha();", "public static boolean checkAllAlphabets(String input) {\n if (input.length() < 26) {\n return false;\n }\n\n //Even a single character is missing, return false\n for (char ch = 'A'; ch <= 'Z'; ch++) {\n if (input.indexOf(ch) < 0 && input.indexOf((char) (ch + 32)) < 0) {\n return false;\n }\n }\n return true;\n }", "private boolean isValid() {\n return Character.isLetter(c);\n }", "private boolean isAlpha(char toCheck) {\n return (toCheck >= 'a' && toCheck <= 'z') ||\n (toCheck >= 'A' && toCheck <= 'Z') ||\n toCheck == '_';\n }", "@Test\n\tpublic void inputVoucher_is_alphanumeric(){\n\t\tString pattern = \"^[a-zA-Z0-9]*$\";\n\t\tvoucher.getInputVoucher().sendKeys(\"aaa aaaa 123\");\n\t\tSystem.out.println(voucher.getInputVoucher().getText().matches(pattern));\n\t\tAssert.assertEquals(voucher.getInputVoucher().getText().matches(pattern), true, \"input voucher code tidak alphanumeric\");\n\t}", "private boolean isGrLetter(char ch) {\n /*if ( ( (ch >= 'á') && (ch <= 'ù')) || ( (ch >= 'Á') && (ch <= 'Ù')) ||\n (ch == 'Ü') || (ch == 'Ý') || (ch == 'Þ') || (ch == 'ß') ||\n (ch == 'ü') || (ch == 'ý') || (ch == 'þ') ||\n (ch == '¢') || (ch == '¸') || (ch == '¹') || (ch == 'º') ||\n (ch == '¼') || (ch == '¾') || (ch == '¿') ||\n (ch == 'ú') || (ch == 'û') || (ch == 'À') || (ch == 'à')) {*/\n if ( ( (ch >= '\\u03b1') && (ch <= '\\u03c9')) || ( (ch >= '\\u0391') && (ch <= '\\u03a9')) ||\n \t(ch == '\\u03ac') || (ch == '\\u03ad') || (ch == '\\u03ae') || (ch == '\\u03af') ||\n \t(ch == '\\u03cc') || (ch == '\\u03cd') || (ch == '\\u03ce') ||\n \t(ch == '\\u0386') || (ch == '\\u0388') || (ch == '\\u0389') || (ch == '\\u038a') ||\n \t(ch == '\\u038c') || (ch == '\\u038e') || (ch == '\\u038f') ||\n \t(ch == '\\u03ca') || (ch == '\\u03cb') || (ch == '\\u0390') || (ch == '\\u03b0')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "private boolean isAlphanumeric(char c) {\n if (c < '0' || c > 'z') {\n return false;\n }\n if (c <= '9' || c >= 'a') {\n return true;\n }\n if (c >= 'A' && c <= 'Z') {\n return true;\n }\n return false;\n }", "boolean hasHasCharacter();", "private boolean alpha() {\r\n return letter() || CATS(Nd) || CHAR('-') || CHAR('_');\r\n }", "private boolean ifAlphabetOnly(String str){\n return str.chars().allMatch(Character :: isLetter);\n }", "public static boolean checkchar(String sentence){\n for (int i =0; i < sentence.length(); i++){ //just compare for the whole length \n if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter\n return false; //return false\n }\n return true; //otherwise return true\n }\n return true;\n}", "private boolean requiresLettersOrSymbols() {\n return mPasswordMinLetters + mPasswordMinUpperCase\n + mPasswordMinLowerCase + mPasswordMinSymbols + mPasswordMinNonLetter > 0;\n }", "public static boolean lettersCheck(String name) {\r\n\t\treturn name.matches(\"^[\\\\p{L} .'-]+$\");\r\n\t}", "boolean hasChar();", "private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }", "private static boolean isAlpha(byte b)\r\n\t{\r\n\t\treturn (b >= 'a' && b <= 'z') || \r\n\t\t\t (b >= 'A' && b <= 'Z');\r\n\t}", "public boolean hasAlpha() {\n return true;\n }", "public static boolean checkAllCharsUsingRegex(String input) {\n if (input.length() < 26) {\n return false;\n }\n //Even a single character is missing, return false\n String regex = \"(?i)(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f)\"\n + \"(?=.*g)(?=.*h)(?=.*i)(?=.*j)(?=.*k)(?=.*l)(?=.*m)(?=.*n)\"\n + \"(?=.*o)(?=.*p)(?=.*q)(?=.*r)(?=.*s)(?=.*t)(?=.*u)(?=.*v)\"\n + \"(?=.*w)(?=.*x)(?=.*y)(?=.*z).*\";\n\n if (input.matches(regex)) {\n return true;\n }\n return false;\n }", "public boolean checkFormat(String username){\n\n ArrayList<Character> charList = new ArrayList<Character>();\n Collections.addAll(charList, '!', '$', '#', '@');\n\n //Check for special Character\n boolean containsSpecial = false;\n for(Character character: charList) {\n if (username.contains(Character.toString(character))) {\n containsSpecial = true;\n }\n }\n //Check for Letters\n int numberCharacters = 0;\n if(containsSpecial){\n for(int i=0; i<username.length();i++){\n String symbol = String.valueOf(username.charAt(i));\n\n //REGEX pattern Check\n Pattern pattern = Pattern.compile(\"[A-z]\");\n Matcher matcher = pattern.matcher(symbol);\n\n if(matcher.matches()){\n numberCharacters++;\n System.out.println(\"Match: \" + numberCharacters);\n }\n }\n }\n\n if(numberCharacters>2){\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isAscii()\n { \n for (int i=0; i<val.length(); ++i)\n { \n int c = val.charAt(i);\n if (c > 0x7f) return false;\n }\n return true;\n }", "public static boolean checkchar(String sentence, int total){\n \n if (total>sentence.length()){ //if the number entered is bigger than the total length\n for (int i =0; i < sentence.length(); i++) { //just compare for the whole length \n if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter\n return false; //return false\n }\n }\n return true; //otherwise return true\n }\n \n else { //if number entered is less than the total length\n for(int i =0; i < total; i++){ //just look at the number of characters the user wants you to look at \n if(Character.isLetter(sentence.charAt(i))==false){ //if it not a letter \n return false;//return false\n }\n \n return true; //otherwise return true\n }\n \n }\n return true;\n \n }", "private static Boolean testUsername(String username){\n\t\t//Setting Up Regex -> All Numbers and Letters maximum 14 signs\n\t\tString pattern =\"[A-z1-9]{2,14}\";\n\t\tPattern p = Pattern.compile(pattern);\n\t\tMatcher m = p.matcher(username);\n\t\t\t\n\t\tif(m.matches() && !username.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isAsciiAlpha(char ch) {\n/* 460 */ return (isAsciiAlphaUpper(ch) || isAsciiAlphaLower(ch));\n/* */ }", "private static boolean isAlpha(char p_char) {\n return ((p_char >= 'a' && p_char <= 'z') || (p_char >= 'A' && p_char <= 'Z' ));\n }", "private boolean isAlfabetico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase 'A':\r\n\t\t\treturn true;\r\n\t\tcase 'B':\r\n\t\t\treturn true;\r\n\t\tcase 'C':\r\n\t\t\treturn true;\r\n\t\tcase 'D':\r\n\t\t\treturn true;\r\n\t\tcase 'E':\r\n\t\t\treturn true;\r\n\t\tcase 'F':\r\n\t\t\treturn true;\r\n\t\tcase 'G':\r\n\t\t\treturn true;\r\n\t\tcase 'H':\r\n\t\t\treturn true;\r\n\t\tcase 'I':\r\n\t\t\treturn true;\r\n\t\tcase 'J':\r\n\t\t\treturn true;\r\n\t\tcase 'K':\r\n\t\t\treturn true;\r\n\t\tcase 'L':\r\n\t\t\treturn true;\r\n\t\tcase 'M':\r\n\t\t\treturn true;\r\n\t\tcase 'N':\r\n\t\t\treturn true;\r\n\t\tcase 'Ñ':\r\n\t\t\treturn true;\r\n\t\tcase 'O':\r\n\t\t\treturn true;\r\n\t\tcase 'P':\r\n\t\t\treturn true;\r\n\t\tcase 'Q':\r\n\t\t\treturn true;\r\n\t\tcase 'R':\r\n\t\t\treturn true;\r\n\t\tcase 'S':\r\n\t\t\treturn true;\r\n\t\tcase 'T':\r\n\t\t\treturn true;\r\n\t\tcase 'U':\r\n\t\t\treturn true;\r\n\t\tcase 'V':\r\n\t\t\treturn true;\r\n\t\tcase 'W':\r\n\t\t\treturn true;\r\n\t\tcase 'X':\r\n\t\t\treturn true;\r\n\t\tcase 'Y':\r\n\t\t\treturn true;\r\n\t\tcase 'Z':\r\n\t\t\treturn true;\r\n\t\tcase 'a':\r\n\t\t\treturn true;\r\n\t\tcase 'b':\r\n\t\t\treturn true;\r\n\t\tcase 'c':\r\n\t\t\treturn true;\r\n\t\tcase 'd':\r\n\t\t\treturn true;\r\n\t\tcase 'e':\r\n\t\t\treturn true;\r\n\t\tcase 'f':\r\n\t\t\treturn true;\r\n\t\tcase 'g':\r\n\t\t\treturn true;\r\n\t\tcase 'h':\r\n\t\t\treturn true;\r\n\t\tcase 'i':\r\n\t\t\treturn true;\r\n\t\tcase 'j':\r\n\t\t\treturn true;\r\n\t\tcase 'k':\r\n\t\t\treturn true;\r\n\t\tcase 'l':\r\n\t\t\treturn true;\r\n\t\tcase 'm':\r\n\t\t\treturn true;\r\n\t\tcase 'n':\r\n\t\t\treturn true;\r\n\t\tcase 'ñ':\r\n\t\t\treturn true;\r\n\t\tcase 'o':\r\n\t\t\treturn true;\r\n\t\tcase 'p':\r\n\t\t\treturn true;\r\n\t\tcase 'q':\r\n\t\t\treturn true;\r\n\t\tcase 'r':\r\n\t\t\treturn true;\r\n\t\tcase 's':\r\n\t\t\treturn true;\r\n\t\tcase 't':\r\n\t\t\treturn true;\r\n\t\tcase 'u':\r\n\t\t\treturn true;\r\n\t\tcase 'v':\r\n\t\t\treturn true;\r\n\t\tcase 'w':\r\n\t\t\treturn true;\r\n\t\tcase 'x':\r\n\t\t\treturn true;\r\n\t\tcase 'y':\r\n\t\t\treturn true;\r\n\t\tcase 'z':\r\n\t\t\treturn true;\r\n\t\tcase ' ':\r\n\t\t\treturn true;\r\n\t\tcase '*':\r\n\t\t\treturn true;// debido a búsquedas\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean getHasCharacter();", "private boolean isAlphaNumeric(char toCheck) {\n return isAlpha(toCheck) || isDigit(toCheck);\n }", "public boolean check(String str)\n {\n\n int count=0;\n int arr[] = new int[26];\n int i;\n boolean flag=false;\n str = str.replaceAll(\"[^a-zA-Z]\", \"\");\n str.toLowerCase();\n if(str==null) {\n System.out.println(\"string can't be null\");\n }\n else\n {\n if(str.length()==26) {\n for (i = 0; i < str.length(); i++) {\n if (count == 26) {\n flag = true;\n break;\n }\n char k = str.charAt(i);\n int j = (int) k - 'a';\n if (arr[j] == 0) {\n count++;\n arr[j] = 1;\n }\n }\n }\n else\n break;\n\n }\n return flag;\n }", "public final char[] validChars() {\n\t\t\treturn VALID_ALPHABET;\n\t\t}", "public boolean verifyString(String s) {\n\t\t\n\t\tfor (int i = 0; i<s.length();i++) {\n\t\t\tif (!alphabet.contains(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "private static boolean isAlphanum(char p_char) {\n return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_ALPHA_NUMERIC) != 0);\n }", "public static boolean isLetters(CharSequence seq) {\n return is(seq, IS_LETTERS);\n }", "private boolean isValidCI(String text){\n Boolean validation = true;\n int lenght = text.length();\n char lastCharacter = text.charAt(lenght-1);\n if(Character.isDigit(lastCharacter) || Character.isAlphabetic(lastCharacter)){\n for(int i=0;i<lenght-1;i++){\n char ch = text.charAt(i);\n if(!Character.isDigit(ch)){\n validation = false;\n break;\n }\n }\n }\n else{\n validation = false;\n }\n if(isOnlySpaces(text)){\n validation = false;\n }\n return validation;\n }", "public static String captcha(){\n\t\tString captcha=\"\";\n\t\tfor(int i=0; i<8; i+=2){\n\t\t\tcaptcha+=(char)(65+Math.random()*26)+\" \";\n\t\t\tcaptcha+=(char)(97+Math.random()*26);\n\t\t}\n\t\treturn captcha;\n\n\t}", "public static boolean isAsciiAlphanumeric(char ch) {\n/* 536 */ return (isAsciiAlpha(ch) || isAsciiNumeric(ch));\n/* */ }", "static boolean isLetterChoice()\r\n {\r\n\treturn isLetterChoice;\r\n }", "public static boolean hasUpperAlpha (String password) throws NoUpperAlphaException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[A-Z].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoUpperAlphaException();\r\n return true;\r\n }", "public static boolean hasLowerAlpha(String password) throws NoLowerAlphaException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[a-z].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoLowerAlphaException();\r\n return true;\r\n }", "private boolean containsOnlyASCII(String input) {\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) > 127) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean hasSpecialAndLetters(String characters ){\n \n Pattern letter = Pattern.compile(\"[a-zA-z]\"); \n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n Matcher hasLetter = letter.matcher(characters); \n Matcher hasSpecial = special.matcher(characters);\n\n // return hasLetter.find() && hasDigit.find() && hasSpecial.find();\n return (hasSpecial.find()==true || hasLetter.find()==true); \n \n }", "private boolean isAllChars(String fieldVal){\r\n // Get rid of all whitespace from the given string\r\n String val = fieldVal.replaceAll(\"\\\\s\", \"\").trim();\r\n // Check each character in the string to determine if it is a digit or not\r\n for (int i=0; i < val.length(); i++){\r\n // if we find a digit return false\r\n if (Character.isDigit(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n // if we get here then all characters in the string are letters\r\n return true;\r\n }", "Alphabet(String chars) {\n _chars = sanitizeChars(chars);\n }", "public static boolean passwordCharOrDig ( String password){\n for (int i = 0; i < password.length(); i++){\n if (!Character.isLetterOrDigit(password.charAt(i))){\n return false;\n }\n\n }\n return true;\n }", "private boolean isAlpha(String name) {\r\n\t\treturn name.matches(\"^[a-zA-Z0-9_]*$\");\r\n\t}", "public static void main(String[] args) {\n\n\t\t System.out.println(Character.isLetter('A')); \n \n\t System.out.println(Character.isLetter('0')); \n\t \n\t System.out.println(Character.isDigit('A')); \n\t \n\t System.out.println(Character.isDigit('0')); \n\t \n\t System.out.println(Character.isUpperCase('A')); \n\t System.out.println(Character.isUpperCase('a')); \n\t System.out.println(Character.isUpperCase(65)); \n\t \n\t System.out.println(Character.isLowerCase('A')); \n\t System.out.println(Character.isLowerCase('a')); \n\t System.out.println(Character.isLowerCase(97)); \n\t}", "public static boolean alphanumericCheck(String name)\r\n\t{\r\n\t\treturn name.matches(\"^[a-zA-Z0-9]*$\");\r\n\t}", "@Test\r\n\tpublic void testIsValidPasswordNoLowerAlpha()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"RAINBOW\"));\r\n\t\t}\r\n\t\tcatch(NoLowerAlphaException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a NoLowerAlphaExcepetion\",true);\r\n\t\t}\r\n\t}", "private boolean checkNameChar(String name) {\n\t\tString patternStr = \"[a-zA-Z]+\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(name);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}", "public boolean isUrgentLetter() {\n\t\treturn false;\n\t}", "private String validateChar(String text) {\n char[] validChars = new char[text.length()];\n int validCount = 0;\n for (int i = 0; i < text.length(); i++) {\n char c = text.charAt(i);\n boolean valid = (c >= 0x20 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xfffd);\n if (valid) {\n validChars[validCount++] = c;\n } else {\n if (c == 10) // LineBreak\n {\n validChars[validCount++] = c;\n }\n }\n }\n return new String(validChars, 0, validCount);\n }", "public boolean isLetters(String name) {\r\n char[] chars = name.toCharArray();\r\n\r\n for (char c : chars) {\r\n if(Character.isLetter(c) || c ==' ') {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "boolean checkName (String name){\r\n \r\n // Use for loop to check each character\r\n for (int i = 0; i < name.length(); i++) {\r\n // If character is below 'A' in Unicode table then return false\r\n if (name.charAt(i) < 65 && name.charAt(i) != 32 && name.charAt(i) != 10){\r\n return false;\r\n }\r\n // Else if character is between 'Z' and 'a' in unicode table,\r\n // then return false\r\n else if (name.charAt(i) > 90 && name.charAt(i) < 97){\r\n return false;\r\n }\r\n else if (name.charAt(i) > 122)\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean checkSpecialChars(String password) {\n return password.matches(\".*[()#$?!%/@].*\");\n //why does this not work? return password.matches(\"[()#$?!%/@]+\");\n }", "public static boolean isAlphanumeric(String field) {\r\n\t\tif (isEmpty(field))\r\n\t\t\treturn true;\r\n\t\tif (field.trim().matches(\"[A-Za-z0-9\\\\&\\\\'\\\\.\\\\,\\\\-\\\\ _]{0,1024}\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private static boolean isValidWord(String s) {\r\n\t\tString valid = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-'\";\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (valid.indexOf(s.charAt(i)) < 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "public static Boolean Letter(String arg){\n\t\tif(arg.matches(\"\\\\p{L}{1}\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isStringMadeofAllUniqueChars(String word) {\n if (word.length() > 128) {\n return false;\n }\n boolean[] char_set = new boolean[128];\n for (int i = 0; i < word.length(); i++) {\n int val = word.charAt(i);\n System.out.println(val);\n if (char_set[val]) {\n return false;\n }\n char_set[val] = true;\n }\n return true;\n }", "boolean isSetCapital();", "public boolean noOtherSpecialChars(String password) {\n boolean noOtherSpecialCharsPresent = false;\n int otherSpecials = 0;\n String[] splitPW = password.split(\"\");\n\n for (String s : splitPW) {\n //add count, if special char is present\n if (s.matches(\"[^a-zA-Z0-9]\")) {\n otherSpecials++;\n //remove last count, if special char matches allowed chars\n if (s.matches(\"[()#$?!%/@]\")) {\n otherSpecials--;\n }\n }\n }\n noOtherSpecialCharsPresent = otherSpecials == 0;\n return noOtherSpecialCharsPresent;\n }", "private static boolean m66068b(String str) {\n for (int i = 0; i < str.length(); i++) {\n char charAt = str.charAt(i);\n if (charAt <= 31 || charAt >= 127 || \" #%/:?@[\\\\]\".indexOf(charAt) != -1) {\n return true;\n }\n }\n return false;\n }", "protected void validatePassword(){\n //Only Checking For Word Type Password With Minimum Of 8 Digits, At Least One Capital Letter,At Least One Number,At Least One Special Character\n Boolean password = Pattern.matches(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9](?=.*[!@#$%^&*()])).{8,}$\",getPassword());\n System.out.println(passwordResult(password));\n }", "public static boolean isAlpha(String text) {\r\n\t\treturn text != null && text.trim().length() > 0\r\n\t\t\t\t&& text.replaceAll(\" \", \"\").chars().anyMatch(Character::isLetter);\r\n\t}", "public static void main(String[] args) {\n// System.out.println(alphanumeric.replaceAll(\"[aei]\", \"x\"));\n\n\n String regex = \"^[A-Z]|[a-z]\";\n String username = \"kaaviya\";\n\n System.out.println(username.replaceAll( \"^[A-Za-z][A-Za-z0-9_]{7,29}$\", \"x\"));\n System.out.println(username.matches(regex));\n\n }", "public boolean isWordFullyGuessed()\n {\n for(int i=0; i<showChar.length; i++)\n {\n if(!showChar[i]) return false;\n }\n\n return true;\n }", "boolean contains(char ch) {\n return _letters.indexOf(ch) >= 0;\n }", "Alphabet(String chars) {\n char[] newChars = chars.toCharArray();\n Map<Character, Integer> map = new HashMap<>();\n for (char c : newChars) {\n if (map.containsKey(c)) {\n int counter = map.get(c);\n map.put(c, ++counter);\n } else {\n map.put(c, 1);\n }\n }\n\n for (char c : map.keySet()) {\n if (map.get(c) > 1) {\n throw new EnigmaException(\"Duplicates Found\");\n } else {\n _letters = chars;\n }\n }\n }", "public boolean isActivationString(String word);", "public static void main(String[] args) {\n\r\n\t\tString password = \"$$ Welcome to 1st Automation Interview $$\" ;\r\n\t\t\r\n\t\tSystem.out.println(password.charAt(5));\r\n\r\n\t\tint lettercount = 0 , digitcount = 0 , specialcount = 0 ; \r\n\r\n\t\tPattern letter = Pattern.compile(\"[a-zA-z]\");\r\n\t\tPattern digit = Pattern.compile(\"[0-9]\");\r\n\t\tPattern special = Pattern.compile (\"[!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\r\n\t\t//Pattern eight = Pattern.compile (\".{8}\");\r\n\r\n\r\n\t\tMatcher hasLetter = letter.matcher(password);\r\n\t\tMatcher hasDigit = digit.matcher(password);\r\n\t\tMatcher hasSpecial = special.matcher(password);\r\n\r\n\r\n\t\tfor (int i = 0 ;password.length()<i ; i++) {\r\n\r\n\t\t\tif(hasLetter.find(password.charAt(i))) {\r\n\r\n\t\t\t\tlettercount++ ;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(lettercount);\r\n\r\n\t\t/*while ( hasLetter.find()) {\r\n\t\t\tlettercount++ ; \r\n\r\n\r\n\r\n\t\t} System.out.println(lettercount);\r\n\r\n\t\twhile (hasDigit.find()) {\r\n\t\t\tdigitcount++ ; \r\n\t\t\tSystem.out.println(hasDigit.group());\r\n\t\t} \r\n\t\tSystem.out.println(digitcount);\r\n\r\n\t\twhile ( hasSpecial.find()) {\r\n\t\t\tSystem.out.println(hasSpecial.group());\r\n\r\n\t\t\tspecialcount++;\r\n\t\t}System.out.println(specialcount);\r\n\t\t */\r\n\r\n\r\n\t}", "private boolean areCharsValid(final char[] chars) {\n boolean isValid = true;\n int counter = 0;\n\n while (isValid && counter < chars.length) {\n char current = chars[counter];\n if (Character.isDigit(current) || isLowerCaseLetter(current)) {\n counter++;\n } else {\n isValid = false;\n }\n }\n\n return isValid;\n }", "public static boolean isEncriptado(String text){\n\t\t if( text.indexOf( '-' ) == -1 ){\n\t\t\t return false;\n\t\t }\n\t\t StringTokenizer st = new StringTokenizer( text, \"-\", false );\n\t\t while( st.hasMoreTokens() ){\n\t\t\t String token = st.nextToken();\n\t\t\t if( token.length() > 3 ){\n\t\t\t\t System.out.println( \"text is not encrypted: length of token greater than 3: \" + token );\n\t\t\t\t return false;\n\t\t\t }\n\t\t\t for( int i=0; i<token.length(); i++ ){\n\t\t\t\t if( !Character.isDigit( token.charAt( i ) ) ){\n\t\t\t\t\t System.out.println( \"text is not encrypted: token is not a digit\" );\n\t\t\t\t\t return false;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t return true;\n\t }", "private static boolean m127620a(char c) {\n return Pattern.compile(\"[一-龥]\").matcher(String.valueOf(c)).matches();\n }", "private boolean isEnLetter(char ch) {\n if ( ( (ch >= 'a') && (ch <= 'z')) || ( (ch >= 'A') && (ch <= 'Z'))) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "public boolean hasUnwantedChar(String name, String field) {\r\n\t\tboolean unwantedCharacter = false;\r\n\t\tchar checkName[] = name.toCharArray();\r\n\t\tif(field == \"names\") {\r\n\t\t\tint find = 0;\r\n\t\t\twhile(find < checkName.length) {\r\n\t\t\t\tswitch(checkName[find]) {\r\n\t\t\t\tcase 'A':case 'a':case 'B':case 'b':case 'C':case 'c':case 'D':case 'd':case 'E':case 'e':case 'F':case 'f':case 'G':case 'g':\r\n\t\t\t\tcase 'H':case 'h':case 'I':case 'i':case 'J':case 'j':case 'K':case 'k':case 'L':case 'l':case 'M':case 'm':case 'N':case 'n':\r\n\t\t\t\tcase 'O':case 'o':case 'P':case 'p':case 'Q':case 'q':case 'R':case 'r':case 'S':case 's':case 'T':case 't':case 'U':case 'u':\r\n\t\t\t\tcase 'V':case 'v':case 'W':case 'w':case 'X':case 'x':case 'Y':case 'y':case 'Z':case 'z':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tunwantedCharacter = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(unwantedCharacter == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t++find;\r\n\t\t\t}\t\r\n\t\t}else if(field == \"password & physical address\") {\r\n\t\t\tint find = 0;\r\n\t\t\twhile(find < checkName.length) {\r\n\t\t\t\tswitch(checkName[find]) {\r\n\t\t\t\tcase 'A':case 'a':case 'B':case 'b':case 'C':case 'c':case 'D':case 'd':case 'E':case 'e':case 'F':case 'f':case 'G':case 'g':\r\n\t\t\t\tcase 'H':case 'h':case 'I':case 'i':case 'J':case 'j':case 'K':case 'k':case 'L':case 'l':case 'M':case 'm':case 'N':case 'n':\r\n\t\t\t\tcase 'O':case 'o':case 'P':case 'p':case 'Q':case 'q':case 'R':case 'r':case 'S':case 's':case 'T':case 't':case 'U':case 'u':\r\n\t\t\t\tcase 'V':case 'v':case 'W':case 'w':case 'X':case 'x':case 'Y':case 'y':case 'Z':case 'z':\t\r\n\t\t\t\tcase '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':case '0':case ' ':case '-':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\t\r\n\t\t\t\t\tunwantedCharacter = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(unwantedCharacter == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t++find;\r\n\t\t\t}\t\r\n\t\t}else if(field == \"email\") {\r\n\t\t\tint find = 0;\r\n\t\t\twhile(find < checkName.length) {\r\n\t\t\t\tswitch(checkName[find]) {\r\n\t\t\t\tcase 'A':case 'a':case 'B':case 'b':case 'C':case 'c':case 'D':case 'd':case 'E':case 'e':case 'F':case 'f':case 'G':case 'g':\r\n\t\t\t\tcase 'H':case 'h':case 'I':case 'i':case 'J':case 'j':case 'K':case 'k':case 'L':case 'l':case 'M':case 'm':case 'N':case 'n':\r\n\t\t\t\tcase 'O':case 'o':case 'P':case 'p':case 'Q':case 'q':case 'R':case 'r':case 'S':case 's':case 'T':case 't':case 'U':case 'u':\r\n\t\t\t\tcase 'V':case 'v':case 'W':case 'w':case 'X':case 'x':case 'Y':case 'y':case 'Z':case 'z':\t\r\n\t\t\t\tcase '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':case '0':case '@':case '.':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tunwantedCharacter = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(unwantedCharacter == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t++find;\r\n\t\t\t}\r\n\t\t}else if(field == \"mobileNumber\") {\r\n\t\t\tint find = 0;\r\n\t\t\twhile(find < checkName.length) {\r\n\t\t\t\tswitch(checkName[find]) {\r\n\t\t\t\tcase '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':case '0':case ' ':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tunwantedCharacter = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(unwantedCharacter == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t++find;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn unwantedCharacter;\r\n\t}", "public static boolean hasSpecial(String characters ){\n \n // Pattern letter = Pattern.compile(\"[a-zA-z]\"); \n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n // Matcher hasLetter = letter.matcher(characters); \n Matcher hasSpecial = special.matcher(characters);\n\n // return hasLetter.find() && hasDigit.find() && hasSpecial.find();\n return (hasSpecial.find()); \n \n }", "static boolean isValidWord(String word){\n\t\tword = word.toLowerCase();\n\t\tchar check;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tcheck = word.charAt(i);\n\t\t\tif((check<97 || check>122)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private byte ensureIsInAlphabet(byte input) {\n return (byte)(ALPHABET_START + (Math.abs(input) % ALPHABET_SIZE));\n }", "public static boolean isAscii(char ch) {\n/* 403 */ return (ch < '€');\n/* */ }", "public static boolean isCon(String s){\n boolean flag = true;\n int i = 0;\n while(flag && i < s.length()){\n if ((s.charAt(i) >= 'a' && s.charAt(i) <= 'z') || (s.charAt(i) >= 'A' && s.charAt(i) <='Z')) {\n flag = (s.charAt(i) != 'a' && s.charAt(i) != 'A' &&\n s.charAt(i) != 'e' && s.charAt(i) != 'E' &&\n s.charAt(i) != 'i' && s.charAt(i) != 'I' &&\n s.charAt(i) != 'o' && s.charAt(i) != 'O' &&\n s.charAt(i) != 'u' && s.charAt(i) != 'U' );\n }else\n flag = false;\n \n i++;\n }\n return flag;\n }", "private boolean checkInputContent(String contents){\n try {\n char[] temC = contents.toCharArray();\n for (int i=0;i<temC.length;i++) {\n char mid = temC[i];\n if(mid>=48&&mid<=57){//数字\n continue;\n }\n if(mid>=65&&mid<=90){//大写字母\n continue ;\n }\n if(mid>=97&&mid<=122){//小写字母\n continue ;\n }\n// temp.replace(i, i+1, \" \");\n return false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return true;\n }", "private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }", "private char[] alphanumeric(){\n StringBuffer buf=new StringBuffer(128);\n for(int i=48; i<= 57;i++)buf.append((char)i); // 0-9\n for(int i=65; i<= 90;i++)buf.append((char)i); // A-Z\n for(int i=97; i<=122;i++)buf.append((char)i); // a-z\n return buf.toString().toCharArray();\n }", "@Test\r\n\tvoid testGetRandomLetterAShouldReturnTrue() {\r\n\t\tString[] alphabet = { \"e\", \"a\", \"i\", \"o\", \"n\", \"r\", \"t\", \"l\", \"s\", \"u\", \"d\", \"g\", \"b\", \"c\", \"m\", \"p\", \"f\", \"h\",\r\n\t\t\t\t\"v\", \"w\", \"y\", \"k\", \"j\", \"x\", \"q\", \"z\" };\r\n\t\tfor (int count = 0; count < 10000; count++) {\r\n\t\t\tRandomLetter a2z = new RandomLetter();\r\n\t\t\tif (!Arrays.asList(alphabet).contains(a2z.getRandomLetter())) {\r\n\t\t\t\tfail(\"returned a value that was not in the alphabet ---\" + a2z.getRandomLetter());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean isIUPAC(final char base) {\n\tswitch(base) {\n\t case 'A':\n\t case 'C':\n\t case 'G':\n\t case 'T':\n\t case 'U':\n\t case 'R':\n\t case 'Y':\n\t case 'S':\n\t case 'W':\n\t case 'K':\n\t case 'M':\n\t case 'B':\n\t case 'D':\n\t case 'H':\n\t case 'V':\n\t case 'N':\n\t //\n\t case 'a':\n\t case 'c':\n\t case 'g':\n\t case 't':\n\t case 'u':\n\t case 'r':\n\t case 'y':\n\t case 's':\n\t case 'w':\n\t case 'k':\n\t case 'm':\n\t case 'b':\n\t case 'd':\n\t case 'h':\n\t case 'v':\n\t case 'n': return true;\n\t default: return false;\n\t\t}\n\t}", "public boolean checkLowerCase(String password) {\n return password.matches(\".*[a-z].*\");\n }", "public boolean checkForChar(String str) {\n\t\tif (str.contains(\"a\") || str.contains(\"A\") || str.contains(\"e\") || str.contains(\"E\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// TO DO\n\n\t\treturn false;\n\t}", "public static boolean validaPlaca(String placa){\n\t\t if(placa.length() != 7){\n\t\t return false;\n\t\t }\n\t\t if(!placa.substring(0, 3).matches(\"[A-Z]*\")){\n\t\t return false;\n\t\t }\n\t\t return placa.substring(3).matches(\"[0-9]*\");\n\t}", "public static char[] readMessage(String alphabets){\n\n Scanner scan = new Scanner(System.in);\n String input = scan.nextLine().toUpperCase().replaceAll(\"\\\\s+\",\"\"); //read input\n int inputSize = input.length();\n int alphabetsSize = alphabets.length();\n\n boolean validitySize;\n boolean validityString = false;\n boolean[] validityCharacter = new boolean[500];\n\n boolean validity = false;\n\n //check user input validity\n while(!validity) {\n\n //check if user entered input of correct size\n validitySize = false; //set to default, change to true later in test.\n while(!validitySize){\n\n //check if the size is even and no more than 20\n if(inputSize > 0 && inputSize <= 500){\n\n System.out.println(\"\");\n System.out.println(\"Input length is valid.\");\n validitySize = true;\n System.out.println(\"\");\n\n } else {\n\n System.out.println(\"\");\n System.out.println(\"Input invalid, wrong number of characters. Please enter again.\");\n input = scan.nextLine().toUpperCase(); // reset input\n inputSize = input.length(); // reset size\n\n }\n\n }\n\n //check if the input are all alphabets\n while (!validityString) {\n\n //set all characters valid as default, test later\n\n for(int i = 0; i < 500; i++){\n\n validityCharacter[i] = true;\n\n }\n\n //check if characters in input match to any alphabet.\n for (int i = 0; i < inputSize; i++) {\n\n validityCharacter[i] = false; // default, change later.\n\n for (int j = 0; j < alphabetsSize; j++) {\n\n\n if (input.charAt(i) == (alphabets.charAt(j))) {\n\n validityCharacter[i] = true;\n\n }\n\n }\n\n if (validityCharacter[i]) {\n\n System.out.println(input.charAt(i) + \" is a valid character.\");\n\n } else {\n\n System.out.println(input.charAt(i) + \" is an invalid character.\");\n\n }\n\n }\n\n //assess matching results\n\n validityString = true; //set as default. If false, change to false later\n for (int i = 0; i < inputSize; i++) {\n\n if (!validityCharacter[i]) {\n\n validityString = false;\n validitySize = false;\n System.out.println(\"\");\n System.out.println(\"Input invalid, invalid characters. Please enter again.\");\n input = scan.nextLine().toUpperCase(); // reset input\n inputSize = input.length(); // reset size\n\n break;\n\n }\n\n }\n\n if(!validityString){\n\n break;\n\n }\n\n }\n\n //check if the input is valid (all alphabets, >0, <=500)\n if (validitySize && validityString) {\n\n validity = true;\n System.out.println(\"\");\n System.out.println(\"Input: \" + input +\".\");\n System.out.println(\"\");\n\n }\n\n }\n\n //casting\n char[] inputMessageArray = input.toCharArray();\n\n //feedback\n System.out.println(\"Typing: \" + java.util.Arrays.toString(inputMessageArray));\n System.out.println(\"\");\n return inputMessageArray;\n\n }", "public static boolean isUniqueChars(String str) {\n\t if(str.length() > 128) return false;\n\t \n\t //created hash table boolean to flag duplicate characters\n\t boolean [] check = new boolean [128];\n\t \n\t //run a for look in order to iterate through the string.\n for(int i = 0; i < str.length(); i++){\n //convert the characters of the string array into integers\n int val = str.charAt(i);\n //check the hash table for past characters seen, there are 128 ascii codes\n\t if(check[val]) return false;\n\t //turn on the true flag for characters you are seeing\n\t check[val] = true;\n\t }\n\t \n\t //pass the hash table therefore it is unique and true;\n\t return true;\n\n\t}", "public static String isPanagram(String inputString) {\n\t\tchar[] inputStringChars = inputString.toCharArray();\n\t\tchar[] alphabets = new char[26];\n\t\tfor (int i = 0; i < inputStringChars.length; i++) {\n\t\t\tif ((inputStringChars[i] - 65) >= 0 && (inputStringChars[i] - 65) <= 97) {\n\t\t\t\talphabets[inputStringChars[i] - 65] = '1';\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < alphabets.length; i++) {\n\t\t\tif (alphabets[i] == '\\u0000') {\n\t\t\t\treturn \"not pangram\";\n\t\t\t}\n\t\t}\n\t\treturn \"pangram\";\n\t}", "private void matchletter(){\n\t\t/* Generate a Random Number and use that as a Index for selecting word from HangmanLexicon*/\n\t\tString incorrectwords = \"\";\n\t\tcanvas.reset();\n\t\tHangmanLexicon word= new HangmanLexicon(); // Get Word from Lexicon\n\t\tint index=rgen.nextInt(0, (word.getWordCount() - 1)); // Select the word Randomly\n\t\tString secretword=word.getWord(index);\n\t\tprintln(\"secretword: \"+secretword);\n\t\tint lengthofstring= secretword.length();\n\t\tString createword=concatNcopies(lengthofstring,\"-\"); // Create a blank word the user will guess\n\t\tcanvas.displayWord(createword); // Display the word on the Canvas\n\t\tprintln(\"The word now looks like this:\" +createword);\n\t\tprintln(\"You have \" +lengthofstring+ \" guesses left\");\n\t\tint counter =0;\n\t\tint guess= lengthofstring;\n\t\tint pos = createword.indexOf('-'); // Check for blank Words\n\t\t/* Ask user to input the letter*/\n\t\twhile(counter<lengthofstring && (pos !=-1 )){ \n\t\t\tint check=0;\n\t\t\tpos = createword.indexOf('-',pos); // Check to find Dashes in word\n\t\t\tString userletter= readLine(\"Your Guess:\");\n\t\t\tif(userletter.length() > 1){ // Check for two letters entered\n\t\t\t\tprintln(\"Enter letter Again\");\n\t\t\t}\n\t\t\tchar ch=userletter.charAt(0);\n\t\t\tif(Character.isLowerCase(ch)) { // Convert lower case to upper case\n\t\t\t\tch = Character.toUpperCase(ch);\n\t\t\t}\n\t\t\tfor (int i=0;i<lengthofstring;i++){ // Check for entire letter matching in the secretword\n\t\t\t\tif (ch==secretword.charAt(i) && ch!=createword.charAt(i)) { \n\t\t\t\t\tcreateword = createword.substring(0, i) + ch + createword.substring(i + 1);\n\t\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\t\tcheck++; // If user puts the correct letter again it is flagged as a error\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(check==0){\n\t\t\t\tprintln(\"There are no \"+ch+\"'s in the word\");\n\t\t\t\tguess=guess-1;\n\t\t\t\tincorrectwords = incorrectwords+ch;\n\t\t\t\tcanvas.noteIncorrectGuess(guess, incorrectwords);\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tprintln(\"The word now looks like this:\"+createword);\n\t\t\tprintln(\"You have \" +guess+ \" guesses left\");\n\n\t\t\tif(counter==lengthofstring){ // Checks for Fail condition- Game Over\n\t\t\t\tprintln(\"You are completely hung\");\n\t\t\t\tprintln(\"The word was: \"+secretword);\n\t\t\t\tcanvas.displayWord(secretword);\n\t\t\t\tprintln(\"You lose \");\n\t\t\t}\n\t\t\tpos = createword.indexOf('-');// Check for Win condition\n\t\t\tif(pos < 0){\n\t\t\t\tprintln(\"You saved Hangman\");\n\t\t\t\tprintln(\"You Win !!!\");\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tguess=123;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private boolean containsValidCharacters(String inputString)\r\n {\r\n boolean validityFlag = true;\r\n int inputStringLength = inputString.trim().length();\r\n for (int i = 0 ; i < inputStringLength ; i++)\r\n {\r\n char digit = inputString.charAt(i);\r\n if (!((digit >= 'A' && digit <= 'Z') || (digit >= 'a' && digit <= 'z') || (digit >= '0' && digit <= '9')))\r\n {\r\n validityFlag = false;\r\n break;\r\n }\r\n }\r\n return validityFlag;\r\n }", "private boolean validarContrasena (String contrasena){\n Pattern pattern = Pattern.compile(\"^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=!.])(?=\\\\S+$).{6,}$\");\n if (!contrasena.matches(String.valueOf(pattern))){\n errorCo.setText(\"La Contraseña debe tener al menos: 6 caracteres, 1 minúscula, 1 mayúscula, 1 número y 1 signo\");\n errorCo.setVisibility(View.VISIBLE);\n\n }\n return contrasena.matches(String.valueOf(pattern));\n }", "private static boolean checkChar(char c) {\n\t\tif (Character.isDigit(c)) {\n\t\t\treturn true;\n\t\t} else if (Character.isLetter(c)) {\n\t\t\tif (Character.toUpperCase(c) >= 'A' && Character.toUpperCase(c) <= 'F') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean check (String s){\n\n boolean value = false;\n\n if (s.length()>=3){\n\n for (int i= 0;i<s.length();i++){\n\n if (s.charAt(i)>= 'A' && s.charAt(i)<= 'Z' || s.charAt(i) >='a' &&s.charAt(i)<='z'){\n\n value = true;\n }\n else {\n value = false;\n return value;\n\n\n }\n }\n }\n\n\n return value;\n }", "public static boolean hasSpecialChar(String password) throws NoSpecialCharacterException\r\n {\r\n Pattern pattern = Pattern.compile(\"[a-zA-Z0-9]*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (matcher.matches())\r\n throw new NoSpecialCharacterException();\r\n return true;\r\n }", "Alphabet(String chars) {\n if (chars.contains(\"(\") || chars.contains(\")\") || chars.contains(\"*\")) {\n throw error(\"Parentheses and asterisks not permitted in alphabet.\");\n }\n Map<Character, Integer> map = new HashMap<>();\n char[] string2chars = chars.toCharArray();\n for (char c : string2chars) {\n if (map.containsKey(c)) {\n throw error(\"Repeated character found: %c\", c);\n } else {\n map.put(c, 1);\n }\n }\n\n _chars = chars;\n }", "private boolean verificarText(String text,String campo) {\n\t\tif(text.length()==0) {\n\t\t\tJOptionPane.showMessageDialog(null,\"Error \"+campo +\": campo vacio\");\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\tfor(int i =0;i<text.length();i++) {\n\t\t\tif(text.charAt(i)!=' ') {\n\t\t\t\tif((text.charAt(i)<'a' || text.charAt(i)>'z'&& (text.charAt(i)<'A' || text.charAt(i)>'Z') ) ) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Error \"+campo +\": Se ingreso un numero o caracter especial\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@Test\r\n\tpublic void testIsValidPasswordNoUpperAlpha()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"rainbow\"));\r\n\t\t}\r\n\t\tcatch(NoUpperAlphaException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a NoUpperAlphaExcepetion\",true);\r\n\t\t}\r\n\t}", "public boolean isContainLowercaseLetters(String password) {\n\t\treturn password.matches(\".*[a-z].*\");\n\t}" ]
[ "0.7029218", "0.6961527", "0.69261014", "0.6706306", "0.6702824", "0.6676703", "0.66688466", "0.6659555", "0.6645581", "0.66369265", "0.6629388", "0.65708834", "0.654098", "0.6477233", "0.6447381", "0.6433313", "0.63257164", "0.6318499", "0.62983525", "0.6295542", "0.62735486", "0.62698275", "0.62558365", "0.6253905", "0.6253754", "0.6249177", "0.6237155", "0.623314", "0.6226154", "0.62190765", "0.62161446", "0.6201183", "0.61927795", "0.61808074", "0.61714786", "0.616631", "0.61380404", "0.6132366", "0.6120602", "0.61117214", "0.6108253", "0.60907936", "0.6082799", "0.60749936", "0.60692716", "0.6068566", "0.60640305", "0.60563374", "0.6054646", "0.60245824", "0.60038275", "0.59823257", "0.5974923", "0.596872", "0.5965194", "0.5965005", "0.5957294", "0.59393847", "0.592994", "0.59268254", "0.5922574", "0.59222215", "0.5911942", "0.5890557", "0.5882452", "0.58716065", "0.5863586", "0.5863174", "0.5861956", "0.5860425", "0.5851965", "0.5850491", "0.58411944", "0.58354765", "0.5829881", "0.58154666", "0.581188", "0.57941276", "0.5790541", "0.5780964", "0.57806647", "0.5777598", "0.577668", "0.5769873", "0.5768047", "0.5767648", "0.576402", "0.575878", "0.5753211", "0.5752195", "0.5735404", "0.5734544", "0.5733862", "0.57332295", "0.57314754", "0.57143706", "0.5712857", "0.57101583", "0.57042485", "0.5700242" ]
0.649779
13
this is pretty kludgy... we're just going to write the jpeg out as a gif and read it back in
private static BufferedImage jpegToGif(BufferedImage image) { BufferedImage gifImage = image; try { ImageIO.write(image, "gif", new File("temp.gif")); gifImage = ImageIO.read(new File("temp.gif")); } catch (Exception e) {e.printStackTrace();} return gifImage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void readJPG(DataInputStream dis, int length){ \n\t\ttry{\n\t\t\tbyte[] arrBytes= new byte[length];\n\t\t\tfor(int i= 0; i<length;i++){\n\t\t\t\tarrBytes[i] = dis.readByte();\n\t\t\t}\n\t\t\tBufferedImage img = ImageIO.read(new ByteArrayInputStream(arrBytes));\n\t\t\tobjWriter.addFrame(1.0f/4.0f, img, 1.0f);\n\t\t\timageCount++;\n\t\t\t// Printing Image count for fun so that you don't get bored. :-P\n\t\t\tSystem.out.print(imageCount +\"\\t\");\n\t\t\tif(imageCount % 10 == 0){\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}catch(Exception e){e.printStackTrace();}\n\t}", "public GIFMaker to(String path);", "public static void cacheImage(final File file, ImageRequest imageCallback) {\n\n HttpURLConnection urlConnection = null;\n FileOutputStream fileOutputStream = null;\n InputStream inputStream = null;\n boolean isGif = false;\n\n try{\n // Setup the connection\n urlConnection = (HttpURLConnection) new URL(imageCallback.mUrl).openConnection();\n urlConnection.setConnectTimeout(ImageManager.LONG_CONNECTION_TIMEOUT);\n urlConnection.setReadTimeout(ImageManager.LONG_REQUEST_TIMEOUT);\n urlConnection.setUseCaches(true);\n urlConnection.setInstanceFollowRedirects(true);\n\n // Set the progress to 0\n imageCallback.sendProgressUpdate(imageCallback.mUrl, 0);\n\n // Connect\n inputStream = urlConnection.getInputStream();\n\n // Do not proceed if the file wasn't downloaded\n if(urlConnection.getResponseCode()==404){\n urlConnection.disconnect();\n return;\n }\n\n // Check if the image is a GIF\n String contentType = urlConnection.getHeaderField(\"Content-Type\");\n if(contentType!=null){\n isGif = contentType.equals(GIF_MIME);\n }\n\n // Grab the length of the image\n int length = 0;\n try{\n String fileLength = urlConnection.getHeaderField(\"Content-Length\");\n if(fileLength!=null){\n length = Integer.parseInt(fileLength);\n }\n }catch(NumberFormatException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n\n // Write the input stream to disk\n fileOutputStream = new FileOutputStream(file, true);\n int byteRead = 0;\n int totalRead = 0;\n final byte[] buffer = new byte[8192];\n int frameCount = 0;\n\n // Download the image\n while ((byteRead = inputStream.read(buffer)) != -1) {\n\n // If the image is a gif, count the start of frames\n if(isGif){\n for(int i=0;i<byteRead-3;i++){\n if( buffer[i] == 33 && buffer[i+1] == -7 && buffer[i+2] == 4 ){\n frameCount++;\n\n // Once we have at least one frame, stop the download\n if(frameCount>1){\n fileOutputStream.write(buffer, 0, i);\n fileOutputStream.close();\n\n imageCallback.sendProgressUpdate(imageCallback.mUrl, 100);\n imageCallback.sendCachedCallback(imageCallback.mUrl, true);\n\n urlConnection.disconnect();\n return;\n }\n }\n }\n }\n\n // Write the buffer to the file and update the total number of bytes\n // read so far (used for the callback)\n fileOutputStream.write(buffer, 0, byteRead);\n totalRead+=byteRead;\n\n // Update the callback with the current progress\n if(length>0){\n imageCallback.sendProgressUpdate(imageCallback.mUrl, \n (int) (((float)totalRead/(float)length)*100) );\n }\n }\n\n // Tidy up after the download\n if (fileOutputStream != null){\n fileOutputStream.close();\n }\n\n // Sent the callback that the image has been downloaded\n imageCallback.sendCachedCallback(imageCallback.mUrl, true);\n\n if (inputStream != null){\n inputStream.close();\n }\n\n // Disconnect the connection\n urlConnection.disconnect();\n } catch (final MalformedURLException e) {\n if (ImageManager.DEBUG){\n e.printStackTrace();\n }\n\n // If the file exists and an error occurred, delete the file\n if (file != null){\n file.delete();\n }\n\n } catch (final IOException e) {\n if (ImageManager.DEBUG){\n e.printStackTrace();\n }\n\n // If the file exists and an error occurred, delete the file\n if (file != null){\n file.delete();\n }\n\n }\n\n }", "@ResponseBody\n @GetMapping(path = \"/{id}.gif\", produces = MediaType.IMAGE_GIF_VALUE)\n public byte[] getGifImage(@PathVariable String id) {\n return gifService\n .findGifById(id)\n .getFile()\n .getData();\n }", "public interface GIF {\n\n\t/**\n\t * The from method picks up the directory the\n\t * images are for gif creation\n\t * @param path path of the directory image resides in.\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker from(ImageComposite collection);\n\n\t/**\n\t * The destination directory where the final gif will reside.\n\t * @param path Directory path\n\t * @return GIFMAKER\n\t */\n\tpublic GIFMaker to(String path);\n\n\t/**\n\t * Adds the delay between two images.\n\t * @param delay int\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker withDelay(int delay);\n\t\n\t/**\n\t * Repeats GIF\n\t * @param repeat\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker repeat(boolean repeat);\n\t\n\t/**\n\t * Sets the width\n\t * @param width\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker width(int width);\n\t\n\t/**\n\t * Sets the height\n\t * @param height\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker height(int height);\n\n\t/**\n\t * Makes the final GIF Image for the the application.\n\t */\n\tpublic void make();\n\t\n}", "public void writeImage() {\n // Write generated image to a file\n try {\n // Save as JPEG\n File file = new File(\"Images/\" + name + \"INS\" + System.currentTimeMillis() + \".jpg\");\n ImageIO.write(bufferedImage, \"jpg\", file);\n\t\t\t\t\n\n } catch (IOException e) {\n }\n }", "public void act() {\n setImage(myGif.getCurrentImage());\n }", "java.lang.String getImage();", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte[npix];\n\n\t\t\tshort[] prefix = getMetadata().getPrefix();\n\t\t\tbyte[] suffix = getMetadata().getSuffix();\n\t\t\tbyte[] pixelStack = getMetadata().getPixelStack();\n\n\t\t\tif (prefix == null) prefix = new short[MAX_STACK_SIZE];\n\t\t\tif (suffix == null) suffix = new byte[MAX_STACK_SIZE];\n\t\t\tif (pixelStack == null) pixelStack = new byte[MAX_STACK_SIZE + 1];\n\n\t\t\tgetMetadata().setPrefix(prefix);\n\t\t\tgetMetadata().setSuffix(suffix);\n\t\t\tgetMetadata().setPixelStack(pixelStack);\n\n\t\t\t// initialize GIF data stream decoder\n\n\t\t\tfinal int read = getSource().read();\n\t\t\tfinal int dataSize = read & 0xff;\n\n\t\t\tfinal int clear = 1 << dataSize;\n\t\t\tfinal int eoi = clear + 1;\n\t\t\tint available = clear + 2;\n\t\t\tint oldCode = nullCode;\n\t\t\tint codeSize = dataSize + 1;\n\t\t\tint codeMask = (1 << codeSize) - 1;\n\t\t\tint code = 0, inCode = 0;\n\t\t\tfor (code = 0; code < clear; code++) {\n\t\t\t\tprefix[code] = 0;\n\t\t\t\tsuffix[code] = (byte) code;\n\t\t\t}\n\n\t\t\t// decode GIF pixel stream\n\n\t\t\tint datum = 0, first = 0, top = 0, pi = 0, bi = 0, bits = 0, count = 0;\n\t\t\tint i = 0;\n\n\t\t\tfor (i = 0; i < npix;) {\n\t\t\t\tif (top == 0) {\n\t\t\t\t\tif (bits < codeSize) {\n\t\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\t\tcount = readBlock();\n\t\t\t\t\t\t\tif (count <= 0) break;\n\t\t\t\t\t\t\tbi = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatum += (getMetadata().getdBlock()[bi] & 0xff) << bits;\n\t\t\t\t\t\tbits += 8;\n\t\t\t\t\t\tbi++;\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get the next code\n\t\t\t\t\tcode = datum & codeMask;\n\t\t\t\t\tdatum >>= codeSize;\n\t\t\t\t\tbits -= codeSize;\n\n\t\t\t\t\t// interpret the code\n\n\t\t\t\t\tif ((code > available) || (code == eoi)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (code == clear) {\n\t\t\t\t\t\t// reset the decoder\n\t\t\t\t\t\tcodeSize = dataSize + 1;\n\t\t\t\t\t\tcodeMask = (1 << codeSize) - 1;\n\t\t\t\t\t\tavailable = clear + 2;\n\t\t\t\t\t\toldCode = nullCode;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (oldCode == nullCode) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\toldCode = code;\n\t\t\t\t\t\tfirst = code;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tinCode = code;\n\t\t\t\t\tif (code == available) {\n\t\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\t\tcode = oldCode;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (code > clear) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\tcode = prefix[code];\n\t\t\t\t\t}\n\t\t\t\t\tfirst = suffix[code] & 0xff;\n\n\t\t\t\t\tif (available >= MAX_STACK_SIZE) break;\n\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\tprefix[available] = (short) oldCode;\n\t\t\t\t\tsuffix[available] = (byte) first;\n\t\t\t\t\tavailable++;\n\n\t\t\t\t\tif (((available & codeMask) == 0) && (available < MAX_STACK_SIZE)) {\n\t\t\t\t\t\tcodeSize++;\n\t\t\t\t\t\tcodeMask += available;\n\t\t\t\t\t}\n\t\t\t\t\toldCode = inCode;\n\t\t\t\t}\n\t\t\t\ttop--;\n\t\t\t\tpixels[pi++] = pixelStack[top];\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tfor (i = pi; i < npix; i++)\n\t\t\t\tpixels[i] = 0;\n\t\t\tgetMetadata().setPixels(pixels);\n\t\t\tsetPixels();\n\t\t}", "int ljpeg_start ( jhead jh, int info_only)\n{\n int i, tag, len;\n BytePtr data = new BytePtr();\n data.assign( CTOJ.malloc(0x10000));\n BytePtr dp = new BytePtr();\n\n init_decoder();\n for (i=0; i < 4; i++)\n jh.huff[i] = free_decode;\n jh.restart = Integer.MAX_VALUE;\n CTOJ.fread (data, 2, 1, ifp);\n if (data.uat(1) != 0xd8) return 0;\n do {\n CTOJ.fread (data, 2, 2, ifp);\n tag = data.uat(0) << 8 | data.uat(1);\n len = (data.uat(2) << 8 | data.uat(3)) - 2;\n if (tag <= 0xff00) return 0;\n CTOJ.fread (data, 1, len, ifp);\n switch (tag) {\n case 0xffc3:\n jh.sraw = (data.uat(7) == 0x21) ? 1 :0;\n case 0xffc0:\n\tjh.bits = data.uat(0);\n\tjh.high = data.uat(1) << 8 | data.uat(2);\n\tjh.wide = data.uat(3) << 8 | data.uat(4);\n\tjh.clrs = data.uat(5) + jh.sraw;\n if ( len == 9 && dng_version == 0) CTOJ.getc(ifp);\n\tbreak;\n case 0xffc4:\n\tif (info_only != 0) break;\n\tfor (dp.assign(data); dp.lessThan(data.plus(len)) && dp.uat(0) < 4; ) {\n\t jh.huff[dp.uat(0)] = free_decode;\n dp.plusPlus();\n\t dp.assign( make_decoder ( dp, 0));\n\t}\n\tbreak;\n case 0xffda:\n\tjh.psv = data.uat(1+data.uat(0)*2);\n\tbreak;\n case 0xffdd:\n\tjh.restart = data.uat(0) << 8 | data.uat(1);\n }\n } while (tag != 0xffda);\n if (info_only != 0) return 1;\n \n if (jh.sraw != 0) {\n jh.huff[3] = jh.huff[2] = jh.huff[1];\n jh.huff[1] = jh.huff[0];\n }\n jh.row.assign(CTOJ.calloc(jh.wide*jh.clrs, 4));\n //merror (jh.row, \" jpeg_start()\");\n return zero_after_ff = 1;\n}", "@RequestMapping(\"/gifs/{gifId}.gif\")\n @ResponseBody\n public byte[] gifImage(@PathVariable Long gifId) {\n return gifService.findById(gifId).getBytes();\n }", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public ModelImage readImage(boolean one) throws IOException {\r\n // The data types are Sun, hence the byte order is big-endian.\r\n int i;\r\n int num; //image number within file\r\n\r\n boolean endianess = LITTLE_ENDIAN;\r\n\r\n try {\r\n file = new File(fileDir + fileName);\r\n raFile = new RandomAccessFile(file, \"r\");\r\n progressBar = new ViewJProgressBar(ViewUserInterface.getReference().getProgressBarPrefix() + fileName,\r\n ViewUserInterface.getReference().getProgressBarPrefix() + \"BioRad image(s) ...\", 0, 100,\r\n false, null, null);\r\n xDim = getSignedShort(endianess); // 0\r\n yDim = getSignedShort(endianess); // 2\r\n zDim = getSignedShort(endianess); // 4\r\n ramp1Min = (short)getSignedShort(endianess); // 6\r\n ramp1Max = (short)getSignedShort(endianess); // 8\r\n notes = getInt(endianess); // 10\r\n byteFormat = (short)getSignedShort(endianess); // 14\r\n num = (short)getSignedShort(endianess); // 16\r\n\r\n setProgressBarVisible(!one);\r\n\r\n for (i = 0; i < 32; i++) {\r\n name[i] = 0;\r\n }\r\n readAgain = true;\r\n i = 0;\r\n while(readAgain) {\r\n name[i++] = raFile.readByte(); // 18\r\n if (name[i-1] == 0) {\r\n readAgain = false;\r\n }\r\n }\r\n fName = new String(name,0,i-1);\r\n raFile.seek(50);\r\n merged = (short)getSignedShort(endianess); // 50\r\n color1 = getUnsignedShort(endianess); // 52\r\n fileID = getUnsignedShort(endianess); // 54\r\n if (fileID != 12345) {\r\n throw new IOException(\"fileID is an illegal \" + fileID);\r\n }\r\n ramp2Min = (short)getSignedShort(endianess); // 56\r\n ramp2Max = (short)getSignedShort(endianess); // 58\r\n color2 = getUnsignedShort(endianess); // 60\r\n edited = (short)getSignedShort(endianess); // 62\r\n lens = (short)getSignedShort(endianess); // 64\r\n magFactor = getFloat(endianess); // 66\r\n // Position to the start of the image data\r\n raFile.seek(76);\r\n\r\n fileInfo = new FileInfoBioRad(fileName, fileDir, FileBase.BIORAD); // dummy fileInfo\r\n fileInfo.setEndianess(endianess);\r\n if (zDim > 1) {\r\n imgExtents = new int [3];\r\n imgExtents[0] = xDim;\r\n imgExtents[1] = yDim;\r\n imgExtents[2] = zDim;\r\n }\r\n else {\r\n imgExtents = new int [2];\r\n imgExtents[0] = xDim;\r\n imgExtents[1] = yDim;\r\n }\r\n\r\n fileInfo.setExtents(imgExtents);\r\n if (byteFormat == 1) {\r\n dataType = ModelStorageBase.UBYTE;\r\n bufferSize = xDim*yDim;\r\n }\r\n else { // byteFormat == 0\r\n dataType = ModelStorageBase.SHORT;\r\n bufferSize = xDim*yDim;\r\n }\r\n /*else { // merged pseudocolor\r\n dataType = ModelStorageBase.ARGB;\r\n bufferSize = 4*xDim*yDim;\r\n }*/\r\n fileInfo.setDataType(dataType);\r\n\r\n if (one) {\r\n image = new ModelImage(dataType, new int[] {imgExtents[0], imgExtents[1]}, fileInfo.getFileName(), UI);\r\n zDim = 1;\r\n }\r\n else {\r\n image = new ModelImage(dataType, imgExtents, fileInfo.getFileName(), UI);\r\n }\r\n\r\n imgBuffer = new float[bufferSize];\r\n for (i = 0; i < zDim; i++){\r\n try {\r\n if (one && imgExtents.length > 2) {\r\n if (dataType == ModelStorageBase.UBYTE) {\r\n raFile.seek(imgExtents[2]/2*xDim*yDim);\r\n }\r\n else {\r\n raFile.seek(imgExtents[2]*xDim*yDim);\r\n }\r\n readBuffer(imgExtents[2]/2, imgBuffer);\r\n }\r\n else {\r\n readBuffer(i, imgBuffer); // Slice a time;\r\n }\r\n image.setFileInfo(fileInfo, i);\r\n }\r\n catch (IOException error){\r\n throw new IOException(\"FileTiff: read: \" + error);\r\n }\r\n image.importData(i*bufferSize, imgBuffer, false);\r\n } // for (i = 0; i < imageSlice; i++)\r\n\r\n raFile.close();\r\n progressBar.dispose();\r\n }\r\n catch (OutOfMemoryError error) {\r\n if (image != null) {\r\n image.disposeLocal();\r\n image = null;\r\n }\r\n byteBuffer = null;\r\n System.gc();\r\n throw error;\r\n }\r\n\r\n return image;\r\n }", "public static BufferedImage decompress_jpeg(byte[] data) throws IOException\n {\n ByteArrayInputStream compressed = new ByteArrayInputStream(data);\n ImageInputStream inputStream = ImageIO.createImageInputStream(compressed);\n\n // NOTE: The rest of the code is just a cleaned up version of your code\n\n // Obtain writer for JPEG format\n ImageIO.setUseCache(false);\n ImageReader jpgReader = ImageIO.getImageReadersByFormatName(\"jpg\").next();\n\n // Configure JPEG compression: 70% quality\n ImageReadParam jpgWriteParam = jpgReader.getDefaultReadParam();\n //jpgWriteParam.setDestination(data);\n \n // Set your in-memory stream as the output\n // Set your in-memory stream as the output\n jpgReader.setInput(inputStream); \n\n // Write image as JPEG w/configured settings to the in-memory stream\n // (the IIOImage is just an aggregator object, allowing you to associate\n // thumbnails and metadata to the image, it \"does\" nothing)\n //jpgWriter.write(null, new IIOImage(image, null, null), jpgWriteParam);\n BufferedImage result = jpgReader.read(0, jpgWriteParam);\n\n // Dispose the writer to free resources\n jpgReader.dispose();\n\n return result;\n }", "private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }", "private void copyJpeg(InputStream in, OutputStream out) throws\n\t\tIOException\n\t{\n\t\tboolean notFinished = true;\n\t\tlong copiedBytes = 3;\n\t\tdo\n\t\t{\n\t\t\tint v1 = in.read();\n\t\t\tif (v1 == 0xff) // marker\n\t\t\t{\n\t\t\t\tint v2 = in.read();\n\t\t\t\tif (v2 < 0) // end of file\n\t\t\t\t{\n\t\t\t\t\tout.write(0xff);\n\t\t\t\t\tcopiedBytes++;\n\t\t\t\t\tnotFinished = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\tif (v2 == 0xd9) // embedded JPEG stream ended\n\t\t\t\t{\n\t\t\t\t\t// copy the end of stream marker\n\t\t\t\t\tout.write(0xff);\n\t\t\t\t\tout.write(0xd9);\n\t\t\t\t\tcopiedBytes += 2;\n\t\t\t\t\tnotFinished = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// copy the two bytes, just a marker of the embedded JPEG\n\t\t\t\t\tout.write(0xff);\n\t\t\t\t\tout.write(v2);\n\t\t\t\t\tcopiedBytes += 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\tif (v1 == -1) // unexpected end of input file\n\t\t\t{\n\t\t\t\tnotFinished = false;\n\t\t\t}\n\t\t\telse // just copy that value\n\t\t\t{\n\t\t\t\tout.write(v1);\n\t\t\t\tcopiedBytes++;\n\t\t\t}\n\t\t}\n\t\twhile (notFinished);\n\t\ttotalBytes += copiedBytes;\n\t\tif (!quiet)\n\t\t{\n\t\t\tSystem.out.println(\" (\" + copiedBytes + \" bytes)\");\n\t\t}\n\t\ttotalOutputFiles++;\n\t\t// close output stream\n\t\ttry\n\t\t{\n\t\t\tout.close();\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// ignore error when closing output stream\n\t\t}\n\t}", "public Label getPic(){\n //try {//getPic is only called if isPic is true, so side1 would contain picture path\n /*BufferedImage unsized = ImageIO.read(new File(side1));\n BufferedImage resized = resizeImage(unsized,275,250, unsized.getType());\n frontPic.setIcon(new ImageIcon(resized));*/\n\n\t\t\tImage image = new Image(new File(side1).toURI().toString());\n\t\t\tImageView iv = new ImageView(image);\n\t\t\tLabel imageLabel = new Label(\"Image\");\n\t\t\timageLabel.setGraphic(iv);\n\t\t\treturn imageLabel;\n /*} catch (IOException ex) {\n System.out.println(\"Trouble reading from the file: \" + ex.getMessage());\n }\n return frontPic;*/\n }", "@Test\n public void testJFIFRawRGBThumbnail() throws IOException {\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/jfif-jfif-and-exif-thumbnail-sharpshot-iphone.jpg\")));\n\n assertTrue(reader.hasThumbnails(0));\n assertEquals(2, reader.getNumThumbnails(0));\n\n // RAW JFIF\n assertEquals(131, reader.getThumbnailWidth(0, 0));\n assertEquals(122, reader.getThumbnailHeight(0, 0));\n\n BufferedImage rawJFIFThumb = reader.readThumbnail(0, 0);\n assertNotNull(rawJFIFThumb);\n assertEquals(131, rawJFIFThumb.getWidth());\n assertEquals(122, rawJFIFThumb.getHeight());\n\n // Exif (old thumbnail, from original image, should probably been removed by the software...)\n assertEquals(160, reader.getThumbnailWidth(0, 1));\n assertEquals(120, reader.getThumbnailHeight(0, 1));\n\n BufferedImage exifThumb = reader.readThumbnail(0, 1);\n assertNotNull(exifThumb);\n assertEquals(160, exifThumb.getWidth());\n assertEquals(120, exifThumb.getHeight());\n }", "public void setJFile(int type){\n String jFileName;\n\n switch(type){\n case 0: jFileName = \"playerj.gif\";break;\n case 1: jFileName = \"player2j.gif\";break;\n case 2: jFileName = \"zombiedanielj.gif\";break;\n case 3: jFileName = \"zombieharrisonj.gif\";break;\n case 4: jFileName = \"zombiecodyj.gif\";break;\n case 5: jFileName = \"zombiebrianj.gif\";break;\n case 6: jFileName = \"zombiecourtneyj.gif\";break;\n default: jFileName = \"playerj.gif\"; break;\n }\n /*try {\n jumpingImg = ImageIO.read(new File(jFileName));\n } catch (IOException e) {}*/\n try{\n jumpingImg = javax.imageio.ImageIO.read(new java.net.URL\n (getClass().getResource(jFileName), jFileName));\n }\n catch (Exception e) { /*handled in paintComponent()*/ }\n }", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public void run() {\n System.out.print(Thread.currentThread().getId() + \"\\n\");\n try {\n try {\n File outfile = new File(dataPath + imageFile.getName().replace(\"jpg\", \"txt\"));\n if (outfile.exists()) {\n return;\n }\n String ms = \"nada\";\n records.write(\"<\");\n records.write(imageFile.getName() + \">\\n\");\n BufferedImage bin = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, maxHeight));\n BufferedImage copy = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n copy = ImageHelpers.scale(copy, maxHeight);\n records.flush();\n System.out.println(imageFile.getName());\n PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = threshedImage.getAsBufferedImage();\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Boolean doBlobExtract = true;\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n //ImageHelpers.writeImage(bin, \"/usr/web/broken/\" + imageFile.getName() + \"bin\" + \".jpg\");\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n BufferedWriter blobWriter = new BufferedWriter(new FileWriter(outfile));\n\n int ctr = 1;\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n try {\n blobs.get(i).id = ctr;\n ctr++;\n //blobs.get(i).color=0x000000;\n blobs.get(i).arrayVersion = blobs.get(i).pixels.toArray(new pixel[blobs.get(i).pixels.size()]);\n int maxX = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].x > maxX) {\n maxX = blobs.get(i).arrayVersion[k].x;\n }\n }\n blobs.get(i).width = maxX;\n int maxY = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].y > maxY) {\n maxY = blobs.get(i).arrayVersion[k].y;\n }\n }\n blobs.get(i).height = maxY;\n\n\n blobs.get(i).matrixVersion = new matrixBlob(blobs.get(i));\n } catch (Exception e) {\n e.printStackTrace();\n }\n // blob.writeBlob(blobWriter, blobs.get(i));\n blob.writeMatrixBlob(blobWriter, blobs.get(i));\n blobs.set(i, null);//.matrixVersion=null;\n //blobs.get(i).arrayVersion=null;\n // blob.writeBlob(blobWriter, blobs.get(i));\n //blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n System.out.print(\"found \" + ctr + \" blobs\\n\");\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, imageFile.getName(), lines);\n //ImageHelpers.writeImage(ImageHelpers.createViewableVerticalProfile(orig, imageFile.getName(), lines), \"/usr/web/broken/profile\" + imageFile.getName() + \"broken\" + \".jpg\");\n FileWriter writer = null;\n //writer = new FileWriter(new File(\"/usr/web/queries/\" + imageFile.getName() + \"\"));\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n //r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n\n //writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } catch (IOException ex) {\n System.out.print(ex.getMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }", "private void response200_imagePNG(String image) throws IOException {\n byte[] bytes = image.getBytes();\n String responseHeader =\n \"HTTP/1.1 200 OK\\r\\n\\t\" +\n \"Content-Type: image/png;\\r\\n\\t\" +\n \"Content-Length: \" + bytes.length +\n \"\\r\\n\\r\\n\";\n writer.write(responseHeader.getBytes());\n writer.write(bytes);\n System.out.println(\"Response header:\\n\" + responseHeader + \"\\n\");\n System.out.println(\"Response body is a PNG image.\");\n }", "public void createSes(File f){\r\n ArrayList list = new ArrayList();\r\n list.addAll(andrec);\r\n\r\n ArrayList<Image> im = new ArrayList<Image>();\r\n im.addAll(images);\r\n Image anime = null;\r\n if(!im.isEmpty()){\r\n File path = new File(workplace+\"/gifs\");\r\n if(!path.exists())\r\n path.mkdir();\r\n String str = \"/gifs/\"+getFileTime(f)+\".gif\";\r\n str = str.replace(\" \", \"_\");\r\n str = str.replace(\":\", \"-\");\r\n str = workplace + str;\r\n File gif = new File(str);\r\n try {\r\n AnimatedGifEncoder e = new AnimatedGifEncoder();\r\n e.start(str);\r\n e.setDelay(1000);\r\n for(int i=0 ; i<im.size() ; i++){\r\n BufferedImage bi = (BufferedImage)im.get(i);\r\n e.addFrame(bi);\r\n }\r\n e.finish();\r\n anime = Toolkit.getDefaultToolkit().createImage(gif.getAbsolutePath());\r\n } catch (Exception ex) {\r\n JOptionPane.showMessageDialog(null, \"failed to create gif.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n ex.printStackTrace();\r\n System.out.println(gif.getAbsolutePath());\r\n System.out.println(workplace);\r\n }\r\n }\r\n session se = null;\r\n if(anime == null) {\r\n se = new session(getFileTime(f).toString(), list, null);\r\n }else if(anime != null) {\r\n for(int i=0 ; i<100 ; i++){\r\n if(animeimg[i]==null){\r\n animeimg[i] = anime;\r\n break;\r\n }\r\n }\r\n se = new session(getFileTime(f).toString(), list, anime);\r\n //update anime list\r\n updateanime();\r\n }\r\n ses.add(se);\r\n andrec.clear();\r\n images.clear();\r\n }", "com.google.protobuf.ByteString getPicture();", "@Override\n public String toString() {\n return \"GifImage{\" + \"url='\" + url + '\\'' + \", width=\" + width + \", height=\" + height + '}';\n }", "@Override\n\tpublic void event(PictureEvent e) {\n\t\ttry {\n\t\t\tif (null != fname) {\n\t\t\t\tImageIO.write(e.getImage(), \"jpg\", new File(fname));\n\t\t\t}\n\t\t} catch (Exception ex) { SewerSender.println(ex.toString()); }\n\t}", "public Image call() throws IOException;", "private void updateImage(File file) throws IOException {\n\t\t\tfileLabel.setText(\"\");\n\n\t\t\ttry {\n\t\t\t\tMyImageD tmpImage = null;\n\t\t\t\tString fileName = file.getName();\n\n\t\t\t\t// Update preview for opening ggb files\n\t\t\t\tif (fileChooser\n\t\t\t\t\t\t.getMode() == GeoGebraFileChooser.MODE_GEOGEBRA) {\n\n\t\t\t\t\tif (fileName.endsWith(\".ggb\")) {\n\t\t\t\t\t\ttmpImage = new MyImageD(MyXMLioD.getPreviewImage(file)); // load\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// preview\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// zip\n\n\t\t\t\t\t\tStringBuilder fileInfo = new StringBuilder();\n\n\t\t\t\t\t\tif (fileName.length() > 20) {\n\t\t\t\t\t\t\tfileInfo.append(fileName.substring(0, 20));\n\t\t\t\t\t\t\tfileInfo.append(\"..\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfileInfo.append(fileName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfileInfo.append(\" : \");\n\t\t\t\t\t\tfileInfo.append(file.length() / 1024);\n\t\t\t\t\t\tfileInfo.append(\" kB\");\n\t\t\t\t\t\tfileLabel.setText(fileInfo.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Update preview for saving a ggb file\n\t\t\t\telse if (fileChooser\n\t\t\t\t\t\t.getMode() == GeoGebraFileChooser.MODE_GEOGEBRA_SAVE) {\n\t\t\t\t\ttmpImage = (MyImageD)\n\t\t\t\t\t\t\tapp.getExportImage(MyXMLio.THUMBNAIL_PIXELS_X,\n\t\t\t\t\t\t\t\t\tMyXMLio.THUMBNAIL_PIXELS_Y);\n\t\t\t\t\t// TODO: show file size info?\n\t\t\t\t\tfileLabel.setText(null);\n\t\t\t\t}\n\n\t\t\t\t// Update preview for images\n\t\t\t\telse {\n\t\t\t\t\t// fails for a few JPEGs so turn off preview for large files\n\t\t\t\t\tif (file.length() < 1024 * maxImageSize) {\n\n\t\t\t\t\t\ttmpImage = MyImageD.fromFile(file, fileName);\n\t\t\t\t\t\tStringBuilder imgInfo = new StringBuilder();\n\n\t\t\t\t\t\tif (fileName.length() > 20) {\n\t\t\t\t\t\t\timgInfo.append(fileName.substring(0, 20));\n\t\t\t\t\t\t\timgInfo.append(\"..\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timgInfo.append(fileName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (tmpImage != null) {\n\t\t\t\t\t\t\timgInfo.append(\" : \");\n\t\t\t\t\t\t\timgInfo.append(tmpImage.getWidth());\n\t\t\t\t\t\t\timgInfo.append(\" x \");\n\t\t\t\t\t\t\timgInfo.append(tmpImage.getHeight());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfileLabel.setText(imgInfo.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// resize tmp image if necessary\n\t\t\t\tif (tmpImage != null) {\n\n\t\t\t\t\tint oldWidth = tmpImage.getWidth();\n\t\t\t\t\tint oldHeight = tmpImage.getHeight();\n\n\t\t\t\t\tint newWidth;\n\t\t\t\t\tint newHeight;\n\n\t\t\t\t\tif (oldWidth > ImagePanel.SIZE\n\t\t\t\t\t\t\t|| oldHeight > ImagePanel.SIZE) {\n\t\t\t\t\t\tif (oldWidth > oldHeight) {\n\t\t\t\t\t\t\tnewWidth = ImagePanel.SIZE;\n\t\t\t\t\t\t\tnewHeight = (ImagePanel.SIZE * oldHeight)\n\t\t\t\t\t\t\t\t\t/ oldWidth;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewWidth = (ImagePanel.SIZE * oldWidth) / oldHeight;\n\t\t\t\t\t\t\tnewHeight = ImagePanel.SIZE;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Create a new image for the scaled preview image\n\t\t\t\t\t\tsetImg(new MyImageD(new BufferedImage(newWidth,\n\t\t\t\t\t\t\t\tnewHeight, BufferedImage.TYPE_INT_RGB)));\n\n\t\t\t\t\t\tGGraphics2DD graphics2D = (GGraphics2DD) getImg()\n\t\t\t\t\t\t\t\t.createGraphics();\n\t\t\t\t\t\tif (tmpImage.isSVG()) {\n\t\t\t\t\t\t\tgraphics2D.setColor(GColor.WHITE);\n\t\t\t\t\t\t\tgraphics2D.fillRect(0, 0, newWidth, newHeight);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgraphics2D.drawImageScaled(tmpImage, newWidth, newHeight);\n\t\t\t\t\t\tgraphics2D.dispose();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetImg(tmpImage);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsetImg(null);\n\t\t\t\t}\n\n\t\t\t\trepaint();\n\t\t\t} catch (IllegalArgumentException iae) {\n\t\t\t\t// This is thrown if you select .ico files\n\t\t\t\tsetImg(null);\n\t\t\t} catch (Throwable t) {\n\t\t\t\tt.printStackTrace();\n\t\t\t\tLog.debug(t.getClass() + \"\");\n\t\t\t\tsetImg(null);\n\t\t\t}\n\t\t}", "private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "String getImage();", "BufferedImage outputImage();", "public void imagepackets(String quality) {\t\t// error or free\r\n\tint k;\r\n\tModem modem = setmodem(10000, 2000); // creates and initializes modem\r\n\r\n\tFileOutputStream fout = makefile(\"image\", \".jpeg\");\t// opening file to store input data\r\n\r\n\tString img; \r\n\t \r\n\tif (quality == \"error\")\r\n\t\timg = imgerror;\r\n\telse img = imgfree;\r\n\t \r\n\tmodem.open(\"ithaki\");\r\n\t\r\n\tfor ( ; ; ) { //// it's for emptying the initial message\r\n\t\ttry {\r\n\t\tk=modem.read();\r\n\t\tif (k==-1){ break;}\r\n\t \r\n\t\t\tSystem.out.print((char)k);\r\n\t \r\n\t\t} catch (Exception x) {\r\n\t\t\tbreak;\r\n\t \r\n\t\t}\r\n\t \r\n\t}\r\n\t\r\n\tfor (int i = 0; i<1; i++){\t\r\n\t\t\r\n\t\tmodem.write(img.getBytes()); \r\n\r\n\t\tfor ( ; ; ) { //// it's for reading the characters\r\n\t\t\r\n\t\t\ttry {\r\n\t\t \r\n\t\t\t\tk=modem.read();\r\n\t\t\t\tif (k==-1){fout.write(\"\\r\\n\".getBytes()); break;}\r\n\t \r\n\t\t\t\tSystem.out.print((char)k);\r\n\t \r\n\t\t\t\tfout.write(k);\r\n\t \r\n\t\t\t} catch (Exception x) {\r\n\t\t\t\tbreak;\r\n\t \r\n\t\t\t}\r\n\t \r\n\t\t}\r\n\t \r\n\t }\r\n\tmodem.close();\r\n }", "public void ShowImage(BufferedImage test) {\n try {\n BufferedImage output = test;\n File fo = new File(\"C:\\\\java\\\\images\\\\sub_image20170114.png\");\n ImageIO.write(output, \"PNG\", fo);\n } catch (IOException e) {\n System.out.println(\"Writing to output failed.\");\n }\n }", "private void createImgSample() throws IOException {\n\t\tSystem.out.print(\"[INFO][PLUGIN][REPLY]:Creating IMG Sample...\");\n\t\tURL url = new URL(\"http://w23.loxa.edu.tw/mm974401/SmallNight2019.png\");\n\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\n\t\tcon.setRequestProperty(\"User-agent\", \" Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0\");\n\t\tBufferedInputStream in = new BufferedInputStream(con.getInputStream());\n\t\tbyte[] data = new byte[1024];\n\t\tnew File(\"reply/img/Sample\").mkdir();\n\t\tFile sampImg = new File(\"reply/img/Sample/SmallNight2019.png\");\n\t\tFileOutputStream fos = new FileOutputStream(sampImg);\n\t\tint n;\n\t\twhile((n=in.read(data,0,1024))>=0) \n\t\t\tfos.write(data,0,n);\n\t\tfos.flush();\n\t\tfos.close();\n\t\tin.close();\n\t\tFileWriter sampCmd = new FileWriter(\"reply/cmd/SampleImg.yml\");\n\t\tsampCmd.write(\"img\\n\");\n\t\tsampCmd.write(\"Sample\\n\");\n\t\tsampCmd.write(\"sample||Sample||TEST||test\\n\");\n\t\tsampCmd.write(\"break\\n\");\n\t\tsampCmd.flush();\n\t\tsampCmd.close();\n\t\tSystem.out.println(\"DONE!\");\n\t}", "public void writeToImage() {\r\n\t\t_imageWriter.writeToImage();\r\n\t}", "public void saveImage(){\n new Thread() {\n public void run() {\n String image_url = stuffRoomInfo.getStuffLink();\n Log.i(\"OGT\", \"image_url:in showImage \" + image_url);\n getOGTag(image_url);\n // Display a png image from the specified file\n ImageUrlSendServer();\n }\n }.start();\n }", "public static com.jme.image.Image loadImage(InputStream fis, boolean flip, boolean exp32) throws\n IOException {\n byte red = 0;\n byte green = 0;\n byte blue = 0;\n byte alpha = 0;\n //open a stream to the file\n BufferedInputStream bis = new BufferedInputStream(fis, 8192);\n DataInputStream dis = new DataInputStream(bis);\n //Read the TGA header\n idLength = (short) dis.read();\n colorMapType = (short) dis.read();\n imageType = (short) dis.read();\n cMapStart = flipEndian(dis.readShort());\n cMapLength = flipEndian(dis.readShort());\n cMapDepth = (short) dis.read();\n xOffset = flipEndian(dis.readShort());\n yOffset = flipEndian(dis.readShort());\n width = flipEndian(dis.readShort());\n height = flipEndian(dis.readShort());\n pixelDepth = (short) dis.read();\n imageDescriptor = (short) dis.read();\n //Skip image ID\n if (idLength > 0)\n bis.skip(idLength);\n // Allocate image data array\n byte[] rawData = null;\n int dl;\n if ((pixelDepth == 32)||(exp32)) {\n rawData = new byte[width * height * 4];\n dl=4;\n } else {\n rawData = new byte[width * height * 3];\n dl=3;\n }\n int rawDataIndex = 0;\n \n // Faster than doing a 24-or-32 check on each individual pixel,\n // just make a seperate loop for each.\n if (pixelDepth == 24)\n for (int i = 0; i <= (height - 1); i++) {\n if(flip) rawDataIndex=(height-1-i)*width*dl;\n for (int j = 0; j < width; j++) {\n blue = dis.readByte();\n green = dis.readByte();\n red = dis.readByte();\n rawData[rawDataIndex++] = red;\n rawData[rawDataIndex++] = green;\n rawData[rawDataIndex++] = blue;\n if(dl==4) {\n // create an alpha channel\n rawData[rawDataIndex++] = (byte)255;\n }\n \n }\n }\n else if (pixelDepth == 32)\n for (int i = 0; i <= (height - 1); i++) {\n if(flip) rawDataIndex=(height-1-i)*width*dl;\n for (int j = 0; j < width; j++) {\n blue = dis.readByte();\n green = dis.readByte();\n red = dis.readByte();\n alpha = dis.readByte();\n rawData[rawDataIndex++] = red;\n rawData[rawDataIndex++] = green;\n rawData[rawDataIndex++] = blue;\n rawData[rawDataIndex++] = alpha;\n }\n }\n fis.close();\n //Get a pointer to the image memory\n ByteBuffer scratch = ByteBuffer.allocateDirect(rawData.length);\n scratch.clear();\n scratch.put(rawData);\n scratch.rewind();\n // Create the jme.image.Image object\n com.jme.image.Image textureImage = new com.jme.image.Image();\n if (dl == 4)\n textureImage.setType(com.jme.image.Image.RGBA8888);\n else\n textureImage.setType(com.jme.image.Image.RGB888);\n textureImage.setWidth(width);\n textureImage.setHeight(height);\n textureImage.setData(scratch);\n return textureImage;\n }", "public static String getImgGif() throws Exception {\n\t\treturn getConfig(\"img_gif\");\n\t}", "public void updateGif(final Date date) {\r\n if (giffer != null) {\r\n giffer.updateGif(buffer, date);\r\n if (replay.isAtEnd()) {\r\n endGif();\r\n }\r\n }\r\n }", "private Image bitmap2JPEG(Bitmap bit) {\n\n Image baseImage = new Image();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bit.compress(Bitmap.CompressFormat.JPEG, 90, stream);\n byte[] imageBytes = stream.toByteArray();\n baseImage.encodeContent(imageBytes);\n\n return baseImage;\n }", "public void handleGifResponse(Response<GifResponse> response) {\n GifResponse gifResponse = (GifResponse) response.body();\n if (gifResponse != null) {\n this.listener.onSuccess(getImagesFromResponse(gifResponse.results()));\n return;\n }\n this.listener.onError();\n }", "public void imageSaveControl(byte[] readByte, SocketChannel client,int userNumber){\n\t\ttry{\n\t\t\tString dirtyResult = new String(readByte,\"ISO-8859-1\");\n\t\t\tif(dirtyResult.contains(\"ULMImg\")){\t\t\t\t\t\t\n\t\t\t\tSystem.out.println(\"userNumber = \" + userNumber);\n\t\t\t\tUsers[userNumber].setIsFile(true);\n\t\t\t\tint l = (\"ULMImg\" + c.STATEND).length();\n\t\t\t\tint position = dirtyResult.indexOf(\"ULMImg\");\n\t\t\t\tString remain = dirtyResult.substring(position + l);\n\t\t\t\tif(remain.length() > 0){\n\t\t\t\t\tSystem.out.println(\"^^^^^\");\n\t\t\t\t\tbyte [] remains = remain.getBytes(\"ISO-8859-1\");\n\t\t\t\t\tsaveImage(userNumber,remains);\n\t\t\t\t\tbyte another[] = dirtyResult.substring(0,position).getBytes(\"ISO-8859-1\");\n\t\t\t\t\tif(another.length > 0){\n\t\t\t\t\t\tprepareParse(another,client,userNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(dirtyResult.contains(\"SMImgD\")){\t\t\t\t\n\t\t\t\tUsers[userNumber].setIsFile(false);\n\t\t\t\tUsers[userNumber].setIsFileSended(true);\n\t\t\t\tint l = (\"SMImgD\" + c.STATEND).length();\n\t\t\t\tint position = dirtyResult.indexOf(\"SMImgD\");\n\t\t\t\tString remain = dirtyResult.substring(0,position);\n\t\t\t\tif(remain.length() > 0){\n\t\t\t\t\tSystem.out.println(\"vvvvv\");\n\t\t\t\t\tbyte [] remains = remain.getBytes(\"ISO-8859-1\");\n\t\t\t\t\tsaveImage(userNumber,remains);\n\t\t\t\t\tbyte another[] = dirtyResult.substring(position + l).getBytes(\"ISO-8859-1\");\n\t\t\t\t\tif(another.length > 0){\n\t\t\t\t\t\tprepareParse(another,client,userNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(Users[userNumber].imgTempNum != -1){\t\t\t\t\t\t//image can't be null\n\t\t\t\t\tSystem.out.println(\"imagesize:\" + imgTemps[Users[userNumber].imgTempNum].getTempLength());\n\t\t\t\t\ttry{\t\t\t\t\t\t\t\t\t\t\t\t\t//save to disk\n\t\t\t\t\t\tFile fWrite = new File(c.imagepath + Users[userNumber].getId() + \".PNG\");\n\t\t\t\t\t\tFileOutputStream out = new FileOutputStream(fWrite);\n\t\t\t\t\t\tout.write(imgTemps[Users[userNumber].imgTempNum].getNewFiles(),0,imgTemps[Users[userNumber].imgTempNum].getTempLength());\n\t\t\t\t\t\tout.close();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t\t\tif(c.debug){\te.printStackTrace();}\n\t\t\t\t\t}\n\t\t\t\t\timgTemps[Users[userNumber].imgTempNum].userNumber = -1;\n\t\t\t\t\timgTemps[Users[userNumber].imgTempNum].newFiles = null;\t\n\t\t\t\t\timgTemps[Users[userNumber].imgTempNum].setTempLength(0);\n\t\t\t\t}\n\t\t\t\tUsers[userNumber].setIsFile(false);\n\t\t\t\tUsers[userNumber].setIsFileSended(true);\n\t\t\t\tString result = \"setIsFileSended;true\";\n\t\t\t\tc.sendInforBack(client,result);\n\t\t\t}\n\n\t\t\tif(Users[userNumber].getIsFile()){\t\t\t\t\t\t\t\t\n\t\t\t\tif((!dirtyResult.contains(\"ULMImg\")) && (!dirtyResult.contains(\"SMImgD\"))) {\n\t\t\t\t\tsaveImage(userNumber,readByte);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t\tif(c.debug){\te.printStackTrace();}\n\t\t}\n\t}", "public GifDrawable(InputStream stream) throws IOException {\n if (stream == null)\n throw new NullPointerException(\"Source is null\");\n if (!stream.markSupported())\n throw new IllegalArgumentException(\"InputStream does not support marking\");\n mGifInfoPtr = openStream(mMetaData, stream);\n mColors = new int[mMetaData[0] * mMetaData[1]];\n mInputSourceLength = -1L;\n }", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\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 }", "private void getPic(final CacheHolder cacheHolder, final CacheImage imageInfo) {\n String fileName = cacheHolder.getCode() + \"_\" + imageInfo.getURL().substring(imageInfo.getURL().lastIndexOf('/') + 1);\n fileName = Common.ClearForFileName(fileName).toLowerCase();\n final String target = MainForm.profile.dataDir + fileName;\n imageInfo.setFilename(fileName);\n try {\n File ftest = new File(target);\n if (ftest.exists()) {\n if (ftest.length() == 0) {\n ftest.delete();\n }\n else {\n cacheHolder.getDetails().getImages().add(imageInfo);\n }\n }\n else {\n if (downloadPics) {\n UrlFetcher.fetchDataFile(imageInfo.getURL(), target);\n ftest = new File(target);\n if (ftest.exists()) {\n if (ftest.length() > 0) {\n cacheHolder.getDetails().getImages().add(imageInfo);\n }\n else {\n ftest.delete();\n }\n }\n }\n }\n }\n catch (final IOException e) {\n String ErrMessage;\n String wp, n;\n if (cacheHolder != null && cacheHolder.getCode() != null)\n wp = cacheHolder.getCode();\n else\n wp = \"WP???\";\n if (cacheHolder != null && cacheHolder.getName() != null)\n n = cacheHolder.getName();\n else\n n = \"name???\";\n\n String m;\n try {\n m = e.getMessage();\n if (m == null)\n m = \"\";\n }\n catch (Exception e2) {\n m = \"\";\n }\n\n if (m.length() == 0)\n ErrMessage = \"Ignoring error: OCXMLImporter.getPic: IOExeption == null, while downloading picture: \" + fileName + \" from URL:\" + imageInfo.getURL();\n else {\n if (m.equalsIgnoreCase(\"could not connect\") || m.equalsIgnoreCase(\"unkown host\")) {\n // is there a better way to find out what happened?\n ErrMessage = MyLocale.getMsg(1618, \"Ignoring error in cache: \") + n + \" (\" + wp + \")\" + MyLocale.getMsg(1619, \": could not download image from URL: \") + imageInfo.getURL();\n }\n else {\n ErrMessage = MyLocale.getMsg(1618, \"Ignoring error in cache: \") + n + \" (\" + wp + \"): ignoring IOException: \" + m + \" while downloading picture:\" + fileName + \" from URL:\" + imageInfo.getURL();\n }\n }\n inf.addWarning(ErrMessage);\n Preferences.itself().log(ErrMessage, e, true);\n }\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 }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "@Override\r\n\tpublic void render(Graphics g) {\r\n\t\ttry {\r\n\t\t\tImage flower = ImageIO.read(picture);\r\n\t\t\tg.drawImage(flower, x, y, null);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public GifDrawable(byte[] bytes) throws IOException {\n if (bytes == null)\n throw new NullPointerException(\"Source is null\");\n mGifInfoPtr = openByteArray(mMetaData, bytes);\n mColors = new int[mMetaData[0] * mMetaData[1]];\n mInputSourceLength = bytes.length;\n }", "Integer saveExerciseGif(Long exerciseId, MultipartFile exerciseGif) throws IOException;", "private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}", "private void handleImage(byte[] b) throws IOException {\n Log.i(\"ScrencapHandler\",\"handleImage\");\n long utime = System.currentTimeMillis();\n byte[] unixTime = toByteArray(utime);\n int start = b.length - unixTime.length - 1; //-1 for the seqnum\n for (int i = 0; i < unixTime.length; i++) {\n b[start + i] = unixTime[i];\n }\n\n if (jitterControl.channelIsFree()) {\n int seq = jitterControl.sendt(utime, b.length);\n\n // Add seq number.\n b[b.length - 1] = (byte) seq;\n\n // Send out the data to the network.\n Log.i(\"ScrencapHandler\",\"Send out the data to the network\");\n mWebkeyVisitor.send(b);\n }\n }", "@GetMapping(value = \"/viewJPEG/{fileId}\",produces = MediaType.IMAGE_JPEG_VALUE)\n\tpublic void getJPEImage(HttpServletResponse response,@PathVariable String fileId) throws IOException {\n\t\tPortfolioImageEntity img = portfolioService.loadImageById(fileId).get();\n\t\tInputStream inputStream = new ByteArrayInputStream(img.getData());\n\t\tresponse.setContentType(MediaType.IMAGE_JPEG_VALUE);\n\t\tStreamUtils.copy(inputStream, response.getOutputStream());\n\t}", "public void imagesaver(String name){\n\tthis.new_image_name = name;\n\t try{\n\t\tImageIO.write(new_buff_image, \"png\", new File(new_image_name));\n\t }\n\t catch(IOException e){\n\t\tSystem.out.println(\"The desired output file is invalid. Please try running the program again.\");\n\t\tSystem.exit(0);\n\t }\n }", "public static BufferedImage getImage(InputStream jpgIn) throws IOException {\n BufferedImage bufImg = ImageIO.read(jpgIn);\n jpgIn.close();\n return bufImg;\n }", "public static void saveImage(BufferedImage buff, String dest) {\n try {\n File outputfile = new File(dest);\n ImageIO.write(buff, \"png\", outputfile);\n } catch (IOException e) {\n System.out.println(\"error saving the image: \" + dest + \": \" + e);\n }\n }", "private void setImage() {\r\n\t\ttry{\r\n\r\n\t\t\twinMessage = ImageIO.read(new File(\"obstacles/win.gif\"));\r\n\t\t\tcoin = ImageIO.read(new File(\"obstacles/Coin.gif\"));\r\n\t\t\toverMessage = ImageIO.read(new File(\"obstacles/over.gif\"));\r\n\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.err.println(\"Image file not found\");\r\n\t\t}\r\n\r\n\t}", "private void getNewImage() {\n try {\n URL imageUrl = new URL(path);\n URLConnection uc = imageUrl.openConnection();\n\n InputStream is = uc.getInputStream();\n BufferedInputStream bis = new BufferedInputStream(is);\n\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n int current;\n while ((current = bis.read()) != -1) {\n buffer.write((byte) current);\n }\n final byte[] data = buffer.toByteArray();\n // enqueue UI update as a priority\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n public void run() {\n view.setImageBitmap(BitmapFactory.decodeByteArray(\n data, 0, data.length));\n }\n });\n // update database while that is queueing\n ContentValues values = new ContentValues();\n values.put(MovieEntry.COLUMN_POSTER, data);\n context.getContentResolver().update(MovieEntry.buildMovieUriWithId(movieId),\n values, null, null);\n } catch (Exception E) {\n Log.i(TAG, E.toString());\n E.printStackTrace();\n }\n }", "public BufferedImage open(String id, int no)\n throws FormatException, IOException\n {\n if (!id.equals(currentId)) initFile(id);\n \n if (no < 0 || no >= getImageCount(id)) {\n throw new FormatException(\"Invalid image number: \" + no);\n }\n \n // First initialize:\n in.seek(offsets[no] + 12);\n byte[] toRead = new byte[4];\n in.read(toRead);\n int blockSize = batoi(toRead);\n toRead = new byte[1];\n in.read(toRead);\n // right now I'm gonna skip all the header info\n // check to see whether or not this is v2 data\n if (toRead[0] == 1) {\n in.skipBytes(128);\n }\n in.skipBytes(169);\n // read in the block of data\n toRead = new byte[blockSize];\n int read = 0;\n int left = blockSize;\n while (left > 0) {\n int i = in.read(toRead, read, left);\n read += i;\n left -= i;\n }\n byte[] pixelData = new byte[blockSize];\n int pixPos = 0;\n \n Dimension dim;\n try { dim = pictReader.getDimensions(toRead); }\n catch (Exception e) { dim = new Dimension(0, 0); }\n \n int length = toRead.length;\n int num, size, blockEnd;\n int totalBlocks = -1; // set to allow loop to start.\n int expectedBlock = 0;\n int pos = 0;\n int imagePos = 0;\n int imageSize = dim.width * dim.height;\n short[] flatSamples = new short[imageSize];\n byte[] temp;\n boolean skipflag;\n \n // read in deep grey pixel data into an array, and create a\n // BufferedImage out of it\n //\n // First, checks the existence of a deep gray block. If it doesn't exist,\n // assume it is PICT data, and attempt to read it.\n \n // check whether or not there is deep gray data\n while (expectedBlock != totalBlocks) {\n skipflag = false;\n while (pos + 7 < length &&\n (toRead[pos] != 73 || toRead[pos + 1] != 86 ||\n toRead[pos + 2] != 69 || toRead[pos + 3] != 65 ||\n toRead[pos + 4] != 100 || toRead[pos + 5] != 98 ||\n toRead[pos + 6] != 112 || toRead[pos + 7] != 113))\n {\n pos++;\n }\n if (pos + 32 > length) { // The header is 32 bytes long.\n if (expectedBlock == 0 && imageType[no] < 9) {\n // there has been no deep gray data, and it is supposed\n // to be a pict... *crosses fingers*\n try { return pictReader.openBytes(toRead); }\n catch (Exception e) {\n e.printStackTrace();\n throw new FormatException(\"No iPic comment block found\", e);\n }\n }\n else {\n throw new FormatException(\"Expected iPic comment block not found\");\n }\n }\n \n pos += 8; // skip the block type we just found\n \n // Read info from the iPic comment. This serves as a\n // starting point to read the rest.\n temp = new byte[] {\n toRead[pos], toRead[pos+1], toRead[pos+2], toRead[pos+3]\n };\n num = batoi(temp);\n if (num != expectedBlock) {\n throw new FormatException(\"Expected iPic block not found\");\n }\n expectedBlock++;\n temp = new byte[] {\n toRead[pos+4], toRead[pos+5], toRead[pos+6], toRead[pos+7]\n };\n if (totalBlocks == -1) {\n totalBlocks = batoi(temp);\n }\n else {\n if (batoi(temp) != totalBlocks) {\n throw new FormatException(\"Unexpected totalBlocks numbein.read\");\n }\n }\n \n // skip to size\n pos += 16;\n temp = new byte[] {\n toRead[pos], toRead[pos+1], toRead[pos+2], toRead[pos+3]\n };\n size = batoi(temp);\n pos += 8;\n blockEnd = pos + size;\n \n // copy into our data array.\n System.arraycopy(toRead, pos, pixelData, pixPos, size);\n pixPos += size;\n }\n int pixelValue = 0;\n pos = 0;\n \n // Now read the data and wrap it in a BufferedImage\n \n while (true) {\n if (pos + 1 < pixelData.length) {\n pixelValue = pixelData[pos] < 0 ? 256 + pixelData[pos] :\n (int) pixelData[pos] << 8;\n pixelValue += pixelData[pos + 1] < 0 ? 256 + pixelData[pos + 1] :\n (int) pixelData[pos + 1];\n }\n else throw new FormatException(\"Malformed LIFF data\");\n flatSamples[imagePos] = (short) pixelValue;\n imagePos++;\n if (imagePos == imageSize) { // done, return it\n return ImageTools.makeImage(flatSamples,\n dim.width, dim.height, 1, false);\n }\n }\n }", "private void enhanceImage(){\n }", "private void postImg(File index) {\n FileInputStream imgIn = null;\n byte[] imgData = new byte[(int)index.length()];\n try {\n imgIn = new FileInputStream(index);\n imgIn.read(imgData);\n\n BufferedOutputStream imgOut = new BufferedOutputStream(connectionSocket.getOutputStream());\n\n\n out.println(OK);\n out.println(htmlType);\n out.println(closed);\n out.println(\"Content-Length: \" + index.length());\n out.write(ENDLINE);\n out.flush();\n imgOut.write(imgData, 0, (int)index.length());\n imgOut.flush();\n\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "public void Draw() {\n\t\timgIcon = new ImageIcon(imgUrl);\n\t}", "public void writeToImage() {\n imageWriter.writeToImage();\n }", "public byte[] doInBackground(byte[]... data) {\n byte[] originalJpegData;\n byte[] originalJpegData2 = data[0];\n if (PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() > 0.0f && PhotoModule.this.isSupportBeauty() && (PhotoModule.this.mCameraId == 0 || PhotoModule.this.mCameraId == 1)) {\n Size size = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n float seek = PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() / 20.0f;\n int angle = PhotoModule.this.mCameraId == 1 ? MediaProviderUtils.ROTATION_270 : 90;\n if (originalJpegData2 != null) {\n originalJpegData2 = BeautifyHandler.processImageNV21(PhotoModule.this.mActivity, originalJpegData2, size.width(), size.height(), seek, angle);\n }\n }\n PhotoModule.this.mActivity.getButtonManager().mBeautyEnable = true;\n Size size2 = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n PhotoModule.this.mIsAddWaterMark = PhotoModule.this.mCameraSettings.isAddWaterMarkEnabled();\n if (PhotoModule.this.mFinalDrCheckResult.size() <= 1) {\n Log.d(PhotoModule.TAG, \"start to jpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(originalJpegData2, size2.width(), size2.height());\n Log.d(PhotoModule.TAG, \"end to jpeg\");\n } else {\n int result = PhotoModule.this.mImageRefiner.processImage();\n Tag access$500 = PhotoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"processImage result = \");\n stringBuilder.append(result);\n Log.d(access$500, stringBuilder.toString());\n byte[] output = new byte[originalJpegData2.length];\n if (result < 0) {\n output = (byte[]) PhotoModule.this.mAddedImages.get(0);\n } else {\n int getOutputResult = PhotoModule.this.mImageRefiner.getOutputImageRaw(output);\n Tag access$5002 = PhotoModule.TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"getOutputResult = \");\n stringBuilder2.append(getOutputResult);\n Log.d(access$5002, stringBuilder2.toString());\n }\n PhotoModule.this.mImageRefiner.finish();\n PhotoModule.this.mImageRefiner = null;\n Log.d(PhotoModule.TAG, \"mImageRefiner = null\");\n Log.d(PhotoModule.TAG, \"compressToJpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(output, size2.width(), size2.height());\n }\n if (cameraProxy.getCharacteristics().isFacingFront() && PhotoModule.this.isNeedMirrorSelfie()) {\n originalJpegData = PhotoModule.this.aftMirrorJpeg(originalJpegData);\n }\n if (!Keys.isAlgorithmsOn(PhotoModule.this.mActivity.getSettingsManager()) || PhotoModule.this.isDepthEnabled() || PhotoModule.this.mBurstResultQueue.isEmpty()) {\n return originalJpegData;\n }\n TotalCaptureResult totalCaptureResult = (TotalCaptureResult) PhotoModule.this.mBurstResultQueue.removeFirst();\n if (PhotoModule.this.mInHdrProcess) {\n PhotoModule.this.mBurstResultQueue.clear();\n }\n return PhotoModule.this.addExifTags(originalJpegData, totalCaptureResult, cameraProxy.getCharacteristics().isFacingFront(), PhotoModule.this.mJpegRotation);\n }", "@Override\r\n public String getImage(String path, String ext) {\r\n String imageString = \"\";\r\n try {\r\n BufferedImage originalImage = ImageIO.read(new File(path));\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ImageIO.write(originalImage, ext, bos);\r\n byte[] imageBytes = bos.toByteArray();\r\n BASE64Encoder encoder = new BASE64Encoder();\r\n imageString = encoder.encode(imageBytes);\r\n System.out.println(\"Image \"+path+\" loaded\");\r\n bos.close();\r\n return imageString;\r\n } catch (IOException ex) {\r\n System.err.println(\"\"+ex.getMessage());\r\n return null;\r\n }\r\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "@Override\n public void onComplete(Bitmap bitMap) {\n String localFileName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"save image to cache: \" + localFileName);\n\n saveImageToFile(bitMap,localFileName);\n //3. return the image using the listener\n listener.onComplete(bitMap);\n }", "public Image getImage(long offset) throws IOException {\r\n String image = getFilename() + \"_\" + offset + \".jpg\";\r\n System.err.println(\"File = \" + image);\r\n\r\n File file = new File(image);\r\n if (file.exists()) {\r\n return ImageIO.read(file);\r\n }\r\n\r\n // Find the nearest frame to the offset\r\n streamSeek(offset - getOffsetShift());\r\n\r\n // Pass frames into the codec one at a time until buffer contains the\r\n // frame\r\n boolean isData = readNextPacket();\r\n int status = PlugIn.OUTPUT_BUFFER_NOT_FILLED;\r\n while ((status == PlugIn.OUTPUT_BUFFER_NOT_FILLED) && isData\r\n && (!processor.getOutputBuffer().isDiscard())) {\r\n\r\n // Read the frame into the buffer\r\n Buffer inputBuffer = getBuffer();\r\n status = processor.process(inputBuffer);\r\n\r\n if (status == PlugIn.BUFFER_PROCESSED_OK\r\n && (getOffset() < offset)) {\r\n status = PlugIn.OUTPUT_BUFFER_NOT_FILLED;\r\n }\r\n if (status == PlugIn.OUTPUT_BUFFER_NOT_FILLED) {\r\n isData = readNextPacket();\r\n }\r\n }\r\n\r\n if (status != PlugIn.BUFFER_PROCESSED_OK) {\r\n throw new IOException(\"Error processing frame\");\r\n }\r\n\r\n // Convert the buffer to an image and return it\r\n BufferToImage convertor = new BufferToImage((VideoFormat)\r\n processor.getOutputBuffer().getFormat());\r\n return convertor.createImage(processor.getOutputBuffer());\r\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\")\n .format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX,\n albumF);\n return imageF;\n }", "public void onPostExecute(byte[] originalJpegData) {\n LongshotPictureCallback.this.updateExifAndSave(Exif.getExif(originalJpegData), originalJpegData, camera);\n }", "private void updateImageFile() throws FileNotFoundException {\n \t\tfinal PrintWriter out = new PrintWriter(asciiImageFile);\n \t\tout.print(asciiImage(false));\n \t\tout.close();\n \t}", "@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "public BufferedImage refreshFrame(int frame_no) {\n\n\t\tind = byteIndicies[frame_no];\n\n\t\timg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\t\ttry {\n\n\t\t\twhile (offset < bytes.length && (numRead = is.read(bytes, offset, bytes.length - offset)) >= 0) {\n\t\t\t\toffset += numRead;\n\t\t\t}\n\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\t\tbyte r = bytes[ind];\n\t\t\t\t\tbyte g = bytes[ind + height * width];\n\t\t\t\t\tbyte b = bytes[ind + height * width * 2];\n\n\t\t\t\t\tint pix = 0xff000000 | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff);\n\t\t\t\t\timg.setRGB(x, y, pix);\n\t\t\t\t\tind++;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn img;\n\t}", "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}", "@Override\n\t\t\t\t\tpublic void done(byte[] arg0, AVException arg1) {\n\t\t\t\t\t\tif (arg1 == null&&arg0!=null) {\n\t\t\t\t\t\t\ttargeticon = Bytes2Bimap(arg0);\n\t\t\t\t\t\t\tsaveicon(user.getUsername(), targeticon);\n\t\t\t\t\t\t\tif (icon != null)\n\t\t\t\t\t\t\t\ticon.setImageBitmap(targeticon);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"获取头像失败\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\ttargeticon = ((BitmapDrawable) getResources()\n\t\t\t\t\t\t\t\t\t.getDrawable(R.drawable.head_icon))\n\t\t\t\t\t\t\t\t\t.getBitmap();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void saveImg(byte[] byteImg, String fileName) throws IOException{\n File outputFile = new File(\"src/main/resources/tmpImg/\" + fileName);\n // convert byte[] back to a BufferedImage\n BufferedImage newBi = ImageIO.read(new ByteArrayInputStream(byteImg));\n // save it\n ImageIO.write(newBi, \"jpeg\",outputFile);\n }", "@RequestMapping(\"/gif/{name}\")\n public String gifDetails(@PathVariable String name, ModelMap modelMap) {\n Gif gif = gifRepo.getGifByName(name);\n modelMap.put(\"gif\",gif);\n return \"gif-details\";\n }", "@Override\n public void run() {\n try {\n if (urlString != null && !urlString.equals(\"\")) {\n\n\n if (urlString.endsWith(\".gif\")) {\n\n\n handler.sendEmptyMessage(SHOW_VIEW_GIF);\n\n } else if (!urlString.endsWith(\".gif\")) {\n bitmapDrawable = null;\n bitmapDrawable = ((BitmapDrawable) loadImageFromUrl(urlString)).getBitmap();\n if (bitmapDrawable != null) {\n handler.sendEmptyMessage(SHOW_VIEW);\n }\n\n\n }\n\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void upload() {\n try {\n BufferedImage bufferedProfile = ImageIO.read(profilePicture.getInputStream());\n FaceImage face = new FaceImage(bufferedProfile);\n\n if (face.foundFace()) {\n\n face.setNoCropMultiplier(1);\n face.setAdditionPadding(20);\n face.setDimension(128, 128);\n BufferedImage profilePicture = face.getScaledProfileFace();\n\n File outfile = new File(Settings.NEW_PROFILE_IMAGE_PATH.replace(\"~~username~~\", student.getUserName()));\n ImageIO.write(profilePicture, \"png\", outfile);\n\n success = true;\n\n student.setProfilePicturePath(\"profile/\" + student.getUserName() + \".png\");\n save();\n\n } else {\n FacesContext.getCurrentInstance().addMessage(\"imageContainer:file\", new FacesMessage(\"Kein Gesicht gefunden!\"));\n\n }\n\n } catch (IOException e) {\n System.err.println(\"something went wrong \" + e.getMessage());\n }\n\n }", "public void write(File path) throws IOException{\n\t\tif(this.picture != null){ // in cazul in care poza are continut null se arunca exceptie\n\t\t\t//File output = new File(path);\n\t\t\tImageIO.write(zoomed,\"bmp\",path);\n\t\t\tSystem.out.println(path);\n\t\t\tSystem.out.println(\"\\nS-a scris in fisier cu succes\");\n\t\t}\n\t}", "private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }", "private void updateContPicture(String path) {\n \t\t// don't update if its already correct!\n \t\tif (imgPath == path) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\ttry {\n \t\t\tImage img = ImageIO.read(new File(path));\n \t\t\tif(img==null)\n \t\t\t\tthrow new IOException();\n \t\t\t// scale the image!\n \t\t\tif (img.getWidth(null) > 200 ||\n \t\t\t\t\timg.getHeight(null) > 200) {\n \t\t\t\timg = img.getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n \t\t\t}\n \t\t\t\n \t\t\t// NO IO errors occured if getting here:\n \t\t\tImageIcon imgD = new ImageIcon(img);\n \t\t\timgDisplay.setIcon(imgD);\n \t\t\timgPath = path;\n \t\t} catch (IOException e) {\n \t\t\tSystem.out.println(\"Exception loading image for contestant \" +\n \t\t\t\t\t\"picture [\" + path + \"]\");\n \t\t\timgDisplay.setIcon(null);\n \t\t\timgDisplay.setText(\"Could not load: \" + path);\n \t\t}\n \t\t\n \t}", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "@Test\n public void testJFXXJPEGThumbnail() throws IOException {\n // JFIF with JFXX JPEG encoded thumbnail\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/jfif-jfxx-thumbnail-olympus-d320l.jpg\")));\n\n assertTrue(reader.hasThumbnails(0));\n assertEquals(1, reader.getNumThumbnails(0));\n assertEquals(80, reader.getThumbnailWidth(0, 0));\n assertEquals(60, reader.getThumbnailHeight(0, 0));\n\n BufferedImage thumbnail = reader.readThumbnail(0, 0);\n assertNotNull(thumbnail);\n assertEquals(80, thumbnail.getWidth());\n assertEquals(60, thumbnail.getHeight());\n }", "@Override\n\t\tpublic void paint(Graphics g) {\n\t\t\tsuper.paint(g);\n\t\t\tg.drawImage(photoImage, 10, 2, 110, 130, this);\t\t\n\t\t}", "@Override\n public void loadGif(String url) {\n CircularProgressDrawable progressPlaceHolder = ProgressBarUtil.getCircularProgressPlaceholder(getContext());\n if (!TextUtils.isEmpty(url)) {\n Glide.with(getContext())\n .asGif()\n .load(url)\n .apply(new RequestOptions()\n .placeholder(progressPlaceHolder))\n .into(ivGif);\n }\n }", "private void pruebaGuardado() {\n try {\n BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2d = img.createGraphics();\n g2d.setColor(Color.RED);\n g2d.fillRect(25, 25, 50, 50);\n g2d.dispose();\n ImageIO.write(img, \"JPEG\", new File(\"D:\\\\LeapMotion\\\\foo.jpg\"));\n } catch (IOException ex) {\n Logger.getLogger(Nodo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp)\n throws IOException {\n ServletContext sc = getServletContext();\n String uri = req.getRequestURI();\n String servletBase = req.getServletPath();\n\n boolean Companyflag = (req.getParameter(\"company\") != null) ? true : false;\n String imagePath = defaultImgPath;\n String requestedFileName = \"\";\n if (Companyflag) {\n imagePath = defaultCompanyImgPath;\n String companyId = null;\n try {\n companyId = sessionHandlerImpl.getCompanyid(req);\n } catch (Exception ee) {\n }\n if (StringUtil.isNullOrEmpty(companyId)) {\n String domain = URLUtil.getDomainName(req);\n if (!StringUtil.isNullOrEmpty(domain)) {\n //@@@ - Uncomment\n//\t\t\t\t\tcompanyId = DBCon.getCompanyid(domain);\n requestedFileName = \"/original_\" + companyId + \".png\";\n } else {\n requestedFileName = \"logo.gif\";\n }\n } else {\n requestedFileName = \"/\" + companyId + \".png\";\n }\n } else {\n requestedFileName = uri.substring(uri.lastIndexOf(servletBase)\n + servletBase.length());\n }\n String fileName = null;\n\n fileName = storageHandlerImpl.GetProfileImgStorePath() + requestedFileName;\n // Get the MIME type of the image\n String mimeType = sc.getMimeType(fileName);\n if (mimeType == null) {\n sc.log(\"Could not get MIME type of \" + fileName);\n resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n return;\n }\n\n // Set content type\n resp.setContentType(mimeType);\n\n // Set content size\n File file = new File(fileName);\n if (!file.exists()) {\n if (fileName.contains(\"_100.\")) {\n file = new File(fileName.replaceAll(\"_100.\", \".\"));\n }\n if (!file.exists()) {\n file = new File(sc.getRealPath(imagePath));\n }\n }\n\n resp.setContentLength((int) file.length());\n\n // Open the file and output streams\n FileInputStream in = new FileInputStream(file);\n OutputStream out = resp.getOutputStream();\n\n // Copy the contents of the file to the output stream\n byte[] buf = new byte[4096];\n int count = 0;\n while ((count = in.read(buf)) >= 0) {\n out.write(buf, 0, count);\n }\n in.close();\n out.close();\n }", "void loadPhoto(String filename) throws IOException;", "@Override\r\n protected Boolean doInBackground(Void... params) {\n try{\r\n String ImgPath = ImageUtils.getImageSavePath(GlobalDefinitions.TAG);\r\n PhotoUtils.saveBitmap(mFaceEditor.getDisplayImage(), ImgPath,PhotoUtils.IMAGE_FORMAT_JPG, BeautyfaceActivity.this);\r\n GlobalDefinitions.IMAGE_EDIT_DONE = true;\r\n\r\n }\r\n catch(Exception e)\r\n {\r\n return false;\r\n }\r\n return true;\r\n }", "private Image ConvertirImagen(byte[] bytes) throws IOException {\n ByteArrayInputStream bis = new ByteArrayInputStream(bytes);\n Iterator readers = ImageIO.getImageReadersByFormatName(\"jpeg\");\n ImageReader reader = (ImageReader) readers.next();\n Object source = bis;\n ImageInputStream iis = ImageIO.createImageInputStream(source);\n reader.setInput(iis, true);\n ImageReadParam param = reader.getDefaultReadParam();\n return reader.read(0, param);\n }", "public void saveImage(Book link) {\r\n\t\tURL url;\r\n\t\ttry {\r\n\t\t\tString workingDirectory = \"C:\\\\AppServ\\\\www\\\\pictures\\\\\";\r\n\t\t\turl = new URL(link.imgLink);\r\n\t\t\tBufferedImage img = ImageIO.read(url);\r\n\t\t\tString file = url.getPath();\r\n\t\t\tfile = file.substring(file.lastIndexOf(\"/\")+1, file.length());\r\n\t\t\tFile imgFile = new File(workingDirectory + file);\r\n\t\t\tString extension = file.substring(file.lastIndexOf(\".\")+1, file.length());\r\n\t\t\t//file = link.ISBN13;\r\n\t\t\tImageIO.write(img, extension, imgFile);\r\n\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void run() {\nif(i[0] ==le.size()){\n i[0]=0;}\n File file = new File(\"/var/www/html/PawsAndClaws/web/bundles/uploads/brochures/\" + le.get( i[0]).getBrochure());\n\n Image it = new Image(file.toURI().toString(), 500, 310, false, false);\n eventspicture.setImage(it);\n i[0]++;\n }", "@Override\n\tpublic void readImages() {\n\t\t\n\t}", "public void updateExifAndSave(ExifInterface exif, byte[] originalJpegData, final CameraProxy camera) {\n if (this.mLongshotCount == (short) 0) {\n this.mName = PhotoModule.this.mNamedImages.getNextNameEntity();\n }\n final Map<String, Object> externalBundle = new HashMap();\n externalBundle.put(ExternalExifInterface.BURST_SHOT_ID, Integer.valueOf(hashCode()));\n String str = ExternalExifInterface.BURST_SHOT_INDEX;\n short s = this.mLongshotCount;\n this.mLongshotCount = (short) (s + 1);\n externalBundle.put(str, Short.valueOf(s));\n Tag access$500 = PhotoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"long shot taken for \");\n stringBuilder.append(this.mLongshotCount);\n Log.w(access$500, stringBuilder.toString());\n if (PhotoModule.this.mShouldResizeTo16x9) {\n ResizeBundle dataBundle = new ResizeBundle();\n dataBundle.jpegData = originalJpegData;\n dataBundle.targetAspectRatio = 1.7777778f;\n dataBundle.exif = exif;\n new AsyncTask<ResizeBundle, Void, ResizeBundle>() {\n /* Access modifiers changed, original: protected|varargs */\n public ResizeBundle doInBackground(ResizeBundle... resizeBundles) {\n return PhotoModule.this.cropJpegDataToAspectRatio(resizeBundles[0]);\n }\n\n /* Access modifiers changed, original: protected */\n public void onPostExecute(ResizeBundle result) {\n LongshotPictureCallback.this.saveFinalPhoto(result.jpegData, LongshotPictureCallback.this.mName, result.exif, camera, externalBundle);\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new ResizeBundle[]{dataBundle});\n return;\n }\n saveFinalPhoto(originalJpegData, this.mName, exif, camera, externalBundle);\n }" ]
[ "0.65653425", "0.6461834", "0.607146", "0.6052475", "0.59637994", "0.59455484", "0.59322405", "0.59183776", "0.5912797", "0.5871655", "0.58604485", "0.57965463", "0.5769847", "0.57610357", "0.5706081", "0.5618655", "0.56146866", "0.55647707", "0.55398566", "0.5534939", "0.5519879", "0.5506502", "0.55045307", "0.5483036", "0.54819494", "0.5472819", "0.5448266", "0.5440329", "0.5432911", "0.54241514", "0.5410583", "0.5395999", "0.5391155", "0.5385262", "0.53800315", "0.53790057", "0.5375487", "0.5361671", "0.53559786", "0.5355083", "0.53453934", "0.5343649", "0.5343533", "0.53398645", "0.5338782", "0.5328518", "0.53181005", "0.53027046", "0.53027046", "0.53027046", "0.52953106", "0.5292506", "0.5288595", "0.5284123", "0.52627873", "0.5255151", "0.52509815", "0.5246413", "0.5242708", "0.52334464", "0.52286416", "0.5220999", "0.5219088", "0.5216207", "0.5210587", "0.5209402", "0.5208719", "0.5206304", "0.51995075", "0.51995075", "0.5198861", "0.519455", "0.51910686", "0.5190664", "0.51798826", "0.51703864", "0.5162971", "0.51545197", "0.5153154", "0.51500106", "0.51461786", "0.5127307", "0.5121923", "0.51177937", "0.5117373", "0.5116572", "0.5114471", "0.5109967", "0.5108055", "0.51045674", "0.510227", "0.51010525", "0.51004696", "0.50996894", "0.5096441", "0.5096239", "0.50948215", "0.5093113", "0.509025", "0.5089547" ]
0.76870114
0
count the number of pixels of each color in the image
private static void normalizeColor(BufferedImage image) { HashMap<Integer, Integer> counts = colorHistogram(image); Integer[] a=sortmap(counts); // sorting the map Integer minFreq = 1000; for (Integer i: counts.keySet()) { if (counts.get(i) < minFreq) { minFreq = counts.get(i); } } /* * *Main logic to normalise the code * Assumption: all the colors which start from edges are the noise to the captcha or background. */ ArrayList<Integer> topValues = new ArrayList<>(); for (Integer i: counts.keySet()) { topValues.add(i); // adding all the colors into the the array list topValues without any condition } Integer[] out=findEdgecolors(image); // findEdgecolors function returns the array of RGB values of colors which are at the edges of the picture for(int i=0;i<out.length;i++) { if(out[i]!=null) topValues.remove(out[i]); // remove the colours from topValues list if the color exist in the array returned by the findEdgecolors funciton (removing the colors which start from edges) } /* *Now topvalues consists of colors which are not in the edges of the clipped image */ int white_rgb = Color.YELLOW.getRGB(); int black_rgb = Color.BLACK.getRGB(); for (int x=0; x<image.getWidth(); x++) { for (int y=0; y<image.getHeight(); y++) { int pixelVal = image.getRGB(x, y); if (!topValues.contains(pixelVal)) { image.setRGB(x, y, white_rgb); //replacing the colors in topvalue with black } else { image.setRGB(x, y, black_rgb); // rest is colored with yellow (background) } } } if (debug) { try { ImageIO.write(image, "gif", new File("colorNormalized.gif")); } catch (Exception e) {e.printStackTrace();} } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int imageCount();", "public int pixelCount()\n {\n int pixelCount = cat.getWidth() * cat.getHeight();\n return pixelCount;\n\n }", "private int[] countPixelSums(final int[][] imageData) {\n\n\t\tfinal int width = imageData.length;\n\t\tfinal int height = imageData[0].length;\n\n\t\tfinal int[] pixelValueSums = new int[256];\n\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tfinal int pixelValue = imageData[x][y];\n\n\t\t\t\tfinal int red = (pixelValue & 0x00ff0000) >> 16;\n\t\t\t\tfinal int green = (pixelValue & 0x0000ff00) >> 8;\n\t\t\t\tfinal int blue = pixelValue & 0x000000ff;\n\n\t\t\t\tfinal int greyValue = (red + green + blue) / 3;\n\n\t\t\t\tpixelValueSums[greyValue]++;\n\t\t\t}\n\t\t}\n\n\t\treturn pixelValueSums;\n\t}", "public native int getTotalColors() throws MagickException;", "public native int getNumberColors() throws MagickException;", "int getNumColors();", "int getImgDataCount();", "public int getColoredProbesCount(int colorIndex);", "public int getColorCount() {\n \tif (colorBuf == null)\n \t\treturn 0;\n \treturn colorBuf.asFloatBuffer().limit()/4;\n }", "public static int getColorsCount()\n {\n return colorsCount;\n }", "public int getColorTextureCount()\n\t{\n\t\treturn mColorTextures.length;\n\t}", "public int getColoredExperimentsCount(int colorIndex);", "public static int countBits(int[] data) {\n\t\tint sum = 0;\n\t\tfor (int d : data) {\n\t\t\tfor (int i = 0; i < 32; i++) {\n\t\t\t\tsum += (d & (1 << i)) > 0 ? 1 : 0;\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}", "int getBitsPerPixel();", "public int colorVertices();", "public native int getColors() throws MagickException;", "public int getNColor(){\n int nColor = getBit();\n\n if (nColor==0) {\n for (int i=0; i<7; i++) {\n nColor = (nColor<<1) | getBit();\n }\n }\n\n return nColor;\n }", "public double[][] getHistogram(BufferedImage image) {\r\n int[][][] arr = convertToArray(image);\r\n double[][] rgbCount = new double[3][256];\r\n for (int y = 0; y < image.getHeight(); y++) {\r\n for (int x = 0; x < image.getWidth(); x++) {\r\n rgbCount[0][arr[x][y][1]]++;\r\n rgbCount[1][arr[x][y][2]]++;\r\n rgbCount[2][arr[x][y][3]]++;\r\n }\r\n }\r\n return rgbCount;\r\n }", "public int getPaletteCount() {\n return AviDemux.str2ulong( bih, 32 );\n }", "public int size() {\n\t\treturn palette.size();\n\t}", "public int getNumberOfImages() {\n\n\t\tshort zdim = getZDim();\n\t\tzdim = zdim > 0 ? zdim : 1;\n\n\t\tshort slices = getNumberOfSlices();\n\t\tslices = slices > 0 ? slices : 1;\n\n\t\tshort intervals = getNumberOfGatedIntervals();\n\t\tintervals = intervals > 0 ? intervals : 1;\n\n\t\treturn zdim * slices * intervals;\n\n\t}", "public static int countColorsAboveBrightnessThreshold(double bound) {\n int count = 0;\n\n if (bound >= luminanceOfRed255Green255Blue11()) {\n //If the bound is this high, no color value can be lower than 11, even if the other two are maxed.\n double maxRedBlueSumLuminance = 0.2126 + 0.0722; // Equals .2848, which is 1 - .7152\n double minGreenContrib = bound - maxRedBlueSumLuminance;\n double minGreenElementLuminance = minGreenContrib / .7152;\n // What is RsGreen when ((RsGreen + .055)/1.055)^2.4 == minGreenElementLuminance?\n double minRsGreen = RsRGBFromElementLuminanceWhereIntAbove10(minGreenElementLuminance);\n long minGreenInt = Math.round(Math.ceil(minRsGreen*255));\n Long i = minGreenInt;\n while (i <= 255) {\n //Evaluate what happens when the green value from 0 to 255 is equal to i\n double greenElementLuminance = .7152*ColorNamer.elementLuminance(i.intValue());\n double minRedContrib = bound - greenElementLuminance - .0722;\n // Red must contribute at least minRedContrib luminance for the luminance to be above the bound\n double minRedElementLuminance = minRedContrib / .2126;\n double minRsRed = RsRGBFromElementLuminanceWhereIntAbove10(minRedElementLuminance);\n long minRedInt = Math.round(Math.ceil(minRsRed*255));\n Long j = minRedInt;\n while (j <= 255) {\n double redElementLuminance = .2126*ColorNamer.elementLuminance(j.intValue());\n double minBlueContrib = bound - greenElementLuminance - redElementLuminance;\n double minBlueElementLuminance = minBlueContrib / .0722;\n double minRsBlue = RsRGBFromElementLuminanceWhereIntAbove10(minBlueElementLuminance);\n long minBlueInt = Math.round(Math.ceil(minRsBlue*255));\n count += (255 - minBlueInt + 1);\n j++;\n }\n\n i++;\n }\n }\n else {\n System.out.println(\"countColorsAboveBrightnessThreshold is not finished for bounds this low\");\n }\n\n return count;\n }", "public int countStones(char color) {\r\n\t\tif (color != 'B' && color != 'W') {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Error! Invalid color. Expected B or W.\");\r\n\t\t}\r\n\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\tif (playBoard[i][j] == color) {\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "public int count(HashMap <Integer, Integer> colours) {\r\n\t\tint max = 0;\r\n\t\tfor(int i=1; i<=numNodes; i++) {\r\n\t\t\tint num = colours.get(i);\r\n\t\t\tif(num > max)\r\n\t\t\t\tmax = num;\r\n\t\t}\r\n\t\treturn ++max;\r\n\t}", "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "public int getCount() {\n return cp.getmImageIds(gridType).length;\n\n }", "private static int getMainColor(BufferedImage image)\n {\n // Counts how many time each colors appear\n ColorOccurence co[] = new ColorOccurence[10000];\n\n // For every pixel of the image\n for(int x = 0; x < image.getWidth(null) / 2; x++)\n {\n for(int y = 0; y < image.getHeight(null) / 2; y++)\n {\n // Get the pixel\n int pixel = image.getRGB(x, y);\n\n // Parse every element initialized of the array\n for(int i = 0; i < 10000; i++)\n {\n // If the element is null, a new color has been found\n if(co[i] == null)\n {\n // Creates a new color and sets its occurence to 1\n co[i] = new ColorOccurence(pixel, 1);\n break;\n }\n\n // If the color is already is already in the array, add one\n if(co[i].color == pixel){\n co[i].occurence += 1;\n break;\n }\n }\n }\n }\n\n // Maximum number of occurence\n int max = 0;\n\n // The color that appeared the most so far\n int maxVal = 0;\n\n // For every color\n for(ColorOccurence c : co)\n {\n // If null, the whole array has been parsed\n if(c == null)\n {\n break;\n }\n\n // If this color occurs more times than the previous most appearing\n // color, set it as the new most appearing color\n if(c.occurence > max)\n {\n max = c.occurence;\n maxVal = c.color;\n }\n }\n return maxVal;\n }", "public int getNumberOfBlocks(ImagePlus img, int m, int n);", "private int numberOfFieldsOccupiedByStoneColor(Color colorOfStonesToCount) {\n int counterOccupiedByStoneColor = 0;\n for (int i = 0; i < fields.length; i++) {\n for (int j = 0; j < fields.length; j++) {\n if (this.fields[i][j].isOccupiedByStone()) {\n if (this.fields[i][j].getStone().getColor() == colorOfStonesToCount)\n counterOccupiedByStoneColor++;\n }\n }\n }\n return counterOccupiedByStoneColor;\n }", "public native int getNumFrames() throws MagickException;", "private int optimizeForNColors(BufferedImage img, IMapColor mapColor) {\n \t\t\n \t\tif (canSetPalette) {\n \t\t\treturn optimizeForNColorsAndRebuildPalette(img, mapColor);\n \t\t}\n \t\t\t\n \t\tint numColors = mapColor.getNumColors();\n \t\t\n \t\tbyte[][] palette = mapColor.getPalette();\n \t\t\n \t\tint ourDist = mapColor.getMinimalPaletteDistance();\n \t\t\n \t\tSystem.out.println(\"Minimum color palette distance: \" + ourDist);\n \n \t\tHistogram hist = new Histogram(img);\n \t\tint mappedColors = 0;\n \t\tint interestingColors = 0;\n \t\tint total = img.getWidth() * img.getHeight();\n \t\t\n \t\tfor (int mask = 0; mask < 5; mask++) {\n \t\t\tmappedColors = hist.generate(mapColor, ourDist, mask);\n \t\t\tinterestingColors = hist.size();\n \t\t\tSystem.out.println(\"For mask \" + Integer.toHexString(mask) \n \t\t\t\t\t+\"; # interesting = \" + interestingColors\n \t\t\t\t\t+\"; # mapped = \" + mappedColors);\n \n \t\t\tif (mappedColors >= total / 2)\n \t\t\t\tbreak;\n \t\t}\n \n \t\t\n \t\tint usedColors = Math.min(numColors * 3 / 4, \n \t\t\t\tMath.min(numColors, interestingColors));\n \t\t\n \t\tif (!(mapColor instanceof MonoMapColor)) {\n \t\t\tif (interestingColors == 2)\n \t\t\t\tusedColors = 1;\n \t\t}\n \t\t\n \t\tSystem.out.println(\"\\nN-color: interestingColors=\"+interestingColors\n \t\t\t\t+\"; usedColors=\"+usedColors\n \t\t\t\t+\"; mapped=\"+mappedColors\n \t\t\t\t);\n \t\t\n \t\tourDist = mapColor.getMaximalReplaceDistance(usedColors);\n \t\tfor (int i = 0; i < usedColors; i++) {\n \t\t\t// ensure there will be an exact match so no dithering \n \t\t\t// occurs on the primary occurrences of this color\n \t\t\tint idx = hist.getColorIndex(i);\n \t\t\tbyte[] rgb = palette[idx];\n \t\t\tint newRGB = rgb8ToPixel(rgb);\n \t\t\treplaceColor(img, hist, idx, newRGB, ourDist);\n \t\t}\n \t\t\n \t\treturn ourDist;\n \t}", "public int getColorCount(int idx) {\n \t\t\treturn hist.get(idx);\n \t\t}", "private int[] histogram(Bitmap bmp) {\n int[] res = new int[256];\n int w = bmp.getWidth();\n int h = bmp.getHeight();\n Bitmap bmCopy = bmp.copy(bmp.getConfig(), true);\n toGray(bmCopy);\n\n int pixels[] = new int[w*h];\n bmCopy.getPixels(pixels, 0, w, 0, 0, w, h);\n for (int i = 0; i < w*h; i++)\n res[Color.red(pixels[i])]++;\n return res;\n }", "int getImagesByTransformCount();", "private void countCells() {\n\t\tvisitedCells = 0;\n\t\ttotalCells = 0;\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\ttotalCells++;\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tvisitedCells++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void count(int[] counts , int index) {\n\n char color = light[index];\n\n if (color == '0') {\n counts[0]++;\n }\n else if (color == '1') {\n counts[1]++;\n }\n else if (color == '2') {\n counts[2]++;\n }\n else if (color == '3') {\n counts[3]++;\n }\n else if (color == '4') {\n counts[4]++;\n }\n else if (color == '5') {\n counts[5]++;\n }\n else if (color == '6') {\n counts[6]++;\n }\n else if (color == '7') {\n counts[7]++;\n }\n else if (color == '8') {\n counts[8]++;\n }\n else if (color == '9') {\n counts[9]++;\n }\n\n }", "int wkhtmltoimage_phase_count(PointerByReference converter);", "public int getWidth()\r\n {\r\n\tif (hue != null && saturation != null && intensity != null)\r\n\t return hue[0].length;\r\n\telse\r\n\t return -1;\r\n }", "public int getCount(boolean getBlackCount) {\n\t\tint count = 0;\n\t\tif (getBlackCount) {\n\t\t\tfor (int i = 0; i < dimensions.x; ++i) {\n\t\t\t\tfor (int j = 0; j < dimensions.y; ++j) {\n\t\t\t\t\tif (board[i][j].isBlack())\n\t\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor (int i = 0; i < dimensions.x; ++i) {\n\t\t\t\tfor (int j = 0; j < dimensions.y; ++j) {\n\t\t\t\t\tif (board[i][j].isRed())\n\t\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn count;\n\t}", "public int getImageCount() {\n return imageCount;\n }", "int getImagesByHandlerCount();", "public int count(){\n\tboolean val = false;\n\tint cont = 0;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\t\tcont++;\n\t\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t}\n\treturn cont;\n}", "private int count1_bitcount(int [] ix, EChannel cod_info) {\n\t\tint p, i, k;\n\t\tint signbits;\n\t\tint sum0 = 0, sum1 = 0;\n\t\tint count1End = bigvalues_region + count1_region;\n\n\t\tfor(i = bigvalues_region, k=0; k < count1End; i+=4, k++) {\n\t\t\tv = Math.abs(ix[i]);\n\t\t\tw = Math.abs(ix[i+1]);\n\t\t\tx = Math.abs(ix[i+2]);\n\t\t\ty = Math.abs(ix[i+3]);\n\n\t\t\tp = signbits = 0;\n\t\t\tif(v!=0) { signbits++; p |= 1; }\n\t\t\tif(w!=0) { signbits++; p |= 2; }\n\t\t\tif(x!=0) { signbits++; p |= 4; }\n\t\t\tif(y!=0) { signbits++; p |= 8; }\n\n\t\t\tsum0 += signbits;\n\t\t\tsum1 += signbits;\n\n\t\t\tsum0 += hlen[32][p];\n\t\t\tsum1 += hlen[33][p];\n\t\t}\n\n\t\tif(sum0 < sum1) {\n\t\t\tcod_info.count1table_select = 0;\n\t\t\treturn sum0;\n\t\t} else {\n\t\t\tcod_info.count1table_select = 1;\n\t\t\treturn sum1;\n\t\t}\n\t}", "private void collectColorData(BufferedImage img) {\n int limit = img.getWidth() * img.getHeight() / 10;\n int i;\n\n for (i=0; i<limit; i++) {\n int y = (int)(Math.random() * img.getHeight());\n int x = (int)(Math.random() * img.getWidth());\n int rgb = img.getRGB(x, y) & 0xffffff;\n\n Integer count = colorMap.get(rgb);\n\n if (count == null) {\n colorMap.put(rgb, 0);\n count = colorMap.get(rgb);\n }\n\n int newCount = count.intValue() + 1;\n colorMap.put(rgb, newCount);\n\n CountData cd = topList.get(2);\n\n if (newCount > cd.count) {\n int j = 0;\n\n for (; j<topList.size(); j++) {\n CountData tcd = topList.get(j);\n\n if (tcd.rgb == rgb) {\n tcd.count++;\n break;\n }\n }\n\n if (j == topList.size()) {\n topList.add(new CountData(newCount, rgb));\n }\n\n Collections.sort(topList);\n\n while (topList.size() > TOP_LIST_COUNT) {\n topList.remove(topList.size() - 1);\n }\n }\n }\n }", "private void determineCounts( )\n {\n for( int r = 0; r < rows; r++ )\n {\n for( int c = 0; c < cols; c++ )\n {\n if( theMines[ r ][ c ] == 1 )\n theCounts[ r ] [ c ] = 9;\n else\n count( r, c );\n }\n }\n }", "int getNumSampleDimensions();", "int getCellsCount();", "public native int getColorspace() throws MagickException;", "int getNumberOfTextureCoordinates();", "protected static int countNeighbours(int i, int j, byte[][] currentGen){\n int count = 0;\n \n for(int x = i-1; x<i+2; x++){\n count+=checkBorders(x, j-1, currentGen);\n count+=checkBorders(x, j+1, currentGen);\n }\n count+=checkBorders(i-1, j, currentGen);\n count+=checkBorders(i+1, j, currentGen);\n\n return count;\n }", "private int liveNeighbours(int i,int j) {\n\t\tint count = 0;\n\t\tif (button[i - 1][j - 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i - 1][j].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i - 1][j + 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i][j - 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i][j + 1].getBackground() == Color.yellow){\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][ j - 1].getBackground() == Color.yellow){\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][j].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][j + 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "int numberOfDimensions();", "int getDimensionsCount();", "int colCount();", "public int getNumChips(CtColor color) {\n\t\tint num = 0;\n\t\tfor (CtColor chip : chips) {\n\t\t\tif (chip.getColorNum() == color.getColorNum())\n\t\t\t\tnum++;\n\t\t}\n\t\treturn num;\n\t}", "public int discWhiteCount() {\n int countWHITE = 0;\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\t\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\t\n\t\t\t\tif (!(isSpotBlank(i,j))) {\n\t\t\t\t\t\n\t\t\t\t\tif (isDiscWhite(i,j)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcountWHITE ++;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn countWHITE;\n\t\t\n\t}", "int countComponents() throws Exception;", "public static int sizeBits_counter() {\n return 32;\n }", "@Override\n public int getWidth() {\n colorSpaceType.assertNumElements(buffer.getFlatSize(), height, width);\n return width;\n }", "public BufferedImage Histogram(BufferedImage timg,BufferedImage timg1) {\n\n\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n int[][][] ImageArray = convertToArray(timg);\n int[][][] ImageArray2 = convertToArray(timg);\n\n float[] HistgramR = new float[256];\n float[] HistgramB = new float[256];\n float[] HistgramG = new float[256];\n\n for (int k = 0; k <= 255; k++) {\n HistgramR[k] = 0;\n HistgramG[k] = 0;\n HistgramB[k] = 0;\n }\n\n //int a = 255;\n\n int a = 0;\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n\n int r = ImageArray[x][y][1];\n int g = ImageArray[x][y][2];\n int b = ImageArray[x][y][3];\n\n HistgramR[r]++;\n HistgramG[g]++;\n HistgramB[b]++;\n }\n a++;\n }\n\n System.out.println(a);\n\n System.out.println(\"Pixel count for Red, Green and Blue Channel respectively\");\n for (int z = 0; z < HistgramR.length; z++) {\n\n\n System.out.println(z + \"\\t\" + HistgramR[z] + \"\\t\" + HistgramG[z] + \"\\t\" + HistgramB[z]);\n System.out.println();\n }\n System.out.println();\n\n\n // Histogram Normalisation\n for (int x = 0; x < HistgramR.length; x++) {\n\n HistgramR[x] = HistgramR[x] / (a*a);\n HistgramG[x] = HistgramG[x] / (a*a);\n HistgramB[x] = HistgramB[x] / (a*a);\n }\n\n System.out.println(\"Normalised Pixel count for Red, Green and Blue Channel respectively\");\n for (int y = 0; y < HistgramR.length; y++) {\n\n\n System.out.println(y + \"\\t\" + HistgramR[y] + \"\\t\" + HistgramG[y] + \"\\t\" + HistgramB[y]);\n System.out.println();\n }\n\n BufferedImage resizedImg = resizeImg(timg1, 512, 512);\n\n int[][][] ImageArray1 = convertToArray(resizedImg);\n\n return convertToBimage(ImageArray1);\n }", "protected abstract int countNeighbors(int x, int y);", "public static int run(Bitmap temp) {\n Mat src = new Mat();\n Bitmap bmp32 = temp.copy(Bitmap.Config.ARGB_8888, true);\n Utils.bitmapToMat(bmp32, src);\n\n List<Mat> bgrPlanes = new ArrayList<>();\n Core.split(src, bgrPlanes);\n\n int histSize = 256;\n\n float[] range = {0, 256}; //the upper boundary is exclusive\n MatOfFloat histRange = new MatOfFloat(range);\n\n boolean accumulate = false;\n\n Mat bHist = new Mat(), gHist = new Mat(), rHist = new Mat();\n Imgproc.calcHist(bgrPlanes, new MatOfInt(0), new Mat(), bHist, new MatOfInt(histSize), histRange, accumulate);\n Imgproc.calcHist(bgrPlanes, new MatOfInt(1), new Mat(), gHist, new MatOfInt(histSize), histRange, accumulate);\n Imgproc.calcHist(bgrPlanes, new MatOfInt(2), new Mat(), rHist, new MatOfInt(histSize), histRange, accumulate);\n\n float[] bHistData = new float[(int) (bHist.total() * bHist.channels())];\n bHist.get(0, 0, bHistData);\n float[] gHistData = new float[(int) (gHist.total() * gHist.channels())];\n gHist.get(0, 0, gHistData);\n float[] rHistData = new float[(int) (rHist.total() * rHist.channels())];\n rHist.get(0, 0, rHistData);\n\n // Get num vals at each intensity and sum total vals\n float totalVals = 0;\n float[] histData = new float[256];\n for(int i = 0; i < histSize; i++) {\n histData[i] = bHistData[i] + gHistData[i] + rHistData[i];\n totalVals = totalVals + histData[i];\n }\n\n // Get sum of all values * intensities\n float sum = 0;\n for(int i = 0; i < histSize; i++) {\n sum = sum + (histData[i] * i);\n }\n\n // Divide by total value to find average intensity\n float avg = sum / totalVals;\n\n // Check what range avg is in\n if(avg < 51) {\n return 1;\n } else if (avg < 102) {\n return 3;\n } else if (avg < 153) {\n return 5;\n } else if (avg < 205) {\n return 4;\n } else if (avg < 256) {\n return 2;\n } else {\n return 0;\n }\n }", "private long countPanPixels(int maxRes) {\n\t\tlong numPixels = 0;\n\t\tfor (int n=0; n<panImageList.length; n++) {\n\t\t\tPanImageEntry panEntry = panImageList[n];\n\t\t\tif (panEntry.imageListEntry.enabled) {\n\t\t\t\tint width = panEntry.imageListEntry.getImageMetadataEntry().n_line_samples;\n\t\t\t\tint height = panEntry.imageListEntry.getImageMetadataEntry().n_lines;\n\t\t\t\twidth = PanImageLoader.fixDimension(width);\n\t\t\t\theight = PanImageLoader.fixDimension(height);\n\t\t while ((width > maxRes) || (height > maxRes)) {\n\t\t \twidth = width >> 1;\n\t\t \theight = height >> 1;\n\t\t }\n\t\t\t\tnumPixels = numPixels + width * height;\n\t\t\t}\n\t\t}\n\t\treturn numPixels;\t\t\n\t}", "public static int size_sampleCnt() {\n return (32 / 8);\n }", "public RunLengthEncoding(PixImage image) {\n // Your solution here, but you should probably leave the following line\n // at the end.\n\t this.width=image.getWidth();\n\t this.height=image.getHeight();\n\t runs = new DList<int[]>(); \n\t \n\t int length_count=0;\n\t int cur_Color=-1;\n\t int prev_Color=-1;\n\t \n\t for(int j=0;j<image.getHeight();j++) {\t \n\t\t\t for(int i=0;i<image.getWidth();i++) {\n\t\t\t\tcur_Color=image.getRed(i, j); \n\t\t\t\tif (cur_Color!=prev_Color) {\n\t\t\t\t\tlength_count++;\n\t\t\t\t\tprev_Color=cur_Color;\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t }\n\t\t\t \n\t }\n\t int count=1;\n\t int[] red = new int[length_count];\n\t int[] green = new int[length_count];\n\t int[] blue = new int[length_count];\n\t int[] runLengths =new int[length_count];\n\t int t=0;\n\t red[0]=image.getRed(0, 0);\n\t green[0]=image.getGreen(0, 0);\n\t blue[0]=image.getBlue(0, 0);\n\t \n\t int passed_counter = 0;\n\t for(int j=0;j<image.getHeight();j++) {\n\t\t\t for(int i=0;i<image.getWidth();i++) {\n\t\t\t\t passed_counter++;\n\t\t\t\t if(i>0 || j>0) { // do not do anything for the first element\n\t\t\t\t\t if(image.getRed(i, j)!=red[t]) {\n\t\t\t\t\t\t runLengths[t]=count;\n\t\t\t\t\t\t count = 1;\n\t\t\t\t\t\t t++;\n\t\t\t\t\t\t runLengths[t]=image.getWidth()*image.getHeight() -passed_counter+1;\n\t\t\t\t\t\t red[t]=image.getRed(i, j);\n\t\t\t\t\t\t green[t]=image.getGreen(i, j);\n\t\t\t\t\t\tblue[t]=image.getBlue(i, j);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t else {\n\t\t\t\t\t\t count++;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t red[t]=image.getRed(i, j);\n\t\t\t\t\t green[t]=image.getGreen(i, j);\n\t\t\t\t\tblue[t]=image.getBlue(i, j);\n\t\t\t\t\t \n\t\t\t\t\n\t\t\t }\n\t }\t\n\t for(int i=0;i<red.length;i++) {\n\t\t\tint[] run= {runLengths[i],red[i],green[i],blue[i]};\n\t\t\t\n\t\t\tif(runs.isEmpty())\n\t\t\t{\n\t\t\t\t\n\t\t\t\truns.addFirst(run);\n\t\t\t}else {\n\t\t\t\tDListNode<int[]> v=runs.getLast();\n\t\t\t\truns.addAfter(v, run);\n\t\t\t} \n\t \n \n }\n\t check();\n }", "public static void HistogrammeCumuleRGB(Mat m,int[] R,int[] G,int[] B,int[] RC,int[] GC,int[] BC,int N)\n\t{\n\t\tint valueR=0;int valueG=0;int valueB=0;\n\t\tfor(int i=0;i<256;i++)\n\t\t{\n\t\t\tvalueR+=R[i];RC[i]=R[i]==0?0:valueR;\n\t\t\tvalueG+=G[i];GC[i]=G[i]==0?0:valueG;\n\t\t\tvalueB+=B[i];BC[i]=B[i]==0?0:valueB;\n\t\t\t\n\t\t}\n\t}", "public int discBlackCount() {\n\t\tint countBLACK = 0;\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\t\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\t\n\t\t\t\tif (!(isSpotBlank(i,j))) {\n\t\t\t\t\t\n\t\t\t\t\tif (isDiscBlack(i,j)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcountBLACK ++;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn countBLACK;\n\t\t\n\t}", "public int getColorCount(CardColor crdClr) {\r\n\t\tint count = 0;\r\n\t\tif (colorCount.containsKey(crdClr)) {\r\n\t\t\tcount = colorCount.get(crdClr);\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "private int count(Board board, char symbol)\n {\n int answer = 0;\n \n for (int i = 0; i < size; i++)\n if (testRow(board, i, symbol))\n answer++;\n \n for (int i = 0; i < size; i++)\n if (testColumn(board, i, symbol))\n answer++;\n \n if (testLeftDiagonal(board, symbol))\n answer++;\n \n if (testRightDiagonal(board, symbol))\n answer++;\n \n return answer;\n }", "public static int size_count() {\n return (16 / 8);\n }", "int violetSquares() {\n int s = 0;\n int i, j;\n for (i = 0; i < 14; i++) {\n for (j = 0; j < 14; j++) {\n if (_board[i][j] == VIOLET) {\n s++;\n }\n }\n }\n return s;\n }", "public static int bitCount(long i) {\r\n // HD, Figure 5-14\r\n\t\ti = i - ((i >>> 1) & 0x5555555555555555L);\r\n\t\ti = (i & 0x3333333333333333L) + ((i >>> 2) & 0x3333333333333333L);\r\n\t\ti = (i + (i >>> 4)) & 0x0f0f0f0f0f0f0f0fL;\r\n\t\ti = i + (i >>> 8);\r\n\t\ti = i + (i >>> 16);\r\n\t\ti = i + (i >>> 32);\r\n\t\treturn (int)i & 0x7f;\r\n }", "int getDataScansCount();", "@Test\n public void testGetColorID() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(0, imageData.getColorTableId());\n }", "public static int numOfRectangles(int[][] mat) {\n int n = mat.length;\n int m = mat[0].length;\n int count = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n if(mat[i][j] == 1) {\n if((i == 0 || mat[i-1][j] == 0) && (j == 0 || mat[i][j-1] == 0)) {\n count++;\n }\n }\n }\n }\n return count;\n }", "public static int countSquaresOnFace(Cube cube, int squareColor, int face){\n\t\tint counter = 0;\n\t\tfor(int i = 0; i <3; i++){\n\t\t\tfor(int j = 0; j<3; j++){\n\t\t\t\tif(cube.getSquare (face, i, j) == squareColor) counter++;\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}", "int countFeatures();", "int countFeatures();", "public int discCount() {\n\t\tint countBLACK = discBlackCount();\n\t\tint countWHITE = discWhiteCount();\n\n\t\treturn countBLACK + countWHITE;\n\t\t\n\t}", "public int getTotalSizeColor() {\n return totalSizeColor;\n }", "public static Integer[] findEdgecolors(BufferedImage image)\r\n\t{\r\n\t\t// try to clean up the image by removing stray marks\r\n\t\t\t\tInteger[] colors=new Integer[10]; \r\n\t\t\t\tint[] width={0,image.getWidth()-1}; // horizontal comparision array\r\n\t\t\t\tint[] heigth={0,image.getHeight()-1}; // vertical comparision array\r\n\t\t\t\tint i=0;\r\n\t\t\t\tfor(int x=0;x<=1;x++){ \r\n\t\t\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint pixelVal = image.getRGB(width[x], y);//getting the edge color in RGB value\r\n\t\t\t\t\t\tif(!Arrays.asList(colors).contains(pixelVal)) // checking if the color already exists if yes do nothing if no add the color to array\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcolors[i]=pixelVal;\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t i=0;\r\n\t\t\t\t\tfor(int x=0;x<image.getWidth();x++){\r\n\t\t\t\t\t\tfor (int y=0; y<=1; y++) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tint pixelVal = image.getRGB(x, width[y]);//getting the edge color in RGB value\r\n\t\t\t\t\t\t\tif(!Arrays.asList(colors).contains(pixelVal))// checking if the color already exists if yes do nothing if no add the color to array\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcolors[i]=pixelVal;\r\n\t\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\treturn colors;\r\n\t}", "public static Color[][] getImageC(Image img) {\n\n // Get the raw pixel data \n iObserver observer = new iObserver();\n int width1 = img.getWidth(observer);\n int height1 = img.getHeight(observer);\n int[] rawPixels = utils.getPixels(img,width1,height1);\n\n // Each pixel is represented by 32 bits. Separate the tH32 bits into\n // four 8-bit values (red, green, blue, offset).\n\n // Arrange the data by rows and columns\n //row-col has been reversed\n Color[][] imagePixels = new Color[height1][width1];\n int index=0;\n for(int row=0; row<imagePixels.length; row++) {\n for(int col=0; col<imagePixels[0].length; col++) {\n imagePixels[col][row] = new Color(rawPixels[index]);\n index++;\n } // for col\n } // for row\n return imagePixels;\n }", "public int getCount() {\n\t\t\treturn this.myImageIds.length;\n\t\t}", "public int contarAtomosDeColor(Color color) {\n\t\tint resultado = 0;\n\t\tfor (int i = 0; i < matriz.size(); ++i) {\n\t\t\tfor (int j = 0; j < matriz.get(i).size(); ++j) {\n\t\t\t\tif (matriz.get(i).get(j).estaVacia() == false) {\n\t\t\t\t\tif ((matriz.get(i).get(j).obtenerAtomo().obtenerColor() == color)) {\n\t\t\t\t\t\tresultado = resultado + 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn resultado;\n\t}", "public int findLonelyPixel(char[][] picture) {\n return 0;\n }", "public native int getGenericProfileCount() throws MagickException;", "public static int TOTAL_COLORS(int gfxn){\n return (Machine.gfx[gfxn].total_colors * Machine.gfx[gfxn].color_granularity);\n }", "public static int sizeBits_count() {\n return 16;\n }", "public native int getWidth() throws MagickException;", "public static int size_counter() {\n return (32 / 8);\n }", "public int countPossibleColor(String res) {\n int count = 0;\n for (String c : res.split(\"\")) {\n if (c.equals(\"*\") || c.equals(\"+\")) { count++; }\n }\n return count;\n }", "int getMetricValuesCount();", "public static int sizeBits_sampleCnt() {\n return 32;\n }", "public int getCount() {\r\n\t\t\treturn ((HerdinatorApplication) getApplication()).imageIDs.length;\r\n\t\t}", "public int getBlackCountInVector() {\r\n\t\tint count = 0;\r\n\t\tObject tmp[] = piece.values().toArray();\r\n\t\tfor (int i = 0; i < tmp.length; i++) {\r\n\t\t\tChessPiece p = (ChessPiece)tmp[i];\r\n\t\t\tif (p.chessPlayer.equals(\"black\")) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public static int[] getPixelColor(BufferedImage image,int x,int y) {\n int colors[] = new int[3];\n int clr = 0;\n\n try{\n clr = image.getRGB(x,y); \n }catch(Exception e){\n System.out.println(e);\n System.out.println(x + \" \" + y);\n }\n\n int red = (clr & 0x00ff0000) >> 16;\n int green = (clr & 0x0000ff00) >> 8;\n int blue = clr & 0x000000ff;\n colors[0] = red;\n colors[1] = green;\n colors[2] = blue;\n return colors;\n }", "@Test\n public void testGetWidth() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getWidth());\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "int getCityImageURLsCount();", "int getChannelStatisticsCount();", "public int getNumberOfPhotos(){\n\t\tint num = 0;\n\t\ttry {\n\t\t\tFileInputStream in = new FileInputStream(\"images\");\n\t\t\t//Skipping magic number\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tin.read();\n\t\t\t}\n\t\t\tbyte[] tmpVar = new byte[4];\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\ttmpVar[i] = (byte) in.read();\n\t\t\t}\n\t\t\tnum = ByteBuffer.wrap(tmpVar).getInt();\n\t\t\tin.close();\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t\t\n\t}" ]
[ "0.74958664", "0.7466578", "0.7394357", "0.73666584", "0.7129591", "0.7109763", "0.6999653", "0.68659955", "0.67481816", "0.67415845", "0.6550116", "0.64694434", "0.6458463", "0.63327074", "0.6297425", "0.6246245", "0.6234379", "0.62320507", "0.62230986", "0.6177302", "0.61763686", "0.61523485", "0.6138544", "0.6134394", "0.61101955", "0.61042374", "0.60839945", "0.60765254", "0.6060503", "0.60423726", "0.60334295", "0.60299176", "0.60261047", "0.5996505", "0.5990495", "0.59755224", "0.5961768", "0.594604", "0.5938678", "0.591236", "0.5907801", "0.5886353", "0.58603334", "0.58500576", "0.58475137", "0.5840323", "0.5805079", "0.579522", "0.5789254", "0.57765", "0.57751226", "0.5772971", "0.576605", "0.575263", "0.5746791", "0.5745506", "0.57413805", "0.5739792", "0.5727748", "0.5712152", "0.5710166", "0.5703854", "0.5689591", "0.56762516", "0.56745875", "0.5659992", "0.5619841", "0.56137574", "0.56038696", "0.5576982", "0.55724525", "0.55658287", "0.55646676", "0.55646056", "0.55608535", "0.5558986", "0.55535656", "0.55535656", "0.55471516", "0.5544779", "0.553832", "0.5533294", "0.55324686", "0.5531642", "0.5524462", "0.55212307", "0.55182356", "0.5511531", "0.55082995", "0.54943967", "0.5492802", "0.5491521", "0.5488194", "0.5482895", "0.5481181", "0.5478314", "0.54772186", "0.54749304", "0.54710275", "0.5467357", "0.5462729" ]
0.0
-1
try to clean up the image by removing stray marks
private static void filterNoise(BufferedImage image) { for (int x=0; x<image.getWidth(); x++) { for (int y=0; y<image.getHeight(); y++) { int pixelVal = image.getRGB(x, y); // check how many pixels in a 2 x 2 rectangle with this point // in the center have the same color as this point; if not // many, flip this pixel's color int startX = Math.max(x-2, 0); int startY = Math.max(y-2, 0); int endX = Math.min(x+2, image.getWidth()-1); int endY = Math.min(y+2, image.getHeight()-1); int matchCount = 0; int totalCount = 0; for (int i=startX; i<=endX; i++) { for (int j=startY; j<=endY; j++) { if (image.getRGB(i,j) == pixelVal) { matchCount++; } totalCount++; } } if ((matchCount / (double) totalCount) < .2) { if (pixelVal == Color.YELLOW.getRGB()) { image.setRGB(x, y, Color.BLACK.getRGB()); } else { image.setRGB(x, y, Color.YELLOW.getRGB()); } } } } if (debug) { try { ImageIO.write(image, "gif", new File("noiseFiltered.gif")); } catch (Exception e) {e.printStackTrace();} } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String removeImageStyle();", "public native MagickImage trimImage() throws MagickException;", "protected void cleanupFigureLabelEditor()\n {\n if (editor != null) {\n editor.cleanup();\n }\n }", "public void cleanUp(){\n\t\t//offset(-1*bounds.left, -1*bounds.top);\n\t}", "public void finalize(){\r\n srcImage = null;\r\n sigmas = null;\r\n xDataRound = null;\r\n yDataRound = null;\r\n zDataRound = null;\r\n super.finalize();\r\n }", "public void eraseImage() {\n\t\timage = null;\n\t}", "public native MagickImage despeckleImage() throws MagickException;", "public BufferedImage trim(BufferedImage img) {\n\t\t// point zero is upper left corner\n\t\tint xMin = getXmin(img); // the left border of the symbol\n\t\tint xMax = getXmax(img); // the right border of the symbol\n\t\tint yMin = getYmin(img); // the upper border of the symbol\n\t\tint yMax = getYmax(img); // the lower border of the symbol\n\n\t\tBufferedImage newImg = new BufferedImage(xMax - xMin + 10, yMax - yMin + 10, BufferedImage.TYPE_INT_RGB);\n\t\tGraphics g = newImg.createGraphics();\n\t\tg.drawImage(img, -xMin + 5, -yMin + 5, null);\n\t\timg = newImg;\n\t\treturn img;\n\t}", "public void clearImage() {\n IntStream.range(0, bytes.length).forEach(i -> bytes[i] = CLEAR_BYTE);\n }", "private static void reduceNoise(Mat image) {\n\n\t\t// create structuring element that will be used to \"dilate\" and \"erode\"\n\t\t// image. the element chosen here is a 3px by 3px rectangle\n\t\tMat erodeElement = Imgproc.getStructuringElement(Imgproc.MORPH_RECT,\n\t\t\t\tnew Size(1, 1));\n\n\t\t// dilate with larger element so make sure object is nicely visible\n\t\tMat dilateElement = Imgproc.getStructuringElement(Imgproc.MORPH_RECT,\n\t\t\t\tnew Size(12, 12));\n\n\t\t// Erode will shrink the grouping of pixels\n\t\tImgproc.erode(image, image, erodeElement);\n\t\tImgproc.erode(image, image, erodeElement);\n\t\tImgproc.erode(image, image, erodeElement);\n\n\t\t// // Dilate will expand the grouping of pixels\n\t\tImgproc.dilate(image, image, dilateElement);\n\t\tImgproc.dilate(image, image, dilateElement);\n\t\t// Imgproc.dilate(image, image, dilateElement);\n\n\t}", "public void CleanInfoCanvas(){\n Graphics g = infoCanvas.getGraphics();\n g.setColor(Color.BLACK);\n g.fillRect(infoCanvas.getWidth()/3 + 4, infoCanvas.getHeight()/10 + 10, infoCanvas.getWidth()/3-8, infoCanvas.getHeight()/10-8);\n g.fillRect(infoCanvas.getWidth()/3 + 4, 3 * infoCanvas.getHeight()/10 + 10, infoCanvas.getWidth()/3-8, infoCanvas.getHeight()/10-8);\n g.fillRect(infoCanvas.getWidth()/3 + 4, 11 * infoCanvas.getHeight()/20 + 15, infoCanvas.getWidth()/3-8, infoCanvas.getHeight()/10-8);\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n }", "private void cleanResources() {\r\n// return;\r\n placeholder = DEFAULT_PLACEHOLDER;\r\n errorImage = DEFAULT_PLACEHOLDER;\r\n imageUri = null;\r\n tag = null;\r\n imageResourceId = DEFAULT_PLACEHOLDER;\r\n simple = false;\r\n withScaling = false;\r\n widthResId = DEFAULT_PLACEHOLDER;\r\n heigthResId = DEFAULT_PLACEHOLDER;\r\n transformation = null;\r\n callback = null;\r\n fit = false;\r\n centerCrop = false;\r\n centerInside = false;\r\n }", "public void Clean(View image)\n {\n \ttry\n \t{\n \t\tfor(int j=0 ;j<photosToLoad.size();){\n if(photosToLoad.get(j).imageView==image)\n photosToLoad.remove(j);\n else\n ++j;\n }\t\n \t}\n \tcatch(Exception e)\n \t{ }\n }", "public void resetProcessed() {\r\n for (int x = 0; x < image.getWidth(); x++) {\r\n for (int y = 0; y < image.getHeight(); y++) {\r\n maskDone[x][y] = false;\r\n }\r\n }\r\n }", "public void clear() {\n\t\tsetImageResource(R.drawable.barcode);\n\t\tthis.setScaleType(ScaleType.CENTER);\n\t}", "public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }", "public void cleanCanvas() {\n\t\tclean = true;\n\t\tthis.invalidate();\n\t\t\n\t\t// adiciona ponto fict’cio para informar que o canvas foi limpo num dado momento\n\t\tif (toReplay) {\n\t\t\txs.add(-2.0f);\n\t\t\tys.add(-2.0f);\n\t\t\tcolors.add(mPaint.getColor());\n\t\t}\n\t}", "static void ClearMarks() {\n\t\tif (pop != null)\n\t\t{\n\t\t\tpop.clear();\n\t\t}\n\t\tClearDraw();\n\t\ti1.setOverlay(null);\n\t\tOL = new Overlay();\n\t}", "public void Clean(ImageView image) {\n for( int j = 0; j < photosToLoad.size(); ) {\n if( photosToLoad.get(j).imageView == image )\n photosToLoad.remove(j);\n else\n j++;\n }\n }", "private void clearMarker( AztecCode marker ) {\n\t\tmarker.corrected = new byte[0];\n\t\tmarker.message = \"\";\n\t\tmarker.totalBitErrors = -1;\n\t}", "public void cleanPile() {\n while (!emptyPile()) {\n eraseNode();\n }\n }", "public void clearImage() {\n // Clear Image Area\n paint = false;\n this.repaint();\n }", "void removeNearbyPixels(Stroke theStroke){\n\t\tint index;\n\t\tint CurvIndex;\n\t\tint SpeedIndex;\n\t\tVector ptList = theStroke.getM_ptList();\n\t\tfor(index=0; index < CommonSegmentPts.size(); index++){\n\t\t\tPoint CommonPt = (PixelInfo)ptList.get((Integer)CommonSegmentPts.get(index));\n\t\t\tfor(CurvIndex = 0; CurvIndex < CurvVector.size(); CurvIndex++){\n\t\t\t\tPoint CurvPt = (PixelInfo)ptList.get((Integer)CurvVector.get(CurvIndex));\n\t\t\t\tif(CommonPt.distance(CurvPt) <= TolerantDistance){\n\t\t\t\t\tCurvVector.remove(CurvIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(SpeedIndex = 0; SpeedIndex < SpeedVector.size(); SpeedIndex++){\n\t\t\t\tPoint SpeedPt = (PixelInfo)ptList.get((Integer)SpeedVector.get(SpeedIndex));\n\t\t\t\tif(CommonPt.distance(SpeedPt) <= TolerantDistance){\n\t\t\t\t\tSpeedVector.remove(SpeedIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "static void trim() {\n if (a.size() == 0)\n return;\n Object o = a.get(a.size() - 1);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && sb.charAt(sb.length() - 1) == ' ')\n sb.deleteCharAt(sb.length() - 1);\n a.set(a.size() - 1, sb.toString() );\n }", "public void fuzzify() {\n ImageArray newCopy = currentIm.copy();\n \n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n \n for(int rr = 1; rr < rows-1; rr++){\n \n for(int cc = 1; cc < cols-1; cc++){\n fuzPixel(rr,cc,newCopy);\n \n }\n \n }\n \n currentIm = newCopy.copy();\n \n \n }", "public void testStripReadOnlyRemoveAlsoImages() {\n String fileName = \"read_only_strippedImagesRemoved.docx\";\n String fileInput = inputDirectory + \"read_only_with_image_inside.docx\";\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(fileInput);\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.stripReadOnlyPartOfDocument();\n File destFile = new File(outputDirectory + fileName);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + fileInput);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"fail\" + e.getMessage());\n }\n }", "public void clearHighlightTile() {\n\t\tfor(int i = 0;i < 8;i++) {\n\t\t\tfor(int j = 0;j < 8;j++) {\n\t\t\t\tRectangle rect = Main.tile[i][j].rectangle;\n\t\t\t\tif(rect.getStrokeType() == StrokeType.INSIDE){\n\t\t\t\t\trect.setStrokeType(StrokeType.INSIDE);\n\t\t\t\t\trect.setStroke(Color.TRANSPARENT);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void clearMarks() {\r\n markBoard = new boolean[squareDimension][squareDimension];\r\n }", "public void clear() {\n\t\tfor(int i=0;i<getWidth();i++) {\n\t\t\tfor(int j=0;j<getHeight();j++) {\n\t\t\t\tbImage.setRGB(i, j, 0xffffffff);\n\t\t\t}\n\t\t}\n\t}", "void deleteCurrentImageBuffered();", "public native MagickImage minifyImage() throws MagickException;", "public void clearImage()\n {\n //Initialize the array of 0s\n int arr_len;\n if (image.getHeight() > image.getWidth()) arr_len = image.getHeight();\n else arr_len = image.getWidth();\n int[] rgb = new int[arr_len];\n //Set the whole image to black color\n image.setRGB(0,0,image.getWidth()-1,image.getHeight()-1,rgb,0,0);\n }", "private void cleanupRawTags(ArrayList p_tags)\n {\n // Find the paired tags that belong together.\n // !!! DO NOT RELY ON PAIRING STATUS. Some prop changes start\n // after <seg> but close after </seg> and even after </tu>!!!\n assignPairingStatus(p_tags);\n\n // Basic cleanup: remove surrounding <p> and inner <o:p>\n removeParagraphTags(p_tags);\n\n // Remove revision markers when they were ON accidentally\n // before translating documents or during an alignment task\n // (WinAlign).\n removePropRevisionMarkers(p_tags);\n\n // Cleanup INS/DEL revisions similarly.\n removeDelRevisions(p_tags);\n applyInsRevisions(p_tags);\n\n // WinAligned files can contain endnotes (and footnotes, but I\n // think in Word-HTML they're both endnotes).\n removeEndNotes(p_tags);\n\n // Remove empty spans that are created from superfluous\n // original formatting in Word (<span color=blue></span>)\n removeEmptyFormatting(p_tags);\n\n // Leave the rest to the Word-HTML Extractor.\n }", "public void supprimerRenommage(){\n supprRenomGram.supprRenom();\n setChanged();\n notifyObservers(\"5\");\n }", "@Override\n\tpublic void desenhar() {\n\t\tSystem.out.println(\"desenhar imagem png\");\n\t\t\n\t}", "void retainOutlineAndBoundaryGrid() {\n\t\tfor (final PNode child : getChildrenAsPNodeArray()) {\n\t\t\tif (child != selectedThumbOutline && child != yellowSIcolumnOutline && child != boundary) {\n\t\t\t\tremoveChild(child);\n\t\t\t}\n\t\t}\n\t\tcreateOrDeleteBoundary();\n\t}", "void draw() {\n\n // SeamInfo lowestSeam = this.lowestSeamVert();\n // lowestSeam.changeColor();\n\n ComputedPixelImage seamRemovedImg = new ComputedPixelImage(this.newImg.width,\n this.newImg.height);\n int countRow = 0;\n int countCol = 0;\n\n Pixel current = this.curPixel;\n Pixel temp;\n\n while (current.down != null) {\n temp = current.down;\n while (current.right != null) {\n Color c = Color.MAGENTA;\n if (current.highlighted) {\n c = Color.RED;\n }\n else {\n c = current.color;\n }\n if (this.showType.equals(\"e\")) {\n int energy = (int) (current.energy * 100);\n if (energy > 255) {\n System.out.println(\"energy: \" + energy + \" to 255\");\n energy = 255;\n }\n c = new Color(energy, energy, energy);\n }\n else if (this.showType.equals(\"w\")) {\n int weight = (int) (current.seam.totalWeight);\n if (weight > 255) {\n System.out.println(\"weight: \" + weight + \" to 255\");\n weight = 255;\n }\n c = new Color(weight, weight, weight);\n }\n\n seamRemovedImg.setColorAt(countCol, countRow, c);\n countCol += 1;\n current = current.right;\n }\n countCol = 0;\n countRow += 1;\n current = temp;\n }\n countCol = 0;\n\n this.newImg = seamRemovedImg;\n\n }", "public Image getTrebleClef();", "public void CleanScr() {\n\t\tint a = 0;\n\t\twhile (a < 16) {\n\t\t\tR0[a].setSelected(false);\n\t\t\tR1[a].setSelected(false);\n\t\t\tR2[a].setSelected(false);\n\t\t\tR3[a].setSelected(false);\n\t\t\tX1[a].setSelected(false);\n\t\t\tX2[a].setSelected(false);\n\t\t\tX3[a].setSelected(false);\n\t\t\tMAR[a].setSelected(false);\n\t\t\tMBR[a].setSelected(false);\n\t\t\tIR[a].setSelected(false);\n//\t\t\tMem[a].setSelected(false);\n\t\t\ta++;\n\t\t}\n\t\tint b = 0;\n\t\twhile (b < 12) {\n\t\t\tPC[b].setSelected(false);\n\t\t\tb++;\n\t\t}\n\t}", "public void deSteganographise() {\n\t\tSequentialImageAccessScheme seqImScheme = new SequentialImageAccessScheme();\n\t\tDualLSBImageHidingScheme imHidingScheme = new DualLSBImageHidingScheme();\n\t\tSimpleComponentModulationScheme compModScheme = new SimpleComponentModulationScheme();\n\t\tArrayList<Character> deStegData = new ArrayList<Character>();\n\t\t\n\t\n\t\tCarrierImage carrierImage = new CarrierImage(seqImScheme, imHidingScheme, compModScheme);\n\t \n\t\tImageManager imgManager = new ImageManager();\n\t\ttry {\n\t\t\tfor(int i = 0;;i++) {\n\t\t\t\tSystem.out.println(\"fucking herp\");\n\t\t\t\t//System.in.read();\n\n\t\t\t\t\n\t\t\t\tFile f = new File(\"downloaded/image\" + i + \".png\");\n\t\t\t\tSystem.out.println(\"file is: \" + f.getName());\n\t\t\t\t\n\t\t\t\tif(f.exists()) {\n\t\t\t\t\tSystem.out.println(\"in deStego if loop\");\n\t\t\t\t\t\n\t\t\t\t\t//System.in.read();\n\t\t\t\t\t\n\t\t\t\t\tRenderedImage img = imgManager.loadImage(f);\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.setCarrierImage(img);\n\t\t\t\t\tHidingText hidingText = new HidingText();\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.reveal(hidingText);\n\t\t\t\t\tString deSteg = hidingText.getText();\n\t\t\t\t\t\n\t\t\t\t\tif(deSteg.length() < 1) {\n\t\t\t\t\t\tSystem.out.println(\"no data in image!\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"size of hiding text: \" + hidingText.getSize());\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deSteg data: \" + deSteg);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//split the extracted string into data and command message\n\t\t\t\t\t\tString[] split = deSteg.split(\":\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString cC = split[0];\n\t\t\t\t\t\tString stegText = split[2];\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int j = 0; j < stegText.length(); j++) {\n\t\t\t\t\t\t\tdeStegData.add(stegText.charAt(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deStegText: \" + stegText);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Finished Desteganography\");\n\t\t\t\t\tsteganographise(deStegData);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InvalidTypeException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t} catch (CarrierInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RevealingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierAccessSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierHidingSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CompatibilityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\timgManager.terminate();\n\t\t}\n\t\t\n\t\t\n\t}", "private String stripURL( String inputLine )\n\t{\n\t\tint fromIndex = inputLine.indexOf( \"<img \" ) + \"<img \".length();\n\t\tint beginIndex = inputLine.indexOf( \"src=\\\"\", fromIndex ) + \"src=\\\"\".length();\n\t\tint endIndex = inputLine.indexOf( \"\\\"\", beginIndex );\n\t\treturn inputLine.substring( beginIndex, endIndex );\n\t}", "private BufferedImage deAlpha(BufferedImage img, String format) {\n if (EqualsUtil.equalsNoneIgnoreCase(format, \"png\", \"gif\")) {\n var fixedImg = new BufferedImage(img.getWidth(), img.getHeight(),\n BufferedImage.TYPE_INT_RGB);\n fixedImg.createGraphics().drawImage(\n img, 0, 0, Color.WHITE, null);\n return fixedImg;\n }\n return img;\n }", "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n super.finalize();\r\n }", "public void removeHorizontalSeam(int[] seam) {\n //handle exceptions\n for (int columns = 0; columns < width; columns++) {\n for (int rows = seam[columns]; rows < height - 1; rows++) {\n this.pic.set(columns, rows, this.pic.get(columns, rows + 1));\n }\n }\n height--;\n }", "public void ConvertImage() {\n int width = source.width();\n int height = source.height();\n int bgStrel_width = (int) Math.round(width * bgStrelConst_width);\n int bgStrel_height = (int) Math.round(height * bgStrelConst_width);\n Log.i(\"Process Trace\",\"begining grayscale conversion\");\n Imgproc.cvtColor(source, convertedImage, Imgproc.COLOR_RGB2GRAY);\n Log.i(\"Process Trace\",\"done with grayscale conversion\");\n\n\n //adjust the image intensity/contrast\n Log.i(\"Process Trace\",\"begining image intensity/contrast adjustment\");\n //Imgproc.equalizeHist(convertedImage,convertedImage);\n convertedImage.convertTo(convertedImage, -1, 1.5, -100.0);\n Log.i(\"Process Trace\",\"done with image intensity/contrast adjustment\");\n\n //Removing Background\n //Creating background Strel\n Mat background = convertedImage.clone();\n Imgproc.medianBlur(background, background, 39);\n Log.i(\"Process Trace\",\"begining to create backgroundStrel\");\n Log.i(\"Process Trace\",\"backgroundStrel created\");\n Log.i(\"Process Trace\",\"Eroding convertedImage against backgroundStrel\");\n Imgproc.threshold(background,background,90,110,Imgproc.THRESH_BINARY);\n Imgproc.erode(background,background,Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT, new Size(bgStrel_width,bgStrel_height)));\n Log.i(\"Process Trace\",\"Final Background created\");\n Log.i(\"Process Trace\",\"begining to subtract background from image\");\n Core.absdiff(convertedImage,background,convertedImage);\n Log.i(\"Process Trace\",\"Background removed\");\n\n //Imgproc.equalizeHist(convertedImage,convertedImage);// correction before applying filters\n\n/**/\n\n\n Imgproc.medianBlur(convertedImage, convertedImage, 3);\n //something\n //Log.i(\"Displaying Mat\", convertedImage.);\n //ty to blur out the fine details fo creating the bg.\n //this will make a better mask for removing the bg\n //Mat bg = new Mat();\n //Imgproc.threshold(convertedImage,bg,90,110,Imgproc.THRESH_BINARY);\n //Core.absdiff(convertedImage,bg,convertedImage);\n\n //Removing Background and Noise\n\n\n //Initial Contrast enhancement\n //Imgproc.equalizeHist(convertedImage,convertedImage);\n\n //mockProcess: assuming bg and noise are removed\n Mat octagon = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_CROSS, new Size((int)(width*.008),(int)(height*.0075)));\n Imgproc.dilate(convertedImage,convertedImage,octagon);\n //Imgproc.floodFill(convertedImage,convertedImage,new Point(0,0),new Scalar(255,255,255));\n Imgproc.medianBlur(convertedImage,convertedImage,7);\n //Imgproc.equalizeHist(convertedImage,convertedImage);\n //Imgproc.floodFill(convertedImage,convertedImage,new Point(0,0),new Scalar(255,255,255))\n }", "public void removeAnnotations() {\n int size = this.annotationsArray.size();\n long[] jArr = new long[size];\n this.selectedMarkers.clear();\n for (int i = 0; i < size; i++) {\n jArr[i] = this.annotationsArray.keyAt(i);\n Annotation annotation = this.annotationsArray.get(jArr[i]);\n if (annotation instanceof Marker) {\n Marker marker = (Marker) annotation;\n marker.hideInfoWindow();\n this.iconManager.iconCleanup(marker.getIcon());\n }\n }\n this.annotations.removeAll();\n }", "static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }", "public Bitmap getTransparentSignatureBitmapTrimOnStrokes() {\n ensureSignatureBitmap();\n int imgHeight = mSignatureBitmap.getHeight();\n int imgWidth = mSignatureBitmap.getWidth();\n int backgroundColor = Color.TRANSPARENT;\n int xMin = Integer.MAX_VALUE,\n xMax = Integer.MIN_VALUE,\n yMin = Integer.MAX_VALUE,\n yMax = Integer.MIN_VALUE;\n\n boolean foundPixel = false;\n float strokes[] = getSafeStrokes();\n // Find xMin\n for (int x = (int)strokes[0]; x < imgWidth; x++) {\n boolean stop = false;\n for (int y = 0; y < imgHeight; y++) {\n if (mSignatureBitmap.getPixel(x, y) != backgroundColor) {\n xMin = x;\n stop = true;\n foundPixel = true;\n break;\n }\n }\n if (stop)\n break;\n }\n\n // Image is empty...\n if (!foundPixel)\n return null;\n\n // Find yMin\n for (int y = (int)strokes[1]; y < imgHeight; y++) {\n boolean stop = false;\n for (int x = xMin; x < imgWidth; x++) {\n if (mSignatureBitmap.getPixel(x, y) != backgroundColor) {\n yMin = y;\n stop = true;\n break;\n }\n }\n if (stop)\n break;\n }\n\n // Find xMax\n for (int x = (int)strokes[2] - 1; x >= xMin; x--) {\n boolean stop = false;\n for (int y = yMin; y < imgHeight; y++) {\n if (mSignatureBitmap.getPixel(x, y) != backgroundColor) {\n xMax = x;\n stop = true;\n break;\n }\n }\n if (stop)\n break;\n }\n\n // Find yMax\n for (int y = (int)strokes[3] - 1; y >= yMin; y--) {\n boolean stop = false;\n for (int x = xMin; x <= xMax; x++) {\n if (mSignatureBitmap.getPixel(x, y) != backgroundColor) {\n yMax = y;\n stop = true;\n break;\n }\n }\n if (stop)\n break;\n }\n\n return Bitmap.createBitmap(mSignatureBitmap, xMin, yMin, xMax - xMin + 1, yMax - yMin + 1);\n }", "public void clear() {\n int var1 = 0;\n if(field_759 || var1 < this.spritePixels.length) {\n do {\n this.spritePixels[var1] = null;\n this.field_736[var1] = 0;\n this.field_737[var1] = 0;\n this.spriteColoursUsed[var1] = null;\n this.spriteColourList[var1] = null;\n ++var1;\n } while(var1 < this.spritePixels.length);\n\n }\n }", "public final void clearTexture() {\n finalSkeleton = null;\n\n\n// for (Slot slot:emptySkeleton.getSlots()){\n// PolygonRegionAttachment attach=((PolygonRegionAttachment)slot.getAttachment()).se\n// }\n// emptySkeleton = null;\n// PolygonRegionAttachmentLoader attachmentLoader = new PolygonRegionAttachmentLoader(this, phase, assetProvider.getTextureAtlas(SpineToolFullEditorOverlay.getSelectedSkeleton()));\n// emptySkeleton = createSkeleton(attachmentLoader);\n// finalize(emptySkeleton);\n }", "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n sliceBuffer = null;\r\n super.finalize();\r\n }", "@Override public boolean deleteSurroundingText(int beforeChars, int afterChars) {\n\t\t\tint selStart = imeSelectionStart(nhandle);\n\t\t\tint selEnd = imeSelectionEnd(nhandle);\n\t\t\tint before = selStart - imeToRunes(nhandle, imeToUTF16(nhandle, selStart) - beforeChars);\n\t\t\tint after = selEnd - imeToRunes(nhandle, imeToUTF16(nhandle, selEnd) - afterChars);\n\t\t\treturn deleteSurroundingTextInCodePoints(before, after);\n\t\t}", "int deleteImage(int pos);", "@Test\n public void testImageFiltering()\n { \n String html = header + \"<img src=\\\"file://path/to/local/image.png\\\"/>\" + footer;\n Document doc = wysiwygHTMLCleaner.clean(new StringReader(html));\n NodeList nodes = doc.getElementsByTagName(\"img\");\n Assert.assertEquals(1, nodes.getLength());\n Element image = (Element) nodes.item(0);\n Node startComment = image.getPreviousSibling();\n Node stopComment = image.getNextSibling();\n Assert.assertEquals(Node.COMMENT_NODE, startComment.getNodeType());\n Assert.assertEquals(\"startimage:false|-|attach|-|Missing.png\", startComment.getNodeValue());\n Assert.assertEquals(\"Missing.png\", image.getAttribute(\"src\"));\n Assert.assertEquals(Node.COMMENT_NODE, stopComment.getNodeType());\n Assert.assertTrue(stopComment.getNodeValue().equals(\"stopimage\"));\n }", "public void unsetWeatherImage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(WEATHERIMAGE$2, 0);\n }\n }", "public void remove() {\r\n // rather than going through replace(), just reinitialize the StyledText,\r\n // letting the old data structures fall on the floor\r\n fCharBuffer = new CharBuffer();\r\n fStyleBuffer = new StyleBuffer(this, AttributeMap.EMPTY_ATTRIBUTE_MAP);\r\n fParagraphBuffer = new ParagraphBuffer(fCharBuffer);\r\n fTimeStamp += 1;\r\n fDamagedRange[0] = fDamagedRange[1] = 0;\r\n }", "private void reanderImage(ImageData data) {\n \n }", "private void Clean(){\n \t NodeIterable nodeit = graphModel.getGraph().getNodes();\n \t\n \t for (Node node : nodeit) {\n\t\t\t\n \t\t \n \t\t \n\t\t}\n \t\n }", "public void cleanProposition();", "public void finalize() {\r\n\t\tdestImage = null;\r\n\t\tsrcImage = null;\r\n\t\tsuper.finalize();\r\n\t}", "public void clearMark()\n {\n mark = false;\n }", "@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n mImgView.setImageBitmap(null);\r\n //softskin\r\n mImgView.setImageBitmap(mFaceEditor.BFSoftskin(Math.abs(seekBar.getProgress()/10), GlobalDefinitions.whiteRatio));//));//change to 0-100\r\n\r\n }", "public void wipe(){\n\t \tg2d.setColor(Color.yellow);\n g2d.fillRect(0,0, width, height);\n\t\t\n\n\t }", "private void enhanceImage(){\n }", "public void clearTextBytes();", "public void clean(ImageView view) {\n for (int i = 0; i < photosToLoad.size(); ) {\n if (photosToLoad.get(i).imageView == view) {\n photosToLoad.remove(i);\n }\n else {\n ++i;\n }\n }\n }", "private void clearCustom() {\n if (patternCase_ == 8) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "private void clearPatch() {\n if (patternCase_ == 6) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "public void onAnnotationsPreRemove(Map<Annot, Integer> annots) {\n/* 370 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ }", "public void delete()\n {\n if (this.data != null)\n {\n this.data.free();\n this.data = null;\n }\n \n this.width = 0;\n this.height = 0;\n \n this.mipmaps = 1;\n }", "public static void forceClearBitmap() {\n System.gc();\n System.runFinalization();\n System.gc();\n }", "public static String ungroupify(String text){\r\n return text.replaceAll(\"[\\\\sx]\", \"\");\r\n}", "public void mo8778a() {\n try {\n if (this.f1286b != null) {\n this.f1286b.recycle();\n }\n if (this.f1287c != null) {\n this.f1287c.recycle();\n }\n this.f1286b = null;\n this.f1287c = null;\n if (this.f1288d != null) {\n this.f1288d.recycle();\n this.f1288d = null;\n }\n if (this.f1289e != null) {\n this.f1289e.recycle();\n this.f1289e = null;\n }\n this.f1290f = null;\n } catch (Throwable th) {\n SDKLogHandler.m2563a(th, \"WaterMarkerView\", \"destory\");\n th.printStackTrace();\n }\n }", "public void clearmarks ()\n\t// clear all marks in the current node\n\t{\n\t\tgetinformation();\n\t\tundonode();\n\t\tListElement la = Pos.node().actions(), lan;\n\t\tAction a;\n\t\twhile (la != null)\n\t\t{\n\t\t\ta = (Action)la.content();\n\t\t\tlan = la.next();\n\t\t\tif (a.type().equals(\"M\") || a.type().equals(\"L\")\n\t\t\t\t|| a.type().equals(\"MA\") || a.type().equals(\"SQ\")\n\t\t\t\t|| a.type().equals(\"SL\") || a.type().equals(\"CR\")\n\t\t\t\t|| a.type().equals(\"TR\") || a.type().equals(\"LB\"))\n\t\t\t{\n\t\t\t\tPos.node().removeaction(la);\n\t\t\t}\n\t\t\tla = lan;\n\t\t}\n\t\tsetnode();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "private void cleanTempImages(String[] images) {\n for (int i = 1; i < images.length; i++) {\n File f = new File(images[i]);\n f.deleteOnExit();\n }\n }", "private void desenhaCanoInferior(Canvas canvas) {\n canvas.drawBitmap(canoInferior, posicao, alturaCanoInferior, null);\n }", "public void removeImage() {\n setFileImage(null);\n getSelected().setUrlImage(null);\n RequestContext.getCurrentInstance().update(\"image\");\n }", "public void removeEffectFromSpecialBrick(){\r\n\t\t\t// return everything to the original\r\n\t\t\tColor origColor = (specialBrickId.equals(\"Rect0\"))? discsColors[0]:(specialBrickId.equals(\"Rect1\"))? discsColors[1]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect2\"))? discsColors[2]:(specialBrickId.equals(\"Rect3\"))? discsColors[3]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect4\"))? discsColors[4]:(specialBrickId.equals(\"Rect5\"))? discsColors[5]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect6\"))? discsColors[6]:(specialBrickId.equals(\"Rect7\"))? discsColors[7]:null; \r\n\t\t\tint origWidth = (specialBrickId.equals(\"Rect0\"))? 30:(specialBrickId.equals(\"Rect1\"))? 60:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect2\"))? 90:(specialBrickId.equals(\"Rect3\"))? 120:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect4\"))? 150:(specialBrickId.equals(\"Rect5\"))? 180:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect6\"))? 210:(specialBrickId.equals(\"Rect7\"))? 240:null;\r\n\t\t\tRectangle rect = new Rectangle(origWidth,20, origColor);\r\n\t\t\trect.setId(specialBrickId);\r\n\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\trect.setStrokeWidth(3);\r\n\t\t\t\t\t\t\r\n\t\t\tswitch(specialBrickTower){\r\n\t\t\t\tcase \"firstTower\":\r\n\t\t\t\t\tfor(int i=0; i<firstTower.getChildren().size(); i++){ // cycle through the tower to check which one is the special brick\r\n\t\t\t\t\t\tif (firstTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tfirstTower.getChildren().set(i, rect); // then reset it\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"secondTower\":\r\n\t\t\t\t\tfor(int i=0; i<secondTower.getChildren().size(); i++){\r\n\t\t\t\t\t\tif (secondTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tsecondTower.getChildren().set(i, rect);\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"thirdTower\":\r\n\t\t\t\t\tfor(int i=0; i<thirdTower.getChildren().size(); i++){\r\n\t\t\t\t\t\tif (thirdTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tthirdTower.getChildren().set(i, rect);\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\trect.widthProperty().bind(scene.widthProperty().divide(3).subtract(250-origWidth));\r\n\t\t\trect.heightProperty().bind(scene.heightProperty().divide(19));\r\n\t\t\r\n\t\tif(countDownRunning){towersRegion.getChildren().remove(2);countDownRunning=false;} // remove the count down watch from the screen\t\t\r\n\t\tspecialBrickId=null; // reset the special brick id\r\n\t}", "private static String cleanHighlightingMarks(final String hlText) {\n String hlLiteral = hlText;\n int indexPre = hlLiteral.indexOf(HL_PRE);\n while (indexPre > -1) {\n int indexPost = hlLiteral.indexOf(HL_POST, indexPre + HL_PRE.length());\n if (indexPost > -1) {\n String post = hlLiteral.substring(indexPost + HL_POST.length());\n String pre = hlLiteral.substring(0, indexPost);\n Matcher preMatcher = HL_PRE_REGEX.matcher(pre);\n pre = preMatcher.replaceFirst(\"\");\n hlLiteral = pre + post;\n }\n indexPre = hlLiteral.indexOf(HL_PRE);\n }\n return hlLiteral;\n }", "void kill () {if (img != null) {img.flush (); img = null;}}", "protected void cleanup() throws QTException {\n switch(action) {\n case REMOVE_DRAWING_COMPLETE_PROC:\n MoviePlayer player = (MoviePlayer)needsCleaning[0];\n if (player == null) return;\n Movie movie = player.getMovie();\n movie.removeDrawingCompleteProc();\n player.setGWorld(QDGraphics.scratch);\n needsCleaning[0] = null;\n }\n }", "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n mask = null;\r\n\r\n if (keepProgressBar == false) {\r\n disposeProgressBar();\r\n }\r\n\r\n try {\r\n super.finalize();\r\n } catch (Throwable er) { }\r\n }", "public void clean() {\n \tfor(int f=0; f<NUMCARTAS;f++) \n \tfor(int c=0; c<NUMCARTAS;c++) {\n \t\ttablero[f][c].setSelected(false);\n\t \t \t//Devuelve al color original\n\t if(tablero[f][c].getText().length()==2) tablero[f][c].setBackground(colorDiagonal);\n\t else if(tablero[f][c].getText().charAt(2)=='s') tablero[f][c].setBackground(colorSuited);\n\t else tablero[f][c].setBackground(colorOffsuited);\n \t}\n }", "private void cleanPatterns() {\r\n \tfor (int i = this.patterns.size() - 1; i >= 0; i--) {\r\n \t\tchar[] curr = this.patterns.get(i);\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < curr.length; j++) {\r\n \t\t\ts += curr[j];\r\n \t\t}\r\n \t\tif (!s.equals(this.currPattern)) {\r\n \t\t\tthis.patterns.remove(i);\r\n \t\t}\r\n \t}\r\n }", "public void normalizeImages(){\n\n biegeAlien.setImageResource(R.drawable.alienbeige);\n greenAlien.setImageResource(R.drawable.aliengreen);\n pinkAlien.setImageResource(R.drawable.alienpink);\n blueAlien.setImageResource(R.drawable.alienblue);\n yellowAlien.setImageResource(R.drawable.alienyellow);\n yellowAlien.setBackgroundColor(view.getSolidColor());\n blueAlien.setBackgroundColor(view.getSolidColor());\n greenAlien.setBackgroundColor(view.getSolidColor());\n pinkAlien.setBackgroundColor(view.getSolidColor());\n biegeAlien.setBackgroundColor(view.getSolidColor());\n }", "public void cleanUp() {\n // a quick way to clean the vector\n segments = new Vector();\n // reset the total distance\n totalDistance = 0.0;\n distance = 0.0;\n }", "public void onLowMemory() {\r\n \t\tlog.info(\"On low memory : cleaning tiles - size = \" + cacheOfImages.size());\r\n \t\tArrayList<String> list = new ArrayList<String>(cacheOfImages.keySet());\r\n \t\t// remove first images (as we think they are older)\r\n \t\tfor (int i = 0; i < list.size()/2; i ++) {\r\n \t\t\tBitmap bmp = cacheOfImages.remove(list.get(i));\r\n \t\t\tif(bmp != null){\r\n \t\t\t\tbmp.recycle();\r\n \t\t\t}\r\n \t\t}\r\n \t\tSystem.gc();\r\n \t}", "public void removeVerticalSeam(int[] seam) {\n for (int rows = 0; rows < height; rows++) {\n for (int columns = seam[rows]; columns < width - 1; columns++) {\n this.pic.set(columns, rows, this.pic.get(columns + 1, rows));\n }\n }\n width--;\n }", "private void clearPost() {\n if (patternCase_ == 4) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "public native boolean normalizeImage() throws MagickException;", "private void nullify() {\n paint = null;\n bg1 = null;\n bg2 = null;\n madafacka = null;\n for(int i=0; i<enemies.size(); i++){\n enemies.remove(i);\n i--;\n }\n currentSprite = null;\n ship = null;\n shipleft1 = null;\n shipleft2 = null;\n shipright1 = null;\n shipright2 = null;\n basicInv1 = null;\n basicInv2 = null;\n badBoyAnim = null;\n\n // Call garbage collector to clean up memory.\n System.gc();\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n @Override\n public void run() {\n Boolean hasBarcodes = barcodes > 0;\n if (hasBarcodes) {\n // Keep local image\n\n //handlePrivateImage(bitmap);\n context.get().finish();\n }\n else {\n // Delete local image and push to cloud\n if (imageFile.exists())\n imageFile.delete();\n handlePublicImage(bitmap);\n }\n }", "public void destroy(){\n\t\tcimg.destroy();\n\t}", "private void clearCanvas() {\n updateImageSize(mScale);\n }", "public void testStripReadOnlyKeepTextImageAndTable() {\n String fileName = \"write_enable_text_table_image.docx\";\n String fileInput = inputDirectory + \"write_enable_text_table_image.docx\";\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(fileInput);\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.stripReadOnlyPartOfDocument();\n File destFile = new File(outputDirectory + fileName);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + fileInput);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"failed\" + e.getMessage());\n }\n }", "public void clear_strokes() {\n this.contours = new ArrayList<ContourClass>(); // Argument (if any) specifies initial capacity (default 10)\n }", "public boolean removeImage()\n\t{\n\t\tString rootPath = ConfigurationParamter.ref().getImageRootPath();\n\t\t///image name is image data hash in hex format\n\t\tString fullPath = rootPath + \"/\" + this.getImageFileName();\n\t\t///remove it from file path\n\t\tFile file = new File(fullPath);\n\t\tif(file.exists())\n\t\t{\n\t\t\tfile.delete();\n\t\t}\n\t\treturn true;\n\t}", "public synchronized void clearImage()\r\n\t{\r\n\t\treferenceImage.clearImage();\r\n\t\tdisplayedImage.clearImage();\r\n\t}", "public String cleanHtmlTextForPlayer(String unrefinedHtmlText) {\n\n String figureRemove = replaceAllCharacter(unrefinedHtmlText, ConstantUtil.HTML_EXTRACT_FIGURE_REGEX, ConstantUtil.BLANK);\n String figcaptionRemove = replaceAllCharacter(figureRemove, ConstantUtil.HTML_EXTRACT_FIGCAPTION_REGEX, ConstantUtil.BLANK);\n String almostRefinedText = figcaptionRemove.replaceAll(ConstantUtil.HTML_EXTRACT_IMG_REGEX, ConstantUtil.BLANK);\n return almostRefinedText;\n\n }", "@Override\n public void clean(Path path) {\n }", "public static void opencv_line_removal(String destinationDir) {\n\n\t\tString dirPath = destinationDir;\n\t\t// System.out.println(destinationDir);\n\t\tFile dir = new File(dirPath);\n\t\tString filename, filepath;\n\t\t// System.out.println(\"directory read\");\n\n\t\tFile[] files = dir.listFiles();\n\t\tfor (File aFile : files) {\n\n\t\t\tfilename = aFile.getName();\n\t\t\tfilepath = destinationDir + '/' + filename;\n\n\t\t\t// System.out.println(\"file \"+filename);\n\t\t\t// System.out.println(filepath);\n\n\t\t\t// Load the image\n\t\t\tMat source = Imgcodecs.imread(filepath);\n\n\t\t\t// Mat Template class for specifying the size of an image\n\t\t\tMat image_h = Mat.zeros(source.size(), CvType.CV_8UC1);\n\t\t\tMat image_v = Mat.zeros(source.size(), CvType.CV_8UC1);\n\t\t\tMat output = new Mat();\n\n\t\t\t// Inverse vertical image\n\t\t\tCore.bitwise_not(source, output);\n\t\t\tMat output_result = new Mat();\n\n\t\t\t// Create structure element for extracting horizontal lines through morphology\n\t\t\t// operations\n\t\t\tMat kernel_h = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(20, 1));\n\n\t\t\t// Apply morphology operations\n\t\t\tImgproc.morphologyEx(output, image_h, Imgproc.MORPH_OPEN, kernel_h);\n\n\t\t\tCore.subtract(output, image_h, output_result);\n\n\t\t\t// Create structure element for extracting vertical lines through morphology\n\t\t\t// operations\n\t\t\tMat kernel_v = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(1, 20));\n\n\t\t\t// Apply morphology operations vertical\n\t\t\tImgproc.morphologyEx(output_result, image_v, Imgproc.MORPH_OPEN, kernel_v);\n\t\t\tMat output_result2 = new Mat();\n\n\t\t\tCore.subtract(output_result, image_v, output_result2);\n\n\t\t\t// write an image after removed horizontal and vertical line from image\n\t\t\tImgcodecs.imwrite(filepath, output_result2);\n\n\t\t\tSystem.out.println(filename + \" written \");\n\t\t\tBufferedImage img = null;\n\t\t\tFile f = null;\n\n\t\t\ttry {\n\t\t\t\tf = new File(filepath);\n\t\t\t\timg = ImageIO.read(f);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t\t// get image width and height\n\t\t\tint width = img.getWidth();\n\t\t\tint height = img.getHeight();\n\t\t\t// convert to negative\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\t\tint p = img.getRGB(x, y);\n\t\t\t\t\tint a = (p >> 24) & 0xff;\n\t\t\t\t\tint r = (p >> 16) & 0xff;\n\t\t\t\t\tint g = (p >> 8) & 0xff;\n\t\t\t\t\tint b = p & 0xff;\n\t\t\t\t\t// subtract RGB from 255\n\t\t\t\t\tr = 255 - r;\n\t\t\t\t\tg = 255 - g;\n\t\t\t\t\tb = 255 - b;\n\t\t\t\t\t// set new RGB value\n\t\t\t\t\tp = (a << 24) | (r << 16) | (g << 8) | b;\n\t\t\t\t\timg.setRGB(x, y, p);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// write image\n\t\t\ttry {\n\t\t\t\tf = new File(filepath);\n\n\t\t\t\tImageIO.write(img, \"jpg\", f);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\n\t\t//System.out.println(\" Convert all doccument type into Image \");\n\t}" ]
[ "0.62808317", "0.6249222", "0.6075938", "0.59548485", "0.5891687", "0.58829105", "0.58180606", "0.5813177", "0.57445884", "0.57299805", "0.5702939", "0.56633466", "0.5659714", "0.5646946", "0.56247234", "0.5622919", "0.56221896", "0.56077677", "0.55875105", "0.55722046", "0.5559793", "0.5486308", "0.54630345", "0.5462663", "0.5457098", "0.54393274", "0.5423955", "0.54142684", "0.54061574", "0.5397784", "0.5381758", "0.53782916", "0.53697735", "0.5359923", "0.53587663", "0.5356533", "0.53481036", "0.5343133", "0.5333869", "0.5289709", "0.5286593", "0.5286332", "0.52794635", "0.5265308", "0.5263173", "0.5245692", "0.52422947", "0.5238075", "0.52249515", "0.5221711", "0.52144253", "0.5202042", "0.5199951", "0.51840544", "0.51802605", "0.5174442", "0.51731503", "0.5168976", "0.5156279", "0.5151217", "0.5148535", "0.5143569", "0.51425165", "0.5140485", "0.51397437", "0.51349044", "0.5134506", "0.5129849", "0.5123569", "0.51235193", "0.5115516", "0.51127356", "0.51122314", "0.51108724", "0.5104813", "0.50972676", "0.509435", "0.50930405", "0.5092783", "0.5089783", "0.50896627", "0.50836456", "0.5081533", "0.507529", "0.50718313", "0.5069332", "0.5055652", "0.50545985", "0.50521445", "0.5052002", "0.5035679", "0.503351", "0.50260454", "0.50170195", "0.5012565", "0.5002273", "0.49998012", "0.4998391", "0.4992206", "0.49871156", "0.49854034" ]
0.0
-1
check the degree of overlap between each character template and the image
public static int makeGuess(BufferedImage subImage) { double bestOverlap = -1; int bestGuess = -1; for (int i=0; i<templates.length; i++) { // for each possible character int totalCount = 0; int matchCount = 0; for (int x=0; x<subImage.getWidth(); x++) { for (int y=0; y<subImage.getHeight(); y++) { int pixelVal = subImage.getRGB(x, y); if (!isBlack(pixelVal)) continue; if (isBlack(templates[i].getRGB(x, y))) matchCount++; totalCount++; } } if (debug) System.out.println(i + ": matched " + matchCount + " / " + totalCount); double overlap = matchCount / (double) totalCount; if (overlap > bestOverlap) { bestOverlap = overlap; bestGuess = i; } } return bestGuess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hitCharacter(myCharacter characterImage){\n\t\t\t\tArea ba = new Area(characterImage.getShape());\n\t\t\t\tArea pa = new Area(getRect());\n\n\t\t\t\t//if(character2.getShape().intersects(getRect()))return(true);\n\t\t\t\tpa.intersect(ba);\n\t\treturn !pa.isEmpty();\n\n\n/*\t\ttouching = false;\n\t\tcharacter = characterImage;\n\t\tcharacterX = character.getOrigin().getX();\n\t\tcharacterY = character.getOrigin().getY();\n\t\tcharacterWidth = character.getDimension().getWidth();\n\t\tcharacterHeight = character.getDimension().getHeight();\n\n\t\tif(hits(character.getOrigin(), character.getDimension())==true){\n\n\t\t\tfor(int i = 0; i<character.getCollisionBoxes().size(); i++){\n\t\t\t\tint x = ((int)(character.getCollisionBoxes().get(i).getX()));\n\t\t\t\tint y = ((int)(character.getCollisionBoxes().get(i).getY()));\n\t\t\t\tint width = (int)(character.getCollisionBoxes().get(i).getWidth());\n\t\t\t\tint height =(int)(character.getCollisionBoxes().get(i).getHeight());\n\t\t\t\tPoint p = new Point(x,y);\n\t\t\t\tDimension d = new Dimension(width,height);\n\t\t\t\tif(hits(p,d)&&!character.isGhost()){\n\t\t\t\t\ttouching=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn(touching);*/\n\t}", "public void findPattern(){\n List<MatOfPoint> arrContours = new ArrayList<>();\n Mat hierachy = new Mat();\n MatOfPoint2f contour2f = new MatOfPoint2f();\n MatOfPoint2f approxPoly = new MatOfPoint2f();\n Mat transformMatrix;\n Mat warped = new Mat();\n Mat compareTemplateResult = new Mat(4,1,CvType.CV_32FC1);\n\n Imgproc.Canny(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), mEdges, mCanny1, mCanny2);\n Imgproc.findContours(mEdges,arrContours,hierachy,Imgproc.RETR_LIST,Imgproc.CHAIN_APPROX_SIMPLE);\n for(int i = 0; i<arrContours.size(); i++){\n arrContours.get(i).convertTo(contour2f, CvType.CV_32FC2);\n Imgproc.approxPolyDP(contour2f,approxPoly,mPoly,true);\n if(approxPoly.height()==4){\n transformMatrix = Imgproc.getPerspectiveTransform(approxPoly,mTemplateTargetPoints);\n Imgproc.warpPerspective(mGray.submat(mScanTop, mScanBottom, mScanLeft, mScanRight), warped, transformMatrix, new Size(staticConfig.templateSize, staticConfig.templateSize));\n\n Imgproc.matchTemplate(warped, mTemplateGray, compareTemplateResult.rowRange(0, 1), Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate90,compareTemplateResult.rowRange(1, 2),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate180,compareTemplateResult.rowRange(2, 3),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped, mTemplate270, compareTemplateResult.rowRange(3, 4), Imgproc.TM_SQDIFF_NORMED);\n\n Core.MinMaxLocResult mmr = Core.minMaxLoc(compareTemplateResult);\n\n if(Double.compare(mmr.minVal,mTemplateThreshold)<0){\n\n /* used to solvepnp */\n List<Point> approxPolyList = approxPoly.toList();\n switch (mmr.minLoc.toString()){\n case \"{0.0, 0.0}\":\n {\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 1.0}\":\n {\n Collections.rotate(approxPolyList,3);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 2.0}\":\n {\n Collections.rotate(approxPolyList,2);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 3.0}\":\n {\n Collections.rotate(approxPolyList,1);\n mFrameBox.fromList(approxPolyList);\n }break;\n default:{\n Log.i(TAG,\"mmr.minLoc out of bound error.\");\n mFrameBox.fromList(approxPolyList);\n }break;\n }\n /* calculate the average center of the box. used to readjust mscancenter later */\n List<Point> approxPolyPts = approxPoly.toList();\n double totalX = 0,\n totalY = 0,\n count = 0;\n for(int j = 0; j<approxPolyPts.size(); j++){\n count++;\n totalX += approxPolyPts.get(j).x+mScanLeft;\n totalY += approxPolyPts.get(j).y+mScanTop;\n }\n mBoxCenter = new Point(totalX/count,totalY/count);\n\n\n /* check if show fill poly */\n if(staticConfig.showPatternMatch){\n Imgproc.fillConvexPoly(mMixed.submat(mScanTop,mScanBottom,mScanLeft,mScanRight),arrContours.get(i),new Scalar(255,155,155,255));\n }\n\n return;\n }\n }\n }\n }", "private boolean colisionPalas() {\r\n\t\treturn game.racketIzq.getBounds().intersects(getBounds())\r\n\t\t\t\t|| game.racketDer.getBounds().intersects(getBounds());\r\n\t}", "public void checkwarp(){\n\t\tif(pacman.ypos > (colours[0].length*interval)-2){\r\n\t\t\tpacman.ypos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.xpos > (colours.length*interval)-2){\r\n\t\t\tpacman.xpos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.ypos < interval+2){\r\n\t\t\tpacman.ypos = (colours[0].length*interval)-2;\r\n\t\t}\r\n\t\telse if(pacman.xpos < interval+2){\r\n\t\t\tpacman.xpos = (colours.length*interval)-2;\r\n\t\t}\r\n\t\t\r\n\t}", "static void insertion(BufferedImage img, BufferedImage waterImg, int width, int height, StringBuilder binary, int[] Estimator_pos) {\n int block_num = 0;\r\n int msg_counter = 0;\r\n\r\n for (int x = 0; x < width; x++) {\r\n for (int y = 0; y < height; y++) {\r\n\r\n int b1 = img.getRGB(x, y);\r\n int p1 = (b1 >> 16) & 0xff;\r\n int b2 = img.getRGB(x, y + 1);\r\n int p2 = (b2 >> 16) & 0xff;\r\n int b3 = img.getRGB(x + 1, y);\r\n int p3 = (b3 >> 16) & 0xff;\r\n int b4 = img.getRGB(x + 1, y + 1);\r\n int p4 = (b4 >> 16) & 0xff;\r\n\r\n //geting a random 1-4 for estimator\r\n Random rn = new Random();\r\n int estimator = rn.nextInt(4) + 1;\r\n //System.out.println(estimator);\r\n Estimator_pos[block_num] = estimator;\r\n// System.out.println(\" p1 : \"+p1 + \"| p2 : \" + p2 + \"| p3 : \" + p3 + \"| p4 : \" + p4);\r\n //-----------comparing estimator with pixels ------------------\r\n if ((p1 < 255) && (p2 < 255) && (p3 < 255) && (p4 < 255)) {\r\n\r\n // System.out.println(estimator);\r\n switch (estimator) {\r\n\r\n case 1: //------------------------------------------------------------------------------------- case 1\r\n //System.out.println(\"case 1\");\r\n estimator = p1;\r\n ////writing back estimator \r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 2: //------------------------------------------------------------------------------------- case 2\r\n //System.out.println(\"case 2\");\r\n estimator = p2;\r\n ////writing back estimator \r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 3: //------------------------------------------------------------------------------------- case 3\r\n //System.out.println(\"case 3\");\r\n estimator = p3;\r\n ////writing back estimator\r\n\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 4: //------------------------------------------------------------------------------------- case 4\r\n estimator = p4;\r\n //wrinting back estimator pixel\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n //System.out.println(\"case 4\");\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n break;\r\n }\r\n// p1 = (p1 >> 16) & 0xff;\r\n// p2 = (p2 >> 16) & 0xff;\r\n// p3 = (p3 >> 16) & 0xff;\r\n// p4 = (p4 >> 16) & 0xff;\r\n// System.out.println(\" p1 : \"+p1 + \"| p2 : \" + p2 + \"| p3 : \" + p3 + \"| p4 : \" + p4);\r\n\r\n } else {\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x + 1, y, p2);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x, y + 1, p3);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n }\r\n block_num = block_num + 1;\r\n\r\n y++;\r\n\r\n }\r\n x++;\r\n }\r\n\r\n }", "@SuppressWarnings(\"unused\")\r\n private void findAbdomenVOI() {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 39; angle < 45; angle += 3) {\r\n int x, y, yOffset;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n scaleFactor = Math.tan(angleRad);\r\n x = xDim;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x > xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x--;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n x = xcm;\r\n y = 0;\r\n yOffset = y * xDim;\r\n while (y < ycm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n y++;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n x = 0;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x < xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x++;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n x = xcm;\r\n y = yDim;\r\n yOffset = y * xDim;\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n y--;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n }\r\n } // end for (angle = 0; ...\r\n \r\n int[] x1 = new int[xValsAbdomenVOI.size()];\r\n int[] y1 = new int[xValsAbdomenVOI.size()];\r\n int[] z1 = new int[xValsAbdomenVOI.size()];\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n x1[idx] = xValsAbdomenVOI.get(idx);\r\n y1[idx] = xValsAbdomenVOI.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n\r\n\r\n }", "private Marker isMarker(MatOfPoint2f result, Mat texture) {\n boolean[][] pattern = new boolean[4][4];\n \n // reset error allowance\n int errorAllowance = 0;\n // Check border:\n for (int i = 1; i < MARKER_GRID - 1; i++) {\n if (testSample(half + (i * step), half,\n texture) > 0)\n errorAllowance++;\n if (testSample(half, half + (i * step), texture) > 0)\n errorAllowance++;\n if (testSample(half + (i * step), MARKER_SIZE - 1 - half,\n texture) > 0)\n errorAllowance++;\n if (testSample(MARKER_SIZE - 1 - half, half + (i * step),\n texture) > 0)\n errorAllowance++;\n }\n \n // we'll allow 4 incorrect border pieces but no more\n if (errorAllowance > 4) {\n log.debug(TAG, \"Discarding over incomplete border detection!\");\n // Return null if we're not debugging – we're done in that case.\n if (!DEBUG_DRAW_MARKER_ID && !DEBUG_DRAW_MARKERS)\n return null;\n }\n // Now read pattern:\n // time: ~3ms\n for (int i = 0; i < 4; i++)\n for (int j = 0; j < 4; j++) {\n pattern[i][j] = (testSample(half + (i + 1) * step,\n half + (j + 1) * step, texture) > 0);\n }\n \n // Check corners, get rotation, and rotate pattern to correct\n // orientation:\n // time: ~0ms\n int angle;\n if (!pattern[0][0] && pattern[0][3] && pattern[3][0] && pattern[3][3]) {\n angle = -90;\n pattern = rotatePattern(3, pattern);\n } else if (pattern[0][0] && !pattern[0][3] &&\n pattern[0][3] && pattern[3][3]) {\n angle = 0;\n } else if (pattern[0][0] && pattern[0][3] &&\n !pattern[3][0] && pattern[3][3]) {\n angle = 180;\n pattern = rotatePattern(2, pattern);\n } else if (pattern[0][0] && pattern[0][3] &&\n pattern[3][0] && !pattern[3][3]) {\n angle = 90;\n pattern = rotatePattern(1, pattern);\n } else {\n // This happens when a black border is found but has no\n // orientation information.\n log.debug(TAG, \"Discarding over missing orientation information!\");\n angle = -1;\n if (!DEBUG_DRAW_MARKER_ID && !DEBUG_DRAW_MARKERS)\n return null;\n }\n \n // Get Hamming code corrected id:\n // time: ~0ms\n int id = MarkerPatternHelper.getID(pattern);\n \n // Check if id is valid.\n if (id < 0) {\n log.debug(TAG, \"Discarding over illegal ID!\");\n return null;\n }\n \n Marker marker = new Marker(result, angle, id);\n \n // For debug, we need to remember the grayTexture, otherwise not.\n if (mainInterface.DEBUG_FRAME && (DEBUG_DRAW_MARKERS || DEBUG_POLY)) {\n // INFO: Debugging with this HALFS the framerate!\n marker.setDebugParameters(pattern, texture);\n return marker;\n }\n \n return marker;\n }", "@FXML\n public void AnalyiseImg(ActionEvent e) {\n\n for (int readY = 0; readY < height; readY++) {\n for (int readX = 0; readX < width - 1; readX++) {\n //For red blood cells\n if (TricolourController.BloodCells[readY * width + readX] != 0 && (TricolourController.BloodCells[readY * width + readX + 1] != 0)) {\n Recognision.union(TricolourController.BloodCells, readY * width + readX, readY * width + readX + 1);\n }\n if (readY < height - 1 && TricolourController.BloodCells[readY * width + readX] != 0 && TricolourController.BloodCells[readY * width + readX + width] != 0) {\n Recognision.union(TricolourController.BloodCells, readY * width + readX, readY * width + readX + width);\n }\n\n\n\n//For white blood cells\n if (TricolourController.WhiteCells[readY * width + readX] != 0 && (TricolourController.WhiteCells[readY * width + readX + 1] != 0)) {\n Recognision.union(TricolourController.WhiteCells, readY * width + readX, readY * width + readX + 1);\n }\n if (readY < height - 1 && TricolourController.WhiteCells[readY * width + readX] != 0 && TricolourController.WhiteCells[readY * width + readX + width] != 0) {\n Recognision.union(TricolourController.WhiteCells, readY * width + readX, readY * width + readX + width);\n }\n\n }\n }\n\n/* for (int i = 0; i < TricolourController.BloodCells.length; i++) {\n if (i % width == 0) System.out.println(); //New line\n System.out.print(Recognision.find(TricolourController.BloodCells, i) + \" \"); //Print root value\n }*/\n\n/* for (int i = 0; i < TricolourController.WhiteCells.length; i++) {\n if (i % width == 0) System.out.println(); //New line\n System.out.print(Recognision.find(TricolourController.WhiteCells, i) + \" \"); //Print root value\n }*/\n\n displayRectangles();\n\n }", "public void render(Graphics2D g,GameState state) {\n /**\n * information EnemyTank\n */\n AffineTransform tx = new AffineTransform();\n tx.setToTranslation(locX + state.xTransfer - smallEnemyBodyImage.getWidth() / 2 , locY + state.yTransfer - smallEnemyBodyImage.getHeight() / 2);\n tx.rotate(Math.toRadians(tankAngle), 50, 50);\n /**\n * information Enemy Gun\n */\n AffineTransform tx2 = new AffineTransform();\n tx2.setToTranslation(locX + state.xTransfer - smallEnemyGunImage.getWidth() / 5, locY + state.yTransfer - smallEnemyGunImage.getHeight() / 4.2);\n tx2.rotate(Math.toRadians(gunAngle), 20, 20);\n\n\n// Random random = new Random();\n// int angle = random.nextInt(360);\n// System.out.println(angle);\n /**\n * initialize is false\n */\n// if(j == 0)\n// limitMoving = false;\n//\n// if(limitMoving == false)\n// {\n// locX ++ ;\n// j++;\n// }\n// if(j == 100)\n// limitMoving = true;\n// if(limitMoving == true)\n// {\n// locX -- ;\n// j--;\n// }\n\n\n up = false;\n down = false;\n right = false;\n left = false;\n if(Math.abs(state.locX - (locX + state.xTransfer)) < 400 && Math.abs(state.locY - (locY + state.yTransfer)) < 400) {\n if (state.locX >= locX + state.xTransfer ) {\n locX++;\n right = true;\n left = false;\n }\n else {\n locX--;\n left = true;\n right = false;\n }\n\n if (state.locY >= locY + state.yTransfer) {\n locY++;\n up = false;\n down = true;\n }\n else {\n locY--;\n down = false;\n up = true;\n }\n ShapesIntersects shapesIntersects = new ShapesIntersects();\n for (Enemy01 e1 : GameFrame.getEnemyController().getE1()) {\n if (e1.locX != locX || e1.locY != locY) {\n // System.out.println(\"hi\");\n if (shapesIntersects.checkIntersect(locX + state.xTransfer - smallEnemyBodyImage.getWidth() / 2, locY + state.yTransfer - smallEnemyBodyImage.getHeight() / 2, smallEnemyBodyImage.getWidth(), smallEnemyBodyImage.getHeight()\n , e1.locX + state.xTransfer - smallEnemyBodyImage.getWidth() / 2, e1.locY + state.yTransfer - smallEnemyBodyImage.getHeight() / 2, smallEnemyBodyImage.getWidth(), smallEnemyBodyImage.getHeight())) {\n // System.out.println(\"intersects between enemy 01 is True\");\n if (right) {\n locX--;\n right = false;\n }\n if (left) {\n locX++;\n left = false;\n }\n if (up) {\n locY++;\n up = false;\n }\n if (down) {\n locY--;\n down = false;\n }\n }\n }\n }\n if (shapesIntersects.checkIntersect(locX + state.xTransfer - smallEnemyBodyImage.getWidth() / 2, locY + state.yTransfer - smallEnemyBodyImage.getHeight() / 2, smallEnemyBodyImage.getWidth(), smallEnemyBodyImage.getHeight()\n , state.locX - GameFrame.getMyTankImage().getWidth() / 2, state.locY - GameFrame.getMyTankImage().getHeight() / 2, GameFrame.getMyTankImage().getWidth(), GameFrame.getMyTankImage().getHeight()))\n {\n if (right) {\n locX--;\n right = false;\n }\n if (left) {\n locX++;\n left = false;\n }\n if (up) {\n locY++;\n up = false;\n }\n if (down) {\n locY--;\n down = false;\n }\n }\n for (HardWall hW : GameFrame.getWallController().getHardWalls())\n if(shapesIntersects.checkIntersect(locX + state.xTransfer - GameFrame.getMyTankImage().getWidth() / 2, locY + state.yTransfer - GameFrame.getMyTankImage().getHeight() / 2, GameFrame.getMyTankImage().getWidth(), GameFrame.getMyTankImage().getHeight()\n , hW.getLocX() + state.xTransfer, hW.getLocY() + state.yTransfer,hW.getHardWallImage().getWidth() ,hW.getHardWallImage().getHeight()))\n {\n if(right)\n locX--;\n if(left)\n locX++;\n if(up)\n locY++;\n if (down)\n locY--;\n }\n for (SoftWall sW : GameFrame.getWallController().getSoftWalls())\n if(shapesIntersects.checkIntersect(locX + state.xTransfer - GameFrame.getMyTankImage().getWidth() / 2 + 2, locY + state.yTransfer - GameFrame.getMyTankImage().getHeight() / 2 + 2, GameFrame.getMyTankImage().getWidth() - 5, GameFrame.getMyTankImage().getHeight() - 5\n , sW.getLocX() + state.xTransfer, sW.getLocY() + state.yTransfer,sW.getSoftWall01Image().getWidth() ,sW.getSoftWall01Image().getHeight()))\n {\n if(right)\n locX--;\n if(left)\n locX++;\n if(up)\n locY++;\n if (down)\n locY--;\n }\n for (Teazel teazel : GameFrame.getWallController().getTeazels())\n if(shapesIntersects.checkIntersect(locX + state.xTransfer - GameFrame.getMyTankImage().getWidth() / 2, locY + state.yTransfer - GameFrame.getMyTankImage().getHeight() / 2, GameFrame.getMyTankImage().getWidth(), GameFrame.getMyTankImage().getHeight()\n , teazel.getLocX() + state.xTransfer, teazel.getLocY() + state.yTransfer,teazel.getTeazelImage().getWidth() ,teazel.getTeazelImage().getHeight()))\n {\n if(right)\n locX--;\n if(left)\n locX++;\n if(up)\n locY++;\n if (down)\n locY--;\n }\n for (Enemy02 e2 : GameFrame.getEnemyController().getE2())\n if(shapesIntersects.checkIntersect(locX + state.xTransfer - GameFrame.getMyTankImage().getWidth() / 2 + 2, locY + state.yTransfer - GameFrame.getMyTankImage().getHeight() / 2 + 2, GameFrame.getMyTankImage().getWidth() - 5, GameFrame.getMyTankImage().getHeight() - 5\n , e2.getLocX() + state.xTransfer, e2.getLocY() + state.yTransfer,e2.getMovingEnemyImage().getWidth() ,e2.getMovingEnemyImage().getHeight()))\n {\n if(right)\n locX--;\n if(left)\n locX++;\n if(up)\n locY++;\n if (down)\n locY--;\n }\n for (Enemy03 e3 : GameFrame.getEnemyController().getE3())\n if(shapesIntersects.checkIntersect(locX + state.xTransfer - GameFrame.getMyTankImage().getWidth() / 2 + 2, locY + state.yTransfer - GameFrame.getMyTankImage().getHeight() / 2 + 2, GameFrame.getMyTankImage().getWidth() - 5, GameFrame.getMyTankImage().getHeight() - 5\n , e3.getLocX() + state.xTransfer, e3.getLocY() + state.yTransfer,e3.getBigEnemyBodyImage().getWidth() ,e3.getBigEnemyBodyImage().getHeight()))\n {\n if(right)\n locX--;\n if(left)\n locX++;\n if(up)\n locY++;\n if (down)\n locY--;\n }\n\n tankAngle = enemyTankRotation.getAngle(up, down, left, right);\n enemyTankRotation.setTankAngle(tankAngle);\n gunAngle = Math.toDegrees(Math.atan2(state.locY - (locY + state.yTransfer), state.locX - (locX + state.xTransfer)));\n// Random random = new Random();\n// int n = random.nextInt(10);\n// if (n == 3)\n if(i % 50 == 0)\n GameFrame.getBulletController().addBullet(new Enemy01Bullet(locX,locY ,gunAngle,smallEnemyGunImage));\n\n i++;\n // angle = Math.toDegrees(Math.atan2(state.mouseY - state.locY - myTankImage.getHeight() / 2, state.mouseX - state.locX - myTankImage.getWidth() / 2));\n }\n// System.out.println(\"loc x = \" + locX);\n// System.out.println(\"loc y = \" + locY);\n g.drawImage(smallEnemyBodyImage,tx,null);\n g.drawImage(smallEnemyGunImage, tx2, null);\n// System.out.println(\"enemy 01 loc x = \" + locX);\n// System.out.println(\"enemy 01 loc y = \" + locY);\n }", "public void controlla_collisioni() {\n\n for (int i = punti; i > 0; i--) {\n\n if ((i > 4) && (x[0] == x[i]) && (y[0] == y[i])) {\n in_gioco = false;\n }\n }\n\n if (y[0] >= ALTEZZA+85) { //devo aggungere +85 perche' l'area di gioco comincia dal punto 100,100\n in_gioco = false;\n }\n\n if (y[0] <= 100) {\n in_gioco = false;\n }\n\n if (x[0] >= LARGHEZZA+85) {\n in_gioco = false;\n }\n\n if (x[0] <= 100) {\n in_gioco = false;\n }\n }", "int match(ArrayList<ImageCell> images);", "public static BufferedImage getCharacterImage(char c) throws CharacterNotSupportedException{\n int a = (int)'a';\n int o = (int)'o';\n int p = (int)'p';\n int z = (int)'z';\n \n int zero = (int)'0';\n int nine = (int)'9';\n \n int ac = (int)'A';\n int oc = (int)'O';\n int pc = (int)'P';\n int zc = (int)'Z';\n \n int ci = (int)c;\n \n //System.out.print(c);\n \n if(ci>=zero && ci<=nine){ \n for(int i=zero;i<=nine;i++){//from 0 to 9\n int d = i-zero;//difference between i and zero; a number from 0 to nine-zero.\n if(ci == i){\n return font.getImage(new Location(d,3));\n }\n }\n }\n else if(ci>=ac && ci<=zc){\n for(int i=ac;i<=oc;i++){//from A to O\n int d = i-ac;//difference between i and ac. a number from 0 to pc-ac.\n if(ci == i){\n return font.getImage(new Location(d+1,4));\n }\n }\n for(int j=pc;j<=zc;j++){//from P to Z\n int d = j-pc;//difference between j and pc. a number from 0 to zc-pc.\n if(ci == j){\n return font.getImage(new Location(d,5));\n }\n } \n } \n else if(ci>=a && ci<=z){\n for(int i=a;i<=o;i++){\n int d = i-a;//difference between i and a. a number from 0 to p-a.\n if(ci == i){\n return font.getImage(new Location(d+1,6));\n }\n }\n for(int j=p;j<=z;j++){//from p to z\n int d = j-p;//difference between j and p. Number from 0 to z-p.\n if(ci == j){\n return font.getImage(new Location(d,7));\n }\n } \n }\n else if(ci == ' '){//space\n return font.getImage(new Location(0,0));\n }\n else if(ci == ','){\n return font.getImage(new Location(12,2));\n }\n else if(ci == '.'){\n return font.getImage(new Location(14,2));\n }\n else if(ci == '!'){\n return font.getImage(new Location(1,2));\n }\n else if(ci == '\\''){//apostrophe or '\n return font.getImage(new Location(7,2));\n }\n else if(ci == '#'){\n return font.getImage(new Location(3,2));\n }\n else if(ci == '?'){\n return font.getImage(new Location(15,3));\n }\n else if(ci == ':'){\n return font.getImage(new Location(11,3));\n }\n else if(ci == ';'){\n return font.getImage(new Location(12,3));\n }\n \n throw new CharacterNotSupportedException(\"Character \"+c+\" is not supported in StringImage\");\n }", "public boolean isApplicable(int xCells, int yCells, int tileSize)\n{\n //int actualXCells = m.getOutputImageManager().getMosaic().getFlipH().length;\n //int actualYCells = m.getOutputImageManager().getMosaic().getFlipH()[0].length;\n \n int actualTileSize = (int)cp5.getController(\"sizeOfTiles\").getValue();\n boolean isThereMatch = false;\n \n int actualXCells;\n int actualYCells;\n \n for(int i = 1; i < cp5.getController(\"sizeOfTiles\").getMax()+1; i++)\n {\n actualXCells = (m.getOutputImageManager().getMosaic().getXCanvasSize())/(m.getOutputImageManager().getMosaic().getTiles()[0].getW()*i)+3;\n actualYCells = (m.getOutputImageManager().getMosaic().getYCanvasSize())/(m.getOutputImageManager().getMosaic().getTiles()[0].getH()*i);\n if(xCells == actualXCells && yCells == actualYCells)\n isThereMatch = true;\n //println(xCells, yCells, i);\n //println(actualXCells,actualYCells, actualTileSize);\n //println(\"\");\n }\n return isThereMatch;\n}", "public void checkFoodCollision(){\r\n\t\tint a = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));// converts it to double with 0.00\r\n\t\tint b = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\tfor (int x = a - 1; x < a + 1;x++){\r\n\t\t\tfor(int y = b - 1; y < b + 1; y++){\r\n\t\t\t\tif(x < foodArray.length && x > 0){\r\n\t\t\t\t\tif(y < foodArray[0].length && y > 0){\r\n\t\t\t\t\t\tif (collision(foodArray[x][y],pacmansprite)){\r\n\t\t\t\t\t\t\tif (!foodArray[x][y].getText().equals(\"\")){//if there is food, \"eats\" it\r\n\t\t\t\t\t\t\t\tfoodArray[x][y].setText(\"\");\r\n\t\t\t\t\t\t\t\tfoodCounter --;\r\n\t\t\t\t\t\t\t\tfoodSound();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tcheckwarp();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcheckwarp();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean isOverlapped(Image img1, int x1, int y1, Image img2,\r\n\t\t\tint x2, int y2, int distThreshold) {\r\n\t\tint xCenter1 = x1 + img1.getWidth() / 2;\r\n\t\tint yCenter1 = y1 = img1.getHeight() / 2;\r\n\r\n\t\tint xCenter2 = x2 + img2.getWidth() / 2;\r\n\t\tint yCenter2 = y2 = img2.getHeight() / 2;\r\n\r\n\t\tint xCenterDist = Math.abs(xCenter1 - xCenter2);\r\n\t\tint yCenterDist = Math.abs(yCenter1 - yCenter2);\r\n\r\n\t\treturn distThreshold >= xCenterDist + yCenterDist;\r\n\t}", "public AlignmentPattern find() throws NotFoundException {\n AlignmentPattern handlePossibleCenter;\n AlignmentPattern handlePossibleCenter2;\n int i = this.startX;\n int i2 = this.height;\n int i3 = this.width + i;\n int i4 = this.startY + (i2 / 2);\n int[] iArr = new int[3];\n for (int i5 = 0; i5 < i2; i5++) {\n int i6 = ((i5 & 1) == 0 ? (i5 + 1) / 2 : -((i5 + 1) / 2)) + i4;\n iArr[0] = 0;\n iArr[1] = 0;\n iArr[2] = 0;\n int i7 = i;\n while (i7 < i3 && !this.image.get(i7, i6)) {\n i7++;\n }\n int i8 = 0;\n while (i7 < i3) {\n if (!this.image.get(i7, i6)) {\n if (i8 == 1) {\n i8++;\n }\n iArr[i8] = iArr[i8] + 1;\n } else if (i8 == 1) {\n iArr[1] = iArr[1] + 1;\n } else if (i8 != 2) {\n i8++;\n iArr[i8] = iArr[i8] + 1;\n } else if (foundPatternCross(iArr) && (handlePossibleCenter2 = handlePossibleCenter(iArr, i6, i7)) != null) {\n return handlePossibleCenter2;\n } else {\n iArr[0] = iArr[2];\n iArr[1] = 1;\n iArr[2] = 0;\n i8 = 1;\n }\n i7++;\n }\n if (foundPatternCross(iArr) && (handlePossibleCenter = handlePossibleCenter(iArr, i6, i3)) != null) {\n return handlePossibleCenter;\n }\n }\n if (!this.possibleCenters.isEmpty()) {\n return this.possibleCenters.get(0);\n }\n throw NotFoundException.getNotFoundInstance();\n }", "public void checkForCollisions()\r\n\t{\r\n\t\t//collision detection\r\n\t\tfor(PolygonD obj : objects)\r\n\t\t{\r\n\t\t\t//find points in character that intersected with the scene\r\n\t\t\tfor(PointD p : aSquare.getBoundary().getVerts())\r\n\t\t\t{\r\n\t\t\t\tif(obj.contains(p)){\r\n\t\t\t\t\t//find side that intersected\r\n\t\t\t\t\tdouble minDist = Double.MAX_VALUE;\r\n\t\t\t\t\tPointD prev = obj.getVerts().get(obj.getVerts().size()-1);\r\n\t\t\t\t\tPointD closestPoint = null;\r\n\t\t\t\t\tfor(PointD vert : obj.getVerts())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDouble d = distanceToLine(new Vector(prev, vert), p);\r\n\t\t\t\t\t\tif(d != null && d < minDist)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tminDist = d;\r\n\t\t\t\t\t\t\tclosestPoint = getNearestPointOnLine(new Vector(prev, vert),p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tprev = vert;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tVector offset = new Vector(p, closestPoint);\r\n\t\t\t\t\taSquare.translate(offset);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//find points in scene that intersected with the character\r\n\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t{\r\n\t\t\t\tif(aSquare.getBoundary().contains(p)){\r\n\t\t\t\t\t//find side that intersected\r\n\t\t\t\t\tdouble minDist = Double.MAX_VALUE;\r\n\t\t\t\t\tPointD prev = aSquare.getBoundary().getVerts().get(aSquare.getBoundary().getVerts().size()-1);\r\n\t\t\t\t\tPointD closestPoint = null;\r\n\t\t\t\t\tfor(PointD vert : aSquare.getBoundary().getVerts())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDouble d = distanceToLine(new Vector(prev, vert), p);\r\n\t\t\t\t\t\tif(d != null && d < minDist)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tminDist = d;\r\n\t\t\t\t\t\t\tclosestPoint = getNearestPointOnLine(new Vector(prev, vert),p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tprev = vert;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//get the angle of object by 'feeling' it\r\n\t\t\t\t\tint numVerts = obj.verts.size();\r\n\t\t\t\t\tint objI = obj.verts.indexOf(p);\r\n\t\t\t\t\tint lastI = (objI - 1) % numVerts;\r\n\t\t\t\t\tif(lastI == -1)\r\n\t\t\t\t\t\tlastI = numVerts - 1;\r\n\t\t\t\t\tint nextI = (objI + 1) % numVerts;\r\n\t\t\t\t\t\r\n\t\t\t\t\tint angle = (int)Math.round((new Vector(obj.verts.get(objI), obj.verts.get(lastI))).angleBetween(new Vector(obj.verts.get(objI), obj.verts.get(nextI))));\r\n\t\t\t\t\t\r\n\t\t\t\t\taSquare.sendMsg(new Msg(aSquare, \"Felt Vertex: \" + angle + \"deg\"));//null means status message\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//reverse direction to make aSquare move out of wall\r\n\t\t\t\t\tVector offset = new Vector(closestPoint, p);\r\n\t\t\t\t\taSquare.translate(offset);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\taSquare.getCenter();\r\n\t}", "public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }", "public static boolean isCompoundInTheSameArea(final List<ShapeModel> letters) {\n if (letters == null || letters.size() == 0) {\n return false;\n }\n if (letters.size() == 1) {\n return true;\n }\n int start = 0;\n double distance;\n while (start < letters.size() - 1) {\n for (int i = start; i < letters.size() - 1; i++) {\n distance = ShapeMaths.computeDistanceForPoints(letters.get(i).getCenter(),\n letters.get(i + 1).getCenter());\n if (distance > ShapeComparator.averageSize) {\n return false;\n }\n }\n start++;\n }\n return true;\n }", "@Test\n public void testOverboundsInside() {\n Coordinate a, b, c, d;\n a = new Coordinate2D(2, 2, 0);\n b = new Coordinate2D(3, 3, 0);\n c = new Coordinate2D(2, 0, 0);\n d = new Coordinate2D(4, 2, 0);\n\n int actual, expected;\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(a);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(b);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(c);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(d);\n assertEquals(expected, actual);\n }", "private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private boolean overlaps(Point2D p0, Point2D p1)\n {\n return Math.abs(p0.getX() - p1.getX()) < 0.001 && Math.abs(p0.getY() - p1.getY()) < 0.001;\n }", "void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }", "public boolean kontrolEt(){\n \n for (Ates ateskontrolAtes : atesler) {\n \n if (new Rectangle(ateskontrolAtes.getX(),ateskontrolAtes.getY(),10,20).intersects(new Rectangle(topX,0,20,20))) {\n \n return true;\n \n }\n \n }\n return false;\n \n }", "private void checkCollision() {\n for (int i = snakeSize; i > 0; i--) {\n if (i>4 && x[0] == x[i] && y[0] == y[i]){\n isInGame=false;\n }\n }\n\n if (x[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (x[0] < 0) {\n isInGame=false;\n }\n\n if (y[0] > FIELD_SIZE) {\n isInGame=false;\n }\n\n if (y[0] < 0) {\n isInGame=false;\n }\n\n\n }", "private void checkCollision(Graphics g) {\n\t\t// collision detection for the tanks\n\t\tGraphics2D g2d = (Graphics2D) g.create();\n\t\tRectangle heroRectangle = hero.getBounds();\n\t\tRectangle hero2Rectangle = computer.getBounds();\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\t// hero1 --------------------\n\t\tAffineTransform at = g2d.getTransform();\n\t\tg2d.setTransform(at);\n\t\tat.rotate(Math.toRadians(hero.getAngle()), hero.getX() + hero.getImageWidth() / 2,\n\t\t\t\thero.getY() + hero.getImageHeight() / 2);\n\t\tGeneralPath heroPath = new GeneralPath();\n\t\theroPath.append(heroRectangle.getPathIterator(at), true);\n\t\tArea heroArea = new Area(heroPath);\n\n\t\t// hero2 ------------------------------\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tat.rotate(Math.toRadians(computer.getAngle()), computer.getX() + computer.getImageWidth() / 2,\n\t\t\t\tcomputer.getY() + computer.getImageHeight() / 2);\n\t\tGeneralPath hero2Path = new GeneralPath();\n\t\thero2Path.append(hero2Rectangle.getPathIterator(at), true);\n\t\tArea hero2Area = new Area(hero2Path);\n\n\t\t// tank1 -- tank2 collision\n\t\thero2Area.intersect(heroArea);\n\t\tif (!hero2Area.isEmpty()) {\n\t\t\tplay(\"tank-tank.wav\");\n\t\t\tposxt2 = computer.getX();\n\t\t\tposyt2 = computer.getY();\n\t\t\tposyt1 = hero.getY();\n\t\t\tposxt1 = hero.getX();\n\t\t\t\n\t\t\texplodet2 = true;\n\t\t\texplodet1 = true;\n\t\t\tg2d.setColor(Color.RED);\n\t\t\tg2d.fill(heroArea);\n\t\t\tcomputer.spawnGenerator();\n\t\t\twhile (getValidRespawnPosition((int) computer.getX(), (int) computer.getY(), computer.getImageWidth(),\n\t\t\t\t\tcomputer.getImageHeight())) {\n\t\t\t\tcomputer.spawnGenerator();\n\t\t\t}\n\n\t\t\thero.spawnGenerator();\n\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\thero.spawnGenerator();\n\t\t\t}\n\t\t}\n\n\t\t// tank2 -- tank1 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m = heroMissiles.get(i);\n\t\t\tRectangle tank1BulletRect = m.getBounds();\n\t\t\tGeneralPath tank1BulletPath = new GeneralPath();\n\t\t\ttank1BulletPath.append(tank1BulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tank1BulletArea = new Area(tank1BulletPath);\n\t\t\thero2Area.intersect(tank1BulletArea);\n\t\t\tif (!hero2Area.isEmpty()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposxt2 = computer.getX();\n\t\t\t\tposyt2 = computer.getY();\n\t\t\t\texplodet2 = true;\n\t\t\t\tif (computer.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp1score++;\n\t\t\t\t\tcomputer.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) computer.getX(), (int) computer.getY(),\n\t\t\t\t\t\t\tcomputer.getImageWidth(), computer.getImageHeight())) {\n\t\t\t\t\t\tcomputer.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theroMissiles.remove(i);\n\t\t\t\tcomputer.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// tank1 -- tank1 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tRectangle tankBulletRect = m1.getBounds();\n\t\t\tGeneralPath tankBulletPath = new GeneralPath();\n\t\t\ttankBulletPath.append(tankBulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tankBulletArea = new Area(tankBulletPath);\n\t\t\theroArea.intersect(tankBulletArea);\n\t\t\tif (!heroArea.isEmpty() && m1.isReflected()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposyt1 = hero.getY();\n\t\t\t\tposxt1 = hero.getX();\n\t\t\t\texplodet1 = true;\n\t\t\t\tif (hero.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp2score++;\n\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\theroMissiles.remove(i);\n\t\t\t\thero.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\n\t\t// tank1 -- tank2 bullet collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tRectangle tank2BulletRect = m1.getBounds();\n\t\t\tGeneralPath tank2BulletPath = new GeneralPath();\n\t\t\ttank2BulletPath.append(tank2BulletRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea tank2BulletArea = new Area(tank2BulletPath);\n\t\t\theroArea.intersect(tank2BulletArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\tplay(\"bullet-tank.wav\");\n\t\t\t\tposyt1 = hero.getY();\n\t\t\t\tposxt1 = hero.getX();\n\t\t\t\texplodet1 = true;\n\t\t\t\tif (hero.getCurrentPowerup() == 5) {\n\t\t\t\t} else {\n\t\t\t\t\tp2score++;\n\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\twhile (getValidRespawnPosition((int) hero.getX(), (int) hero.getY(), hero.getImageWidth(),\n\t\t\t\t\t\t\thero.getImageHeight())) {\n\t\t\t\t\t\thero.spawnGenerator();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thero2Missile.remove(i);\n\t\t\t\thero.setCurrentPowerup(0);\n\t\t\t}\n\t\t}\n\n\t\t// tank1 -- powerup collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < powerupArray.size(); i++) {\n\t\t\tRectangle powerupRectangle = (powerupArray.get(i)).getBounds();\n\t\t\tGeneralPath powerupPath = new GeneralPath();\n\t\t\tpowerupPath.append(powerupRectangle.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea powerupArea = new Area(powerupPath);\n\t\t\theroArea.intersect(powerupArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\tplay(\"powerup.wav\");\n\t\t\t\tif ((powerupArray.get(i)).getPowerupType() == 5) {\n\t\t\t\t\thero.setIndex(1);\n\t\t\t\t}\n\t\t\t\tint powerupType = (powerupArray.get(i)).getPowerupType();\n\t\t\t\thero.setCurrentPowerup(powerupType);\n\t\t\t\tpowerupArray.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// tank2 -- powerup collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (int i = 0; i < powerupArray.size(); i++) {\n\t\t\tRectangle powerupRectangle = (powerupArray.get(i)).getBounds();\n\t\t\tGeneralPath powerupPath = new GeneralPath();\n\t\t\tpowerupPath.append(powerupRectangle.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea powerupArea = new Area(powerupPath);\n\t\t\thero2Area.intersect(powerupArea);\n\t\t\tif (!hero2Area.isEmpty()) {\n\t\t\t\tplay(\"powerup.wav\");\n\t\t\t\tint powerupType = (powerupArray.get(i)).getPowerupType();\n\t\t\t\tcomputer.setCurrentPowerup(powerupType);\n\t\t\t\tpowerupArray.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// tank 1 and wall collision\n\t\tat = new AffineTransform();\n\t\tg2d.setTransform(at);\n\t\tfor (Wall w : wallArray) {\n\t\t\tRectangle wallRect = w.getBounds();\n\t\t\tGeneralPath wallPath = new GeneralPath();\n\t\t\twallPath.append(wallRect.getPathIterator(at), true);\n\t\t\theroArea = new Area(heroPath);\n\t\t\thero2Area = new Area(hero2Path);\n\t\t\tArea wallArea = new Area(wallPath);\n\t\t\theroArea.intersect(wallArea);\n\t\t\tif (!heroArea.isEmpty()) {\n\t\t\t\thero.setX(hero.getPrevX());\n\t\t\t\thero.setY(hero.getPrevY());\n\t\t\t}\n\t\t}\n\t}", "private boolean checkCollisions()\n {\n for (int i = 1; i < numFigs; i++)\n if (figures[0].collidedWith(figures[i]))\n return true;\n return false;\n }", "public void draw() {\n PImage grid = loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/tile.png\");\n for(int i = 0 ; i < 10 ; i++){\n for(int j = 0 ; j < 6 ; j++){\n image(grid, i*grid.width, j*grid.height);\n if(gridPlane.get(List.of(i, j)).getOwner() != null){\n if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Red\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red3.png\"), i*grid.width, j*grid.height);\n }\n }else if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Green\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green3.png\"), i*grid.width, j*grid.height);\n }\n }\n }\n }\n }\n if(this.finish == true){\n System.exit(0);\n }\n }", "public boolean generateImageFromText();", "private void checkRegTileCollisions(float deltaTime) {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\t//overlap between player and tile\n\t\t\t\n\t\t\t//experiment with these values to get close to perfect collisions *************************\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t\n\t\t\t\t\t//check y - collisions\n\t\t\t\t\tif(player.position.y > tile.position.y + (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y + 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f; //prev. optimal was .3\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.y < tile.position.y - (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y - 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//check x - collision\n\t\t\t\t\tif(player.position.x > tile.position.x + (tile.bounds.width / 2) + correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x + 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.x < tile.position.x - (tile.bounds.width / 2) - correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x - 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\trecheckTileCollisions(); //fix frame-skipping \n\t}", "public void MeasureMovement(int[] dupCellID, int numslices, int b){\r\n\t\tfor (int x = 1; x < b; x = x + 1){ \r\n\t\t\tIJ.selectWindow(dupCellID[x]);\r\n\t\t\tImagePlus TheDuplicate = WindowManager.getCurrentImage();\r\n\t\t\tIJ.run(\"Threshold...\",\"method='Default'\");\r\n\t\t\tnew WaitForUserDialog(\"Threshold\", \"Threshold yeast cell to select the nucleus, then click OK.\").show();\r\n\t\t\tResultsTable res = new ResultsTable();\r\n\t\t\tdouble[] SliceNumY = new double[numslices];\r\n\t\t\tdouble[] SliceNumX = new double[numslices];\r\n\t\t\t\tfor(int z = 1; z < numslices; z = z+1) {\r\n\t\t\t\t\tTheDuplicate.setSlice(z);\r\n\t\t\t\t\tIJ.run(TheDuplicate, \"Analyze Particles...\", \"size=100-550 pixel circularity=0.00-1.00 show=Nothing display clear include add slice\");\r\n\t\t\t\t\tres = Analyzer.getResultsTable();\r\n\t\t\t\t\t\r\n\t\t\t\t\tint MaxY = TheDuplicate.getHeight();\r\n\t\t\t\t\tint Midpoint = MaxY/2; \r\n\t\t\t\t\tint MaxCount = res.getCounter();\r\n\t\t\t\t\tdouble yVal = 0;\r\n\t\t\t\t\tdouble xVal = 0;\r\n\t\t\t\t\tif (MaxCount > 1){\r\n\t\t\t\t\t\tfor (int c = 0; c < (MaxCount - 1); c = c + 1){\r\n\t\t\t\t\t\t\tyVal = res.getValueAsDouble(7, c);\r\n\t\t\t\t\t\t\txVal = res.getValueAsDouble(6, c);\r\n\t\t\t\t\t\t\tif (Math.abs((yVal/0.13) - Midpoint) <= 10 ){\r\n\t\t\t\t\t\t\t\tyVal = res.getValueAsDouble(7, c);\r\n\t\t\t\t\t\t\t\txVal = res.getValueAsDouble(6, c);\r\n\t\t\t\t\t\t\t}\r\n\t\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 statement to only record the centre X Y \r\n\t\t\t\t\t * coordinate of the nucleus when 1 object has \r\n\t\t\t\t\t * been found. If more than 1 object is identified\r\n\t\t\t\t\t * then the XY coordinates default to zero to prevent \r\n\t\t\t\t\t * other fluorescent cell components from skewing the data\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (MaxCount > 0 && MaxCount <2) {\r\n\t\t\t\t\t\tyVal = res.getValueAsDouble(7, 0);\r\n\t\t\t\t\t\txVal = res.getValueAsDouble(6, 0);\r\n\t\t\t\t\t\tSliceNumY[z] = yVal;\r\n\t\t\t\t\t\tSliceNumX[z] = xVal; \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tSliceNumY[z] = 0;\r\n\t\t\t\t\t\tSliceNumX[z] = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\toutputinfo(SliceNumY, SliceNumX, numslices); //Write the results to text file\r\n\t\t\tTheDuplicate.changes = false;\t\r\n\t\t\tTheDuplicate.close();\r\n\t\t}\r\n\t}", "protected String checkContradictionRaw(BoardState state)\r\n {\r\n \tString error = null;\r\n \tint height = state.getHeight();\r\n \tint width = state.getWidth();\r\n\r\n \tint[][] arrayacross = new int[height][width];\r\n \tint[][] arraydown = new int[height][width];\r\n \tint[][] cellRegions = (int[][])state.getExtraData().get(2);\r\n \tfor(int x = 0; x < width; ++x)\r\n \t{\r\n \t\tfor(int y = 0; y < height; ++y)\r\n \t\t{\r\n \t\t\tarrayacross[y][x] = arraydown[y][x] = 0;\r\n \t\t}\r\n \t}\r\n \t\r\n \tfor(int x = 0; x < width; ++x)\r\n \t{\r\n \t\tfor(int y = 0; y < height; ++y)\r\n \t\t{\r\n \t\t\tif(state.getCellContents(x,y) == 1)\r\n \t\t\t{\r\n \t\t\t\tif(x+1 < width)\r\n \t\t\t\t{\r\n \t\t\t\t\tif(state.getCellContents(x+1,y) == 1)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tif( cellRegions[y][x] != cellRegions[y][x+1])\r\n \t\t\t\t\t\t\tarrayacross[y][x+1] = arrayacross[y][x] + 1;\r\n \t\t\t\t\t\telse\r\n \t\t\t\t\t\t\tarrayacross[y][x+1] = arrayacross[y][x];\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif(y+1 < height)\r\n \t\t\t\t{\r\n \t\t\t\t\tif(state.getCellContents(x,y+1) == 1)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tif( cellRegions[y][x] != cellRegions[y+1][x])\r\n \t\t\t\t\t\t\tarraydown[y+1][x] = arraydown[y][x] + 1;\r\n \t\t\t\t\t\telse\r\n \t\t\t\t\t\t\tarraydown[y+1][x] = arraydown[y][x];\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \tfor(int x = 0; x < width; ++x)\r\n \t{\r\n \t\tfor(int y = 0; y < height; ++y)\r\n \t\t{\r\n \t\t\tif(arrayacross[y][x] > 1 || arraydown[y][x] > 1)\r\n \t\t\t\treturn error;\r\n \t\t}\r\n \t}\r\n \t\r\n \terror = \"A line of white cells does not exceed two rooms.\";\r\n\r\n\t\treturn error;\r\n }", "private boolean isOverlapping( int[] t0, int[] t1)\n {\n if ( t0.length == 1)\n {\n return t0[ 0] >= t1[ 0]; \n }\n else\n {\n return t0[ 1] >= t1[ 0]; \n }\n }", "static int evalPos(char[][] b) {\n\t\t\n\t\t// Check for rows X or O victory\n\n\t\tfor (int row = 0; row < 3; row++) {\n\n\t\t\tif (b[row][0] == b[row][1] && b[row][0] == b[row][2]) {\n\n\t\t\t\tif (b[row][0] == 'X') {\n\t\t\t\t\treturn +10;\n\t\t\t\t}\n\n\t\t\t\telse if (b[row][0] == 'O') {\n\t\t\t\t\treturn -10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// check for columns X or O victory\n\n\t\tfor (int col = 0; col < 3; col++) {\n\n\t\t\tif (b[0][col] == b[1][col] && b[1][0] == b[2][col]) {\n\n\t\t\t\tif (b[0][col] == 'X') {\n\t\t\t\t\treturn +10;\n\t\t\t\t}\n\n\t\t\t\telse if (b[0][col] == 'O') {\n\t\t\t\t\treturn -10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// check for diagonals of X or O victory\n\n\t\tif (b[0][0] == b[1][1] && b[1][1] == b[2][2]) {\n\n\t\t\tif (b[0][0] == 'X') {\n\t\t\t\treturn +10;\n\t\t\t}\n\n\t\t\telse if (b[0][0] == 'O') {\n\t\t\t\treturn -10;\n\t\t\t}\n\n\t\t\tif (b[0][2] == b[1][1] && b[1][1] == b[2][0]) {\n\n\t\t\t\tif (b[0][2] == 'X') {\n\t\t\t\t\treturn +10;\n\t\t\t\t}\n\n\t\t\t\telse if (b[0][2] == 'O') {\n\t\t\t\t\treturn -10;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "@Test\n public void overlappingChutesTest()\n {\n Chute c1;\n Chute c2;\n // set up a board and put the chutes in it.\n {\n Board b = new Board();\n\n Intersection incoming = Intersection.factory(INCOMING);\n Intersection outgoing = Intersection.factory(OUTGOING);\n b.addNode(incoming);\n b.addNode(outgoing);\n\n c1 = new Chute(-1, \"c1\");\n c2 = new Chute(-1, \"c2\");\n\n b.addEdge(incoming, \"0\", outgoing, \"0\", c1);\n b.addEdge(incoming, \"1\", outgoing, \"1\", c2);\n\n b.finishConstruction();\n\n BoardLayout.layout(b);\n }\n\n List<GameCoordinate> layout1 = c1.getLayout();\n List<GameCoordinate> layout2 = c2.getLayout();\n\n double c1X = layout1.get(0).getX();\n double c2X = layout2.get(0).getX();\n\n // make sure that the first x value in each list of spline coordinates is\n // not the same. This is a good enough to tell if the layout is basically\n // the same or not.\n assertNotEquals(\n \"Layout leaves chutes with identical layout information (they completely overlap)\",\n c1X, c2X, 0.1);\n }", "private boolean colisionEstorbos(){\r\n\t\tif(game.estorbo1.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo1, rebotes1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(game.estorbo2.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo2, rebotes2);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(game.estorbo3.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo3, rebotes3);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void adjustMap(MapData mapd){\n int[][] map = mapd.getMap();\n int mx=mapd.getX();\n int my=mapd.getY();\n for(int y=0;y<my;y++){\n for(int x=0;x<mx;x++){\n boolean l = false;\n boolean r = false;\n boolean t = false;\n boolean b = false;\n boolean tl = false;\n boolean tr = false;\n boolean bl = false;\n boolean br = false;\n \n\n if(map[x][y]>0 && map[x][y]<26) {\n int mustSet = 0;\n //LEFT\n if (x > 0 && map[x - 1][y] > 0 && map[x-1][y]<26) {\n l = true;\n }\n //RIGHT\n if (x < mx - 1 && map[x + 1][y] > 0 && map[x+1][y]<26) {\n r = true;\n }\n //TOP\n if (y > 0 && map[x][y - 1] > 0 && map[x][y-1]<26) {\n t = true;\n }\n //Bottom\n if (y < my - 1 && map[x][y + 1] > 0 && map[x][y+1]<26) {\n b = true;\n }\n //TOP LEFT\n if (x > 0 && y > 0 && map[x - 1][y - 1] > 0 && map[x-1][y-1]<26) {\n tl = true;\n }\n //TOP RIGHT\n if (x < mx - 1 && y > 0 && map[x + 1][y - 1] > 0 && map[x+1][y-1]<26) {\n tr = true;\n }\n //Bottom LEFT\n if (x > 0 && y < my - 1 && map[x - 1][y + 1] > 0 && map[x-1][y+1]<26) {\n bl = true;\n }\n //Bottom RIGHT\n if (x < mx - 1 && y < my - 1 && map[x + 1][y + 1] > 0 && map[x+1][y+1]<26) {\n br = true;\n }\n\n //Decide Image to View\n if (!r && !l && !t && !b) {\n mustSet = 23;\n }\n if (r && !l && !t && !b) {\n mustSet = 22;\n }\n if (!r && l && !t && !b) {\n mustSet = 25;\n }\n if (!r && !l && t && !b) {\n mustSet = 21;\n }\n if (!r && !l && !t && b) {\n mustSet = 19;\n }\n if (r && l && !t && !b) {\n mustSet = 24;\n }\n if (!r && !l && t && b) {\n mustSet = 20;\n }\n if (r && !l && t && !b && !tr) {\n mustSet = 11;\n }\n if (r && !l && t && !b && tr) {\n mustSet = 2;\n }\n if (!r && l && t && !b && !tl) {\n mustSet = 12;\n }\n if (!r && l && t && !b && tl) {\n mustSet = 3;\n }\n if (r && !l && !t && b && br) {\n mustSet = 1;\n }\n if (r && !l && !t && b && !br) {\n mustSet = 10;\n }\n if (!r && l && !t && b && bl) {\n mustSet = 4;\n }\n if (r && !l && t && b && !tr) {\n mustSet = 15;\n }\n if (r && !l && t && b && tr) {\n mustSet = 6;\n }\n if (!r && l && t && b && !tl) {\n mustSet = 17;\n }\n if (!r && l && t && b && tl) {\n mustSet = 8;\n }\n if (r && l && !t && b && !br) {\n mustSet = 14;\n }\n if (r && l && !t && b && br) {\n mustSet = 5;\n }\n if (r && l && t && !b && !tr) {\n mustSet = 16;\n }\n if (r && l && t && !b && tr) {\n mustSet = 7;\n }\n if (!r && l && !t && b && !bl) {\n mustSet = 13;\n }\n if (r && l && t && b && br && tl) {\n mustSet = 9;\n }\n if (r && l && t && b && !br && !tl) {\n mustSet = 18;\n }\n\n //System.out.println(\"MAP SEGMENT : \" + mustSet);\n map[x][y] = mustSet;\n }\n mapd.setMap(map);\n }\n }\n System.out.println(\"Map Adjust OK !\");\n }", "private boolean collision1() {\n return game.racket1.getBounds1().intersects(getBounds()); // returns true if the two rectangles intersect\r\n }", "boolean losCompare(double x1, double y1, double x2, double y2, CObject pHo)\r\n {\r\n double delta;\r\n int x, y;\r\n\r\n int xLeft = pHo.hoX - pHo.hoImgXSpot;\r\n int xRight = xLeft + pHo.hoImgWidth;\r\n int yTop = pHo.hoY - pHo.hoImgYSpot;\r\n int yBottom = yTop + pHo.hoImgHeight;\r\n\r\n if (x2 - x1 > y2 - y1)\r\n {\r\n delta = (double) (y2 - y1) / (double) (x2 - x1);\r\n if (x2 > x1)\r\n {\r\n if (xRight < x1 || xLeft >= x2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (xRight < x2 || xLeft >= x1)\r\n {\r\n return false;\r\n }\r\n }\r\n y = (int) (delta * (xLeft - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n y = (int) (delta * (xRight - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n else\r\n {\r\n delta = (double) (x2 - x1) / (double) (y2 - y1);\r\n if (y2 > y1)\r\n {\r\n if (yBottom < y1 || yTop >= y2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (yBottom < y2 || yTop >= y1)\r\n {\r\n return false;\r\n }\r\n }\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n }", "public void scatter(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n final int MAXTILE = 160;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos-20) - SCATTERY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos+20) - SCATTERY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos -5;\r\n }\r\n\r\n }", "public void findKeyPoints(){\n Mat descriptorFrame = new Mat();\n MatOfKeyPoint keyPointFrame = new MatOfKeyPoint();\n\n mDetector.detect(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame);\n mExtractor.compute(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame, descriptorFrame);\n\n /* matches the keypoints of incoming frame with the key points of template */\n MatOfDMatch matches = new MatOfDMatch();\n\n /* if descriptorFrame.cols()==0, mMatcher.match will cause exception */\n if(descriptorFrame.cols()==0){\n lostTrack();\n return;\n }else{\n mMatcher.match(mDescriptor, descriptorFrame, matches);\n mLostTrackCounter = 0;\n mRectBorder = new Scalar(150,200,150);\n }\n\n /* check if pattern exist by checking the sume of DMatch.distance */\n DMatch dm[] = matches.toArray();\n\n /* pattern found. go through matofdmatch again, find all the key points whose distance is lower than threshold */\n /* which, in theory, should mean that these points belong to the pattern */\n KeyPoint kp[] = keyPointFrame.toArray();\n List<Point> frameKp = new ArrayList<>();\n List<KeyPoint> kpNew = new ArrayList<>();\n List<Point3> kpTemplate = new ArrayList<>();\n\n /* form new points to monitor */\n double xTally = 0,\n yTally = 0,\n counter = 0;\n\n /* find the average point to monitor */\n\n for(int i = 0; i<dm.length;i++){\n if(dm[i].distance<800&&dm[i].distance>200){\n kpNew.add(new KeyPoint((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop, kp[dm[i].trainIdx].size));\n frameKp.add(new Point((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop));\n Point3 newPoint3 = new Point3(mArrayListTemplateKP.get(dm[i].queryIdx).x-90,mArrayListTemplateKP.get(dm[i].queryIdx).y-70,0);\n kpTemplate.add(newPoint3);\n\n xTally += kp[dm[i].trainIdx].pt.x + (double)mScanLeft;\n yTally += kp[dm[i].trainIdx].pt.y + (double)mScanTop;\n counter += 1;\n }\n }\n\n if(counter>2){\n mKpMat.fromList(kpNew);\n mRefCoord.fromList(kpTemplate);\n mFrameKP.fromList(frameKp);\n\n mScanCenter = new Point(xTally/counter,yTally/counter);\n }else{\n lostTrack();\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n tvShutter.setBackground(ContextCompat.getDrawable(getApplicationContext(),R.drawable.shutter_active));\n }\n });\n\n adjustROI(mScanCenter, mDetectionBoxSize);\n }", "public static boolean doRegionsOverlap(int x1, int y1, int width1, int height1, int x2, int y2,\n\t\t\t\t\t\t\t\t\t\t int width2, int height2, Orientation orientation) \n\t\t\t\t\t\t\tthrows IllegalArgumentException{\n\t\t\n\t\tswitch (orientation) {\n\t\t\n\t\t\tcase RIGHT: \n\t\t\t\treturn x1 + width1 > x2 &&\n\t\t\t\t\t\tx1 + width1 <= x2 + width2 &&\n\t\t\t\t\t\tCollision.doPixelsOverlap(y1, height1, y2, height2);\n\t\t\tcase LEFT:\n\t\t\t\treturn x1 >= x2 &&\n\t\t\t\t\t\tx1 < x2 + width2 &&\n\t\t\t\t\t\tCollision.doPixelsOverlap(y1, height1, y2, height2);\n\t\t\tcase TOP:\n\t\t\t\treturn \ty1 + height1 > y2 && \n\t\t\t\t\t\ty1 + height1 <= y2 + height2 &&\n\t\t\t\t\t\tCollision.doPixelsOverlap(x1, width1, x2, width2);\t\t\t\t\n\t\t\tcase BOTTOM:\n\t\t\t\treturn \ty1 >= y2 &&\n\t\t\t\t\t\ty1 < y2 + height2 &&\n\t\t\t\t\t\tCollision.doPixelsOverlap(x1, width1, x2, width2);\n\t\t\tcase ALL:\n\t\t\t\treturn ! ( // Dus geeft true als elke deelexpressie false geeft\n\t\t\t\t\t\t (x1 + (width1 - 1) < x2) \n\t\t\t\t\t\t|| (x2 + (width2 - 1) < x1)\n\t\t\t\t\t\t|| (y1 + (height1 - 1) < y2) // top\n\t\t\t\t\t\t|| (y2 + (height2 - 1) < y1) //bottom\n\t\t\t\t\t\n\t\t\t\t);\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Given orientation not implemented!\");\n\t\t}\n\t}", "public boolean intersects(GraphicalFigure fig) {\n\n\t\t// Get the distance between the 2 figures on the x axis\n\t\tint xDist = pos.xCoord() - fig.getOffset().xCoord();\n\n\t\t// Get the distance on the y axis\n\t\tint yDist = pos.yCoord() - fig.getOffset().xCoord();\n\n\t\t// All if's allow for if the x's are the same\n\t\t// Check to see if the figure is on the right and overlaps\n\t\tif (xDist >= 0 && xDist < fig.getWidth()) {\n\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = pos.xCoord(); i < pos.xCoord() + fig.getWidth() - xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\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// All if's allow for if the x's are the same\n\t\t// Check if the figure is on the left and overlaps\n\t\telse if (xDist >= 0 && xDist < width) {\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = fig.getOffset().xCoord(); i < fig.getOffset().xCoord() + width + xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\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// If no intersection found, return false\n\t\treturn false;\n\t}", "private void checkCollision() {\n\n for(int b = 1; b < snakeLength; b++){\n if(xLength[b] == xLength[0] && yLength[b] == yLength[0]) {\n right = false;\n left = false;\n down = false;\n up = false;\n gameOver = true;\n }\n }\n\n if(right){\n if(xLength[0] >= 825) {\n gameOver = true;\n }\n }\n if(left){\n if(xLength[0] <= 50) {\n gameOver = true;\n }\n }\n if(down){\n if(yLength[0] >= 600) {\n gameOver = true;\n }\n }\n if(up){\n if(yLength[0] <= 100) {\n gameOver = true;\n }\n }\n }", "String getCollisionAvoidanceFactor();", "public static void obtenerInfoColisionJugador(Jugador jugador, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = jugador.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.COMIDA) == 0 || col.getTag().compareToIgnoreCase(Objeto.Tag.MONEDA) == 0) {\n //System.out.println(\"COMIDA\");\n for(int i=0;i<4;i++)\n if (lados_ente[i].intersects(lados_col[0])) {\n obj_colision.add(col);\n return;\n }\n }\n\n \n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.ENEMIGO) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"enemigo_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"enemigo_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"enemigo_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"enemigo_izquierda\";\n }\n\n }\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.NPC) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"npc_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"npc_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"npc_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"npc_izquierda\";\n }\n\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}", "static boolean rectanglesOverlap(Rectangle r1, Rectangle r2){\n List<int[]> pointsOfInterest = new ArrayList<int[]>();\n for (int[] i : r1.getPoints())\n for (int[] j : r2.getPoints())\n if (i[0] >= j[0] && i[1] >= j[1])\n pointsOfInterest.add(i); \n\n if (!pointsOfInterest.isEmpty())\n for (int[] i : pointsOfInterest)\n for (int[] j : r2.getPoints())\n if (i[0] <= j[0] && i[1] <= j[1])\n return true;\n\n // Check if any points in rectangle 2 fall in 1\n //List<int[]> pointsOfInterest = new ArrayList<int[]>();\n pointsOfInterest.clear();\n for (int[] i : r2.getPoints())\n for (int[] j : r1.getPoints())\n if (i[0] >= j[0] && i[1] >= j[1])\n pointsOfInterest.add(i); \n\n if (!pointsOfInterest.isEmpty())\n for (int[] i : pointsOfInterest)\n for (int[] j : r1.getPoints())\n if (i[0] <= j[0] && i[1] <= j[1])\n return true;\n \n return false;\n }", "private boolean isDominated(Image img1, Image img2) {\r\n\t\tint size1 = img1.getWidth() * img1.getHeight();\r\n\t\tint size2 = img2.getWidth() * img2.getHeight();\r\n\t\treturn size1 < size2;\r\n\t}", "public static Bitmap cropImage(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n \t int x=5;\n\t\tint y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of combineImg.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n boolean template = false;\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n // Check upper-right section of combineImage.\n x2 = wfMid;\n template = false;\n for ( x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the top-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 >= 0; y3--) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n boolean template = false;\n // Check bottom-left section of combineImage.\n for (x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n template = false;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the bottom-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 < finalBm.getHeight(); y3++) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }", "public static void main(String[] args) throws Exception {\r\n\t\tSystem.out.println(\"Does the captcha contain alphabets (yes or no) :\");\r\n\tScanner sc=new Scanner(System.in);\r\n\tString in=sc.nextLine(); // taking imput (yes or no)\r\n\tif(in.toLowerCase().equals(\"yes\") || in.toLowerCase().equals(\"y\")) // checking if the input is yes\r\n\t{\r\n\t\talpha=true; // if input is yes alpha flag is set to true\r\n\t\tfor (int i=0; i<35; i++) { // for each possible character\r\n\t\t\ttemplates[i] = ImageIO.read(new File(\"template\" + i+ \".gif\")); // taking all the templates along with alphabets into consideration\r\n\t\t}\r\n\r\n\t}\r\n\telse\r\n\t{\r\n\t\talpha=false;// if input is not yes alpha flag is set to true\r\n\t\tfor (int i=0; i<10; i++) { // for each possible character\r\n\t\t\ttemplates[i] = ImageIO.read(new File(\"template\" + i+ \".gif\"));// taking all the templates along with out alphabets into consideration\r\n\t\t}\r\n\t}\r\n\t\tint numTests = 100; // total number of trials\r\n\t\t\r\n\t\t// read in the templates for each character\r\n\t\tfor (int i=0; i<35; i++) { // for each possible character\r\n\t\t\ttemplates[i] = ImageIO.read(new File(\"template\" + i+ \".gif\"));\r\n\t\t}\r\n\r\n\t\tint correct = 0;\r\n\t\tfor (int i=0; i<numTests; i++) {\r\n\t\t\t\r\n\t\t\t// generate a random string\r\n\t\t\tString rightAnswer = randomString(6,alpha);\r\n\t\t\t\r\n\t\t\t// make a captcha from it\r\n\t\t\tBufferedImage captchaImage = generateCaptcha(rightAnswer);\r\n\t\t\t\r\n\t\t\tif (show) {\r\n\t\t\t\tImageIO.write(captchaImage, \"jpeg\", new File(\"see.jpg\"));\r\n\t\t\t\tshow = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// guess the captcha\r\n\t\t\t\r\n\t\t\tString guess = guessCaptcha(captchaImage);\r\n\t\t\t// see if we got it right\r\n\t\t\tif (guess.equals(rightAnswer)) correct++;\r\n\t\t}\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"accuracy: \" + (correct / (double) numTests));\r\n\t}", "private boolean overlappingEvents(BpmnShape s1, BpmnShape s2) {\n\t\t\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX();\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "public boolean tileReachable(float tx, float ty, AgentModel selectedAgent)\r\n/* 243: */ {\r\n/* 244:271 */ float x = selectedAgent.getX() - 0.5F;\r\n/* 245:272 */ float y = selectedAgent.getY() - 0.5F;\r\n/* 246:274 */ switch ((int)selectedAgent.getAngle())\r\n/* 247: */ {\r\n/* 248: */ case 0: \r\n/* 249:277 */ if ((y - 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 250:279 */ return true;\r\n/* 251: */ }\r\n/* 252: */ break;\r\n/* 253: */ case 90: \r\n/* 254:283 */ if ((x + 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 255:285 */ return true;\r\n/* 256: */ }\r\n/* 257: */ break;\r\n/* 258: */ case 180: \r\n/* 259:289 */ if ((y + 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 260:291 */ return true;\r\n/* 261: */ }\r\n/* 262: */ break;\r\n/* 263: */ case 270: \r\n/* 264:295 */ if ((x - 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 265:298 */ return true;\r\n/* 266: */ }\r\n/* 267: */ break;\r\n/* 268: */ }\r\n/* 269:303 */ return false;\r\n/* 270: */ }", "private void checkCollisionGroupInternal() {\n\t\tcheckInternalCollisions();\r\n\t\t\r\n\t\t// for every composite in this Group..\r\n\t\tint clen = _composites.size();\r\n\t\tfor (int j = 0; j < clen; j++) {\r\n\t\t\t\r\n\t\t\tComposite ca = _composites.get(j);\r\n\t\t\t\r\n\t\t\t// .. vs non composite particles and constraints in this group\r\n\t\t\tca.checkCollisionsVsCollection(this);\r\n\t\t\t\r\n\t\t\t// ...vs every other composite in this Group\r\n\t\t\tfor (int i = j + 1; i < clen; i++) {\r\n\t\t\t\tComposite cb = _composites.get(i);\r\n\t\t\t\tca.checkCollisionsVsCollection(cb);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArrayList<Point> getLeftZone(BufferedImage image_dest, Point divider) {\n int count = 0;\n int x_sum = 0;\n int y_sum = 0;\n\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n int xLeftCentroid = 0;\n int yLeftCentroid = 0;\n\n Point point1 = null; //right \t-A\n Point point2 = null; //left\t\t-B\n Point point3 = null; //centroid\t-C\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n //\tint y_divider = divider.y;\n\n for (int y = 0; y < h; y++) {\n for (int x = 0; x <= divider.x; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n\n x_sum += x;\n y_sum += y;\n count++;\n\n //\tSystem.out.print(\"0\");\n } else {\n\n //\t\tSystem.out.print(\"1\");\n }\n\n }\n //\tSystem.out.println(\"\");\n }\n //\tSystem.out.println(\"\\n\\n\");\n\n if (count == 0) {\n //JOptionPane.showMessageDialog(null, \"No black pixels exist\");\n point1 = new Point(0, 0);\n point2 = new Point(0, 0);\n point3 = new Point(0, 0);\n } else {\n double d_yLeftCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xLeftCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yLeftCentroid = (int) Math.round(new Double(d_yLeftCentroid));\n xLeftCentroid = (int) Math.round(new Double(d_xLeftCentroid));\n\n\n point3 = new Point(xLeftCentroid, yLeftCentroid);\n\n Point begin = new Point(0, 0);\n Point end = new Point(divider.x, h);\n\n\n point2 = getLeft(image_dest, point3, begin, end);\n //System.out.println(\"Point 2 :\"+point2);\n\n begin.x = xLeftCentroid;//�\n begin.y = 0;\n\n end.x = divider.x;\n end.y = h;\n\n point1 = getRight(image_dest, point3, begin, end);\n\n }\n points.add(point1);\n points.add(point2);\n points.add(point3);\n return points;\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "boolean judgeValid()\r\n\t{\r\n\t\tif(loc.i>=0 && loc.i<80 && loc.j>=0 && loc.j<80 && des.i>=0 && des.i<80 && des.j>=0 && des.j<80)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}", "@Test\n\tpublic void checkImageBorders() {\n\t\tOrientationHistogramSift alg = new OrientationHistogramSift(36,2.5,1.5);\n\n\t\tGrowQueue_F64 found = alg.getOrientations();\n\n\t\tdouble theta = 1.2;\n\t\tdouble dx = Math.cos(theta);\n\t\tdouble dy = Math.sin(theta);\n\t\tsetAllDerivatives(dx,dy);\n\n\t\talg.setScaleSpace(ss);\n\n\t\talg.process(0,0,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(width-1,0,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(width-1,height-1,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(0,height-1,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t}", "@Override\r\n\tpublic boolean canControlPointOverlap(int index) {\n\t\tswitch (getPointCount()) {\r\n\t\tcase TWO:\r\n\t\t\treturn false;\r\n\t\tcase THREE:\r\n\t\t\treturn index == 1;\r\n\t\tcase FOUR:\r\n\t\t\treturn index == 1 || index == 2;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }", "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "public int[] isScale(Region r) {\n\t\tint[] res=new int[2];\n\t\tint t=0;\n\t\tif (nearlyEquals(sizeX,r.sizeX) && nearlyEquals(sizeY,r.sizeY))\n\t\t\treturn res;\n\t\tif (!nearlyEquals(this.sizeX, r.sizeX) && !nearlyEquals(this.sizeY, r.sizeY)) {\n\t\t\tdouble factor=(double)r.sizeX/sizeX;\n\t\t\tif (Math.abs((double)r.sizeY/sizeY-factor)>0.2)\n\t\t\t\treturn res;\n\t\t\tfor (int i=0;i<sizeX/2;i++) {\n\t\t\t\tfor (int j=0;j<sizeY/2;j++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (info[i][j]!=r.get((int)(r.sizeX/2-Math.abs(sizeX/2-i)*factor), (int)(r.sizeY/2-Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[sizeX-1-i][j]!=r.get((int)(r.sizeX/2+Math.abs(sizeX/2-i)*factor), (int)(r.sizeY/2-Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[i][sizeY-1-j]!=r.get((int)(r.sizeX/2-Math.abs(sizeX/2-i)*factor), (int)(r.sizeY/2+Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[sizeX-1-i][sizeY-1-j]!=r.get((int)(r.sizeX/2+Math.abs(sizeX/2-i)*factor), (int)(r.sizeY/2+Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (t<square/5) {\n\t\t\t\tres[0]=3;\n\t\t\t\tres[1]=(r.sizeX-sizeX)/2;\n\t\t\t} \n\t\t\treturn res;\n\t\t}\n\t\t\n\t\tif (!nearlyEquals(sizeX,r.sizeX)) {\n\t\t\tdouble factor=(double)r.sizeX/sizeX;\n\t\t\tfor (int i=0;i<sizeX/2;i++) {\n\t\t\t\tfor (int j=0;j<sizeY;j++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (info[i][j]!=r.get((int)(r.sizeX/2-Math.abs(sizeX/2-i)*factor), j)) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[sizeX-i-1][j]!=r.get((int)(r.sizeX/2+Math.abs(sizeX/2-i)*factor), j)) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (t<square/5) {\n\t\t\t\tres[0]=1;\n\t\t\t\tres[1]=(r.sizeX-sizeX)/2;\n\t\t\t}\n\t\t} else {\n\t\t\tdouble factor=(double)r.sizeY/sizeY;\n\t\t\tfor (int i=0;i<sizeX;i++) {\n\t\t\t\tfor (int j=0;j<sizeY/2;j++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (info[i][j]!=r.get(i, (int)(r.sizeY/2-Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\tif (info[i][sizeY-1-j]!=r.get(i, (int)(r.sizeY/2-Math.abs(sizeY/2-j)*factor))) \n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (t<square/5) {\n\t\t\t\tres[0]=2;\n\t\t\t\tres[1]=(r.sizeY-sizeY)/2;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public static int area_intersection(int blx1, int bly1, int trx1,int try1, int blx2, int bly2,int trx2,int try2){\r\n\t\tint base = 0, height = 0, area = 0;\r\n\t\r\n\t\tif (blx2>=blx1 && blx2<=trx1){\r\n\t\t\tif (bly2>=bly1 && bly2<=try1){\r\n\tif (trx2<=trx1 && trx2>=blx1){\r\n\tbase = trx2 - blx2;\r\n\theight = try2 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\telse{\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if( bly1>=bly2 && bly1<=try2){\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (bly2>=bly1 && bly2<=try1){\r\n\tif( blx1>=blx2 && blx1<=trx2){\r\n\tbase = trx1 - blx1;\r\n\theight = try2 - bly2;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (blx1>=blx2 && blx1<=trx2){\r\n\t if( bly1>=bly2 && bly1<=try2){\r\n\tbase = trx1 - blx1;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t }\r\n\tif( trx2>=blx1 && trx2<=trx1){\r\n\tbase = trx2 - blx1;\r\n\theight = try2 - bly1;\r\n\tarea = base * height;\r\n\t}\r\n\t\t}\r\n\t//end\r\n\r\n\t\telse if (bly2>=bly1 && bly2<=try1){\r\n\tbase = trx1 - blx2;\r\n\theight = try1 - bly1;\r\n\tarea = base * height;\r\n\t\t}\r\n\t//end\r\n\r\n\t\t//else if(trx1 - blx2)==0 || (try1 - bly1)==0 || !(trx1>blx2 and trx2>trx1 && bly2<=bly1){\r\n\t//area = 0\r\n\t\t//}\r\n\t//end\r\n\t \r\n\t//if( area && area<=2147483647 )\r\n\t//area\r\n\t//else\r\n\t//-1\r\n\t//end\r\n\r\n\t\treturn area;\r\n\t}", "public void collisionVS() {\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).tick();\n\n if (enemyBullets.get(i).getImgY() >= 750 || enemyBullets.get(i).getImgY() <= 40) {\n\n enemyBullets.get(i).bulletImage.delete();\n enemyBullets.remove(enemyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(enemyBullets.get(i).getHitbox())) {\n\n spaceShips.get(j).hit();\n enemyBullets.get(i).hit();\n enemyBullets.remove(enemyBullets.get(i));\n\n if (spaceShips.get(j).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(j));\n }\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n }\n\n //////////////////////////////////////////////////////////////////////////////////////////////\n\n // SPACESHIPS WITH ENEMIES AND ENEMY BULLETS\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).tick();\n\n // WITH ENEMIES\n for (int j = 0; j < enemies.size(); j++) {\n if (spaceShips.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n spaceShips.get(i).hit();\n enemies.get(j).hit(20);\n enemies.remove(enemies.get(j));\n\n if (spaceShips.get(i).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(i));\n }\n\n //if it collides with one leave the for loop\n j = enemies.size();\n }\n }\n }\n }", "private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "private boolean checkOverlap(int row, int col, int length){\n \tif(!inBounds(row,col)){\n \t\treturn false;\n \t}\n \tfor(int i = row; i < row + length; i++ ){\n\t\t\tfor(int j = col; j < col + length; j++){\n\t\t\t\tif(grid[i][col] == 1 || row + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t\tif(grid[row][j] == 1 || col + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t}\n \t\t\n \t}\n \treturn true;\n }", "String getUseCollisionAvoidance();", "public boolean CheckVictory()\n {\n\n for (int i = 0; i < 6; i++) {\n if(isFiveAligned(\n getCell(i, 0),\n getCell(i, 1),\n getCell(i, 2),\n getCell(i, 3),\n getCell(i, 4),\n getCell(i, 5) )){\n Winner=getCell(i, 2);\n return true;\n }\n }\n\n for (int i = 0; i < 6; i++) {\n if(isFiveAligned(\n getCell(0,i),\n getCell(1,i),\n getCell(2,i),\n getCell(3,i),\n getCell(4,i),\n getCell(5,i) )){\n Winner=getCell(2, i);\n return true;\n }\n }\n CellType[] arrTypes={getCell(0, 0),getCell(1, 1),getCell(2, 2),getCell(3, 3),\n getCell(4, 4),getCell(5, 5)};\n\n \n if(isFiveAligned(arrTypes))\n {\n Winner=arrTypes[2];\n return true;\n }\n\n CellType[] REVERSE_arrTypes={getCell(0, 5),getCell(1, 4),getCell(2, 3),getCell(3, 2),\n getCell(4, 1),getCell(5, 0)};\n\n \n\n if(isFiveAligned(REVERSE_arrTypes))\n {\n Winner=REVERSE_arrTypes[2]; \n return true;\n }\n\n\n if(isFiveAligned(new CellType[]{getCell(0, 1),\n getCell(1, 2),\n getCell(2, 3),\n getCell(3, 4),\n getCell(4, 5),\n CellType.None\n })) {\n Winner=getCell(3, 4);\n return true;\n }\n \n if(isFiveAligned(new CellType[]{getCell(1, 0),\n getCell(2, 1),\n getCell(3, 2),\n getCell(4, 3),\n getCell(5, 4),\n CellType.None\n })) {\n Winner=getCell(4, 3);\n return true;\n }\n\n if(isFiveAligned(new CellType[]{\n getCell(4, 0),\n getCell(3, 1),\n getCell(2, 2),\n getCell(1, 3),\n getCell(0, 4),\n CellType.None\n \n })){\n Winner=getCell(2, 2);\n return true;}\n\n if(isFiveAligned(new CellType[]{\n getCell(5, 1),\n getCell(4, 2),\n getCell(3, 3),\n getCell(2, 4),\n getCell(1, 5),\n CellType.None\n \n })){\n Winner=getCell(3, 3);\n return true;}\n\n \n \n\n\n \n\n return false;\n }", "public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean detectCollisions(GameState mGaemState,ArrayList<GameObject> objects,SoundEngine se,ParticleSystem ps){\n boolean playerHit = false;\n for (GameObject go1:objects){\n if (go1.checkActive()){\n //the 1st object is active\n //so worth checking\n\n for (GameObject go2:objects){\n if (go2.checkActive()){\n //the 2nd object is active\n //so worth checking\n if (RectF.intersects(go1.getTransform().getCollider(),go2.getTransform().getCollider())){\n\n //switch goes here\n //there has been a collision\n //but does it matter?\n switch (go1.getTag() + \" with \" + go2.getTag()){\n case \"Player with Alien Laser\":\n playerHit = true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player with Alien\":\n playerHit =true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player Laser with Alien\":\n mGaemState.increaseScore();\n //respawn the alien\n ps.emitParticles(new PointF(go2.getTransform().getLocation().x,go2.getTransform().getLocation().y));\n go2.setInactive();\n go2.spawn(objects.get(Level.PLAYER_INDEX).getTransform());\n go1.setInactive();\n se.playAlienExplode();\n\n break;\n\n default:\n break;\n }\n\n }\n }\n }\n }\n }\n return playerHit;\n }", "protected boolean checkRep() {\n if ( this.getX() < 0 || this.getY() < 0 || this.getX() >= 20 || this.getY() >= 20 ) {\n return false;\n }\n return true;\n }", "private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }", "static boolean doTheseOverlap(RBox b1, RBox b2){\n\t\t\n\t\tif(contains(b1,b2))\n\t\t\treturn true;\n\t\t\n\t\tif(contains(b2,b1))\n\t\t\treturn true;\n\t\t\n\t\tboolean xOverlap=false ;\n\t\tboolean yOverlap=false ;\n\t\t\n\t\tif(b1.xmax==b2.xmin && b2.xmax > b1.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif(b2.xmax==b1.xmin && b1.xmax > b2.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif((b1.xmin<=b2.xmin&&b1.xmax>=b2.xmax)||(b2.xmin<=b1.xmin&&b2.xmax>=b1.xmax))\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\tif(b1.xmin >= b2.xmin && b1.xmin <= b2.xmax)\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\t if(b1.xmax >= b2.xmin && b1.xmax <= b2.xmax)\n\t\t \txOverlap = true;\n\t\t else{//System.out.println(\"X overlap\");\n\t\t \treturn false;}\n\t\t\n\t\t\n\t\tif((b1.ymin<=b2.ymin&&b1.ymax>=b2.ymax)||(b2.ymin<=b1.ymin&&b2.ymax>=b1.ymax))\n\t\t yOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\tif(b1.ymin>=b2.ymin && b1.ymin<=b2.ymax)\n\t\t\tyOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\t\tif(b1.ymax>=b2.ymin && b1.ymax<=b2.ymax)\n\t\t\t\tyOverlap=true;\n\t\t\telse{\n\t\t\t\t//System.out.println(\"Y overlap\");\n\t\t\t\treturn false;}\n\t\t\n\t\tif(xOverlap&&yOverlap)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public boolean isInRangeToRenderDist(double distance) {\n/* 38 */ return (distance < 4096.0D);\n/* */ }", "public ArrayList<Point> getRightZone(BufferedImage image_dest, Point divider) {\n int count = 0;\n int x_sum = 0;\n int y_sum = 0;\n\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n int xRightCentroid = 0;\n int yRightCentroid = 0;\n\n Point point1 = null; //right \t-A\n Point point2 = null; //left\t\t-B\n Point point3 = null; //centroid\t-C\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n //\tint y_divider = divider.y;\n\n for (int y = 0; y < h; y++) {\n for (int x = divider.x; x < w; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n\n x_sum += x;\n y_sum += y;\n count++;\n\n //\t\t\t\tSystem.out.print(\"0\");\n } else {\n //\n//\t\t\t\t\tSystem.out.print(\"1\");\n }\n\n }\n //\t\tSystem.out.println(\"\");\n }\n//\t\tSystem.out.println(\"\\n\\n\");\n\n if (count == 0) {\n //JOptionPane.showMessageDialog(null, \"No black pixels exist\");\n point1 = new Point(0, 0);\n point2 = new Point(0, 0);\n point3 = new Point(0, 0);\n } else {\n\n double d_yRightCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xRightCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yRightCentroid = (int) Math.round(new Double(d_yRightCentroid));\n xRightCentroid = (int) Math.round(new Double(d_xRightCentroid));\n\n //xRightCentroid = (int)Math.round(new Double(x_sum)/new Double(count));\n //yRightCentroid = (int)Math.round(new Double(y_sum)/new Double(count));\n\n point3 = new Point(xRightCentroid, yRightCentroid);\n\n Point begin = new Point(divider.x, 0);\n Point end = new Point(xRightCentroid, h);\n\n\n point2 = getLeft(image_dest, point3, begin, end);\n //System.out.println(\"Point 2 :\"+point2);\n\n begin.x = xRightCentroid;//�\n begin.y = 0;\n\n end.x = w;\n end.y = h;\n\n point1 = getRight(image_dest, point3, begin, end);\n\n }\n points.add(point1);\n points.add(point2);\n points.add(point3);\n\n status = \"reset\";\n return points;\n }", "@Override\n\tpublic int compare(Letter o1, Letter o2) {\n\t\treturn o2.getWidth() - o2.getWidth();\n\t}", "boolean hasImageByTransform();", "public double calcAvgHOverlapCharHeight(ImageChop chopOverlap, double dAvgStrokeWidth) {\n ImageChops imgChops = ExprSeperator.extractConnectedPieces(this);\n ImageChops imgChopsOverlap = ExprSeperator.extractConnectedPieces(chopOverlap);\n \n double dAvgHeight = 0;\n int nNumOfCntedChars = 0;\n for (int idx = 0; idx < imgChops.mlistChops.size(); idx ++) {\n byte[][] barrayThis = imgChops.mlistChops.get(idx).mbarrayImg;\n int nThisLeft = imgChops.mlistChops.get(idx).mnLeft;\n int nThisTop = imgChops.mlistChops.get(idx).mnTop;\n int nThisWidth = imgChops.mlistChops.get(idx).mnWidth;\n int nThisHeight = imgChops.mlistChops.get(idx).mnHeight;\n double dThisCharHeight = nThisHeight;\n if (nThisWidth != 0 && nThisHeight != 0) {\n boolean bOverlapped = false;\n for (int idx3 = 0; idx3 < imgChopsOverlap.mlistChops.size(); idx3 ++) {\n int nLeftThresh = imgChopsOverlap.mlistChops.get(idx3).getLeftInOriginalImg();\n int nRightP1Thresh = imgChopsOverlap.mlistChops.get(idx3).getRightP1InOriginalImg();\n if (imgChops.mlistChops.get(idx).mnLeft < mapOriginalXIdx2This(nRightP1Thresh)\n || imgChops.mlistChops.get(idx).getRightPlus1() > mapOriginalXIdx2This(nLeftThresh)) {\n bOverlapped = true;\n break;\n }\n }\n if (!bOverlapped) { // not overlap, go to see the next one.\n continue;\n }\n \n double dMaxCutHeight = 0;\n int nLastAllThroughDivIdx = nThisTop - 1;\n int idx2 = nThisTop;\n for (; idx2 < imgChops.mlistChops.get(idx).getBottomPlus1(); idx2 ++) {\n boolean bIsAllThroughLn = true;\n for (int idx1 = nThisLeft; idx1 < imgChops.mlistChops.get(idx).getRightPlus1(); idx1 ++) {\n if (barrayThis[idx1][idx2] == 0) {\n bIsAllThroughLn = false;\n break;\n }\n }\n if (bIsAllThroughLn && (idx2 - nLastAllThroughDivIdx - 1) > dMaxCutHeight) {\n dMaxCutHeight = idx2 - nLastAllThroughDivIdx - 1;\n }\n }\n if ((idx2 - nLastAllThroughDivIdx - 1) > dMaxCutHeight) {\n dMaxCutHeight = idx2 - nLastAllThroughDivIdx - 1;\n }\n dThisCharHeight = dMaxCutHeight;\n }\n if (dThisCharHeight >= ConstantsMgr.msnMinCharHeightInUnit && dThisCharHeight > dAvgStrokeWidth) {\n // a seperated point or a disconnected stroke may significantly drag down dAvgHeight value.\n dAvgHeight += dThisCharHeight;\n nNumOfCntedChars ++;\n }\n }\n if (nNumOfCntedChars != 0) {\n dAvgHeight /= nNumOfCntedChars;\n\n }\n return Math.max(dAvgHeight, Math.max(ConstantsMgr.msnMinCharHeightInUnit, dAvgStrokeWidth));\n }", "private void checkIfR2D2Found() throws Exception {\n\t\tint tortoiseLocationX = Tortoise.getX();\n\t\tint tortoiseLocationY = Tortoise.getY();\n\n\t\tif (tortoiseLocationX <= 510 && tortoiseLocationX >= 505 && tortoiseLocationY >= 110 && tortoiseLocationY <= 115)\n\t\t\tplayEureka();\n\t}", "public static boolean collision(String direction, int speed){\n\t\tMain.p.updateHitboxs();\n\t\t/*LeftBottomHitbox[0] = Main.p.xLeft;\n\t\tLeftBottomHitbox[1] = Main.p.yLeft;\n\t\tRightBottomHitbox[0] = Main.p.xRight;\n\t\tRightBottomHitbox[1] = Main.p.yRight;\n\t\tLeftTopHitbox[0] = Main.p.xLeft;\n\t\tLeftTopHitbox[1] = Main.p.yLeft-(3 * Main.SCALE);\n\t\tRightTopHitbox[0] = Main.p.xRight;\n\t\tRightTopHitbox[1] = Main.p.yRight-(3 * Main.SCALE);\n\t\tif(!direction.equals(\"p\")){\n\t\t\tresult1 = checkCollision(speed, direction, LeftBottomHitbox);\n\t\t\tresult2 = checkCollision(speed, direction, RightBottomHitbox);\n\t\t\tresult3 = checkCollision(speed, direction, LeftTopHitbox);\n\t\t\tresult4 = checkCollision(speed, direction, RightTopHitbox);\n\t\t\tif(animationSwitchCount == 4)\n\t\t\t\tMain.p.pg.animationSet = 1;\n\t\t\tanimationSwitchCount = 0;\n\t\t\treturn result1 || result2 || result3 || result4;\n\t\t}\n\t\tresult1 = checkPlayerCollision(LeftBottomHitbox[0], LeftBottomHitbox[1]);\n\t\tresult2 = checkPlayerCollision(RightBottomHitbox[0], RightBottomHitbox[1]);\n\t\tresult3 = checkPlayerCollision(LeftTopHitbox[0], LeftTopHitbox[1]);\n\t\tresult4 = checkPlayerCollision(RightTopHitbox[0], RightTopHitbox[1]);\n\t\treturn result1 || result2 || result3 || result4;\n\t\t\t*/\n\t\tArrayList<int[]> tiles = new ArrayList<int[]>();\n\t\tint tempX, tempY;\n\t\tboolean copy = false, xOverextended = false, yOverextended = false;\n\t\t\n\t\tif(direction.equals(\"x\")){\n\t\t\tx = Main.p.getXStart() + speed;\n\t\t\ty = Main.p.getYStart();\n\t\t}\n\t\telse if (direction.equals(\"y\")){\n\t\t\tx = Main.p.getXStart();\n\t\t\ty = Main.p.getYStart() + speed;\n\t\t}\n\t\tif(!direction.equals(\"p\")){\n\t\t\tfor(int yCount = 0; yCount <= Main.p.getCOLLISIONSIZEY(); yCount++){\n\t\t\t\ttempY = y + (yCount * Main.T);\n\t\t\t\tif(tempY > y + Main.p.getCOLLISIONDISTANCEY()){\n\t\t\t\t\ttempY = y + Main.p.getCOLLISIONDISTANCEY();\n\t\t\t\t\tyOverextended = true;\n\t\t\t\t}\n\t\t\t\tfor(int xCount = 0; xCount <= Main.p.getCOLLISIONSIZEX(); xCount++){\n\t\t\t\t\ttempX = x + (xCount * Main.T);\n\t\t\t\t\tif(tempX > x + Main.p.getCOLLISIONDISTANCEX()){\n\t\t\t\t\t\txOverextended = true;\n\t\t\t\t\t\ttempX = x + Main.p.getCOLLISIONDISTANCEX();\n\t\t\t\t\t}\n\t\t\t\t\ttempTile = Main.p.getCurrentTile(tempX, tempY);\n\t\t\t\t\tfor(int i = 0; i < tiles.size(); i++){\n\t\t\t\t\t\tif(tempTile[0] == tiles.get(i)[0] && tempTile[1] == tiles.get(i)[1]){\n\t\t\t\t\t\t\tcopy = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(!copy){\n\t\t\t\t\t\tif(collisionOccured())\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\ttiles.add(tempTile);\n\t\t\t\t\t}\n\t\t\t\t\tcopy = false;\n\t\t\t\t\tif(xOverextended){\n\t\t\t\t\t\txOverextended = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(yOverextended)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//If no tile collision is found sprite collisions are checked\n\t\tfor(int i = 0; i < Main.currentLocation.ls.sprites.size(); i++){\n\t\t\tif(Main.currentLocation.ls.sprites.get(i) != null && Main.currentLocation.ls.sprites.get(i).playerCollision(x, y))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private int attack1Vertical() { //dikey tekli atak fonksiyonu\r\n int status = -1;\r\n\r\n for (int i = 0; i < column; ++i) {\r\n for (int j = row - 1; j > 0; --j) {\r\n if (gameCells[j][i].getCell() == 'O') {\r\n if (isLegal(j - 1, i)) {\r\n status = i;\r\n return status;\r\n }\r\n }\r\n }\r\n }\r\n return status;\r\n }", "private void checkCollisionwithMonster() {\n\t\tr1.set(this.getX(),this.getY(),this.getWidth(),this.getHeight());\r\n\t\t\r\n\t\t//check collision with monsters\t\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(TreeMonster treeMon : treeMonArray){\r\n\t\t\t\tif(treeMon.isVisible()){\r\n\t\t\t\t\tr2.set(treeMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(SlimeMonster slimeMon : slimeMonArray){\r\n\t\t\t\tif(slimeMon.isVisible()){\r\n\t\t\t\t\tr2.set(slimeMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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\t\r\n\t\tif(Math.ceil(this.getColor().a) == 1 && System.nanoTime() - oldTime >= cdTime){\r\n\t\t\tfor(FireMonster fireMon : fireMonArray){\r\n\t\t\t\tif(fireMon.isVisible()){\r\n\t\t\t\t\tr2.set(fireMon.getCollisionBox());\r\n\t\t\t\t\tif (!r1.overlaps(r2)) continue;\r\n\t\t\t\t\toldTime = System.nanoTime();\r\n\t\t\t\t\tsetHealth(health-1);\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}", "private boolean checkImage(int row, int col, String imageName) {\n\t\tDirectionalPanel[] room = rooms[row][col];\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tString roomImageName = room[i].getImageName();\n\t\t\tif (roomImageName != null && roomImageName.equals(imageName)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean checkOverlap(Character d, Character e) {\n\t\tRect dRec = d.getDstRect();\n\t\tRect eRec = e.getDstRect();\n\t\t\n\t\tint intX = (int) eRec.exactCenterX();\n\t\tint intY = (int) eRec.exactCenterY();\n\t\t\n\t\treturn dRec.contains(intX,intY);\n\t}", "private void d() {\n/* 287 */ int tIdx = getTileIdx();\n/* */ \n/* 289 */ if (this.e.getNumComps() < 3) {\n/* 290 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 293 */ if (this.e.getTileCompWidth(tIdx, 0) != this.e.getTileCompWidth(tIdx, 1) || this.e\n/* 294 */ .getTileCompWidth(tIdx, 0) != this.e.getTileCompWidth(tIdx, 2) || this.e\n/* 295 */ .getTileCompHeight(tIdx, 0) != this.e.getTileCompHeight(tIdx, 1) || this.e\n/* 296 */ .getTileCompHeight(tIdx, 0) != this.e.getTileCompHeight(tIdx, 2)) {\n/* 297 */ throw new IllegalArgumentException(\"Can not use ICT on components with different dimensions\");\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 303 */ int[] utd = new int[this.e.getNumComps()];\n/* 304 */ for (int i = utd.length - 1; i >= 0; i--) {\n/* 305 */ utd[i] = this.e.getNomRangeBits(i);\n/* */ }\n/* 307 */ this.i = a(utd, 2, (int[])null);\n/* */ }", "public int check4CollisionWithBlue(Player player)\n {\n int number_of_collisions = 0;\n int x_cord = getMidPoint(player.x_cordinate);\n int y_cord = getMidPoint(player.y_cordinate);\n int blux1 = getMidPoint(getBlue_player1().x_cordinate);//blue_player1.x_cordinate;\n int blux2 = getMidPoint(getBlue_player2().x_cordinate);\n int blux3 = getMidPoint(getBlue_player3().x_cordinate);//blue_player3.x_cordinate;\n int blux4 = getMidPoint(getBlue_player4().x_cordinate);//blue_player4.x_cordinate;\n int bluy1 = getMidPoint(getBlue_player1().y_cordinate);//blue_player1.y_cordinate;\n int bluy2 = getMidPoint(getBlue_player2().y_cordinate);//blue_player2.y_cordinate;\n int bluy3 = getMidPoint(getBlue_player3().y_cordinate);//blue_player3.y_cordinate;\n int bluy4 = getMidPoint(getBlue_player4().y_cordinate);//blue_player4.y_cordinate;\n number_of_collisions += collisionDetection(x_cord, y_cord, blux1, bluy1);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux2, bluy2);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux3, bluy3);\n number_of_collisions += collisionDetection(x_cord, y_cord, blux4, bluy4);\n return number_of_collisions;\n }", "public void checkCollisions(List<Entity> listOfCloseObjects){\n\n for(Entity first : listOfCloseObjects){\n for(Entity second : listOfCloseObjects){\n if(first!=second) {\n\n String typeOfCollision = \"\";\n\n //check for a collision between the bounding boxes\n if (first.getBoundingBox().intersects(second.getBoundingBox())) {\n if(first.getEntityType().equals(EntityType.WALL) && second.getEntityType().equals(EntityType.PLAYER)) {\n typeOfCollision = \"playerWithWall\";\n }\n else if(first.getEntityType().equals(EntityType.FLOOR_HAZARD) && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"playerWithHazard\";\n }\n else if(first.getEntityType().equals(EntityType.MELEE_WEAPON) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"swordWithEnemy\";\n }\n else if(first instanceof Bullet && second.getEntityType().equals(EntityType.WALL)){\n typeOfCollision = \"bulletWithWall\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.WALL)){\n typeOfCollision = \"enemyWithWall\";\n }\n else if((first.getEntityType().equals(EntityType.DEFAULT_BULLET) || first.getEntityType().equals(EntityType.SHOTGUN_BULLET) || first.getEntityType().equals(EntityType.FAST_BULLET)) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"enemyWithBullet\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.ENEMY)){\n typeOfCollision = \"enemyWithEnemy\";\n }\n else if(first.getEntityType().equals(EntityType.ENEMY) && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"enemyWithPlayer\";\n }\n else if((first.getEntityType().equals(EntityType.SWORD) || first.getEntityType().equals(EntityType.SHOTGUN) || first.getEntityType().equals(EntityType.PISTOL) || first.getEntityType().equals(EntityType.ASSAULT_RIFLE) ||\n first.getEntityType().equals(EntityType.SHIELD) || first.getEntityType().equals(EntityType.SPEEDBOOST) || first.getEntityType().equals(EntityType.HEART))\n && second.getEntityType().equals(EntityType.PLAYER)){\n typeOfCollision = \"itemWithPlayer\";\n }\n\n if(!typeOfCollision.isEmpty())\n collide(typeOfCollision, first, second);\n }\n }\n }\n }\n\n }", "public boolean isDifficult()\n {\n int count = 0;\n for (int i = 1; i < markers.length; i++) {\n if (Math.abs(markers[i] - markers[i-1]) >= 30){\n count++;\n }\n }\n return (count >= 3);\n }", "private void checkBoundaries() {\n Position moveTo = pos.copy();\n boolean move = false;\n float minZoom = getZoomToFit();\n float maxZoom = minZoom * 3;\n if (maxZoom < getZoomToFill()) maxZoom = getZoomToFill();\n \n if (pos.zoom < minZoom) {\n moveTo = new Position(minZoom, 0, 0);\n move = true;\n } else { \n if (pos.zoom > maxZoom) {\n moveTo.zoom = maxZoom;\n \n float viewXcenter = 0.5f * getWidth();\n float viewYcenter = 0.5f * getHeight();\n double centerXcontentBefore = getContentX(viewXcenter, pos);\n double centerYcontentBefore = getContentY(viewYcenter, pos);\n moveTo.x = (float) (viewXcenter - centerXcontentBefore * maxZoom - 0.5f * getWidth());\n moveTo.y = (float) (viewYcenter - centerYcontentBefore * maxZoom - 0.5f * getHeight());\n \n move = true;\n }\n \n RectF imageBounds = new RectF();\n float zoomedWidth = (flippedDimensions() ? contentWorkHeight : contentWorkWidth) * moveTo.zoom;\n float zoomedHeight = (flippedDimensions() ? contentWorkWidth : contentWorkHeight) * moveTo.zoom;\n imageBounds.left = -0.5f * zoomedWidth + moveTo.x;\n imageBounds.right = 0.5f * zoomedWidth + moveTo.x;\n imageBounds.top = -0.5f * zoomedHeight + moveTo.y;\n imageBounds.bottom = 0.5f * zoomedHeight + moveTo.y;\n \n if (debug) Log.w(TAG, \"checkBoundaries() current image bounds: \" + imageBounds.left + \"x\" + imageBounds.top + \" -> \" + imageBounds.right + \"x\" + imageBounds.bottom);\n \n // adjust offset to fit in boundaries\n RectF offsetBounds = new RectF();\n if (imageBounds.width() - getWidth() > 0) {\n offsetBounds.left = -0.5f * (imageBounds.width() - getWidth());\n offsetBounds.right = 0.5f * (imageBounds.width() - getWidth());\n }\n if (imageBounds.height() - getHeight() > 0) {\n offsetBounds.top = -0.5f * (imageBounds.height() - getHeight());\n offsetBounds.bottom = 0.5f * (imageBounds.height() - getHeight());\n }\n if (imageBounds.centerX() < offsetBounds.left) { \n moveTo.x = offsetBounds.left; \n move = true;\n } else if (imageBounds.centerX() > offsetBounds.right) {\n moveTo.x = offsetBounds.right;\n move = true;\n } \n \n if (imageBounds.centerY() < offsetBounds.top) { \n moveTo.y = offsetBounds.top; \n move = true; \n } else if (imageBounds.centerY() > offsetBounds.bottom) { \n moveTo.y = offsetBounds.bottom; \n move = true; \n }\n }\n \n if (move) {\n final Position finalMoveTo = moveTo;\n move(new Move() {\n Position startPos = new Position(pos);\n Position toPos = finalMoveTo;\n long durationMs = 200;\n public boolean handleMove(Position result, long currentTime, long startedAt) {\n if (currentTime - startedAt > durationMs) {\n result.set(toPos);\n return false;\n }\n \n double remainingProgress = 1.0 - (1.0 * (currentTime - startedAt) / durationMs);\n result.zoom = (float) (toPos.zoom + (startPos.zoom - toPos.zoom) * remainingProgress); \n result.x = (float) (toPos.x + (startPos.x - toPos.x) * remainingProgress);\n result.y = (float) (toPos.y + (startPos.y - toPos.y) * remainingProgress);\n return true;\n }\n });\n }\n if (debug) Log.i(TAG, \"checkBoundaries() \" + (move ? \"moveTo: \" + moveTo : \"ok\"));\n \n }", "public boolean percolates()\r\n { return uf.find(0) == uf.find(dimension*dimension + 1); }", "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "public boolean win(){\n\t\tint num=0;//number of the boxes are in the areas\n\t\tfor(int i=0;i<boxes.size();i++){\n\t\t\tbox a =boxes.get(i);\n\t\t\tfor(int j=0;j<areas.size();j++){\n\t\t\t\tarea b = areas.get(j);\n\t\t\t\tif(a.getX()==b.getX()&&a.getY()==b.getY()){//check whether all the boxes have been in the certain areas\n\t\t\t\t\t//System.out.println(j);\n\t\t\t\t\t//System.out.println(\"area: \"+j);\n\t\t\t\t\tb.emptyImage();//clear the original image of boxes\n\t\t\t\t a.setImage();//change to the colorful one\n\t\t\t\t\tnum++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//\t b.setImage(); \t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(num==areas.size()){//whether their number are same \n\t\t\tnum=0;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void checkVertical() {\n\n for(int i = 0; i < 2; i++){ // winning column can be either 0-1-2-(3) or (0)-1-2-3\n for (int j = 0; j < stateArray[3].length; j++) {\n\n if (check3Vertical(i, j)) {\n maskResultArray[stateArray[i][j]] = 1;\n maskArray[i][j] = 1;\n maskArray[i+1][j] = 1;\n maskArray[i+2][j] = 1;\n }\n\n }\n }\n\n }", "public void checkOverlap() {\n\n // Logic that validates overlap.\n if(redCircle.getBoundsInParent().intersects(blueCircle.getBoundsInParent())) {\n title.setText(\"Two circles intersect? Yes\");\n }\n else {\n title.setText(\"Two circles intersect? No\");\n }\n\n // Update fields in red table.\n redCircleCenterXValue.setText(String.valueOf(redCircle.getCenterX()));\n redCircleCenterYValue.setText(String.valueOf(redCircle.getCenterY()));\n redCircleRadiusValue.setText(String.valueOf(redCircle.getRadius()));\n\n // Update fields in blue table.\n blueCircleCenterXValue.setText(String.valueOf(blueCircle.getCenterX()));\n blueCircleCenterYValue.setText(String.valueOf(blueCircle.getCenterY()));\n blueCircleRadiusValue.setText(String.valueOf(blueCircle.getRadius()));\n }", "int hitGfx();", "public void displayRectangles() {\n\n\n int arr[] = IntStream.of(findDuplicates(TricolourController.BloodCells)).distinct().toArray(); //takes only the unique values from the array\n int arrWhite[] = IntStream.of(findDuplicates(TricolourController.WhiteCells)).distinct().toArray();\n int rIndex = 0;\n int lIndex = 0;\n int numCells = 0;\n\n for(int num : arrWhite) {\n System.out.println(num);\n }\n\n for(int j=0; j < arr.length - 1; j++) {\n for (int i = 0; i < TricolourController.BloodCells.length; i++) {\n if (TricolourController.BloodCells[i] == arr[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n numCells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n if(r[rIndex].getWidth() * r[rIndex].getHeight() > 2500) {\n r[rIndex].setStroke(Color.BLUE);\n }\n else r[rIndex].setStroke(Color.DARKGREEN);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n RedCellText.setText(String.valueOf(numCells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(numCells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n\n//Handles the white cell rectangles.\n int whitenumcells = 0;\n for(int j=0; j < arrWhite.length - 1; j++) {\n for (int i = 0; i < TricolourController.WhiteCells.length; i++) {\n if (TricolourController.WhiteCells[i] == arrWhite[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n whitenumcells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n r[rIndex].setStroke(Color.YELLOW);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n WhiteCellText.setText(String.valueOf(whitenumcells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(whitenumcells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n }", "public int check4CollisionWithRed(Player player)\n {\n \n int number_of_collisions = 0;\n int x_cord = getMidPoint(player.getX_cordinate());\n int y_cord = getMidPoint(player.getY_cordinate());\n int redx1 = getMidPoint(ludo.getRedPlayer1().x_cordinate);\n int redx2 = getMidPoint(ludo.getRedPlayer2().x_cordinate);\n int redx3 = getMidPoint(ludo.getRedPlayer3().x_cordinate);\n int redx4 = getMidPoint(ludo.getRedPlayer4().x_cordinate);\n int redy1 = getMidPoint(ludo.getRedPlayer1().y_cordinate);\n int redy2 = getMidPoint(ludo.getRedPlayer2().y_cordinate);\n int redy3 = getMidPoint(ludo.getRedPlayer3().y_cordinate);\n int redy4 = getMidPoint(ludo.getRedPlayer4().y_cordinate);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx1, redy1);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx2, redy2);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx3, redy3);\n number_of_collisions += collisionDetection(x_cord, y_cord, redx4, redy4);\n return number_of_collisions;\n }", "private void initCharAreas() {\n\n characterAreas = new LinkedList<CharacterArea>();\n float x = 0;\n float y = 0;\n //TODO do this nice @me\n if (KeyboardHandler.character_set.length() > 36) {\n\n float width = mWidth / 10;\n float height = mHeight / 2;\n characterAreas.add(new CharacterArea(x, y, width * 3, height,\n KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x + width * 3, y, width * 4, height,\n KeyboardHandler.char_view_light_color));\n characterAreas.add(new CharacterArea(x + width * 7, y, width * 3, height,\n KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x, y + height, width * 3, height,\n KeyboardHandler.char_view_light_color));\n characterAreas.add(new CharacterArea(x + width * 3, y + height, width * 4,\n height, KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x + width * 7, y + height, width * 3,\n height, KeyboardHandler.char_view_light_color));\n } else {\n float width = mWidth / 3;\n float height = mHeight / 2;\n characterAreas.add(new CharacterArea(x, y, width, height,\n KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x + width, y, width, height,\n KeyboardHandler.char_view_light_color));\n characterAreas.add(new CharacterArea(x + 2 * width, y, width, height,\n KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x, y + height, width, height,\n KeyboardHandler.char_view_light_color));\n characterAreas.add(new CharacterArea(x + width, y + height, width,\n height, KeyboardHandler.char_view_dark_color));\n characterAreas.add(new CharacterArea(x + 2 * width, y + height, width,\n height, KeyboardHandler.char_view_light_color));\n }\n\n setLevelUpChars();\n }" ]
[ "0.5919604", "0.58718264", "0.56396145", "0.5626362", "0.560429", "0.56008095", "0.55825484", "0.5553674", "0.5542161", "0.5429325", "0.5411959", "0.5410156", "0.5372071", "0.5318783", "0.5284168", "0.5281346", "0.5276194", "0.5250884", "0.5239098", "0.52088296", "0.5204807", "0.5204328", "0.5185386", "0.51775354", "0.5169801", "0.51696706", "0.51693505", "0.51648426", "0.5162335", "0.5158506", "0.5148618", "0.5146869", "0.51432216", "0.51393473", "0.5139194", "0.513876", "0.512203", "0.511816", "0.5117137", "0.5115402", "0.51148564", "0.51144975", "0.51117086", "0.5102383", "0.51022995", "0.510024", "0.5098979", "0.5098508", "0.50940984", "0.5089958", "0.5082681", "0.5074472", "0.5074169", "0.5073624", "0.50612235", "0.5055201", "0.5033007", "0.5029964", "0.5027926", "0.5015491", "0.49966812", "0.49939975", "0.49922255", "0.49864855", "0.49853942", "0.49756694", "0.49732298", "0.4970601", "0.49590647", "0.49587494", "0.4957892", "0.49562737", "0.49538976", "0.49534744", "0.49496177", "0.49487427", "0.49434695", "0.49421537", "0.49418545", "0.49390697", "0.49250382", "0.49216062", "0.49201703", "0.49175736", "0.49116054", "0.4909926", "0.49084195", "0.4908101", "0.4901967", "0.4898817", "0.48951274", "0.48904717", "0.4887711", "0.48871475", "0.48844415", "0.48789957", "0.4876675", "0.4876093", "0.48748696", "0.48720232" ]
0.6104097
0
/ added functions start from here
public static int numSlices(int width,int height) // calculate the number of slices based on the skewimage.java class { int slice=0; if((height%40<2|| height%40>38) && (width%33<2 || width%33>31)){ // if height is 40 or a a near divisior of 40 and if width is 33 or near divisor of 33 slice=(int) (width/33); // slices =width/33 } return (int)slice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parseFunctions(){\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private void add() {\n\n\t}", "org.globus.swift.language.Function addNewFunction();", "@Override\n\tpublic void function() {\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 func01() {\n\t\t\r\n\t}", "private static void addFunciones() {\n funciones = new ArrayList<GlobalSimilarityNode>();\n funciones.add(new ParticularSimilGLNode());\n funciones.add(new TemporalSimilGLNode());\n\n }", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "private void addFunctionListeners()\n\t{\n\t\tadd.addActionListener (new functionListener());\n\t\tsubtract.addActionListener (new functionListener());\n\t\tmultiply.addActionListener (new functionListener());\n\t\tdivide.addActionListener (new functionListener());\n\t\tequals.addActionListener (new functionListener());\n\t\tnegate.addActionListener (new functionListener());\n\t\tpercent.addActionListener (new functionListener());\n\t\tsquareRoot.addActionListener (new functionListener());\n\t\tC.addActionListener (new functionListener());\n\t\tcubeRoot.addActionListener (new functionListener());\n\t\txSquare.addActionListener (new functionListener());\n\t\txCube.addActionListener (new functionListener());\n\t\tdel.addActionListener (new functionListener());\n\t\treciprocal.addActionListener (new functionListener());\t\n\t\tPI.addActionListener (new functionListener());\n\t\te.addActionListener (new functionListener());\n\t\ttwoPower.addActionListener (new functionListener());\n\t\tln.addActionListener (new functionListener());\n\t\teToPower.addActionListener (new functionListener());\n\t\tdecimalPoint.addActionListener (new functionListener());\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "static void feladat9() {\n\t}", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "private void addFuncEventHandlers() {\n\t\tfuncNameListBox.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tfunctionBodyAceEditor.clearAnnotations();\n\t\t\t\tfunctionBodyAceEditor.removeAllMarkers();\n\t\t\t\tfunctionBodyAceEditor.redisplay();\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = funcNameListBox.getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedFunctionId = funcNameListBox.getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedFunctionObjId = selectedFunctionId;\n\t\t\t\t\t\tif (functionMap.get(selectedFunctionId) != null) {\n\t\t\t\t\t\t\tgetFuncNameTxtArea().setText(functionMap.get(selectedFunctionId).getFunctionName());\n\t\t\t\t\t\t\tgetFunctionBodyAceEditor().setText(functionMap.get(selectedFunctionId).getFunctionLogic());\n\t\t\t\t\t\t\tif (functionMap.get(selectedFunctionId).getContext().equalsIgnoreCase(\"patient\")) {\n\t\t\t\t\t\t\t\tcontextFuncPATRadioBtn.setValue(true);\n\t\t\t\t\t\t\t\tcontextFuncPOPRadioBtn.setValue(false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcontextFuncPOPRadioBtn.setValue(true);\n\t\t\t\t\t\t\t\tcontextFuncPATRadioBtn.setValue(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgetFunctionButtonBar().getDeleteButton().setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLFunctionss().contains(getFunctionMap().get(selectedFunctionId).getFunctionName())) {\n\t\t\t\t\t\t\t\t\t\tgetFunctionButtonBar().getDeleteButton().setEnabled(false);\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\tif (currentSelectedFunctionObjId != null) {\n\t\t\t\t\t\tCQLFunctions selectedFunction = getFunctionMap().get(currentSelectedFunctionObjId);\n\t\t\t\t\t\tif (selectedFunction.getArgumentList() != null) {\n\t\t\t\t\t\t\tfunctionArgumentList.clear();\n\t\t\t\t\t\t\tfunctionArgumentList.addAll(selectedFunction.getArgumentList());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfunctionArgumentList.clear();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcreateAddArgumentViewForFunctions(functionArgumentList);\n\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t}\n\t\t});\n\t}", "static void feladat5() {\n\t}", "static void feladat10() {\n\t}", "private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "static void feladat7() {\n\t}", "static void feladat4() {\n\t}", "static void feladat6() {\n\t}", "@Override\n public void visitFunction(Function function) {\n }", "public void add() {\n\t\t\n\t}", "private void jetFunctions(){\n\t\tInvokeExpr invokeExpr = (InvokeExpr) rExpr;\n\t\tSootMethodRef methodRef = invokeExpr.getMethodRef();\n\t\t\n\t\t//if this is a java.lang.String.func, we don't need to declare it\n\t\tif(StringModeling.stringMethods.contains(methodRef.getSignature())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString funStr = constructFunStr(invokeExpr);\n\t\tType thisType = null;\n\t\tif(!fileGenerator.getDeclaredFunctions().contains(funStr)){\n\t\t\tif(invokeExpr instanceof StaticInvokeExpr){\n\t\t\t\twriter.println(Z3MiscFunctions.v().getFuncDeclareStmt(funStr, thisType,\n\t\t\t\t\t\tmethodRef.parameterTypes(), methodRef.returnType()));\n\t\t\t}else{\n\t\t\t\tif(invokeExpr instanceof InterfaceInvokeExpr){\n\t\t\t\t\tthisType = ((InterfaceInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}else if(invokeExpr instanceof SpecialInvokeExpr){\n\t\t\t\t\tthisType = ((SpecialInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}else if(invokeExpr instanceof VirtualInvokeExpr){\n\t\t\t\t\tthisType = ((VirtualInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}\n\t\t\t\twriter.println(Z3MiscFunctions.v().getFuncDeclareStmt(funStr, thisType,\n\t\t\t\t\t\tmethodRef.parameterTypes(), methodRef.returnType()));\n\t\t\t}\n\t\t\tfileGenerator.getDeclaredFunctions().add(funStr);\n\t\t}\n\t}", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "private static void addFuncionesName() {\n\n funcionesName = new ArrayList<String>();\n if (funciones == null) {\n addFunciones();\n }\n Iterator it = funciones.iterator();\n while (it.hasNext()) {\n funcionesName.add(((GlobalSimilarityNode) it.next()).getName());\n }\n }", "void mo41083a();", "static void feladat3() {\n\t}", "void initFunctions() {\n\t\tif (programUnit == null) return;\n\n\t\t// Add all functions\n\t\tList<BdsNode> fdecls = BdsNodeWalker.findNodes(programUnit, StatementFunctionDeclaration.class, true, true);\n\t\tfor (BdsNode n : fdecls) {\n\t\t\tFunctionDeclaration fd = (FunctionDeclaration) n;\n\t\t\tbdsvm.addFunction(fd);\n\t\t}\n\t}", "void mo54405a();", "public static void addFuncsToNewCharacter(L2Character cha)\n\t{\n\t\tif (cha instanceof L2PcInstance)\n\t\t{\n\t\t\tcha.addStatFunc(FuncMaxHpMul.getInstance());\n\t\t\tcha.addStatFunc(FuncMaxCpMul.getInstance());\n\t\t\tcha.addStatFunc(FuncMaxMpMul.getInstance());\n\t\t\t//cha.addStatFunc(FuncMultRegenResting.getInstance(Stats.REGENERATE_HP_RATE));\n\t\t\t//cha.addStatFunc(FuncMultRegenResting.getInstance(Stats.REGENERATE_CP_RATE));\n\t\t\t//cha.addStatFunc(FuncMultRegenResting.getInstance(Stats.REGENERATE_MP_RATE));\n\t\t\tcha.addStatFunc(FuncBowAtkRange.getInstance());\n\t\t\tcha.addStatFunc(FuncCrossBowAtkRange.getInstance());\n\t\t\t//cha.addStatFunc(FuncMultLevelMod.getInstance(Stats.PHYS_ATTACK));\n\t\t\t//cha.addStatFunc(FuncMultLevelMod.getInstance(Stats.PHYS_DEFENSE));\n\t\t\t//cha.addStatFunc(FuncMultLevelMod.getInstance(Stats.MAGIC_DEFENSE));\n\t\t\tcha.addStatFunc(FuncPAtkMod.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkMod.getInstance());\n\t\t\tcha.addStatFunc(FuncPDefMod.getInstance());\n\t\t\tcha.addStatFunc(FuncMDefMod.getInstance());\n\t\t\tcha.addStatFunc(FuncAtkCritical.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkCritical.getInstance());\n\t\t\tcha.addStatFunc(FuncAtkAccuracy.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkAccuracy.getInstance());\n\t\t\tcha.addStatFunc(FuncAtkEvasion.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkEvasion.getInstance());\n\t\t\tcha.addStatFunc(FuncPAtkSpeed.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkSpeed.getInstance());\n\n\t\t\tcha.addStatFunc(FuncHennaSTR.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaDEX.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaINT.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaMEN.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaCON.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaWIT.getInstance());\n\n\t\t\tcha.addStatFunc(FuncHennaLUC.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaCHA.getInstance());\n\t\t}\n\t\telse if (cha instanceof L2Summon)\n\t\t{\n\t\t\tcha.addStatFunc(FuncAtkAccuracy.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkAccuracy.getInstance());\n\t\t\tcha.addStatFunc(FuncAtkEvasion.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkEvasion.getInstance());\n\t\t}\n\t}", "void mo22249a();", "void mo84655a();", "void mo67924c();", "void mo57277b();", "void mo37810a();", "void mo38026a();", "void mo28306a();", "void mo57275a();", "@Override\n\tpublic Map<String, FREFunction> getFunctions() \n\t{\n\t\tLog.d(TAG, \"Registering Extension Functions\");\n\t\tMap<String, FREFunction> functionMap = new HashMap<String, FREFunction>();\n\t\tfunctionMap.put(\"isInstalled\", new IsInstalledFunction());\n\t\tfunctionMap.put(\"shareText\", new ShareTextFunction());\n\t\tfunctionMap.put(\"shareImage\", new ShareImageFunction());\n\t\t// add other functions here\n\t\treturn functionMap;\t\n\t}", "void mo119581a();", "void mo67920a();", "void mo57278c();", "public void mo38117a() {\n }", "private void visitAdditionalEntrypoints() {\n\tLinkedHashSet<jq_Class> extraClasses = new LinkedHashSet<jq_Class>();\n\tfor(jq_Method m: publicMethods) {\n\t extraClasses.add(m.getDeclaringClass());\n\t}\n\t\n\tfor(jq_Class cl: extraClasses) {\n\t visitClass(cl);\n\t\t\tjq_Method ctor = cl.getInitializer(new jq_NameAndDesc(\"<init>\", \"()V\"));\n\t\t\tif (ctor != null)\n\t\t\t\tvisitMethod(ctor);\n\t}\n\n\tfor(jq_Method m: publicMethods) {\n\t visitMethod(m);\n\t}\n }", "public FunctionInfo[] getFunctions() {\n/* 236 */ return this.functions;\n/* */ }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "void mo21073d();", "@Override\n\tpublic void add() {\n\t\t\n\t}", "void mo80455b();", "void mo28194a();", "public boolean addFunction(Accessibility pPAccess, SubRoutine pExec, MoreData pMoreData);", "public void addFunction( Object obj)\r\n {\r\n functionClasses.add(obj);\r\n }", "void mo88521a();", "void mo17013d();", "private void kk12() {\n\n\t}", "public static void listing5_14() {\n }", "void mo119582b();", "org.globus.swift.language.Function insertNewFunction(int i);", "void mo67923b();", "void mo98969a();", "void mo3311a();", "void mo27575a();", "public void add() {\n\n }", "@Override\r\n \tpublic void addMethods(KawaWrap kawa) throws Throwable {\r\n \tkawa.eval(\"(define (sub1 n) (- n 1))\");\r\n \tkawa.eval(\"(define (add1 n) (+ n 1))\");\r\n \t}", "void mo54435d();", "void mo2311a();", "public void mo3749d() {\n }", "void mo7350a();", "public void add() {\n }", "void mo80457c();", "void mo41086b();", "void mo21076g();", "@Override\n public void func_104112_b() {\n \n }", "public String getFunctions();", "void mo17012c();", "void mo56163g();", "void mo9693a();", "void m21();", "void mo80452a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public int getFunctionType() {\n/* 60 */ return 4;\n/* */ }", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public void skystonePos6() {\n }", "public abstract void mo27386d();", "public void addAndReturnOld() {\n\n }", "void mo72113b();", "public abstract void mo70713b();", "void mo21074e();", "@Override\n public void onAdded() {\n }", "static void add() {\r\n\t\tSystem.out.println(\"Overloading Method\");\r\n\t}", "Operations operations();", "void mo60892a();", "void m1864a() {\r\n }", "public void m23075a() {\n }", "public void mo97908d() {\n }", "public void mo21877s() {\n }", "public void aff() {\n\t\t\n\t}", "@Test\n\tpublic void testAddMethod() {\n\t\taddSomeMethods();\n\t\tassertTrue(manager.famixMethodExists(\"pack1.TestClass.a\"));\n\t\tassertTrue(manager.famixMethodExists(\"pack1.TestClass.b\"));\n\t\tassertEquals(1, manager.getFamixMethod(\"pack1.TestClass.a\").getAffectingChanges().size());\n\t\tassertEquals(1, manager.getFamixMethod(\"pack1.TestClass.b\").getAffectingChanges().size());\n\t\t// TODO check that this change is actually an addition!!!\n\t}" ]
[ "0.6710046", "0.6706995", "0.66587037", "0.6650225", "0.6515517", "0.6483445", "0.64538306", "0.6444914", "0.64304763", "0.642085", "0.642085", "0.6411534", "0.6382152", "0.6382152", "0.6235075", "0.61755264", "0.616325", "0.61588144", "0.6125577", "0.61255026", "0.6117697", "0.61156285", "0.6078573", "0.6069614", "0.60653675", "0.605743", "0.60542226", "0.60416335", "0.6036953", "0.60288215", "0.6013562", "0.59994227", "0.5998355", "0.5990172", "0.5979886", "0.5974449", "0.59654677", "0.5962743", "0.5949674", "0.5941894", "0.592644", "0.59202033", "0.5919408", "0.59180987", "0.5916476", "0.5911782", "0.5904819", "0.5878879", "0.58483505", "0.5845757", "0.5843794", "0.58368", "0.5819513", "0.58129495", "0.5795776", "0.57955503", "0.57947206", "0.5789949", "0.578772", "0.57853013", "0.57806635", "0.5779075", "0.5778927", "0.5775797", "0.57715946", "0.5768779", "0.57685244", "0.57662797", "0.5764071", "0.5760926", "0.57594013", "0.5759386", "0.5757578", "0.57567286", "0.57457095", "0.5741123", "0.57391924", "0.57354647", "0.57333213", "0.5728408", "0.5721773", "0.5721716", "0.57182634", "0.57167554", "0.57149756", "0.5707679", "0.57059747", "0.57033277", "0.5701991", "0.57014716", "0.5700884", "0.56990147", "0.56975883", "0.5696672", "0.5696041", "0.56910634", "0.5690116", "0.56889075", "0.56844705", "0.56836253", "0.5682108" ]
0.0
-1
/ findEdgecolors function is used to find the color values which are at the borders of the image
public static Integer[] findEdgecolors(BufferedImage image) { // try to clean up the image by removing stray marks Integer[] colors=new Integer[10]; int[] width={0,image.getWidth()-1}; // horizontal comparision array int[] heigth={0,image.getHeight()-1}; // vertical comparision array int i=0; for(int x=0;x<=1;x++){ for (int y=0; y<image.getHeight(); y++) { int pixelVal = image.getRGB(width[x], y);//getting the edge color in RGB value if(!Arrays.asList(colors).contains(pixelVal)) // checking if the color already exists if yes do nothing if no add the color to array { colors[i]=pixelVal; i++; } } } i=0; for(int x=0;x<image.getWidth();x++){ for (int y=0; y<=1; y++) { int pixelVal = image.getRGB(x, width[y]);//getting the edge color in RGB value if(!Arrays.asList(colors).contains(pixelVal))// checking if the color already exists if yes do nothing if no add the color to array { colors[i]=pixelVal; i++; } } } return colors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void findEdges(){\n int pixel,x,y;\n int color;\n double gx,gy,magnitude;\n double magnitudes[][] = new double[size-2][size-2];\n double angles[][] = new double[size-2][size-2];\n int directions[][] = new int[size-2][size-2];\n //give numbers to the edge kernel\n int edgeKernelX[][] = new int[][]{{-1, 0, 1},\n {-2, 0, 2},\n {-1, 0, 1}};\n int edgeKernelY[][] = new int[][]{{-1, -2, -1},\n { 0, 0, 0},\n { 1, 2, 1}};\n //march the image\n for (int i = 1; i < size-1; i++) {\n for (int j = 1; j < size-1; j++) {\n //reset color\n gx = gy = 0;\n //march pixels inside kernel\n for (int k = 0; k < 3; k++) {\n for (int l = 0; l < 3; l++) {\n //get gray color from pixel\n x = j + l - 1; \n y = i + k - 1;\n pixel = imageKerneled.getRGB(x,y);\n //multiply the rgb by the number in kernel\n color = ((pixel) & 0xff);\n gx += color * edgeKernelX[k][l];\n gy += color * edgeKernelY[k][l];\n }\n }\n //get magnitude for the edge ( Gxy = sqrt(x^2+y^2) )\n magnitude = (int)Math.round(Math.sqrt((gx*gx)+(gy*gy) ) );\n magnitudes[i-1][j-1] = magnitude;\n //get angle for the edge ( A = arctan Gy/Gx )\n angles[i-1][j-1] = Math.atan(gy/gx);\n }\n }\n //get bigger magnitud for rule of 3 because are magnitudes above 255\n double bigger = magnitudes[0][0]; int sizeMinus2 = size-2;\n for (int i = 0; i < sizeMinus2; i++) {\n for (int j = 0; j < sizeMinus2; j++) {\n if(magnitudes[i][j] > bigger) bigger = magnitudes[i][j];\n }\n }\n //rule of 3 to make all magnitudes below 255\n for (int i = 0; i < sizeMinus2; i++) {\n for (int j = 0; j < sizeMinus2; j++) {\n magnitudes[i][j] = magnitudes[i][j] * 255 / bigger;\n }\n }\n //set the borders black because there are no magnitudes there\n for (int i = 0; i < size; i++) {imageKerneled2.setRGB(0,i,Color.BLACK.getRGB());}\n for (int i = 0; i < size; i++) {imageKerneled2.setRGB(size-1,i,Color.BLACK.getRGB());}\n for (int i = 0; i < size; i++) {imageKerneled2.setRGB(i,0,Color.BLACK.getRGB());}\n for (int i = 0; i < size; i++) {imageKerneled2.setRGB(i,size-1,Color.BLACK.getRGB());}\n //set the magnitudes in the image\n double degrees;\n double max=0,min=0;\n for (int i = 0; i < sizeMinus2; i++) {\n for (int j = 0; j < sizeMinus2; j++) {\n //paint black the NaN and 0r angles\n magnitude = magnitudes[i][j];\n if(Double.isNaN(angles[i][j]) || angles[i][j]==0){\n imageKerneled2.setRGB(j+1,i+1,Color.BLACK.getRGB());\n }\n else{\n //convert radians to dregrees for HSB (Hue goes from 0 to 360)\n degrees = Math.toDegrees(angles[i][j]); \n //convert degrees in scale from -90,90 to 0,360 for HSBtoRGB with a rule of 3\n degrees = degrees * 360 / 90; \n //convert degrees in scale from 0,360 to 0,1 for HSBtoRGB with a rule of 3\n degrees /= 360;\n /*if want angles with colors: \n //convert magnitud in scale from 0,255 to 0,1 for HSBtoRGB with a rule of 3\n magnitude /= 255;\n Color c = new Color(Color.HSBtoRGB((float)degrees,1.0f,(float)magnitude));*/\n Color c = new Color((int)magnitude,(int)magnitude,(int)magnitude);\n imageKerneled2.setRGB(j+1,i+1,c.getRGB());\n /*set direction for pixel\n east-west: 0 = 0 - 22, 158-202, 338-360\n northeast-southwest: 1 = 23 - 67, 203-247 \n north-south: 2 = 68 -112, 248-292 \n northeast-southeast: 3 = 113-157, 293-337 */\n if((degrees>=0 && degrees<=22) || (degrees>=158 && degrees<=202) || (degrees>=338 && degrees<=360)){\n directions[i][j] = 0;\n }else if((degrees>=23 && degrees<=67) || (degrees>=203 && degrees<=247)){\n directions[i][j] = 1;\n }else if((degrees>=68 && degrees<=112) || (degrees>=248 && degrees<=292)){\n directions[i][j] = 2;\n }else if((degrees>=113 && degrees<=157) || (degrees>=293 && degrees<=337)){\n directions[i][j] = 3;\n }\n }\n }\n }\n copyKerneled2ToKerneled();\n System.out.println(\"Finished sobel edge detector\");\n //here starts the canny edge detector\n int comparedMagnitudes[] = new int [3];\n for (int i = 1; i < size-1; i++) {\n for (int j = 1; j < size-1; j++) {\n //get magnitude of current pixel and neighbors from direction\n comparedMagnitudes[0] = (imageKerneled.getRGB(j,i)) & 0xff;\n switch(directions[i-1][j-1]){\n case 0: \n comparedMagnitudes[1] = (imageKerneled.getRGB(j-1,i)) & 0xff;\n comparedMagnitudes[2] = (imageKerneled.getRGB(j+1,i)) & 0xff;\n break;\n case 1:\n comparedMagnitudes[1] = (imageKerneled.getRGB(j+1,i+1)) & 0xff;\n comparedMagnitudes[2] = (imageKerneled.getRGB(j-1,i-1)) & 0xff;\n break;\n case 2:\n comparedMagnitudes[1] = (imageKerneled.getRGB(j,i-1)) & 0xff;\n comparedMagnitudes[2] = (imageKerneled.getRGB(j,i+1)) & 0xff;\n break;\n case 3:\n comparedMagnitudes[1] = (imageKerneled.getRGB(j-1,i+1)) & 0xff;\n comparedMagnitudes[2] = (imageKerneled.getRGB(j+1,i-1)) & 0xff;\n break;\n }\n if(comparedMagnitudes[0]<comparedMagnitudes[1] \n || comparedMagnitudes[0]<comparedMagnitudes[2]\n || comparedMagnitudes[0]<30){\n imageKerneled2.setRGB(j,i,Color.BLACK.getRGB());\n }\n }\n }\n /*for (int i = 1; i < size-1; i++) {\n for (int j = 1; j < size-1; j++) {\n color = (imageKerneled2.getRGB(j,i)) & 0xff;\n if(color > 0){\n imageKerneled2.setRGB(j,i,Color.WHITE.getRGB());\n }\n }\n }*/\n copyKerneled2ToKerneled();\n System.out.println(\"Finished canny edge detector\");\n }", "public static Mat DetectEdges(Mat grayMat){\n Mat grad_x = new Mat();\n Mat abs_grad_x = new Mat();\n\n Mat grad_y = new Mat();\n Mat abs_grad_y = new Mat();\n //Calculating gradient in horizontal direction\n Imgproc.Sobel(grayMat, grad_x, CvType.CV_16S, 1, 0, 3, 1, 0);\n\n //Calculating gradient in vertical direction\n Imgproc.Sobel(grayMat, grad_y, CvType.CV_16S, 0, 1, 3, 1, 0);\n\n //Calculating absolute value of gradients in both the direction\n Core.convertScaleAbs(grad_x, abs_grad_x);\n Core.convertScaleAbs(grad_y, abs_grad_y);\n\n //Calculating the resultant gradient\n Mat sobel = new Mat(); //Mat to store the final result\n Core.addWeighted(abs_grad_x, 0.5, abs_grad_y, 0.5, 1, sobel);\n\n grad_x.release();\n abs_grad_x.release();\n grad_y.release();\n abs_grad_y.release();\n\n return sobel;\n }", "public int colorVertices();", "public void findEdgesAndThreshold() {\n\t\tActiveImageConverter.convertToGray16();\n\t\tContrastEnhancer enhancer = new ContrastEnhancer();\n\t\tenhancer.equalize(ActiveImage);\n\t\tActiveImageProcessor = ActiveImage.getProcessor();\n\t\tActiveImageProcessor.findEdges();\n\t\tActiveImageProcessor.sqr(); // turns the gradient into gradient squared\n\t\tActiveImageProcessor.sqr(); // further enhances the good edges\n\t\tenhancer.equalize(ActiveImage);\n\t\tdouble mean = ActiveImage.getStatistics().mean;\n\t\tdouble max = ActiveImage.getStatistics().max;\n\t\tActiveImageProcessor.setThreshold(mean*8,max,ActiveImageProcessor.OVER_UNDER_LUT);\n\t\tif(userInput)\n\t\t{\n\t\t\tIJ.run(ActiveImage,\"Threshold...\",\"\");\n\t\t\tnew WaitForUserDialog(\"OK\").show();\n\t\t\tif (WindowManager.getWindow(\"Threshold\")!= null){\n\t\t\t\tIJ.selectWindow(\"Threshold\");\n\t\t\t\tIJ.run(\"Close\"); \n\t\t\t}\n\t\t}\n\t\tIJ.run(ActiveImage,\"Convert to Mask\",\"\");\n\t\tIJ.run(ActiveImage,\"Skeletonize\",\"\");\n\t\treturn;\n\t}", "public native int getColors() throws MagickException;", "public native PixelPacket getBorderColor() throws MagickException;", "public void testFindBorders() {\n System.out.println(\"findBorders\");\n RasterImage rImage = new RasterImage(20,21);\n int expResult[] = {16777215, 0, 0, 0, 0, 0, 0, 16777215, 16777215,\n 16777215, 16777215, 16777215, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 16777215, 16777215, 16777215, 16777215, 0, 16777215, 16777215, 16777215,\n 16777215, 16777215, 0, 0, 0, 16777215, 16777215, 16777215, 0, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 16777215,\n 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 0,\n 16777215, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 16777215, 0, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 0, 16777215, 0, 0, 0, 16777215,\n 16777215, 16777215, 0, 0, 0, 0, 16777215, 16777215, 0, 0, 0, 0, 0, 0, 0, 0, 16777215,\n 16777215, 16777215, 16777215};\n int pixels[] = {16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,0,0,0,\n 0,0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,0,0,\n 0,0,0,0,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,0,0,0,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,0,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,16777215,16777215,\n 16777215,0,0,0,0,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,0,0,\n 0,0,0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215};\n for(int i=0;i<420;i++){\n int x = i%20;\n int y = i/20;\n rImage.setRGB(x, y, pixels[i]);\n }\n\n\n\n RasterImage result = CutCharacter.findBorders(rImage);\n for(int i=0;i<168;i++)\n assertEquals(expResult[i], result.getRGB(i));\n \n }", "public native MagickImage edgeImage(double raduis) throws MagickException;", "public Color getScrollBorderColor();", "private int fillEdge(int layer, int row, int col){\n // if color has sentinel value or we passed the edges and are in the actual image, return color\n if (image.getRGB(col,row) != -1 || layer > windowSize/2)\n return image.getRGB(col,row);\n\n // calculate the coordinate for color to copy from\n int nextRow = row, nextCol = col;\n if (row == layer) nextRow = row + 1;\n else if (row == image.getHeight() - 1 - layer) nextRow = row - 1;\n if (col == layer) nextCol = col + 1;\n else if (col == image.getWidth() - 1 - layer) nextCol = col - 1;\n\n // get the color of the given coordinates as innerColor\n int innerColor = fillEdge(layer + 1, nextRow, nextCol);\n // since the first statement didn't trigger, this current pixel\n // has no color, so set this current pixel to innerColor\n image.setRGB(col, row, innerColor);\n\n // return the color we got, which is now the same as this current pixel's\n return innerColor;\n }", "public void edgeDetection(int edgeDist)\n {\n Pixel leftPix = null;\n Pixel rightPix = null;\n Pixel topPix = null;\n Pixel bottomPix = null;\n\n Pixel[][] pixels = this.getPixels2D();\n for (int row = 0; row < pixels.length - 1; row++)\n {\n for (int column = 0; column < pixels[0].length-1; column++)\n {\n leftPix = pixels[row][column];\n rightPix = pixels[row][column+1];\n topPix = pixels[row][column];\n bottomPix = pixels[row + 1][column];\n if (leftPix.colorDistance(rightPix.getColor()) > edgeDist ||\n topPix.colorDistance(bottomPix.getColor()) > edgeDist)\n leftPix.setColor(Color.BLACK);\n else\n leftPix.setColor(Color.WHITE);\n }\n }\n }", "public int[] getColorIndices();", "@Override\n public Color getColor() {\n return super.getEdgeColor();\n }", "public Color colorByNeighbors() {\n float mod = maxVoltage /10f;\n float color = Math.max(0,Math.min(voltageAccumulator,mod))/mod;\n float colorNeighbors = (float)Math.max(0,Math.min(this.neighbors.size()/maxNeighbors,1.0));\n\n if(colorNeighbors<0.5f)return new Color(0.0f,0f,0f);\n\n return new Color(colorNeighbors/2f,color,color);//, 0.25f);\n }", "int getColorDepth();", "private static BufferedImage writeEdges(byte pixels[],int width,int height) {\n\t\tBufferedImage edgesImage=null;\n\t\tedgesImage = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY);\n\t\t\n\t\t////System.out.println(\"pixels size is \"+pixels.length);\n\t\tedgesImage.getWritableTile(0, 0).setDataElements(0, 0, width, height, pixels);\n\t\t\n\t\treturn edgesImage;\n\t\t\n\t\t/*int xx=0;\n\t\tfor(int p:pixels){\n\t\t\txx++;\n\t\t\t//System.out.print(p);\n\t\t\tif(xx%180==0)\n\t\t\t\t//System.out.println();\n\t\t}*/\n\t\t\n\t\t////System.out.println(\"size is \"+pixels.length);\n\t}", "private ArrayList<Pixel> getNeightbors(Pixel pixel)\n {\n ArrayList<Pixel> neighbors = new ArrayList<Pixel>();\n\n for(int i=-1;i<=1;i++)\n {\n int n_w=pixel.p+i;\n if(n_w<0 || n_w==this.image.getWidth()) continue;\n for(int j=-1;j<=1;j++)\n {\n int n_h=pixel.q+j;\n if(n_h<0 || n_h==this.image.getHeight()) continue;\n if(i==0 && j==0) continue;\n neighbors.add( new Pixel(n_w, n_h) );\n }//end for j\n }//end for i\n\n return neighbors;\n }", "public boolean checkColoring(int[] ccolor){\n // \tfor(int i = 0; i < ccolor.length; i++){\n //\t System.out.println(Arrays.toString(ccolor));\n \t//}\n for(int i = 0; i < ccolor.length; i++){\n for(int w = 0; w < ccolor.length; w++){\n \t//System.out.println(i + \",\" + w);\n if(hasEdge(i,w) && (ccolor[i] == ccolor[w])){\n \t//System.out.println(i + \",false\" + w);\n return false;\n }\n }\n }\n return true;\n }", "public native PixelPacket[] getColormap() throws MagickException;", "@Override\n public native Color getPixelColor(int x, int y);", "private List<Integer> getCells(Edge e) {\r\n\t\treturn getCells(e.getMBR());\r\n\t}", "private Color[] getInternalArcColors()\n {\n return getColorsForState(this.iconPartStates[2]);\n }", "private Mat getHSVThreshold(Mat image) {\r\n\t\t\r\n\t\t// convert BGR values to HSV values\r\n\t\tMat hsv = new Mat();\r\n\t\tImgproc.cvtColor(image, hsv, Imgproc.COLOR_BGR2HSV);\r\n\t\t\r\n\t\t\r\n\t\tMat inRange = new Mat();\r\n\t\tCore.inRange(\r\n\t\t\t\thsv, \r\n\t\t\t\tnew Scalar(Double.parseDouble(theProperties.getProperty(\"lowHue\")), \r\n\t\t\t\t\tDouble.parseDouble(theProperties.getProperty(\"lowSat\")),\r\n\t\t\t\t\tDouble.parseDouble(theProperties.getProperty(\"lowVal\"))),\r\n\t\t\t\tnew Scalar(Double.parseDouble(theProperties.getProperty(\"highHue\")),\r\n\t\t\t\t\t\t\tDouble.parseDouble(theProperties.getProperty(\"highSat\")),\r\n\t\t\t\t\t\t\tDouble.parseDouble(theProperties.getProperty(\"highVal\"))), \r\n\t\t\t\tinRange);\r\n\t\t\r\n\t\tMat grey = new Mat();\r\n\t\tImgproc.cvtColor(image, grey, Imgproc.COLOR_BGR2GRAY);\r\n\t\tCore.bitwise_and(grey, inRange, grey);\r\n\r\n Imgcodecs.imwrite(rootFolder + \"/1_Post_inRange\" + \".png\", grey);\r\n\t\t\r\n\t\treturn grey;\r\n\t}", "@Override\n public Color getRegionColor(double[] offset, double[] size) {\n double[] sums = new double[4];\n double area = 0;\n\n int leftIntInside = (int)offset[0];\n if (leftIntInside < offset[0]) leftIntInside++;\n int topIntInside = (int)offset[1];\n if (topIntInside < offset[1]) topIntInside++;\n int rightIntInside = (int)(size[0] + offset[0]);\n int botIntInside = (int)(size[1] + offset[1]);\n \n // Whole internal pixels\n for (int y = topIntInside; y < botIntInside; y++) {\n for (int x = leftIntInside; x < rightIntInside; x++) {\n int[] pix = MeUtils.intToARGB(getPixel(x, y));\n for (int i = 0; i < 4; i++) {\n sums[i] += pix[i];\n }\n }\n }\n // Assuming non-negative area....\n area += (rightIntInside - leftIntInside) * (botIntInside - topIntInside);\n \n // Left edge\n for (int y = topIntInside; y < botIntInside; y++) {\n double x = offset[0];\n double width = leftIntInside - x;\n int[] pix = MeUtils.intToARGB(getPixel((int)x, y));\n for (int i = 0; i < 4; i++) {\n sums[i] += (pix[i] * width);\n }\n } \n // Assuming non-negative area....\n area += (leftIntInside - offset[0]) * (botIntInside - topIntInside);\n\n // Right edge\n for (int y = topIntInside; y < botIntInside; y++) {\n double x = rightIntInside;\n double width = (offset[0] + size[0]) - x;\n int[] pix = MeUtils.intToARGB(getPixel((int)x, y));\n for (int i = 0; i < 4; i++) {\n sums[i] += (pix[i] * width);\n }\n } \n // Assuming non-negative area....\n area += (offset[0] + size[0] - rightIntInside) * (botIntInside - topIntInside);\n\n // Top edge\n for (int x = leftIntInside; x < rightIntInside; x++) {\n double y = offset[1];\n double height = topIntInside - y;\n int[] pix = MeUtils.intToARGB(getPixel(x, (int)y));\n for (int i = 0; i < 4; i++) {\n sums[i] += (pix[i] * height);\n }\n } \n // Assuming non-negative area....\n area += (rightIntInside - leftIntInside) * (topIntInside - offset[1]);\n\n // Bottom edge\n for (int x = leftIntInside; x < rightIntInside; x++) {\n double y = botIntInside;\n double height = (offset[1] + size[1]) - y;\n int[] pix = MeUtils.intToARGB(getPixel(x, (int)y));\n for (int i = 0; i < 4; i++) {\n sums[i] += (pix[i] * height);\n }\n } \n // Assuming non-negative area....\n area += (rightIntInside - leftIntInside) * (offset[1] + size[1] - botIntInside);\n \n // Top left corner\n {\n double x = offset[0];\n double y = offset[1];\n double width = leftIntInside - x;\n double height = topIntInside - y;\n int[] pix = MeUtils.intToARGB(getPixel((int)x, (int)y));\n for (int i = 0; i < 4; i++) {\n sums[i] += (pix[i] * width * height);\n }\n }\n // Assuming non-negative area....\n area += (leftIntInside - offset[0]) * (topIntInside - offset[1]);\n\n // Top right corner\n {\n double x = rightIntInside;\n double y = offset[1];\n double width = (offset[0] + size[0]) - x;\n double height = topIntInside - y;\n int[] pix = MeUtils.intToARGB(getPixel((int)x, (int)y));\n for (int i = 0; i < 4; i++) {\n sums[i] += (pix[i] * width * height);\n }\n }\n // Assuming non-negative area....\n area += (offset[0] + size[0] - rightIntInside) * (topIntInside - offset[1]);\n \n // Bottom left corner\n {\n double x = offset[0];\n double y = botIntInside;\n double width = leftIntInside - x;\n double height = (offset[1] + size[1]) - y;\n int[] pix = MeUtils.intToARGB(getPixel((int)x, (int)y));\n for (int i = 0; i < 4; i++) {\n sums[i] += (pix[i] * width * height);\n }\n }\n // Assuming non-negative area....\n area += (leftIntInside - offset[0]) * (offset[1] + size[1] - botIntInside);\n\n // Bottom right corner\n {\n double x = rightIntInside;\n double y = botIntInside;\n double width = (offset[0] + size[0]) - x;\n double height = (offset[1] + size[1]) - y;\n int[] pix = MeUtils.intToARGB(getPixel((int)x, (int)y));\n for (int i = 0; i < 4; i++) {\n sums[i] += (pix[i] * width * height);\n }\n }\n // Assuming non-negative area....\n area += (offset[0] + size[0] - rightIntInside) * (offset[1] + size[1] - botIntInside);\n \n float[] avg = new float[sums.length];\n for (int i = 0; i < 4; i++) {\n // Also scaling to [0,1]\n avg[i] = (float)((sums[i] / area) / 0xFF);\n }\n \n return new Color(MeMath.bound(avg[1], 0, 1), MeMath.bound(avg[2], 0, 1), MeMath.bound(avg[3], 0, 1), MeMath.bound(avg[0], 0, 1));\n }", "public Mat convertToEdges(Mat img) {\n\n return img;\n }", "public ColorRgb getColorRgbBiLinear(double x, double y)\n {\n //-----------------------------------------------------------------\n double u = x - Math.floor(x);\n double v = y - Math.floor(y);\n double U = u * ((double)(getXSize()-2));\n double V = v * ((double)(getYSize()-2));\n int i = (int)Math.floor(U);\n int j = (int)Math.floor(V);\n double du = U - (double)i;\n double dv = V - (double)j;\n RGBPixel p;\n\n //-----------------------------------------------------------------\n p = getPixelRgb(i, j);\n ColorRgb F00 = new ColorRgb();\n F00.r = ((double)VSDK.signedByte2unsignedInteger(p.r)) / 255.0;\n F00.g = ((double)VSDK.signedByte2unsignedInteger(p.g)) / 255.0;\n F00.b = ((double)VSDK.signedByte2unsignedInteger(p.b)) / 255.0;\n\n p = getPixelRgb(i+1, j);\n ColorRgb F10 = new ColorRgb();\n F10.r = ((double)VSDK.signedByte2unsignedInteger(p.r)) / 255.0;\n F10.g = ((double)VSDK.signedByte2unsignedInteger(p.g)) / 255.0;\n F10.b = ((double)VSDK.signedByte2unsignedInteger(p.b)) / 255.0;\n\n p = getPixelRgb(i, j+1);\n ColorRgb F01 = new ColorRgb();\n F01.r = ((double)VSDK.signedByte2unsignedInteger(p.r)) / 255.0;\n F01.g = ((double)VSDK.signedByte2unsignedInteger(p.g)) / 255.0;\n F01.b = ((double)VSDK.signedByte2unsignedInteger(p.b)) / 255.0;\n\n p = getPixelRgb(i+1, j+1);\n ColorRgb F11 = new ColorRgb();\n F11.r = ((double)VSDK.signedByte2unsignedInteger(p.r)) / 255.0;\n F11.g = ((double)VSDK.signedByte2unsignedInteger(p.g)) / 255.0;\n F11.b = ((double)VSDK.signedByte2unsignedInteger(p.b)) / 255.0;\n\n //-----------------------------------------------------------------\n ColorRgb FU0 = new ColorRgb();\n FU0.r = F00.r + du * (F10.r-F00.r);\n FU0.g = F00.g + du * (F10.g-F00.g);\n FU0.b = F00.b + du * (F10.b-F00.b);\n\n ColorRgb FU1 = new ColorRgb();\n FU1.r = F01.r + du * (F11.r-F01.r);\n FU1.g = F01.g + du * (F11.g-F01.g);\n FU1.b = F01.b + du * (F11.b-F01.b);\n\n ColorRgb FVAL = new ColorRgb();\n FVAL.r = FU0.r + dv * (FU1.r-FU0.r);\n FVAL.g = FU0.g + dv * (FU1.g-FU0.g);\n FVAL.b = FU0.b + dv * (FU1.b-FU0.b);\n\n return FVAL;\n }", "private void createEdges() {\n int edgeSize = windowSize - 1;\n BufferedImage edgedImage = new BufferedImage(image.getWidth() + edgeSize, image.getHeight() + edgeSize, BufferedImage.TYPE_INT_ARGB);\n int[] edgeData = ((DataBufferInt) edgedImage.getRaster().getDataBuffer()).getData();\n\n // set every pixels in edged image to -1 to use for checking unassigned pixels when filling edges\n for (int i = 0; i < edgeData.length; i++) {\n edgeData[i] = -1;\n }\n\n // draw original image onto center of edged image\n edgedImage.getGraphics().drawImage(image, edgeSize/2, edgeSize/2, null);\n edgedImage.getGraphics().dispose();\n\n\n //TODO - get this working after program works to improve speed\n// byte[] edgedData = ((DataBufferByte) edgedImage.getRaster().getDataBuffer()).getData();\n// byte[] originalData = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();\n//\n // copy image into larger, edged image. currently not working,\n// for (int i = windowSize / 2 * 3, originalI = 0; i < image.getHeight() - windowSize / 2; i++, originalI++) {\n// for (int j = windowSize / 2 * 3, originalJ = 0; j < image.getWidth() - windowSize / 2; j++, originalJ++) {\n// edgedData[i + j * edgedImage.getWidth()] = originalData[originalI + originalJ * image.getWidth()];\n// }\n// }\n\n image = edgedImage;\n fillEdges();\n }", "public Object[] plotOverlappedGradientBoxesGrayAreas(Object... rhs) throws RemoteException;", "public final void borderHysteresisThreshold(\r\n\t\t\tfinal int _lower,\r\n\t\t\tfinal int _upper) {\r\n\t\t\r\n\t\tBufferedImage bi_result = new BufferedImage(bi_image.getWidth(),\r\n\t\t\t\tbi_image.getHeight(), BufferedImage.TYPE_INT_RGB);\r\n\t\t\r\n\t\tdouble[][][] borderInfo1 = new double[bi_result.getWidth()][bi_result.getHeight()][2];\r\n\t\t\r\n\t\t/*\r\n\t\t * Step 1: Detection of border pixel.\r\n\t\t */\r\n\t\t\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\t\r\n\t\t\t\t//fold with \r\n\t\t\t\t//\r\n\t\t\t\t//\t-1/4\t0\t1/4\r\n\t\t\t\t//\t-2/4\t0\t2/4\r\n\t\t\t\t//\t-1/4\t0\t1/4\r\n\t\t\t\tint magnX = (\r\n\t\t\t\t\t\t-bi_image.getGrayifiedValue(x - 1, y - 1) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y + 1) / 3 \r\n\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y - 1) / 3 \r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y) / 3\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y + 1) / 3);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\tint magnY = (\r\n\t\t\t\t\t\t-bi_image.getGrayifiedValue(x - 1, y - 1) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y + 1) / 3 \r\n\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y - 1) / 3 \r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y) / 3\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y + 1) / 3);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//direction\r\n\t\t\t\tdouble direction;\r\n\t\t\t\tif (magnY != 0 && magnX != 0) {\r\n\t\t\t\t\tdirection = Math.atan(magnX / magnY);\r\n\t\t\t\t} else if (magnY == 0) {\r\n\t\t\t\t\tdirection = Math.atan(magnX / 0.01);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdirection = Math.atan(0);\r\n\t\t\t\t}\r\n\t\t\t\tdouble magnitude = Math.sqrt(magnX * magnX + magnY * magnY);\r\n\t\t\t\t\r\n\t\t\t\tmagnY = Math.abs(magnY);\r\n\t\t\t\tmagnX = Math.abs(magnX);\r\n\r\n\t\t\t\tborderInfo1[x][y][0] = magnitude;\r\n\t\t\t\tborderInfo1[x][y][1] = direction;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//non-maximum-suppression\r\n\r\n\t\tdouble[][][] borderInfo2 = new double[bi_result.getWidth()][bi_result.getHeight()][2];\r\n\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\t//nY\r\n\t\t\t\t// \r\n\t\t\t\t// |alpha\r\n\t\t\t\t// |\r\n\t\t\t\t// --------->nX\r\n\t\t\t\t// arctan(nX / ny) = Winkel(alpha). gegenkathete / ankathete\r\n\t\t\t\t//find neighbors of the pixel (x, y) by direction:\r\n\t\t\t\tdouble direction = borderInfo1[x][y][1];\r\n\r\n\t\t\t\tint nX = 1;\r\n\t\t\t\tint nY = 1;\r\n\t\t\t\tif (direction < 0)\r\n\t\t\t\t\tnX = -1;\r\n\t\t\t\telse if (direction > 0)\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (direction >= 0 && direction <= Math.PI / 4) {\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\tnY = 0;\r\n\t\t\t\t} else if (direction >= Math.PI / 4 && direction <= Math.PI * 2 / 4) {\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\tnY = 1;\r\n\t\t\t\t} else if (direction >= -Math.PI / 4 && direction <= 0) {\r\n\t\t\t\t\tnX = 0; \r\n\t\t\t\t\tnY = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t// - pi / 2 ; + pi / 2\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t\t\tif (Math.abs(borderInfo1[x][y][0]) >= Math.abs(borderInfo1[x + nX][y + nY][0])\r\n\t\t\t\t\t\t&& Math.abs(borderInfo1[x][y][0]) >= Math.abs(borderInfo1[x + nX][y + nY][0])) {\r\n\t\t\t\t\tborderInfo2[x][y][0] = borderInfo1[x][y][0];\r\n\t\t\t\t\tborderInfo2[x][y][1] = borderInfo1[x][y][1];\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\t//hysteresis-threshold\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (borderInfo1[x][y][0] >= _lower){\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_potential);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_noBorder);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (borderInfo1[x][y][0] >= _upper){\r\n\t\t\t\t\tfollowEdge(x, y, bi_result);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (bi_result.getRGB(x, y) == rgb_potential){\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_noBorder);\r\n\t\t\t\t} else if (bi_result.getRGB(x, y) == rgb_border) {\r\n\t\t\t\t\tbi_result.setRGB(x, y, bi_image.getContent().getRGB(x, y));\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\tBufferedViewer.show(bi_result);\r\n\t\tBufferedViewer.getInstance().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t}", "private static void normalizeColor(BufferedImage image) {\n\t\tHashMap<Integer, Integer> counts = colorHistogram(image);\r\n\t\tInteger[] a=sortmap(counts); // sorting the map\r\n\t\tInteger minFreq = 1000;\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\tif (counts.get(i) < minFreq) {\r\n\t\t\t\tminFreq = counts.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n\t\t*Main logic to normalise the code\r\n\t\t* Assumption: all the colors which start from edges are the noise to the captcha or background.\r\n\t\t*/\r\n\t\tArrayList<Integer> topValues = new ArrayList<>();\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\ttopValues.add(i); // adding all the colors into the the array list topValues without any condition\r\n\t\t}\r\n\t\tInteger[] out=findEdgecolors(image); // findEdgecolors function returns the array of RGB values of colors which are at the edges of the picture\r\n\t\tfor(int i=0;i<out.length;i++)\r\n\t\t{\r\n\t\t\tif(out[i]!=null)\r\n\t\t\t\ttopValues.remove(out[i]); // remove the colours from topValues list if the color exist in the array returned by the findEdgecolors funciton (removing the colors which start from edges)\r\n\t\t}\r\n\t\t/*\r\n\t\t*Now topvalues consists of colors which are not in the edges of the clipped image\r\n\t\t*/\r\n\t\tint white_rgb = Color.YELLOW.getRGB();\r\n\t\tint black_rgb = Color.BLACK.getRGB();\r\n\r\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\tif (!topValues.contains(pixelVal)) {\r\n\t\t\t\t\timage.setRGB(x, y, white_rgb); //replacing the colors in topvalue with black\r\n\t\t\t\t} else {\r\n\t\t\t\t\timage.setRGB(x, y, black_rgb); // rest is colored with yellow (background)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"colorNormalized.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}", "private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }", "private Color[] getMiddleArcColors()\n {\n return getColorsForState(this.iconPartStates[1]);\n }", "public native int getTotalColors() throws MagickException;", "public Color getBorderColor();", "public static native int getEdgeDetection(int pin) throws RuntimeException;", "public static int[] getPixelColor(BufferedImage image,int x,int y) {\n int colors[] = new int[3];\n int clr = 0;\n\n try{\n clr = image.getRGB(x,y); \n }catch(Exception e){\n System.out.println(e);\n System.out.println(x + \" \" + y);\n }\n\n int red = (clr & 0x00ff0000) >> 16;\n int green = (clr & 0x0000ff00) >> 8;\n int blue = clr & 0x000000ff;\n colors[0] = red;\n colors[1] = green;\n colors[2] = blue;\n return colors;\n }", "private Color[] getExternalArcColors()\n {\n return getColorsForState(this.iconPartStates[0]);\n }", "String getEdges();", "public int[] getExperimentColorIndices();", "int getNumColors();", "private int getCloseColor(int[] prgb) {\n \t\t\t\n \t\t\treturn getClosestColorByDistance(palette, firstColor, numColors, prgb, -1);\n \t\t}", "public int getEdgeCount() \n {\n return 3;\n }", "private Color[] getExpectedPixels() {\n return new Color[]{BLACK, BLACK, BLACK,\n BLACK, BLACK, WHITE,\n BLACK, WHITE, BLACK,\n WHITE, BLACK, BLACK};\n }", "public abstract Color getRegionColor(double[] offset, double[] size);", "int getEdgeCount();", "private Mat segmentRedColorViaInverting(Mat bgr) {\n Mat bgrInverted = new Mat();\n Mat hsvInverted = new Mat();\n Mat maskInv = new Mat();\n Core.bitwise_not(bgr, bgrInverted);\n Imgproc.cvtColor(bgrInverted, hsvInverted, Imgproc.COLOR_BGR2HSV);\n inRange(hsvInverted, new Scalar(90 - MAX_COLOR_CHANNEL_OFFSET, 70, 50), new Scalar(90 + MAX_COLOR_CHANNEL_OFFSET, 255, 255), maskInv);\n return maskInv;\n }", "public native int getNumberColors() throws MagickException;", "private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\t\n \t\t\tfloat hue = phsv[0];\n \t\t\tfloat val = phsv[2] * 100 / 256;\n \n \t\t\tint closest = -1;\n \n \t\t\tfinal int white = 15;\n \t\t\tfinal int black = 1;\n \t\t\tfinal int grey = 14;\n \t\t\t\n \t\t\tif (phsv[1] < (hue >= 30 && hue < 75 ? 0.66f : 0.33f)) {\n \t\t\t\tif (val >= 70) {\n \t\t\t\t\tclosest = white;\n \t\t\t\t} else if (val >= 10) {\n \t\t\t\t\t// dithering will take care of the rest\n \t\t\t\t\tclosest = grey;\n \t\t\t\t} else {\n \t\t\t\t\tclosest = black;\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tclosest = getClosestColorByDistance(palette, firstColor, 16, prgb, 12);\n \t\t\t\t\n \t\t\t\t// see how the color matches\n \t\t\t\tif (closest == black) {\n \t\t\t\t\tif (phsv[1] > 0.9f) {\n \t\t\t\t\t\tif ((hue >= 75 && hue < 140) && (val >= 5 && val <= 33)) {\n \t\t\t\t\t\t\tclosest = 12;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t/*else {\n \t\t\t\t\tint rigid = rigidMatch(phsv, hue, val);\n \t\t\t\t\tif (phsv[1] < 0.5f && (rigid == 1 || rigid == 14 || rigid == 15)) {\n \t\t\t\t\t\tclosest = rigid;\n \t\t\t\t\t}\n \t\t\t\t}*/\n \t\t\t}\n \t\t\t\n \t\t\t//closest = rigidMatch(phsv, hue, val);\n \t\t\t\n \t\t\treturn closest;\n \t\t}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public void findUpperAndLowerEdge() throws NoSudokuFoundException{\n int bestUpperHit = 0;\n int bestLowerHit = 0;\n double t = INTERSECT_TOLERANCE;\n for (int h=0; h<nextH; h++) {\n int upperHit = 0;\n int lowerHit = 0;\n // for every horizontal line, check if vertical edge points A and B \n // are on that line.\n double[] hline = horizontalLines[h];\n double hy1 = hline[1],\n hy2 = hline[3];\n for (int v=0; v<nextV; v++){\n double[] vec = verticalLines[v];\n double ay = vec[1],\n by = vec[3];\n // if they are, count them\n if(ay < by) { // A is above B\n if ((hy1<=ay+t && ay<=hy2+t) || (hy1+t>=ay && ay+t>=hy2)){\n // A is between the left and right edge point.\n // only count it if it is above the screen center.\n if(hy1 < centerY && hy2 < centerY) {\n upperHit++;\n }\n } else if ((hy1<=by+t && by<=hy2+t) || (hy1+t>=by && by+t>=hy2)) {\n if(hy1 > centerY && hy2 > centerY) {\n lowerHit++;\n }\n }\n } else { // B is above A\n if ((hy1<=by+t && by<=hy2+t) || (hy1+t>=by && by+t>=hy2)) {\n if(hy1 < centerY && hy2 < centerY) {\n upperHit++;\n }\n } else if ((hy1<=ay+t && ay<=hy2+t) || (hy1+t>=ay && ay+t>=hy2)) {\n if(hy1 > centerY && hy2 > centerY) {\n lowerHit++;\n }\n } \n }\n }\n // take the lines with the highest counts\n if(upperHit > bestUpperHit) {\n edges[0] = horizontalLines[h];\n bestUpperHit = upperHit;\n } else if (lowerHit > bestLowerHit){\n edges[2] = horizontalLines[h];\n bestLowerHit = lowerHit;\n }\n }\n if(bestUpperHit < LINE_THRESHOLD || bestLowerHit < LINE_THRESHOLD){\n throw new NoSudokuFoundException(\"Number of upper (\"+bestUpperHit+\") or lower (\"+bestLowerHit+\") line ends below threshold. h\");\n }\n // Log.v(TAG, \"Best upper hit: \" + bestUpperHit + \", best lower: \" + bestLowerHit);\n }", "private static int getMainColor(BufferedImage image)\n {\n // Counts how many time each colors appear\n ColorOccurence co[] = new ColorOccurence[10000];\n\n // For every pixel of the image\n for(int x = 0; x < image.getWidth(null) / 2; x++)\n {\n for(int y = 0; y < image.getHeight(null) / 2; y++)\n {\n // Get the pixel\n int pixel = image.getRGB(x, y);\n\n // Parse every element initialized of the array\n for(int i = 0; i < 10000; i++)\n {\n // If the element is null, a new color has been found\n if(co[i] == null)\n {\n // Creates a new color and sets its occurence to 1\n co[i] = new ColorOccurence(pixel, 1);\n break;\n }\n\n // If the color is already is already in the array, add one\n if(co[i].color == pixel){\n co[i].occurence += 1;\n break;\n }\n }\n }\n }\n\n // Maximum number of occurence\n int max = 0;\n\n // The color that appeared the most so far\n int maxVal = 0;\n\n // For every color\n for(ColorOccurence c : co)\n {\n // If null, the whole array has been parsed\n if(c == null)\n {\n break;\n }\n\n // If this color occurs more times than the previous most appearing\n // color, set it as the new most appearing color\n if(c.occurence > max)\n {\n max = c.occurence;\n maxVal = c.color;\n }\n }\n return maxVal;\n }", "private List<int[]> separateColorChannels(RGBImage image) {\n\t\tList<int[]> outList = new ArrayList<int[]>(3);\n\t\tint[] data = (int[]) image.getValue();\n\t\tint[] rch = new int[data.length];\n\t\tint[] gch = new int[data.length];\n\t\tint[] bch = new int[data.length];\n\t\tfor (int i = 0; i < data.length && start; i++) {\n\t\t\trch[i] = (data[i] >> 16) & MASK;\n\t\t\tgch[i] = (data[i] >> 8) & MASK;\n\t\t\tbch[i] = data[i] & MASK;\n\t\t}\n\t\toutList.add(0, rch);\n\t\toutList.add(1, gch);\n\t\toutList.add(2, bch);\n\t\treturn outList;\n\t}", "int getClosestPalettePixel(int[] prgb);", "public static void testEdgeDetection()\n {\n Picture swan = new Picture(\"swan.jpg\");\n swan.edgeDetection();\n swan.explore();\n }", "public int[] getColorIndexes()\n {\n return this.colorIndexes;\n }", "public Color[] getExperimentColors();", "public Color getEdgeColor(E edge, int fromSelectionLevel, int toSelectionLevel) {\n\t\treturn edgeColor;\n\t}", "public List<Point> findCornerPoints(Mat mRgba) throws NoSudokuFoundException{\n // draw edge points\n findUpperAndLowerEdge();\n findLeftAndRightEdge();\n \n for(int i=0; i<edges.length; i++){\n Point a = new Point(edges[i][0], edges[i][1]);\n Point b = new Point(edges[i][2], edges[i][3]);\n Core.line(mRgba, a, b, new Scalar(255, 0, 0), 3);\n }\n // Find the upper left corner point\n Point tl = findCornerPoint(edges[0], edges[3]);\n // Find the upper right corner point\n Point tr = findCornerPoint(edges[0], edges[1]);\n // Find the lower left corner point\n Point bl = findCornerPoint(edges[3], edges[2]);\n // Find the lower right corner point\n Point br = findCornerPoint(edges[2], edges[1]);\n \n // Sanity check: The corner points have to be correctly relative\n // to each other\n if(tl.x > tr.x || bl.x > br.x || tl.y > br.y || tr.y > br.y) {\n throw new NoSudokuFoundException(\"Points are not correctly aligned\");\n }\n \n // Sanity check: The Sudoku has to be about square\n // calculate and compare the distance of the diagonals\n // raise an exception if the difference is more than 10%.\n double a = Math.sqrt(Math.pow(tr.y-bl.y, 2) + Math.pow(tr.x-bl.x, 2));\n double b = Math.sqrt(Math.pow(tl.y-br.y, 2) + Math.pow(tl.x-br.x, 2));\n double diff = Math.abs(a-b);\n \n // Sanity check: The upper edge is the shortest because it is farthest\n // from the lens. So the area of the square found must be larger than \n // the square of the upper line.\n\n \n\n // draw the points cyan.\n Core.line(mRgba, tl, tl, new Scalar(20,255,255), 3);\n Core.line(mRgba, tr, tr, new Scalar(20,255,255), 3);\n Core.line(mRgba, bl, bl, new Scalar(20,255,255), 3);\n Core.line(mRgba, br, br, new Scalar(20,255,255), 3);\n \n if(diff * 10 > a || diff * 10 > b) {\n throw new NoSudokuFoundException(\"Structure is not a square.\");\n }\n List<Point> points = new ArrayList<Point>();\n points.add(bl);\n points.add(br);\n points.add(tr);\n points.add(tl);\n return points;\n }", "public native PixelPacket getBackgroundColor() throws MagickException;", "private ArrayList<ColorMixerModel.ColorItem> pathIntersection(){\n ArrayList<ColorMixerModel.ColorItem> toDel = new ArrayList<>();\n for(ColorMixerModel.ColorItem c: cmModel.colorSet){\n Ellipse2D.Float cobj = new Ellipse2D.Float(c.getPos().x,c.getPos().y, c.getR(),c.getR());\n if(mouseTrace.intersects(cobj.getBounds2D())){\n toDel.add(c);\n }\n }\n return toDel;\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "public static Color[][] getImageC(Image img) {\n\n // Get the raw pixel data \n iObserver observer = new iObserver();\n int width1 = img.getWidth(observer);\n int height1 = img.getHeight(observer);\n int[] rawPixels = utils.getPixels(img,width1,height1);\n\n // Each pixel is represented by 32 bits. Separate the tH32 bits into\n // four 8-bit values (red, green, blue, offset).\n\n // Arrange the data by rows and columns\n //row-col has been reversed\n Color[][] imagePixels = new Color[height1][width1];\n int index=0;\n for(int row=0; row<imagePixels.length; row++) {\n for(int col=0; col<imagePixels[0].length; col++) {\n imagePixels[col][row] = new Color(rawPixels[index]);\n index++;\n } // for col\n } // for row\n return imagePixels;\n }", "public Color[] getColors();", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}", "int[] getEndRGB();", "private Mat segmentRedColor(Mat bgr) {\n Mat mask1 = new Mat();\n Mat mask2 = new Mat();\n Mat normal = new Mat();\n Mat hsv = new Mat();\n Imgproc.cvtColor(bgr, hsv, Imgproc.COLOR_BGR2HSV, 3);\n inRange(hsv, new Scalar(0, 120, 50), new Scalar(MAX_COLOR_CHANNEL_OFFSET, 255, 255), mask1);\n inRange(hsv, new Scalar(170, 120, 50), new Scalar(180, 255, 255), mask2);\n Core.bitwise_or(mask1, mask2, normal);\n return mask1;\n }", "private void splitEdgeDetection() {\n\t\tif(!currentlyDetecting)\n {\n detectRisingEdge();\n }else{//if currentlyDetecting is true, then we are looking for a falling edge\n detectFallingEdge();\n }\n\t}", "private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\treturn phsv[2] < 64 ? fg : bg;\n \t\t}", "public native int getColorspace() throws MagickException;", "int[] getEdgesIncidentTo(int... nodes);", "public int[] findRedundantConnection(int[][] edges) {\n if (edges == null || edges.length == 0) return new int[]{};\n \n UF uf = new UF(edges.length);\n \n int[] res = new int[2];\n for (int i = 0; i < edges.length; i++) {\n int x = edges[i][0] - 1, y = edges[i][1] - 1;\n int rx = uf.find(x), ry = uf.find(y);\n \n if (rx == ry) {\n res[0] = x + 1;\n res[1] = y + 1;\n } else {\n uf.union(rx, ry);\n }\n }\n \n return res;\n }", "private List<Collection<Pixel>> holeFinder() {\n\n\t\tList<Pixel> holePixels = new LinkedList<Pixel>();\n\t\tList<Pixel> boundaryPixels = new LinkedList<Pixel>();\n\t\tQueue<Pixel> bfsQueue = new LinkedList<Pixel>();\n\t\tboolean[][] marked = new boolean[mRows][mCols];\n\n\t\tPixel pixel = findFirstHolePixel();\n\t\tbfsQueue.add(pixel);\n\t\tholePixels.add(pixel);\n\t\tmarked[pixel.getRow()][pixel.getCol()] = true;\n\n\t\twhile (!bfsQueue.isEmpty()) {\n\t\t\tPixel currentPixel = bfsQueue.remove();\n\n\t\t\tList<Pixel> connectedPixels = mConnections.getConnections(currentPixel);\n\n\t\t\t// iterates on the pixels who are connected to current pixel\n\t\t\t// if the pixel was already visited skip it\n\t\t\t// else, if the pixel is a hole add it to the list of the holes and to the BFS Queue to expand the hole\n\t\t\t// \t\t else add it to the result list, the pixel belongs to the boundary\n\t\t\tfor (Pixel p : connectedPixels) {\n\t\t\t\tint indexRow = p.getRow();\n\t\t\t\tint indexCol = p.getCol();\n\n\t\t\t\tif (!marked[indexRow][indexCol]) {\n\t\t\t\t\tmarked[indexRow][indexCol] = true;\n\n\t\t\t\t\tif (mImage[indexRow][indexCol] == HOLE) {\n\t\t\t\t\t\tholePixels.add(p);\n\t\t\t\t\t\tbfsQueue.add(p);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tp.setColor(mImage[p.getRow()][p.getCol()]);\n\t\t\t\t\t\tboundaryPixels.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tList<Collection<Pixel>> result = new LinkedList<Collection<Pixel>>();\n\t\tresult.add(boundaryPixels);\n\t\tresult.add(holePixels);\n\t\treturn result;\n\t}", "public native PixelPacket getColormap(int index) throws MagickException;", "protected Color getInnerColor(final ARXNode node) {\n if (node.getAnonymity() == Anonymity.ANONYMOUS) {\n return node.equals(optimum) ? COLOR_YELLOW : COLOR_GREEN;\n } else if (node.getAnonymity() == Anonymity.PROBABLY_ANONYMOUS) {\n return COLOR_LIGHT_GREEN;\n } else if (node.getAnonymity() == Anonymity.PROBABLY_NOT_ANONYMOUS) {\n return COLOR_LIGHT_RED;\n } else if (node.getAnonymity() == Anonymity.UNKNOWN) {\n return COLOR_DARK_GRAY;\n } else {\n return COLOR_RED;\n }\n }", "public BufferedImage getEdge() {\n\t\treturn edge;\n\t}", "List<CyEdge> getInternalEdgeList();", "public int getNumEdges();", "public List<Piece> getEdges() {\n List<Piece> result = new ArrayList<>();\n result.add(_board[0][1]);\n result.add(_board[1][0]);\n result.add(_board[1][2]);\n result.add(_board[2][1]);\n return result;\n }", "public int getProbeColorIndex(int row);", "java.awt.Color getColor();", "public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();", "public static void main(String[] args) throws IOException {\n BufferedReader f = new BufferedReader(new FileReader(\"fcolor.in\"));\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"fcolor.out\")));\n StringTokenizer st = new StringTokenizer(f.readLine());\n numNode = Integer.parseInt(st.nextToken());\n numEdge = Integer.parseInt(st.nextToken());\n fans = new ArrayList[numNode];\n for (int i = 0; i < numNode; i++) {\n fans[i] = new ArrayList<>();\n }\n for (int i = 0; i < numEdge; i++) {\n st = new StringTokenizer(f.readLine());\n int star = Integer.parseInt(st.nextToken()) - 1;\n int fan = Integer.parseInt(st.nextToken()) - 1;\n fans[star].add(fan);\n }\n visited = new boolean[numNode];\n finder = new int[numNode];\n for (int i = 0; i < finder.length; i++) {\n finder[i] = i;\n }\n headFan = new int[numNode];\n Arrays.fill(headFan, -1);\n for (int i = 0; i < numNode; i++) {\n if (visited[i])\n continue;\n dfs(i);\n }\n\n HashMap<Integer, Integer> group2Col = new HashMap<>();\n int counter = 1;\n for (int i = 0; i < numNode; i++) {\n int father = find(i);\n if (group2Col.containsKey(father)) {\n out.println(group2Col.get(father));\n } else {\n group2Col.put(father, counter);\n out.println(counter);\n counter++;\n }\n }\n out.close();\n }", "ArrayList<Edge> getAdjacencies();", "public PDColor getInteriorColor() {\n/* 435 */ return getColor(COSName.IC);\n/* */ }", "protected abstract PixelAsColors applyToPixel(Node n) throws IllegalArgumentException;", "int getRed(int x, int y);", "public static IntArrayPtr\ngetColorIndices(SoState state) \n{ \n SoLazyElement elem = getInstance(state);\n if(state.isCacheOpen()) elem.registerGetDependence(state, masks.DIFFUSE_MASK.getValue());\n //return curElt.ivState.colorIndices;\n\treturn new IntArrayPtr(elem.coinstate.colorindexarray);\n}", "private Color[] imageToArray(BufferedImage image){\n Color[] pixels = new Color[image.getWidth() * image.getWidth()];\n for (int i = 0; i < image.getHeight(); i++) {\n for (int j = 0; j < image.getWidth(); j++) {\n Color color = new Color(image.getRGB(j,i));\n pixels[i*image.getWidth() + j] = color;\n }\n }\n return pixels;\n }", "private native int grayToRgb(byte src[],int dst[]);", "public int[] getColorIndexPointer()\n\t {\n\t \t return null;\n\t \t }", "private Color pixelColor(int i, int j, int res) {\r\n\t\tCamera camera = _scene.get_camera();\r\n\t\tColor background = _scene.get_background();\r\n\t\tdouble distance = _scene.get_screenDistance();\r\n\t\tdouble width = _imageWriter.getWidth();\r\n\t\tdouble height = _imageWriter.getHeight();\r\n\r\n\t\tint nX = _imageWriter.getNx();\r\n\t\tint nY = _imageWriter.getNy();\r\n\r\n\t\tRay ray = camera.constructRayThroughPixel((int) (nX * res), (int) (nY * res), j, i, distance, width, height);\r\n\t\tGeoPoint closestPoint = findClosestIntersection(ray);\r\n\t\tif (closestPoint == null)\r\n\t\t\treturn background;\r\n\r\n\t\telse\r\n\t\t\treturn calcColor(closestPoint, ray);\r\n\r\n\t}", "public Color getSummaryEdgeColor(BaseSummaryEdge edge, int fromSelectionLevel, int toSelectionLevel) {\n\t\treturn edgeColor;\n\t}", "public static int[] getPixelColor(final BufferedImage img, final int x, final int y){\n int rgb = img.getRGB(x, y);\n int r = (rgb >> 16) & 0xFF;\n int g = (rgb >> 8) & 0xFF;\n int b = (rgb & 0xFF);\n\t\n return new int[]{r,g,b};\n }", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "public static ArrayList<Corner> findCorners(int[][] area, boolean countEdges) {\r\n\t\tArrayList<Corner> corners = new ArrayList<Corner>();\r\n\t\tfor (int i = 0; i < area.length; i++) { // each row\r\n\t\t\tfor (int j = 0; j < area[i].length; j++) { // each column\r\n\t\t\t\tif (area[i][j] == 0) { // it's not a wall - lets test to see if\r\n\t\t\t\t\t\t\t\t\t\t// it's a corner\r\n\t\t\t\t\tif (CornerAnalysis.isCorner(area, i, j, countEdges)) {\r\n\t\t\t\t\t\tCorner c = new Corner(new Vector2(i, j), new Vector2());\r\n\t\t\t\t\t\tif(isDeepCorner(area, c)) { c.setDeep(true); }\r\n\t\t\t\t\t\tcorners.add(c);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn corners;\r\n\t}", "private void selectNovelColors(IMapColor mapColor, Histogram hist, int interestingColors,\n \t\t\tint usedColors, int[] paletteSelections) {\n \t\t\n \t\tInteger[] indices = (Integer[]) hist.getColorIndices().toArray(new Integer[hist.getColorIndices().size()]);\n \t\tSet<Integer> visited = new HashSet<Integer>();\n \t\t\n \t\tbyte[] rgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tfloat[] lastHSV = { 0, 0, 0 };\n \t\tint[] lastRGB = { 0, 0, 0 };\n \t\tint lastPixel = Integer.MIN_VALUE;\n \t\t\n \t\tint directMap = usedColors / 3;\n \t\tint distance = interestingColors / 3;\n \t\t\n \t\tfor (int i = 0; i < usedColors; i++) {\n \t\t\tfloat maxDiff = -Float.MAX_VALUE;\n \t\t\tint farthestIndex = 0;\n \t\t\tint farthestPixel = 0;\n \t\t\t\n \t\t\tint searchDist = Math.max(1, Math.min(indices.length, (distance * (i + 1) / usedColors)));\n \t\t\tfor (int j = 0; j < searchDist && j < indices.length; j++) {\n \t\t\t\tif (visited.contains(j)) {\n \t\t\t\t\tsearchDist++;\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint idx = indices[j];\n \t\t\t\tint pixel = mapColor.getPalettePixel(idx);\n \t\t\t\tpixelToRGB(pixel, rgb);\n \t\t\t\trgbToHsv(rgb[0] & 0xff, rgb[1] & 0xff, rgb[2] & 0xff, hsv);\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tfloat diff = //(hsv[0] - lastHSV[0]) * (hsv[0] - lastHSV[0])\n \t\t\t\t\t//+ ((hsv[1] - lastHSV[1]) * (hsv[1] - lastHSV[1])) * 100000\n \t\t\t\t\t+ (hsv[2] - lastHSV[2]) * (hsv[2] - lastHSV[2])\n \t\t\t\t;\n \t\t\t\t\n \t\t\t\t//float diff = getRGBDistance(rgb, lastRGB);\n \t\t\t\tif (diff >= maxDiff) {\n \t\t\t\t\tmaxDiff = diff;\n \t\t\t\t\tfarthestPixel = pixel;\n \t\t\t\t\tfarthestIndex = j;\n \t\t\t\t\tif (i < directMap) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t} \n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// winner!\n \t\t\tpaletteSelections[i] = farthestIndex;\n \t\t\tvisited.add(farthestIndex);\n \t\t\t\n \t\t\tlastPixel = farthestPixel;\n \t\t\tpixelToRGB(lastPixel, lastRGB);\n \t\t\trgbToHsv(lastRGB[0] & 0xff, lastRGB[1] & 0xff, lastRGB[2] & 0xff, lastHSV);\n \t\t}\n \t}", "public static int countColorsAboveBrightnessThreshold(double bound) {\n int count = 0;\n\n if (bound >= luminanceOfRed255Green255Blue11()) {\n //If the bound is this high, no color value can be lower than 11, even if the other two are maxed.\n double maxRedBlueSumLuminance = 0.2126 + 0.0722; // Equals .2848, which is 1 - .7152\n double minGreenContrib = bound - maxRedBlueSumLuminance;\n double minGreenElementLuminance = minGreenContrib / .7152;\n // What is RsGreen when ((RsGreen + .055)/1.055)^2.4 == minGreenElementLuminance?\n double minRsGreen = RsRGBFromElementLuminanceWhereIntAbove10(minGreenElementLuminance);\n long minGreenInt = Math.round(Math.ceil(minRsGreen*255));\n Long i = minGreenInt;\n while (i <= 255) {\n //Evaluate what happens when the green value from 0 to 255 is equal to i\n double greenElementLuminance = .7152*ColorNamer.elementLuminance(i.intValue());\n double minRedContrib = bound - greenElementLuminance - .0722;\n // Red must contribute at least minRedContrib luminance for the luminance to be above the bound\n double minRedElementLuminance = minRedContrib / .2126;\n double minRsRed = RsRGBFromElementLuminanceWhereIntAbove10(minRedElementLuminance);\n long minRedInt = Math.round(Math.ceil(minRsRed*255));\n Long j = minRedInt;\n while (j <= 255) {\n double redElementLuminance = .2126*ColorNamer.elementLuminance(j.intValue());\n double minBlueContrib = bound - greenElementLuminance - redElementLuminance;\n double minBlueElementLuminance = minBlueContrib / .0722;\n double minRsBlue = RsRGBFromElementLuminanceWhereIntAbove10(minBlueElementLuminance);\n long minBlueInt = Math.round(Math.ceil(minRsBlue*255));\n count += (255 - minBlueInt + 1);\n j++;\n }\n\n i++;\n }\n }\n else {\n System.out.println(\"countColorsAboveBrightnessThreshold is not finished for bounds this low\");\n }\n\n return count;\n }", "private int liveNeighbours(int i,int j) {\n\t\tint count = 0;\n\t\tif (button[i - 1][j - 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i - 1][j].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i - 1][j + 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i][j - 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i][j + 1].getBackground() == Color.yellow){\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][ j - 1].getBackground() == Color.yellow){\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][j].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][j + 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public static int[] edgeEnhanceFilter(int[] data, int[] LoGdata, int w, int h) {\n int[] newData = new int[w * h];\n\n int radius = 3;\n double g = Math.PI * radius * radius / 2d;\n\n // relative distance list of radius r\n ArrayList<Point> rdists = new ArrayList<Point>();\n for (int rx = -radius; rx <= radius; rx++) {\n for (int ry = -radius; ry <= radius; ry++) {\n if (rx * rx + ry * ry <= (radius + 0.5) * (radius + 0.5)) {\n // within the circle\n rdists.add(new Point(rx, ry));\n }\n }\n }\n\n for (int x = 0; x < w; x++) {\n for (int y = 0; y < h; y++) {\n int index = y * w + x;\n\n // calculate mthres\n double mthres = 0;\n for (Point p : rdists) {\n int xx = x + p.x, yy = y + p.y;\n if (xx >= 0 && xx < w && yy >= 0 && yy < h) {\n double sechx = Lab.distance(data[index], data[(y + p.y) * w + (x + p.x)]) / 8d;\n mthres += Math.pow(2d / (Math.exp(sechx) + Math.exp(-sechx)), 5d);\n }\n }\n\n if (LoGdata[index] >= -3) {\n mthres /= rdists.size();\n mthres = Math.pow(mthres, 3d);\n mthres *= rdists.size();\n }\n\n int val = 0;\n if (mthres <= g) {\n val = (int) ((g - mthres) / g * 255d);\n }\n\n newData[index] = RGB.rgb(val, val, val);\n }\n }\n return newData;\n }", "public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }" ]
[ "0.7078127", "0.6463911", "0.6237494", "0.6189179", "0.6094446", "0.6082807", "0.6064378", "0.60619557", "0.59759766", "0.58870465", "0.58391523", "0.58142084", "0.5801467", "0.5794151", "0.5768525", "0.5751997", "0.5750437", "0.5744301", "0.5738278", "0.5718504", "0.57017213", "0.5689027", "0.568448", "0.5674348", "0.56252325", "0.5622809", "0.5614361", "0.5604965", "0.5587636", "0.5578358", "0.5568227", "0.55652416", "0.55621475", "0.55582565", "0.5556488", "0.55551785", "0.5552936", "0.5552158", "0.55485135", "0.55454844", "0.5543465", "0.5540681", "0.5539462", "0.5521627", "0.5513624", "0.5505147", "0.5502035", "0.54924893", "0.54849523", "0.5482234", "0.54794824", "0.54736096", "0.54733306", "0.54715925", "0.5463125", "0.5462988", "0.54625833", "0.5453583", "0.541871", "0.54145247", "0.54133916", "0.54064345", "0.5403866", "0.5399827", "0.538657", "0.53715104", "0.5365155", "0.5362289", "0.5353587", "0.53400075", "0.5337897", "0.533421", "0.5328583", "0.5324655", "0.53107876", "0.5310111", "0.530675", "0.52958673", "0.5277676", "0.52741045", "0.52712935", "0.5261677", "0.52564555", "0.5255951", "0.52558625", "0.5242765", "0.5241186", "0.52332515", "0.52125716", "0.520581", "0.5202122", "0.51822454", "0.51741874", "0.5172522", "0.5163059", "0.5157854", "0.51574093", "0.51544434", "0.5150641", "0.5143205" ]
0.80994356
0
returns a random string to generate a captacha
public static String randomString(int length,boolean flag) { String alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String num="0123456789"; char[] characterSet; if(flag) // flag alpha is set both alphabets and numbers are considered. characterSet = (num+alpha).toCharArray(); else // flag alpha is not set only numbers are considered. characterSet = (num).toCharArray(); Random random = new SecureRandom(); char[] result = new char[length]; for (int i = 0; i < result.length; i++) { // picks a random index out of character set > random character int randomCharIndex = random.nextInt(characterSet.length); result[i] = characterSet[randomCharIndex]; //generates ramdomnumber } return new String(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "public static String rndString() {\r\n char[] c = RBytes.rndCharArray();\r\n return new String(c);\r\n\r\n }", "private static String getRandString() {\r\n return DigestUtils.md5Hex(UUID.randomUUID().toString());\r\n }", "public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}", "private String getRandomName(){\n return rndString.nextString();\n }", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "public static String captcha(){\n\t\tString captcha=\"\";\n\t\tfor(int i=0; i<8; i+=2){\n\t\t\tcaptcha+=(char)(65+Math.random()*26)+\" \";\n\t\t\tcaptcha+=(char)(97+Math.random()*26);\n\t\t}\n\t\treturn captcha;\n\n\t}", "public static String randomeString() {\n\t\t\tString generatedString = RandomStringUtils.randomAlphabetic(8);\n\t\t\tSystem.out.println(generatedString);\n\t\t\treturn generatedString;\n\t\t\t\n\t\t}", "public String generate() {\r\n String result = RandomStringUtils.random(8,true,true);\r\n return result;\r\n }", "public static String rndLetterString() {\r\n int spLen = RBytes.rndInt(10, 20);\r\n char[] c = RBytes.rndCharArray('a', 'z');\r\n char[] C = RBytes.rndCharArray('A', 'Z');\r\n char[] d = RBytes.rndCharArray('0', '9');\r\n String special = \"\";\r\n for (int s = 0; s < spLen; s++) {\r\n special += \"!@#$%^&*()-_~`=+:;.,\";\r\n }\r\n String s1 = new String(c) + new String(d) + new String(C) + special;\r\n return shaffleString(s1);\r\n }", "private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }", "public static String getRandomString() {\n \tif (random == null)\n \t\trandom = new Random();\n \treturn new BigInteger(1000, random).toString(32);\n }", "public String randomString() {\n return new BigInteger(130, random).toString(32);\n }", "public static String randomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\treturn random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t}", "public String generateRandomString(){\n \n StringBuffer randStr = new StringBuffer();\n for(int i=0; i<RANDOM_STRING_LENGTH; i++){\n int number = getRandomNumber();\n char ch = CHAR_LIST.charAt(number);\n randStr.append(ch);\n }\n return randStr.toString();\n }", "String getNewRandomTag() {\n\t\tbyte t[] = new byte[tagLength];\n\t\tfor (int i = 0; i < tagLength; i++) {\n\t\t\tt[i] = (byte) rand('a', 'z');\n\t\t}\n\t\treturn new String(t);\n\t}", "public static String generatePatientName(){\n\n\t\tString retName = \"\";\t// return this string\n\n\t\t// Seed random generator\n\t\tRandom generator = new Random();\n\n\t\tint length = getRandomBetween(5,6);\n\n\t\t// CVCCVC or VCCVCV\n\t\tif(getRandomBetween(1,2) < 2)\n\t\t{\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomVowel();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tif (length >= 5) { retName += getRandomVowel(); }\n\t\t\tif (length >= 6) { retName += getRandomConsonant(); }\n\t\t}\n\t\telse\n\t\t{\n\t\t\tretName += getRandomVowel();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomVowel();\n\t\t\tif (length >= 5) { retName += getRandomConsonant(); }\n\t\t\tif (length >= 6) { retName += getRandomVowel(); }\n\t\t}\n\n\t\treturn retName;\n\t}", "private static String generateRandomString(int size) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < size / 2; i++) sb.append((char) (64 + r.nextInt(26)));\n return sb.toString();\n }", "public static String getRandomString() {\n return RandomStringUtils.random(20, true, false);\n }", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "public String generateMP() {\n\t\t\tString characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~`!@#$%^&*()-_=+[{]}\\\\|;:\\'\\\",<.>/?\";\n\t\t\tString pwd = RandomStringUtils.random(15, 0, 0, false, false, characters.toCharArray(), new SecureRandom());\n\t\t\treturn pwd;\n\t\t}", "private String getRandomString() {\n\t\tStringBuilder salt = new StringBuilder();\n\t\tRandom rnd = new Random();\n\t\twhile (salt.length() <= 5) {\n\t\t\tint index = (int) (rnd.nextFloat() * SALTCHARS.length());\n\t\t\tsalt.append(SALTCHARS.charAt(index));\n\t\t}\n\t\tString saltStr = salt.toString();\n\t\treturn saltStr;\n\t}", "private String generateRandomHexString(){\n return Long.toHexString(Double.doubleToLongBits(Math.random()));\n }", "@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}", "private String generate_uuid() {\n\n int random_length = 12;\n int time_length = 4;\n\n byte[] output_byte = new byte[random_length+time_length];\n\n //12 byte long secure random\n SecureRandom random = new SecureRandom();\n byte[] random_part = new byte[random_length];\n random.nextBytes(random_part);\n System.arraycopy(random_part, 0, output_byte, 0, random_length);\n\n //merged with 4 less significant bytes of time\n long currentTime = System.currentTimeMillis();\n for (int i=random_length; i<output_byte.length; i++){\n output_byte[i] = (byte)(currentTime & 0xFF);\n currentTime >>= 8;\n }\n\n //Converted to base64 byte\n String output = Base64.encodeBase64String(output_byte);\n Log.debug_value(\"UUID\", output);\n return output;\n\n }", "public static String randomString() {\n\t\tfinal long value = RANDOMIZER.nextLong();\n\t\treturn String.valueOf(value < 0 ? value * -1 : value);\n\t}", "public static String generateCoupon() {\n \t\t// choose a Character random from this String\n\t\tString availableCharacters = \"ABCDEFGHIJKLMNPQRSTUVWXYZ\" + \"123456789\";\n\t\t// create StringBuffer \n\t\tStringBuilder sb = new StringBuilder(5);\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\t// generate a random number\n\t\t\tdouble indexDouble = availableCharacters.length() * Math.random();\n\t\t\tint index = (int)Math.round(indexDouble);\n\t\t\tif(index > 0 && index < 33) {\n\t\t\t\tsb.append(availableCharacters.charAt(index));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString().substring(0,10);\t\t\n\t}", "public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }", "public static String generateRandomNonce() {\n Random r = new Random();\n StringBuffer n = new StringBuffer();\n for (int i = 0; i < r.nextInt(8) + 2; i++) {\n n.append(r.nextInt(26) + 'a');\n }\n return n.toString();\n }", "private String generateRandomWord()\n {\t\n\tRandom randomNb = new Random(System.currentTimeMillis());\n\tchar [] word = new char[randomNb.nextInt(3)+5];\n\tfor(int i=0; i<word.length; i++)\n\t word[i] = letters[randomNb.nextInt(letters.length)];\n\treturn new String(word);\n }", "private static String smsCode() {\n\t\t\tString random=new Random().nextInt(1000000)+\"\";\r\n\t\t\treturn random;\r\n\t\t}", "public static String randomString() {\n return PodamUtil.manufacture(String.class);\n }", "protected static String generateString(int length) {\n String characters = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rnd = new Random(System.nanoTime());\n char[] text = new char[length];\n for (int i = 0; i < length; i++) {\n text[i] = characters.charAt(rnd.nextInt(characters.length()));\n }\n return new String(text);\n }", "public static String coder(){\n Random randomGen = new Random();\n \n String letter1, letter2 = \"\";\n int random1, random2, random3, random4 = 0;\n String genome = \"\";\n \n int i = 0;\n int first = (int)((Math.random()*26)+97);\n char firstChar = Character.toUpperCase((char) first);\n genome += firstChar;\n \n int second = (int)((Math.random()*26)+97);\n char secondChar = Character.toUpperCase((char) second);\n genome += secondChar;\n \n random1 = randomGen.nextInt(10);\n genome += random1;\n \n random2 = randomGen.nextInt(10);\n genome += random2;\n \n random3 = randomGen.nextInt(10);\n genome += random3;\n \n random4 = randomGen.nextInt(10);\n genome += random4;\n \n return genome;\n }", "public static final String getRandomId() {\r\n return (\"\" + Math.random()).substring(2);\r\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "private char generateRandomCharacter(){\n String alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rand = new Random();\n int randomNumber = rand.nextInt(26);\n return alphabets.charAt(randomNumber);\n }", "public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }", "static String getRandomString(int n){\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index = (int)(alphabet.length() * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(alphabet.charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }", "public static String makeRandomID() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }", "public static String randomIdentifier() {\r\n\t\tfinal String lexicon = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n\t\tfinal java.util.Random rand = new java.util.Random();\r\n\t\t// consider using a Map<String,Boolean> to say whether the identifier is\r\n\t\t// being used or not\r\n\t\tfinal Set<String> identifiers = new HashSet<String>();\r\n\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\twhile (builder.toString().length() == 0) {\r\n\t\t\tint length = rand.nextInt(5) + 5;\r\n\t\t\tfor (int i = 0; i < length; i++)\r\n\t\t\t\tbuilder.append(lexicon.charAt(rand.nextInt(lexicon.length())));\r\n\t\t\tif (identifiers.contains(builder.toString()))\r\n\t\t\t\tbuilder = new StringBuilder();\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}", "public static String getRandomString(int len){\n\n String pool =\"\";\n for(int i='0';i<='9';i++)\n pool+=(char)i;\n for(int i='A'; i<= 'Z'; i++){\n pool+=(char)i;\n }\n for(int i='a'; i<='z'; i++){\n pool+=(char)i;\n }\n char[] cs = new char[len];\n for(int i=0;i<len;i++){\n cs[i] = pool.charAt( (int)(Math.random()*(pool.length())));\n }\n return new String(cs);\n\n }", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }", "public static String rndString(String type) {\r\n char min = ' ';\r\n char max = ' ';\r\n if (type.trim().equals(LATIN_LARGE)) {\r\n min = 'A';\r\n max = 'Z';\r\n } else if (type.trim().equals(LATIN_SMALL)) {\r\n min = 'a';\r\n max = 'z';\r\n } else if (type.trim().equals(DIGITS)) {\r\n min = '0';\r\n max = '9';\r\n }\r\n char[] c = RBytes.rndCharArray(min, max);\r\n return new String(c);\r\n\r\n }", "public static String buildTestString(int length, Random random) {\n char[] chars = new char[length];\n for (int i = 0; i < length; i++) {\n chars[i] = (char) random.nextInt();\n }\n return new String(chars);\n }", "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}", "Randomizer getRandomizer();", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "public String generate(final int count){\n return RandomStringUtils.random(count, true, true);\n }", "public static String generateString(int count) {\r\n String ALPHA_NUMERIC_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n StringBuilder builder = new StringBuilder();\r\n while (count-- != 0) {\r\n int character = (int) (Math.random() * ALPHA_NUMERIC_STRING.length());\r\n builder.append(ALPHA_NUMERIC_STRING.charAt(character));\r\n }\r\n return builder.toString();\r\n }", "public synchronized static final String generateRandomString(int n) {\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyz1234567890\".toCharArray();\n\t\tSecureRandom random = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsb.append(chars[random.nextInt(chars.length)]);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String randomStringGenerator(int len)\n {\n \t int lLimit = 97; \n \t int rLimit = 122; \n \t int targetStringLength =len;\n \t Random random = new Random();\n String generatedString = random.ints(lLimit, rLimit + 1)\n \t .limit(targetStringLength)\n \t .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)\n \t .toString();\n return generatedString;\n }", "public static String rndString(int length) {\r\n char[] c = RBytes.rndCharArray(length);\r\n return new String(c);\r\n\r\n }", "public String createPassword() {\n while (i < length){\n temp += abc.charAt(random.nextInt(26));\n i++;\n }\n\n this.password = this.temp;\n this.temp = \"\";\n this.i = 0;\n return password;\n }", "public String generateRandomEmail() {\n return generateLocalPart() + \"@test\" + getRandNumber() + \".com\";\n }", "public static String randInt(){\n return String.valueOf(rand.nextInt(10));\n }", "private String generateRandomString(int length) {\n\n StringBuilder stringBuilder = new StringBuilder(length);\n int index = -1;\n while (stringBuilder.length() < length) {\n index = mRandom.nextInt(TEST_CHAR_SET_AS_STRING.length());\n stringBuilder.append(TEST_CHAR_SET_AS_STRING.charAt(index));\n }\n return stringBuilder.toString();\n }", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "public static String getRandomString(int length)\r\n {\r\n if (length <= 0) length = 8;\r\n byte[] bytes = new byte[length];\r\n random.nextBytes(bytes);\r\n StringBuffer sb = new StringBuffer(length);\r\n for (int i = 0; i < length; i++)\r\n {\r\n sb.append(m_alphanumeric[Math.abs(bytes[i]%36)]);\r\n }\r\n return sb.toString();\r\n }", "public void cardGen(){\n\t\tRandom rand = new Random();\n\t\tint randValue = rand.nextInt(13);\n\t\tcardString = value[randValue] + suit[rand.nextInt(4)];\n\t}", "public synchronized String generateTag() {\n return Integer.toHexString(rand.nextInt());\n }", "private String createFakeName() {\n final int firstLowercaseLetterAscii = 97;\n final int lowercaseLetterRange = 25;\n\n // Maximum length random name = 20\n final int minNameLength = 4;\n int randomNameLength = (random.nextInt(17)) + minNameLength;\n\n // Algorithm to generate the random name\n StringBuilder randomName = new StringBuilder();\n for (int i = 0; i < randomNameLength; i++) {\n char randChar = (char) (random.nextInt(lowercaseLetterRange + 1) + firstLowercaseLetterAscii);\n randomName.append(randChar);\n }\n return randomName.toString();\n }", "public static String getRandomConsonant()\n\t{\n\t\tchar randLetter = (char) getRandomBetween(97,122);\n\t\twhile (isCharVowel(randLetter))\n\t\t{\n\t\t\trandLetter = (char) getRandomBetween(97,122);\n\t\t}\n\n\t\treturn Character.toString(randLetter);\n\t}", "@Override\r\n\tpublic String randString(int n, String base) {\n\t\tint bLength = base.length();\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tRandom r = new Random();\r\n\t\tint index;\r\n\t\tfor(int i=0; i<n; i++)\r\n\t\t{\r\n\t\t\tindex = r.nextInt(bLength);\r\n\t\t\tsb.append(base.charAt(index));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public static String randAlnum(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(62);\n if (n>51){\n result = String.valueOf(n-52);\n }else {\n result = randChar(); //both\n }\n break;\n case 1:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randLower(); //lower\n }\n break;\n case 2:\n n = rand.nextInt(36);\n if (n>25){\n result = String.valueOf(n-26);\n }else {\n result = randUpper(); //upper\n }\n break;\n }\n return result;\n }", "private String generateMake() {\n\t\tString make = \"\";\n\t\tint caseNumber = randomGenerator.nextInt(5) + 1;\n\t\t\n\t\tswitch (caseNumber) {\n\t\tcase 1: \n\t\t\tmake = \"Chevy\";\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\tmake = \"Ford\";\n\t\t\tbreak;\n\t\tcase 3: \n\t\t\tmake = \"Toyota\";\n\t\t\tbreak;\n\t\tcase 4: \n\t\t\tmake = \"Nissan\";\n\t\t\tbreak;\n\t\tcase 5: \n\t\t\tmake = \"Hyundai\";\n\t\t\tbreak;\n\t\tdefault: \n\t\t\tmake = \"\";\n\t\t\tbreak;\n\t\t}\n\t\treturn make;\n\t}", "private\tString\tgenerateUUID(){\n\t\treturn\tUUID.randomUUID().toString().substring(0, 8).toUpperCase();\n\t}", "private static String randomString(int length) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint index = randInt(0, ALPHA_NUMERIC_STRING.length() - 1);\n\t\t\tbuilder.append(ALPHA_NUMERIC_STRING.charAt(index));\n\t\t}\n\t\treturn builder.toString();\n\t}", "public String randomGenertateContent(){\n\t\tString []temp = {\"This\",\"Is\",\"Random\",\"Randomize\",\"Content\",\"Random\",\"Randomize\",\"Random\",\"Randomly\",\"Random Text\"};\n\t\tRandom random = new Random();\n\t\tint numOfWord = (int) (random.nextInt(20 - 1 + 1) + 1);\n\t\tString output = \"\";\n\t\tfor(int i=0;i<numOfWord;i++){\n\t\t\tint index = (int) (random.nextInt(temp.length - 2 + 1));\n\t\t\toutput+= temp[index] + \" \";\n\t\t}\n\t\treturn output;\n\t}", "public String generateGUID() {\n Random randomGenerator = new Random();\n String hash = DigestUtils.shaHex(HASH_FORMAT.format(new Date())\n + randomGenerator.nextInt());\n return hash.substring(0, GUID_LEN);\n }", "public static String generateRandomString(int length) {\n String CHAR = \"ABCDEF\";\n String NUMBER = \"0123456789\";\n\n String DATA_FOR_RANDOM_STRING = CHAR + NUMBER;\n SecureRandom random = new SecureRandom();\n\n if (length < 1) throw new IllegalArgumentException();\n\n StringBuilder sb = new StringBuilder(length);\n\n for (int i = 0; i < length; i++) {\n // 0-62 (exclusive), random returns 0-61\n int rndCharAt = random.nextInt(DATA_FOR_RANDOM_STRING.length());\n char rndChar = DATA_FOR_RANDOM_STRING.charAt(rndCharAt);\n\n sb.append(rndChar);\n }\n\n return sb.toString();\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "private String generateRandomString(Random r, final int len) {\n byte[] bytes = new byte[len];\n for (int i = 0; i < len; i++) {\n bytes[i] = (byte)(r.nextInt(92) + 32);\n }\n return new String(bytes);\n }", "private char getRandomCharacter() {\n Random r = new Random();\n char c = (char)(r.nextInt(26) + 'A');\n if(characters.contains(c)) {\n return getRandomCharacter();\n } else {\n return c;\n }\n }", "public static synchronized String getRandomPassword() {\n\t\t StringBuilder password = new StringBuilder();\n\t\t int j = 0;\n\t\t for (int i = 0; i < MINLENGTHOFPASSWORD; i++) {\n\t\t \t//System.out.println(\"J is \"+j);\n\t\t password.append(getRandomPasswordCharacters(j));\n\t\t j++;\n\t\t \n\t\t if (j == 4) {\n\t\t j = 0;\n\t\t }\n\t\t }\n\t\t return password.toString();\n\t\t}", "public String getRandomName() {\n\t\t\n\t\tRandom r = new Random();\n\t\t\n\t\t//pick a firstname and surname based on length of array\n\t\tString fname = firstName[r.nextInt(firstName.length)];\n\t\tString sname = surName[r.nextInt(surName.length)];\n\t\t\n\t\treturn ( fname + \" \" + sname);\n\t\t\n\t}", "public String createPassword() {\n String alphabet= \"abcdefghijklmnopqrstuvwxyz\";\n int count=0;\n String randomPass=\"\";\n while (count<this.length){\n randomPass+=alphabet.charAt(this.randomNumber.nextInt(alphabet.length()-1));\n count++;\n }\n return randomPass;\n }", "public static String stringGen(int seed) {\n String word = \"\"; // holds random string\r\n String letters = \"abdefghilmnoprstuwxy\"; // usable letters\r\n char letter; // holds current letter that is added to (string)word\r\n \r\n Random randomGen = new Random();\r\n \r\n for(int x = 0; x<50; x++){ // Create a random string of 50 characters\r\n int randomInt = randomGen.nextInt(20);\r\n letter = letters.charAt(randomInt);\r\n word = word + letter;\r\n }\r\n return word; // Finalized random string\r\n }", "String selectRandomSecretWord();", "private String getToken() {\n\t\tString numbers = \"0123456789\";\n\t\tRandom rndm_method = new Random();\n String OTP = \"\";\n for (int i = 0; i < 4; i++)\n {\n \tOTP = OTP+numbers.charAt(rndm_method.nextInt(numbers.length()));\n \n }\n return OTP;\n\t}", "public String generate(int length) {\r\n\t\tString chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\r\n\t\tString pass = \"\";\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tint i = (int) Math.floor(Math.random() * 62);\r\n\t\t\tpass += chars.charAt(i);\r\n\t\t}\r\n\r\n\t\treturn pass;\r\n\t}", "public static String getRandomAttribute(String attribute) {\n\t\tRandom rand = new Random();\n\t\tint n = rand.nextInt(4) + 1;\n\t\treturn attribute + n;\n\t}", "public String generateOTP() {\n String values = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"; //characters to use in password\n Random random = new Random();\n char[] password = new char[6]; //setting password size to 6\n IntStream.range(0, password.length).forEach(i -> password[i] = values.charAt(random.nextInt(values.length())));\n return String.valueOf(password);\n }", "public static String generateRandomString(int length) {\n\t\tfinal SecureRandom secureRandom = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < length; ++i) {\n\t\t\tsb.append(ALPHABET.charAt(secureRandom.nextInt(ALPHABET.length())));\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String getRandomString(String template){\n reporter.info(\"Get random string for template: \"+ template);\n return RandomDataGenerator.getRandomField(template,RandomDataGenerator.DEFAULT_SEPARATOR);\n //return DataGenerator.getString(template);\n }", "public String getRandomCustName() {\n\t\tString generatedCustName = RandomStringUtils.randomAlphanumeric(Integer.valueOf(custNameLimit));\n\t\tlog.info(\"generatedCustName: \" + generatedCustName);\n\t\treturn generatedCustName;\n\t}", "private static String createRandomString(int minLen, int maxLen, Random random) {\n int len = (minLen == maxLen) ? minLen : (random.nextInt(maxLen - minLen) + minLen);\n StringBuilder sb = new StringBuilder(len);\n while (sb.length() < len) {\n sb.append(CHARACTERS[random.nextInt(CHARACTERS.length)]);\n }\n return sb.toString();\n }", "public static String rndString(int length, char min, char max) {\r\n char[] c = RBytes.rndCharArray(length, min, max);\r\n return new String(c);\r\n }", "public static String getRandomString(int n) \r\n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n + \"0123456789\"\r\n + \"abcdefghijklmnopqrstuvxyz\"; \r\n \r\n // create StringBuffer size of AlphaNumericString \r\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index \r\n = (int)(AlphaNumericString.length() \r\n * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(AlphaNumericString \r\n .charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }", "public static String getRandomBigChar(int length) {\n\t\tString ALPHABET = \"ABCDEFGHIJKLMOPQRSTUVWXYZ\";\n\t\tfinal SecureRandom RANDOM = new SecureRandom();\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(ALPHABET.charAt(RANDOM.nextInt(ALPHABET.length())));\n\n\t\treturn sb.toString();\n\t}", "public String getRandom() {\n\t return word.get(new Random().nextInt(word.size()));}", "public String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(899999) + 100000;\n\n // this will convert any number sequence into 6 character.\n String formatted_code = String.format(\"%06d\", number);\n\n return formatted_code;\n }", "protected String random(String value) {\n \t\treturn value + new Random().nextInt(100);\n \t}", "public static String secureRandomId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "public static String randomNumberString() {\n\r\n Random random = new Random();\r\n int i = random.nextInt(999999);\r\n\r\n\r\n return String.format(\"%06d\", i);\r\n }", "@Override\r\n\tpublic String rollString() {\r\n\t\treturn \"\"+Randomizer.getRandomNumber(possibleValues);\r\n\t}", "private String crearCodigoRuta(String nombre){\n String fecha = new SimpleDateFormat(\"ddMMyyyy\").format(new Date());\n Random randomGenerator = new Random();\n int RndNum = randomGenerator.nextInt(1000);\n\n return nombre+\"_\"+fecha+\"_\"+RndNum;\n }", "public static String randChar(int l) {\n char [] replacement = {'&','#','%','!','@','?'};\n String out=\"\";\n var r=new Random();\n for(int i = 0; i <l;i++) {\n out+= replacement[r.nextInt(replacement.length)];\n }\n return out;\n }" ]
[ "0.7942506", "0.7819107", "0.7624672", "0.7557687", "0.7528088", "0.7520187", "0.74680144", "0.7410146", "0.7386671", "0.7370592", "0.73698926", "0.7348186", "0.7331788", "0.7261049", "0.7250808", "0.71552014", "0.7142403", "0.71386683", "0.7102872", "0.70674175", "0.7061743", "0.7039541", "0.7035547", "0.7028862", "0.7027215", "0.6991459", "0.69873255", "0.6981221", "0.69784355", "0.69715863", "0.69500875", "0.6942068", "0.68889934", "0.68731886", "0.68684876", "0.6855399", "0.68521976", "0.6833584", "0.68300986", "0.68283707", "0.6828099", "0.6815361", "0.68078595", "0.6789585", "0.67857575", "0.67855525", "0.67809737", "0.6776456", "0.67610174", "0.6749404", "0.6745359", "0.673439", "0.6734091", "0.6731356", "0.67283195", "0.6727439", "0.6722578", "0.6720899", "0.6711527", "0.67026335", "0.66936284", "0.66751856", "0.6671925", "0.6665112", "0.6653928", "0.6653324", "0.6638127", "0.6635908", "0.6632222", "0.6632031", "0.6627429", "0.6614361", "0.6606313", "0.65931016", "0.65830356", "0.65767926", "0.6575038", "0.6572487", "0.6559639", "0.6554039", "0.65531313", "0.6550274", "0.6547958", "0.6543268", "0.6534266", "0.65165997", "0.6516011", "0.65094507", "0.65079284", "0.6505863", "0.64976585", "0.6496602", "0.6490194", "0.64845276", "0.6481689", "0.64771396", "0.6475409", "0.64731354", "0.64685017", "0.64669985", "0.64653337" ]
0.0
-1
makeGuess function only generates integers and gueses integers. hence to know the exact string makeGuess returned guessString is used
public static String guessString(int length) { // takes the integer output of makeGuess and returns the string it guessed char[] characterSet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray(); if(length<0) length=0; return new String(""+characterSet[length]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract int nextTry(String guess);", "public static int make_guess(int hits, int strikes) {\n int myguess = 1000;\n\n /*\n * IMPLEMENT YOUR GUESS STRATEGY HERE\n */\n\n //First guess is always 1122, which is suggested by Donald Knuth in Mastermind(4,6)\n if (isFirstGuess){\n isFirstGuess = false;\n myguess = 1122; //Initial guess recommended by Donald Knuth\n SOLVER.setGuess(new Code(1122, true));\n } else {\n Response response = new Response(strikes, hits);\n SOLVER.processResponse(response);\n Code guess = SOLVER.guess();\n myguess = guess.getCode();\n }\n\n return myguess;\n }", "public void makeGuess() {\n columnGuess = ((int) (Math.random() * 100000)) % 10;\n\n int number = ((int) (Math.random() * 100000)) % 10;\n rowGuess = (char) (number + 65);\n }", "public abstract boolean guess(String guess);", "private void tryGuess(int guess) {\n int guessAssert = guesser.assertGuess(guess);\n switch (guessAssert) {\n case 0:\n guesser.madeGuess();\n System.out.println(\"Too low. Guess again: \");\n break;\n case 1:\n guesser.madeGuess();\n System.out.println(\"Too high. Guess again: \");\n break;\n case 2:\n guesser.madeGuess();\n System.out.println(\"You got it in \"+guesser.getGuess()+\" guesses!\");\n break;\n default:\n guesser.madeGuess();\n System.out.println(\"Invalid numeric value has been entered.\");\n break;\n }\n\n }", "public abstract boolean isGuessCorrect(String guess);", "public int guess(int i) {\n return 1;\n }", "public String guessingNumber(int randomNumber,int userNumber) {\n if(userNumber <= 0 || userNumber > 50)\n {\n return \"Enter number between 1 to 50\";\n }\n if(userNumber>randomNumber) {\n return \"guessed number is more than the original number\";\n } else if (userNumber < randomNumber) {\n return \"guessed number is less than the original number\";\n } else {\n return \"guessed matches the original number\";\n }\n }", "public static String getHint(String secret, String guess) {\n \tint bulls=0, cows=0;\n int[] map=new int[10];\n for(int i=0; i<secret.length(); i++){\n \tif(secret.charAt(i)==guess.charAt(i)){\n \t\tbulls++;\n \t}else{\n \t\tmap[secret.charAt(i)-'0']++;\n \t}\n }\n for(int i=0; i<guess.length(); i++){\n \tif(guess.charAt(i)!=secret.charAt(i)){\n \t\tif(map[guess.charAt(i)-'0']!=0){\n \t\t\tcows++;\n \t\t\tmap[guess.charAt(i)-'0']--;\n \t\t}\n \t}\n }\n \treturn bulls+\"A\"+cows+\"B\";\n }", "public Integer guess(Integer g)\n {\n if (chosenNum == g){\n return 0;\n } else if (chosenNum > g){\n return -1;\n } else if (chosenNum < g){\n return 1;\n }\n return chosenNum;\n }", "public void checkGuess() {\n\t\tString guessText = txtInput.getText();\r\n\t\tString message = \"\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// check the guess for too high/too low\r\n\t\t\tint guess = Integer.parseInt(guessText);\r\n\t\t\t//too high\r\n\t\t\tif (guess > theNumber) {\r\n\t\t\t\tmessage = guess + \" was too high. Try again.\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnumberOfPlayerGuesses += 1;\r\n\t\t\t} else if (guess < theNumber) {\r\n\t\t\t\tmessage = guess + \" was too low. Try again.\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnumberOfPlayerGuesses += 1;\r\n\t\t\t} else {\r\n\t\t\t\tmessage = guess + \" was right! You used \" + numberOfPlayerGuesses + \" guesses. Let's play again!\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnewGame();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tlblDirections2Result.setText(\"Enter a whole number between 1 and 100.\");\r\n\t\t}\r\n\t\t\r\n\t\ttxtInput.requestFocus();\r\n\t\ttxtInput.selectAll();\r\n\t\t\r\n\t\t\r\n\t}", "public String solve() {\n char[] secret = new char[NUM_DIGITS];\n for (int i = 0; i < secret.length; i++) {\n shuffle(secret, i);\n }\n\n final int RoundThreshold = 10;\n int rounds = 0;\n int errors = distance(secret);\n int previous = errors;\n\n while (errors != 0) {\n // replace every digit by a different random number, keep\n // those that minimize the error metric\n for (int i = 0; i < secret.length; i++) {\n // replace by a new random digit\n char previousDigit = secret[i];\n shuffle(secret, i);\n\n int modified = distance(secret);\n if (modified <= errors) {\n // we have improvement, keep the digit\n errors = modified;\n } else {\n // restore previous digit if no improvement\n secret[i] = previousDigit;\n }\n }\n\n if (errors == previous) {\n // we didn't improve on the previous guess\n if (++rounds == RoundThreshold) {\n // stuck too long? try to escape local optimum by\n // changing a random number\n shuffle(secret, rand.nextInt(secret.length));\n errors = distance(secret);\n rounds = 0;\n }\n } else {\n // we got closer to the goal\n rounds = 0;\n previous = errors;\n }\n }\n\n return new String(secret);\n }", "public int getGuess() {\n\t\tif (accusation) {\n\t\t\tJOptionPane.showMessageDialog(parent, panel, \"Make an accusation:\", JOptionPane.PLAIN_MESSAGE);\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(parent, panel, \"Make a suggestion:\", JOptionPane.PLAIN_MESSAGE);\n\t\t}\n\t\treturn CluedoUI.asInt(characters.getSelectedItem().toString()) \n\t\t\t\t+ CluedoUI.asInt(weapons.getSelectedItem().toString())\n\t\t\t\t + CluedoUI.asInt(rooms.getSelectedItem().toString());\n\t}", "public String getGuessString() {\n\t\tStringBuilder sb = new StringBuilder(wordToGuess);\n\t\tfor (int i = 0; i < wordToGuess.length(); i++) {\n\t\t\tchar letter = wordToGuess.charAt(i);\n\t\t\tif (!guessesMade.contains(letter)) {\n\t\t\t\tsb.setCharAt(i, '-');\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String guessPinCode(String pin, String guess) {\n int len = pin.length();\n Map<Character, Integer> countMap = new HashMap<>();\n char[] res = new char[len];\n for (int i = 0; i < len; i++) {\n char currP = pin.charAt(i);\n char currG = guess.charAt(i);\n if (currG == currP) {\n res[i] = '*';\n continue;\n }\n countMap.put(currP, countMap.getOrDefault(currP, 0) + 1);\n }\n for (int i = 0; i < len; i++) {\n if (res[i] == '*') continue;\n char currG = guess.charAt(i);\n int currCount = countMap.getOrDefault(currG, 0);\n res[i] = currCount> 0 ? 'o' : '_';\n if (currCount == 1) countMap.remove(currG);\n }\n System.out.println(String.valueOf(res));\n return String.valueOf(res);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Welcome to the very generic game of...Guess the Number!\");\r\n\t\t\r\n\t\tScanner difficultyChoice = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Select parameters below. 1 = 1-15, 2 = 1-25, and 3 = 1-50\");\r\n\t\t\r\n\t\tString choice = difficultyChoice.nextLine();\r\n\t\t\r\n\t\tint selection = 0;\r\n\t\t\r\n\t\tdo {\r\n\t\t\tif(choice.equals(\"1\")){\r\n\t\t\t\tselection = 1;\r\n\r\n\t\t\t} else if(choice.equals(\"2\")) {\r\n\t\t\t\tselection = 2;\r\n\r\n\t\t\t} else if(choice.equals(\"3\")) {\r\n\t\t\t\tselection = 3;\r\n\t\t\t}\r\n\t\t\tif(selection == 0) {\r\n\t\t\t\tSystem.out.println(\"Invalid entry. Please try again. Remember* 1 for 1-25, 2 for 1-50, and 3 for 1-100\");\r\n\t\t\t\tchoice = difficultyChoice.nextLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t} while(selection ==0);\r\n\t\t\r\n\t\tRandom computerNumber = new Random();\r\n\r\n\t\tint randomNum = 0;\r\n\r\n\t\tif(selection == 1){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(15);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-15. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif(selection == 2){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(25);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-25. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif(selection == 3){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(50);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-50. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint guessTotal = 0;\r\n\r\n\t\tRandom RandomNum = computerNumber; \r\n\r\n\t\tScanner playerGuess1 = new Scanner(System.in);\r\n\r\n\t\tSystem.out.println(\"Please enter your first guess on the line below: \");\r\n\r\n\t\tint guess1 = playerGuess1.nextInt();\r\n\r\n\t\tif(guess1 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your first try!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tif(guess1 != randomNum) {\r\n\t\t\tguessTotal = 1;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 2)\");\r\n\t\t\tif(guess1 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tif(guess1 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tScanner playerGuess2 = new Scanner(System.in);\r\n\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\t\t\t\");\r\n\r\n\t\tSystem.out.println(\"Please enter your second guess on the line below: \");\r\n\r\n\t\tint guess2 = playerGuess2.nextInt();\r\n\r\n\t\tif(guess2 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your second try!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tif(guess2 != randomNum) {\r\n\t\t\tguessTotal = 2;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 1)\");\r\n\t\t\tif(guess2 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t} else {\r\n\t\t\t\tif(guess2 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tScanner playerGuess3 = new Scanner(System.in);\r\n\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\t\t\t\");\r\n\r\n\t\tSystem.out.println(\"Please enter your third guess on the line below: \");\r\n\r\n\t\tint guess3 = playerGuess3.nextInt();\r\n\r\n\t\tif(guess3 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your third try!\");\r\n\t\t}\r\n\r\n\t\tif(guess3 != randomNum) {\r\n\t\t\tguessTotal = 3;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 0) Game over!\");\r\n\t\t\t/*if(guess3 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t} else {\r\n\t\t\t\tif(guess3 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\t*/\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\");\r\n\t\t\tSystem.out.println(\"The correct number was \" + randomNum);\r\n\t\t}", "private static String getValidGuess(BagelGame game) {\n Scanner scan = new Scanner(System.in);\n boolean valid = false;\n String guess = \"\";\n String error;\n \n while (!valid) {\n System.out.print(\"Guess # \" + game.getGuessNum() + \" ? \");\n guess = scan.nextLine().trim();\n error = game.validateGuess(guess);\n if (error == \"\") {\n valid = true;\n } else {\n System.out.println(error);\n }\n }\n return guess;\n }", "public int getUserGuess(){\n int n;\n\n System.out.print(\"Guess a number between 1 and 100:\\t\"); // Prompts for input\n while (!scanner.hasNextInt()) { // Checks to see if input is an integer\n System.out.print(\"Enter a number please: \\t\");\n scanner.next();\n }\n\n n = scanner.nextInt();\n return n;\n }", "public static void main(String[] args) {\n\t\tint computerNum = (int)(Math.random()*100) + 1; \r\n\t\t//Code generates a decimal -> multiple by 100 to make it a whole number ->\r\n\t\t//use int to convert to integer to cut off decimal\r\n\t\tint userGuess = -100;\r\n\t\tint guessCount = 0;\r\n\t\twhile (userGuess != computerNum && userGuess != -1) {\r\n\t\t\tString input = JOptionPane.showInputDialog(null, \"This is a number guessing game. \"\r\n\t\t\t\t\t+ \"\\nPlease guess a whole number between 1 and 100.\");\r\n\t\t\tuserGuess = Integer.parseInt(input);\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"Your guess was \" + userGuess + \".\");\r\n\t\t\tif (userGuess == -1){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You have chosen to leave the program.\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse if (userGuess < 0 || userGuess > 100){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Your number is invalid.\"\r\n\t\t\t\t\t\t+ \" Please enter a number between 1 and 100.\");\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (userGuess > computerNum){\r\n\t\t\t\tif (userGuess - 10 <= computerNum) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess a little too high, \"\r\n\t\t\t\t\t\t\t+ \" but within 10 of the number! Guess a little lower.\");\r\n\t\t\t\t\t//guessCount ++; \r\n\t\t\t\t\t//return guessCount;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess was too high! \"\r\n\t\t\t\t\t\t\t+ \"Make a lower guess.\");\r\n\t\t\t\t\t//guessCount ++;\r\n\t\t\t\t}\r\n\t\t\t\tguessCount ++;\r\n\t\t\t}\r\n\t\t\telse if (userGuess < computerNum) {\r\n\t\t\t\tif (userGuess + 10 >= computerNum) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess was a little too low, \"\r\n\t\t\t\t\t\t\t+ \"but within 10 of the number! Guess a little higher.\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showConfirmDialog(null, \"Your guess was too low!\"\r\n\t\t\t\t\t\t\t+ \" Make a higher guess.\");\t\r\n\t\t\t\t}\r\n\t\t\t\tguessCount ++;\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Yay! You guessed correctly!\");\r\n\t\t\t}\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"# = \" + computerNum +\r\n\t\t\t\t\t//\"# of guesses = \" + guessCount);\r\n\t\t}\r\n\t\tJOptionPane.showMessageDialog(null, \"The random number was: \" + computerNum +\r\n\t\t\t\t\"\\nIt took you \" + guessCount + \" guesses.\");\r\n\r\n\t}", "public TreeMap<String, Integer> makeGuess(char guess) {\r\n\r\n return null;\r\n }", "public void checkGuess() {\n\t\tString guessText = txtGuess.getText();\n\t\tString message = \"\";\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\t//check users guess too high/too low\n\t\t\tint guess = Integer.parseInt(guessText);\n\t\t\t\n\t\t\tif ( guess < 0 || guess > 100) {\n\t\t\t\tthrow new Exception(\"User entry out of range\");\n\t\t\t}//if\n\n\t\t\t//too high\n\t\t\tif(guess > theNumber){\n\t\t\t\tmessage = guess + \" is to high guess again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t}//if\n\t\t\t//too low\n\t\t\telse if (guess < theNumber){\n\t\t\t\tmessage = guess + \" is to low guess again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t}else{//guessed correct\n\t\t\t\tmessage = guess + \" was right! You win! Let's play again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t\tnewGame();\n\t\t\t}//else\n\t\t}//try\n\t\tcatch(Exception e) {\n\t\t\tlblOutput.setText(\"Enter a whole number between 1-100\"); \n\t\t}//catch\n\t\tfinally {\n\t\t\t\n\t\t\ttxtGuess.requestFocus();\n\t\t\ttxtGuess.selectAll();\n\t\t\t\n\t\t}//finally\n\t}", "private String readGuess() {\n\t\tString unsafeGuess = readLine(\"Your Guess: \").trim().toUpperCase();\n\t\tif (!unsafeGuess.matches(\"[a-zA-z]\") || unsafeGuess.length() != 1) {\n\t\t\tprintln(\"Please enter a single letter.\");\n\t\t\treturn readGuess();\n\t\t} else {\n\t\t\treturn unsafeGuess.toUpperCase();\n\t\t}\n\t}", "private static String getUserInput(Scanner scanner) {\n\t\tString stringGuess = \"\";\n\t\t//16\n while (true) {\n\t\t System.out.println(\"Enter a three-digit number guess:\");\n\t\t stringGuess = scanner.nextLine(); \n\t\t if (stringGuess.length() == 3){\n\t\t break;\n\t\t }\n\t\t}\n\t\treturn stringGuess;\n\t}", "public TreeMap<String, Integer> makeGuess(char guess) {\r\n \t//N.B. : METHOD IS SUB 25 LINES W/O SPACING AND COMMENTING\r\n \t//Base TreeMap for this method.\r\n \tTreeMap <String, ArrayList<String>> lists = new TreeMap<String, ArrayList<String>>();\r\n \t\r\n \t//Used at the very end to check if this method changed the pattern:\r\n \t//if so, then guess is correct, otherwise: wrong\r\n \tString oldPattern = pattern; \r\n \t\r\n \t//Fill lists using helper method sub.\r\n \tlists = fillLists(guess);\r\n \t\r\n \t//Create Set of Keys based on lists, helpful for operations below.\r\n \tSet <String> keys = lists.keySet();\r\n\t\r\n \t//Create ArrayList of Family Objects (class below) to be sorted by difficulty\r\n \tArrayList<families> toSort = new ArrayList<families>();\r\n \tIterator<String> it2 = keys.iterator();\r\n \twhile (it2.hasNext()) {\r\n \t\tString temp = it2.next();\r\n \t\t//Add new families object to array to be sorted\r\n \t\ttoSort.add(new families(temp, lists.get(temp)));\r\n \t}\r\n \t\r\n \t//Sort using compareTo implemented in Families class\r\n \tCollections.sort(toSort);\r\n \t\r\n \t//Determine Hardest from position in sorted ArrayList of families\r\n \t//Using helper below\r\n \tString keyOfHardest = keyOfHardest(toSort);\r\n\r\n \t//Update Pattern to keyOfHardest\r\n \tpattern = keyOfHardest;\r\n \t\r\n \t//Update WordsList\r\n \tactiveWords = lists.get(keyOfHardest);\r\n \t\r\n \t//Update numWrongGuesses if pattern is unchanged \t\r\n \tif (oldPattern.equals(pattern)) numWrongGuesses++;\r\n \t\r\n \t//Update letters Guessed (convert guess to String)\r\n \tguessesMade.add(String.valueOf(guess));\r\n \t\r\n \t//Update current guess\r\n \tthisGuess++;\r\n \t\r\n \t//Return DebugMap asked by method, using helper below\r\n \treturn debugMap(keys, lists);\r\n }", "public static void main(String[] args) {\n \tSystem.out.println(\"----- MASTERMIND -----\" + \"\\n\" + \"Guess the 4 digit number!\");\n \tScanner in = new Scanner(System.in);\n \tRandom num = new Random();\n \t//the while loop will continue as long as the keepPlaying boolean is set to true meaning that the user still wants to play\n \tboolean keepPlaying = true;\n \twhile (keepPlaying) {\n \t\t//Here the random number is being generated randomly from 0 to 9 and then multiplied accordingly to represent the thousandths place, hundredths, tenths, and single.\n \t\tint firstDigit = num.nextInt(10);\n \tint secondDigit = num.nextInt(10);\n \tint thirdDigit = num.nextInt(10);\n \tint fourthDigit = num.nextInt(10);\n \tint answer = (firstDigit * 1000) + (secondDigit * 100) + (thirdDigit * 10) + fourthDigit; // Building the answer which will be the number that the user is trying to guess\n \tint userGuess = 0; //This variable will hold the number that the user guesses\n \tint i = 0; //initializing variables to represent the number of guesses the user has had\n \twhile (answer != userGuess) { //This while look will continue as long as the user has not guessed the answer that matches the one that was generated\n \t\ti++;\n \t\tSystem.out.println(\"Guess \" + i + \": \"); //Printing out the amount of guesses the user has made\n \t\tuserGuess = in.nextInt(); //Scanning in the guess\n \t\tint firstGuessDigit = userGuess/1000; //First guess digit is divided by 1000 so reach the single digit in the thousandths place\n \t\tint secondGuessDigit = (userGuess- (firstGuessDigit * 1000)) /100; //Second guess digit is subtracted by the first digit *1000 to make sure it is only the hundredths place and then divided by 100 to get the single digit that is in the hundredths place\n \t\tint thirdGuessDigit = ((userGuess - (firstGuessDigit * 1000) - (secondGuessDigit * 100)) /10); //Third guess digit is reached by subtracted the thousandths and hundreths place to make sure it's only the tenths and then divided by 10 to get the single digit that is in the tenths place.\n \t\tint fourthGuessDigit = (userGuess) - (thirdGuessDigit * 10) - (secondGuessDigit *100) - (firstGuessDigit * 1000); //the fourth guess digit is reached by subtracting the thousandths, hundredths, and tenths place to get the final digit in the rightmost place.\n \t\tint correctDigits = 0; //initialize variable to represent how many digits the user has gotten correct\n \t\tif (firstDigit == firstGuessDigit) { //if the first digit of the randomly generated number matches the corresponding place in the user guess the number of correct digits increments up 1.\n \t\t\tcorrectDigits++;\n \t\t\t\n \t\t}\n \t\tif (secondDigit == secondGuessDigit) { //if the second digit of the randomly generated number matches the corresponding place in the user guess the number of correct digits increments up 1.\n \t\t\tcorrectDigits++;\n \t\t\t\n \t\t}\n \t\tif (thirdDigit == thirdGuessDigit) {//if the third digit of the randomly generated number matches the corresponding place in the user guess the number of correct digits increments up 1.\n \t\t\tcorrectDigits++;\n \t\t\t\n \t\t}\n \t\tif (fourthDigit == fourthGuessDigit) {//if the fourth digit of the randomly generated number matches the corresponding place in the user guess the number of correct digits increments up 1.\n \t\t\tcorrectDigits++;\n \t\t\t\n \t\t}\n \t\tSystem.out.println(\"You matched \" + correctDigits); //Prints out the amount of correct digits are in the guess\n \t\t\n \t}\n \t//Once the user gets the number right they are congratulated and told how many guesses it took.\n \tSystem.out.println(\"Congratulations! You guessed the right number in \" + i + \" guesses.\"); \n \t//Now they are asked if they want to play again and their input is scanned in\n \tSystem.out.println(\"Would you like to play again (yes/no)?\");\n \tin.nextLine();\n \t//if their input is not equal to yes then the keep playing variable is changed to false making the program end, if they do say yes then the loop will start over restarting everything.\n \tString restart = in.nextLine();\n \tif (!restart.equals(\"yes\")) {\n \t\tkeepPlaying = false;\n \t\n \t}\n \t}\n }", "public char handleGuess(){\n\t\t\r\n\t\tSystem.out.print(\"Please enter a letter: \");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString s = sc.next();\r\n\t\tchar letter = s.charAt(0);\r\n\r\n\t\taa:for(int i=0; i<gameLetter.length; i++){\r\n\t\t\tif(letter == gameLetter[i]){\r\n\t\t\t\tcorrectList.add(letter);\r\n\t\t\t\t\r\n\t\t\t\tif(ifWrongListContain(letter)==true){\r\n\t\t\t\t\tfor(int b=0, length=wrongList.size(); b<length; b++){\r\n\t\t\t\t\t\tif(wrongList.get(b)==letter)\r\n\t\t\t\t wrongList.remove(b);\r\n\t\t\t\t length--;\r\n\t\t\t\t b--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak aa;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(ifWrongListContain(letter)==true)\r\n\t\t\t\t\tcontinue aa;\r\n\t\t\t\telse\r\n\t\t\t\t wrongList.add(letter);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn letter;\t\t\r\n\t\t\t\t\r\n\t}", "public TreeMap<String, Integer> makeGuess(char guess) {\r\n \t// check precondition: alreadyGuessed(guess)\r\n \tif (alreadyGuessed(guess)) {\r\n \t\tthrow new IllegalStateException(\"guess another letter\");\r\n \t}\r\n \tString previous = this.currPattern;\r\n \tthis.times++;\r\n \t// update letters that have been guessed so far\r\n \tthis.guesses.add(guess);\r\n \t// split words into word families\r\n \tTreeMap<String, ArrayList<String>> wordFamilies = new TreeMap<String, ArrayList<String>>();\r\n \tupdatePatterns(guess);\r\n \tArrayList<String> allPatterns = convertChar();\r\n \tTreeMap<String, Integer> results = getWordsCount(wordFamilies, allPatterns);\r\n \t// sort the wordFamilies based on difficulties\r\n \tArrayList<PatternSorter> wordFamiliesSorter = new ArrayList<PatternSorter>();\r\n \tfor (String s : wordFamilies.keySet()) {\r\n \t\tPatternSorter ps = new PatternSorter(wordFamilies.get(s), s);\r\n \t\twordFamiliesSorter.add(ps);\r\n \t}\r\n \tCollections.sort(wordFamiliesSorter);\r\n \t// update the active word list and remove irrelevant patterns\r\n \tupdateActiveWords(wordFamiliesSorter);\r\n \tcleanPatterns();\r\n \t// compare previous pattern and updated pattern, updating number of guesses left\r\n \tif (previous.equals(this.currPattern)) {\r\n \t\tthis.numGuesses--;\r\n \t}\r\n return results;\r\n }", "public abstract void nextGuessResult(ResultPegs resultPegs);", "public String dashGuess(String s, char guess) {\n StringBuilder r = new StringBuilder(s); //turn s to stringbuilder to change\n\n for (int i = 0; i < s.length(); i++) {\n\n //if (s.charAt(i) != guess) {\n if (!guessedLetters.contains(s.charAt(i))) {\n r.setCharAt(i, '-');\n }\n }\n\n String v = r.toString();\n return v;\n }", "public void makeGuess(char letter) {\n\t\tif (isGameOver() || hasGuessedAlready(letter)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguessesMade.add(letter);\n\t\tif (wordToGuess.indexOf(letter) == -1) { // letter is not in wordToGuess\n\t\t\tnumIncorrectGuessesMade++;\n\t\t}\n\t}", "public static char getGuess(char[] asterisks){\n\t\tSystem.out.print(\"(Guess) Enter a letter in word \");\n\t\tSystem.out.print(asterisks);\n\t\tSystem.out.print(\" > \");\n\t\tString g = input.next();\n\t\treturn g.charAt(0);\n\t}", "public static void main(String[] args)\n {\n int answer;\n int counter = 0;\n char guessAgain;\n Random rGen = new Random();\n Scanner myScanner = new Scanner(System.in);\n int guess;\n //Let's give our number a value between 0 and 100\n answer = rGen.nextInt(201) - 100;\n do\n {\n //Let's ask them to guess\n System.out.println(\"I've picked a number between -100 and 100, inclusive.\");\n System.out.println(\"Betcha can't guess it!\");\n guess = myScanner.nextInt();\n counter++;\n System.out.println(\"Your guess: \" + guess);\n if(guess == answer)\n {\n if(counter==1)\n {\n System.out.println(\"Wow, nice guess! That was it!\");\n return;\n }\n else\n {\n System.out.println(\"Well, it's about time!\");\n return;\n }\n }\n else if(guess < answer)\n {\n System.out.println(\"Ha, nice try - too low!\");\n }\n else\n {\n System.out.println(\"Too bad, way too high.\");\n }\n System.out.println(\"Would you like to guess again? (y/n)\");\n guessAgain = myScanner.next().charAt(0);\n counter++;\n myScanner.nextLine();\n }while(guessAgain=='y');\n System.out.println(\"Well, the answer was: \" + answer);\n }", "public static char getCharacterGuess(Scanner inScanner, String word) {\n\t\tboolean flag = true;\n\t\tString guess;\n\t\tString ints = \"1 2 3 4 5 6 7 8 9\";\n\t\t\n\t\tdo {\n\t\t\tSystem.out.print(\"Please enter a character or enter 0 for a word guess: \");\n\t\t\tguess = inScanner.nextLine();\n\t\t\t\n\t\t\tif(guess.length() < 2 && (!ints.contains(guess)) && !guess.equals(\"0\")) {\n\t\t\t\tflag = false;\n\t\t\t}else if(guess.equals(\"0\")) {\n\t\t\t\tflag = false;\n\t\t\t}else if(ints.contains(guess)) {\n\t\t\t\tSystem.out.println(\"NOT INTS BRO\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Only one character please\");\n\t\t\t}\n\t\t}while(flag);\n\t\treturn guess.charAt(0);\n\t}", "@Override\n public String getGuess() throws TimeoutException {\n\n int count = 1;\n\n while (this.answers.size() - count >0){\n if(this.answers.get(answers.size()-count).equals(\"yes\")) {\n\n return excuteQuery(this.getQuery(\"Guess\", \"Question=\" + \"'\" + this.questions.get(questions.size() -count) + \"'\"))\n .replaceAll(\"</br>\", \"\\n\");\n }\n count++;\n }\n\n return \"no result found\\n\";\n\n\n }", "public abstract String guessedWord();", "public static String startGame() {\n Scanner scan = new Scanner(System.in);\n System.out.print(\"Enter your name:\");\n String playerName = scan.nextLine();\n if(playerName.isEmpty()) {\n playerName = \"Player 1\";\n System.out.println(\"Somehow you failed to type your own name in...\");\n System.out.print(\"I'll just call you Player 1 :)\\n\\n\");\n }\n System.out.print(\"WELCOME to the High/Low Game \" + playerName + \"!\\n\\n\");\n System.out.print(\"The objective of this game is to determine the randomly generated number between 0 & 100\\n\");\n System.out.println(\"When prompted for a guess, enter an integer and NOTHING else.\");\n System.out.println(\"Upon your guess, the game will return high if your guess was higher than the number,\");\n System.out.println(\"and low if your guess was lower than the number.\");\n System.out.println(\"The goal is to eventually figure out the exact number... shouldn't be too hard right?\");\n System.out.print(\".\\n.\\n.\\nGOOD LUCK!\\n\");\n return playerName;\n }", "public static void main(String[] args) {\n //Calculate the optimal number of guesses\n int OPTIMALGUESSCNT = getlog(UPPERBOUND,10);\n\n //Begin game\n System.out.println(\"This is the High Low Game. You WILL have fun.\");\n\n //Print Name\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter your name or be annihilated: \");\n\n String name = validateInputStr();\n if (name.isEmpty()) {\n System.out.println(\"You didn't enter a name. You must be Nobody. Glad I'm not a cyclops, haha jk, unless...\\nHello Player 1.\");\n }\n System.out.printf(\"Hello %s\\n\", name);\n\n boolean playAgain = false;\n int total_guesses = 0;\n short num_games = 0;\n do { //setup each game\n int game_guesses = 0;\n int secretNum = getSecretNum(Integer.parseInt(\"BEEF\",16));\n int guess = -1;\n int prev_guess = -1;\n while (guess != secretNum) { //A single game seshion\n Scanner scanGuess = new Scanner(System.in);\n System.out.println(\"Guess a number between 0 and 100: \");\n guess = validateInput();\n ++game_guesses;\n if (guess > UPPERBOUND || guess <= 0) {\n System.out.println(\"Your guess wasn't even in the range given!\");\n }\n if (guess > secretNum) {\n if (prev_guess != -1 && guess >= prev_guess && prev_guess >= secretNum) {\n System.out.println(\"You incorrectly guessed even higher this time! Lower your angle of attack!\");\n }\n System.out.println(\"You guessed too high.\");\n prev_guess = guess;\n }\n else if (guess < secretNum) {\n if (prev_guess != -1 && guess <= prev_guess && prev_guess <= secretNum) {\n System.out.println(\"You incorrectly guessed even lower this time! Aim high airman!\");\n }\n System.out.println(\"You guessed too low.\");\n prev_guess = guess;\n }\n else {\n //The game has effectively ended -> List Win Possibilities\n selectWinOption(game_guesses, OPTIMALGUESSCNT);\n //Check whether to play again\n boolean goodInput = false;\n while (!goodInput) {\n System.out.println(\"Would you like to play again? Enter yes (y) or no (n): \");\n Scanner clearBuff = new Scanner(System.in);\n String raw_playAgain = \"\";\n raw_playAgain = validateInputStr();\n //check input (I didn't feel like using Patterns\n if (raw_playAgain.equalsIgnoreCase(\"yes\") || raw_playAgain.equalsIgnoreCase(\"y\")) {\n playAgain = true;\n goodInput = true;\n }\n else if (raw_playAgain.equalsIgnoreCase(\"no\") || raw_playAgain.equalsIgnoreCase(\"n\")) {\n playAgain = false;\n goodInput = true;\n }\n else {\n System.out.println(\"Enter valid input! Ahhhh.\");\n }\n } //end check play again input\n }\n }\n System.out.println(\"You had \" + game_guesses + \" guesses during this game.\\n\\n\");\n total_guesses += game_guesses;\n ++num_games;\n }while(playAgain);\n\n printEndDialogue(total_guesses, num_games, OPTIMALGUESSCNT);\n }", "@Override\n public Set<String> makeGuess(char guess) throws GuessAlreadyMadeException {\n\n for(String word : myDictionary) {\n ArrayList<Integer> indices = new ArrayList<>();\n for (int i = 0; i < word.length(); i++) {\n if(word.charAt(i) == guess) {\n indices.add(i);\n }\n }\n boolean matchFound = false;\n for (Map.Entry<Pattern, Set<String>> entry : myMap.entrySet()) {\n Pattern myPattern = entry.getKey();\n Set<String> myStrings = entry.getValue();\n if(indices.equals(myPattern.ReturnIndices())) {\n myStrings.add(word);\n //myNewDictionary.add(word);\n matchFound = true;\n }\n\n }\n if(matchFound == false) {\n Pattern myNewPattern = new Pattern(word.length(), word, indices);\n Set<String> myNewString = new HashSet<>();\n myNewString.add(word);\n //myNewDictionary.add(word);\n myMap.put(myNewPattern, myNewString);\n }\n\n }\n this.myDictionary = RunEvilAlgorithm();\n this.myMap = new HashMap<>();\n //make a function to run evil algorithm\n return myDictionary;\n }", "public void correctGuess(String s){\n\t\t \tif(rightAnswer==s){\n\t\t \t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\tGamesCommon.displayEndGame(GameStatus.Won, this,p);\n\t\t\t\t\t \n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t \t}else{\n\t\t \t\ttry {\n\t\t \t\t\tGamesCommon.displayEndGame(GameStatus.Lost, this,p);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t \t}\n\t }", "public String rightmostGuess(char guess) {\n String tester2 = \"\";\n String rightMostGuess = \"\";\n for (Map.Entry<String, Set<String>> entry1 : wordsLeft.entrySet()) { //for testing word\n String tester = entry1.getKey();\n\n for (Map.Entry<String, Set<String>> entry : wordsLeft.entrySet()) { //for word to test agasint\n tester2 = entry.getKey();\n\n for (int i = tester.length(); i > 0; i--) { //to interate through chars of each word\n try {\n char compare1 = tester.charAt(i - 1);\n char compare2 = tester2.charAt(i - 1);\n\n if (compare2 == guess && compare1 == '-') {\n rightMostGuess = tester2;\n break;\n }\n if (compare2 == '-' && compare1 == guess) {\n rightMostGuess = tester;\n break;\n }\n\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n\n }\n\n }\n\n }\n\n return rightMostGuess;\n }", "public static void userGuess() {\n\t\tSystem.out.println(\"It's time for you to guess. \");\n\t\tSystem.out.print(\"The computer will pick 4 numbers, each from 1 to 6: (\");\n\n\t\t// prints out all color options\n\t\tprintColor();\n\t\tSystem.out.println(\"You will try to guess what that exact sequence is in 12 tries, good luck!\");\n\t\tSystem.out.println(\"If you want to give up, enter 'quit' or 'exit'\");\n\t\tSystem.out.println(\"If you need a hint, enter 'hint'\");\n\t\tSystem.out.println(\"If you want some statistics, enter 'stats'\");\n\n\t\t// have computer pick random sequence\n\t\tRandom random = new Random();\n\t\tfor (int i = 0; i < NUM_COLOR_ROUND; i++) {\n\t\t\tcomputerCode[i] = random.nextInt(colors.length) + 1;\n\t\t}\n\n\t\t// scanner to input user data\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\t// allows the user to input 12 guesses\n\t\t\twhile (totalGuess < MAX_GUESS) {\n\t\t\t\t// if you haven't entered 12 guesses allow more\n\t\t\t\tSystem.out.print(\"Please enter 4 numbers, each from 1 to 6: (\");\n\t\t\t\tprintColor();\n\n\t\t\t\t// reads the line into an array\n\t\t\t\tint[] user_guesses = new int[NUM_COLOR_ROUND];\n\t\t\t\tint index = 0;\n\t\t\t\twhile (index < NUM_COLOR_ROUND) {\n\t\t\t\t\t// reads the entire user input into a line\n\t\t\t\t\tString guess = scanner.nextLine();\n\n\t\t\t\t\t// check if user wants hint\n\t\t\t\t\tif (Objects.equals(\"hint\", guess)) {\n\t\t\t\t\t\thint();\n\t\t\t\t\t}\n\n\t\t\t\t\t// checks if user wants to quit\n\t\t\t\t\tif (Objects.equals(\"quit\", guess.toLowerCase()) || Objects.equals(\"exit\", guess.toLowerCase())) {\n\t\t\t\t\t\tSystem.out.println(\"You quit, better luck next time! \");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\n\t\t\t\t\t// checks if user wants stats\n\t\t\t\t\tif (Objects.equals(\"stats\", guess.toLowerCase())) {\n\t\t\t\t\t\tdisplayStats();\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (char ch : guess.toCharArray()) {\n\t\t\t\t\t\tif (index == NUM_COLOR_ROUND) {\n\t\t\t\t\t\t\t// if more than 4 digits are used, only the first 4 are entered into array\n\t\t\t\t\t\t\tSystem.out.println(\"Warning: only the first four digits are taken as your guess.\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ch > '0' && ch < '7') {\n\t\t\t\t\t\t\tuser_guesses[index++] = ch - '0';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tint digitLeft = NUM_COLOR_ROUND - index;\n\t\t\t\t\tif (digitLeft > 0) {\n\t\t\t\t\t\t// if <4 digits are entered, then the program asks the user to enter the\n\t\t\t\t\t\t// remaining to make 4\n\t\t\t\t\t\tSystem.out.println(String.format(\"Please enter %d more digits (1 to 6 only)\", digitLeft));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// total number of guesses so far\n\t\t\t\ttotalGuess++;\n\n\t\t\t\t// prints out total number of guesses so far\n\t\t\t\tSystem.out.println(\"Total number of guesses: \" + totalGuess);\n\t\t\t\t// prints out your guess\n\t\t\t\tSystem.out.println(\"Your guess is: \" + Arrays.toString(user_guesses));\n\n\t\t\t\t// checks if user wins, if not, gives feedback on their guess\n\t\t\t\tint[] result = compareGuess(computerCode, user_guesses);\n\t\t\t\tint numRightPos = result[0];\n\t\t\t\tint numWrongPos = result[1];\n\t\t\t\tif (numRightPos == NUM_COLOR_ROUND) {\n\t\t\t\t\tSystem.out.println(\"You win!\");\n\t\t\t\t\tstoreStats(totalGuess, fileName);\n\t\t\t\t\tdisplayStats();\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(String.format(\n\t\t\t\t\t\t\t\"Correct position and color (BLACK): %d; Wrong position but correct color (WHITE): %d\",\n\t\t\t\t\t\t\tnumRightPos, numWrongPos));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (totalGuess >= MAX_GUESS) {\n\t\t\t// if user has done 12 guesses, game is over\n\t\t\tSystem.out.println(\"You lose!\");\n\t\t\tSystem.out.println(\"Here is what computer generated: \" + Arrays.toString(computerCode));\n\t\t\tstoreStats(0, fileName);\n\t\t\tdisplayStats();\n\t\t}\n\t}", "private void matchletter(){\n\t\t/* Generate a Random Number and use that as a Index for selecting word from HangmanLexicon*/\n\t\tString incorrectwords = \"\";\n\t\tcanvas.reset();\n\t\tHangmanLexicon word= new HangmanLexicon(); // Get Word from Lexicon\n\t\tint index=rgen.nextInt(0, (word.getWordCount() - 1)); // Select the word Randomly\n\t\tString secretword=word.getWord(index);\n\t\tprintln(\"secretword: \"+secretword);\n\t\tint lengthofstring= secretword.length();\n\t\tString createword=concatNcopies(lengthofstring,\"-\"); // Create a blank word the user will guess\n\t\tcanvas.displayWord(createword); // Display the word on the Canvas\n\t\tprintln(\"The word now looks like this:\" +createword);\n\t\tprintln(\"You have \" +lengthofstring+ \" guesses left\");\n\t\tint counter =0;\n\t\tint guess= lengthofstring;\n\t\tint pos = createword.indexOf('-'); // Check for blank Words\n\t\t/* Ask user to input the letter*/\n\t\twhile(counter<lengthofstring && (pos !=-1 )){ \n\t\t\tint check=0;\n\t\t\tpos = createword.indexOf('-',pos); // Check to find Dashes in word\n\t\t\tString userletter= readLine(\"Your Guess:\");\n\t\t\tif(userletter.length() > 1){ // Check for two letters entered\n\t\t\t\tprintln(\"Enter letter Again\");\n\t\t\t}\n\t\t\tchar ch=userletter.charAt(0);\n\t\t\tif(Character.isLowerCase(ch)) { // Convert lower case to upper case\n\t\t\t\tch = Character.toUpperCase(ch);\n\t\t\t}\n\t\t\tfor (int i=0;i<lengthofstring;i++){ // Check for entire letter matching in the secretword\n\t\t\t\tif (ch==secretword.charAt(i) && ch!=createword.charAt(i)) { \n\t\t\t\t\tcreateword = createword.substring(0, i) + ch + createword.substring(i + 1);\n\t\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\t\tcheck++; // If user puts the correct letter again it is flagged as a error\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(check==0){\n\t\t\t\tprintln(\"There are no \"+ch+\"'s in the word\");\n\t\t\t\tguess=guess-1;\n\t\t\t\tincorrectwords = incorrectwords+ch;\n\t\t\t\tcanvas.noteIncorrectGuess(guess, incorrectwords);\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tprintln(\"The word now looks like this:\"+createword);\n\t\t\tprintln(\"You have \" +guess+ \" guesses left\");\n\n\t\t\tif(counter==lengthofstring){ // Checks for Fail condition- Game Over\n\t\t\t\tprintln(\"You are completely hung\");\n\t\t\t\tprintln(\"The word was: \"+secretword);\n\t\t\t\tcanvas.displayWord(secretword);\n\t\t\t\tprintln(\"You lose \");\n\t\t\t}\n\t\t\tpos = createword.indexOf('-');// Check for Win condition\n\t\t\tif(pos < 0){\n\t\t\t\tprintln(\"You saved Hangman\");\n\t\t\t\tprintln(\"You Win !!!\");\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tguess=123;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void handleGuess(String s) {\n\n if (!word.contains(s)) {\n incorrectGuesses++;\n wrongList.add(s);\n if (incorrectGuesses == 8) {\n gameOver();\n }\n } else {\n correctList.add(s);\n updateWord(s.charAt(0));\n }\n }", "public interface Guessable {\n\n}", "private static void playGame()\n {\n initializeGame();\n System.out.println(textColor(\"white\",\"I have thought of a number, can you guess it?\"));\n Scanner guess = new Scanner(in);\n while(isPlaying)\n {\n // Give play information on how many guesses they have left\n System.out.print(textColor(\"blue\", \"Guesses left: \"));\n System.out.println(textColor(\"blue\", Integer.toString(guessesLeft)));\n if(showDebugInfo)\n {\n System.out.println(textColor(\"white\", String.format(\" %d (%d)\",bestGuess,secretNumber)));\n }\n // Ask for user input / guess\n System.out.println(textColor(\"cyan\", \"Enter your guess: \"));\n playerGuess = guess.nextInt();\n if (playerGuess > maxSecret)\n {\n // Cap player guess to max possible value\n System.out.print(textColor(\"yellow\",\"Guess is higher than possible maximum.\\nGuess is set to: \"));\n System.out.println(textColor(\"cyan\",Integer.toString(maxSecret)));\n }\n else if(playerGuess < minSecret)\n {\n // Cap player guess to min possible value\n System.out.print(textColor(\"yellow\",\"Guess is smaller than possible maximum.\\nGuess is set to: \"));\n System.out.println(textColor(\"cyan\",Integer.toString(minSecret)));\n }\n if (playerGuess == secretNumber)\n {\n // Player won\n System.out.print(textColor(\"white\",\"Congratulations! you have found my number: \"));\n System.out.println(textColor(\"cyan\",Integer.toString(secretNumber)));\n exitGame();\n }\n else if (secretNumber < playerGuess)\n {\n // Secret number is smaller than Player's guess\n System.out.printf(\"My number is %s\\n\",textColor(\"red\",\"LOWER\"));\n\n if(playerGuess - secretNumber < bestGuess)\n {\n bestGuess = playerGuess - secretNumber;\n }\n }\n else if (secretNumber > playerGuess)\n {\n // Secret number is larger than Player's guess\n System.out.printf(\"My number is %s\\n\",textColor(\"yellow\",\"HIGHER\"));\n if (secretNumber - playerGuess < bestGuess)\n {\n bestGuess = secretNumber - playerGuess;\n }\n }\n if (isPlaying)\n {\n switch(guessesLeft)\n {\n case 1:\n if(dangerZone(bestGuess))\n {\n // Player got close to finding the Secret Number, but still failed\n System.out.println(textColor(\"white\",\"You almost got me! My number was \"));\n System.out.println(textColor(\"yellow\",Integer.toString(secretNumber)));\n isPlaying = false;\n\n }\n else\n {\n if (safeLineUsed)\n {\n // Player could not find solution even after bonus guesses awarded\n System.out.print(textColor(\"white\",\"Sorry, the number I thought was \"));\n System.out.println(textColor(\"yellow\",Integer.toString(secretNumber)));\n isPlaying = false;\n }\n else\n {\n // Bonus Guesses award is triggered\n System.out.print(textColor(\"white\",\"Don't give up, here is \"));\n System.out.print(textColor(\"cyan\",Integer.toString(extraGuesses)));\n System.out.println(textColor(\"white\",\" extra guesses\"));\n safeLineUsed = true;\n guessesLeft += extraGuesses-1;\n }\n }\n break;\n\n default:\n // Keep reducing Guesses Left number\n guessesLeft--;\n break;\n }\n\n }\n }\n\n }", "public int returnCorrectPos(String guess) {\n\t\tint correctPos = 0;\n\t\t\n\t\tfor (int i = 0; i < guess.length(); i++) {\n\t\t\tif (i > secretCode.length() - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar guessNum = guess.charAt(i);\n\t\t\tchar secretCodeNum = secretCode.charAt(i);\n\t\t\tif (guessNum == secretCodeNum) {\n\t\t\t\tcorrectPos += 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn correctPos;\n\t}", "public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\t// Introduction and random number selection between 1-10\n\t\tSystem.out.println(\"Hey you!\" + \"\\n\\n\"\n\t\t\t\t+ \"Word on the street says you're a pretty good number guesser. I beg to differ, nobody has ever guessed my number correctly in the entire history of number guessing!\"\n\t\t\t\t+ \"\\n\\n\"\n\t\t\t\t+ \"See if you can guess my number hotshot! I'm thinking of a number between 1 and 10, and no mindreading, because thats cheating!\\n\");\n\t\tint secretNum = new Random().nextInt(11 + 1);\n\t\tSystem.out.println(secretNum);\n\t\t// MainGame functionality\n\t\ttry {\n\n\t\t\tint guess = input.nextInt();\n\t\t\tint count = 0;\n\t\t\twhile (guess < 1 || guess > 10) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Hey, that's not a number between 1 and 10. You can't count let alone guess my number! Try again, but for real this time...\");\n\t\t\t\tguess = input.nextInt();\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif(guess == secretNum){\n\t\t\t\tSystem.out.println(\"So it is true what everybody says. You truly are the master number guesser. You have my respects sir, I am sorry I ever doubted you. Please take my money.\");\n\t\t\t\tSystem.exit(0); \n\t\t\t}\n\t\t\twhile (guess > 1 && guess < 10 && guess != secretNum) {\n\t\t\t\tcount++;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tSystem.out.println(\"That's your first guess? HAH!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 2) {\n\t\t\t\t\tSystem.out.println(\"Oh come on, are you even trying???\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 3) {\n\t\t\t\t\tSystem.out.println(\"Actually you're getting quite close... NOT!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 4) {\n\t\t\t\t\tSystem.out.println(\"My grandmother is a better guesser than you!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 5) {\n\t\t\t\t\tSystem.out.println(\"Okay, now this is getting embarressing.\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 6) {\n\t\t\t\t\tSystem.out.println(\"You are a fake! A sham!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 7) {\n\t\t\t\t\tSystem.out.println(\"This is pathetic. Forget I even asked!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 8) {\n\t\t\t\t\tSystem.out.println(\"Wow... Honestly i'm speechless.\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 9) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"I didn't even think it was possible to guess this many times and STILL not get the answer. You should be ashamed. I am reporting you to the number guessing authorities and you are going pay for wasting my time. HORRENDOUS!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InputMismatchException ex) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"You don't even know the difference between a number and a letter. Pathetic. You are no master number guesser.\");\n\t\t}\n\n\t}", "public void printWrongGuess() {\r\n\t\t\r\n\t\tSystem.out.print(\"Wrong Guesses: \" + wrongGuess + \"\\n\");\r\n\t}", "boolean checkGuess(String guess) {\r\n if (currWord.contains(guess)) { // correct guess\r\n numToGuess--;\r\n if (numToGuess <= 0) { // the word was guessed\r\n if (currWord.equals(animal))\r\n animalGuessed = true;\r\n if (currWord.equals(country))\r\n countryGuessed = true;\r\n if (currWord.equals(superhero))\r\n superheroGuessed = true;\r\n wordsCorrect++;\r\n if (wordsCorrect >= 3) {\r\n gameOver = true;\r\n win = true;\r\n }\r\n }\r\n return true;\r\n }\r\n else { // wrong guess\r\n guessesLeft--;\r\n if (guessesLeft <= 0) { // round lost\r\n chancesLeft--;\r\n if (chancesLeft <= 0) {\r\n gameOver = true;\r\n win = false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public String getResult() {\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < this.guessTimes; i++) {\n\t\t\tswitch (i) {\n\t\t\tcase 0:\n\t\t\t\tstr += \" First guess:\" + this.guessNumbers[i];\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tstr += \" Second guess:\" + this.guessNumbers[i];\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tstr += \" Third guess:\" + this.guessNumbers[i];\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tstr += \" Fourth guess:\" + this.guessNumbers[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn str;\n\t}", "private static int guessing() {\n\t\t\n\t\tSystem.out.println(\"Guess a number between 1 and 100, you have 5 trials: \");\n\t\t\n\t\tint trials = 5;\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\t//set a random number as the number to be guessed\n\t\tint num = (int)(100 * Math.random()) + 1;\n\t\tint points = 0;\n\t\t\n\t\t//use a flag to check if player guess the correct number or not\n\t\tboolean flag = false;\n\t\twhile ( trials > 0) {\n\t\t\tint guess = input.nextInt();\n\t\t\ttrials--;\n\t\t\tif ( guess == num ) {\n\t\t\t\tpoints = trials == 0? 20 : trials * 20;\n\t\t\t\t//System.out.println(\"You guess the number with\"+trials+\"trials left, congratulation! +\"+ (points = trials == 0? 20 : trials * 20)+\" points\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}else if ( guess < num ) {\n\t\t\t\tSystem.out.println(\"The guess is too small, please try again, you have \"+trials+\" trials left.\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"The guess is too large, please try again, you have \"+trials+\" trials left.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif ( !flag ) System.out.println(\"Trials used up, + 0 points\");\n\t\treturn points;\n\t\t\n\t}", "public boolean guess(int number) {\n\t\tcountRound++;\n\t\tlastGuess = number;\n\t\t\n\t\tif(number == secret) {\n\t\t\tsetChanged();\n\t\t\tnotifyObservers(number);\n\t\t\tsetMessage(\"Wow! Correct!! I'm thinking of \"+secret+\".\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (number < secret && number >= 1) setMessage(\"Umm, \" + number + \" is too small.\");\n\t\telse if (number > secret && number <= this.upperBound) setMessage(\"Oh! \" + number + \" is too large.\");\n\t\telse setMessage(\"Oops! Please input a valid number!!\");\n\t\t\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t\treturn false;\n\t}", "public int guessingGame(int x, int y) {\n\t\tRandom rand = new Random();\n\t\tint random_number = (int)Math.random() * (x - y + 1) + x;\n\t\treturn random_number;\n\t}", "private static String gameAnswer(char[] userInput, char[] initNum) {\n\t\tint bulls = 0;\n\t\tint cows = 0;\n\n\t\t// check for bulls\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (userInput[i] == initNum[i])\n\t\t\t\tbulls++;\n\t\t}\n\n\t\t// check for cows\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor(int k = 0; k < 4; k++) {\n\t\t\t\tif((userInput[i] == initNum[k]) && (i != k))\n\t\t\t\t\tcows++;\n\t\t\t}\n\t\t}\n\n\t\t// generate answer\n\t\tString anwser = new String(userInput);\n\t\tanwser = anwser + \" --> bulls:\" + bulls + \" cows:\" + cows;\n\t\treturn anwser;\n\t}", "public void checkUserGuess(String inputGuess){\n numGuesses++;\n // Set the result to You Miss,\n String result = \"You Miss!\";\n // Loop and check for occurence in any of the three dot coms.\n for(DotCom dotComToTest : dotComList){\n // Checking the user input versus each dotCom.\n String temp = dotComToTest.checkGuess(inputGuess);\n if(temp.equals(\"You Hit!\")){\n result = temp;\n break;\n }\n \n if(temp.equals(\"You Kill!\")){\n result = temp + \" DotCom Sunk : \" + dotComToTest.getName();\n dotComList.remove(dotComToTest);\n break;\n } \n }\n \n //Printing out the result\n System.out.println(result);\n \n }", "public String getIsguess() {\r\n return isguess;\r\n }", "public void setGuess(Code guess) {\n this.guess = guess;\n }", "public Main()\n {\n \n Random rand = new Random();\n int n = rand.nextInt(10);\n n+=1;\n \n Scanner sc = new Scanner(System.in);\n int i = 0;\n do {\n \n i = sc.nextInt();\n\n //System.out.println(i);\n if(i<n){\n System.out.println(\"too small\");\n if (previousNum!=i){\n count += 1;\n }\n }\n else if(i>n){\n System.out.println(\"too big\");\n if (previousNum!=i){\n count +=1;\n }\n }\n else {\n System.out.println(\"correct guess\");\n \n count +=1;\n \n }\n \n previousNum = i;\n }while (i!=n);\n System.out.println(\"it took you \"+count+\" guesses!\");\n \n }", "private char playerGuess(){\r\n System.out.println(\"\\nEnter your guess: \");\r\n guess = input.next();\r\n if (guess.matches(\"[a-zA-z]*$\") && guess.length() == 1){\r\n if(guesses.contains(guess.charAt(0))){\r\n System.out.println(\"You already guessed this character!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n } else {\r\n System.out.println(\"Invalid guess! Try again!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n }", "public StringBuffer formTheGuessedWord(String word, String guess, StringBuffer guessedWord) {\r\n\t\tif (guessedWord != null && guessedWord.length() >= 1) {\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tif (word.charAt(i) == guess.charAt(0)) {\r\n\t\t\t\t\tguessedWord.setCharAt(i, guess.charAt(0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tguessedWord = new StringBuffer(word.length());\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tguessedWord.append(\".\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn guessedWord;\r\n\t}", "public void noteIncorrectGuess(char letter) {\n\t\tguesses += letter;\n\t\tguessesLabel.setLabel(guesses);\n\t\tguessesLabel.setLocation((getWidth() - guessesLabel.getWidth()) / 2, wordLabel.getY() + wordLabel.getHeight()\n\t\t\t\t+ WORD_SPACING);\n\t\tif (guesses.length() == 1)\n\t\t\tbody.add(buildHead());\n\t\tif (guesses.length() == 2)\n\t\t\tbody.add(buildTorso());\n\t\tif (guesses.length() == 3)\n\t\t\tbody.add(buildLeftArm());\n\t\tif (guesses.length() == 4)\n\t\t\tbody.add(buildRightArm());\n\t\tif (guesses.length() == 5)\n\t\t\tbody.add(buildLeftLeg());\n\t\tif (guesses.length() == 6)\n\t\t\tbody.add(buildRightLeg());\n\t\tif (guesses.length() == 7)\n\t\t\tbody.add(buildLeftFoot());\n\t\tif (guesses.length() == 8)\n\t\t\tbody.add(buildRightFoot());\n\t}", "public int getLastGuess() {\n\t\treturn lastGuess;\n\t}", "public int returnIncorrectPos(String guess) {\n\t\tint incorrectPos = 0;\n\t\t\n\t\tfor (int i = 0; i < guess.length(); i++) {\n\t\t\tif (i > secretCode.length() - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar guessNum = guess.charAt(i);\n\t\t\tchar secretCodeNum = secretCode.charAt(i);\n\t\t\tif (guessNum == secretCodeNum) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// check if num exists in secret code\n\t\t\telse if (secretCode.contains(new String(new char[] { guessNum }))) {\n\t\t\t\tincorrectPos += 1;\n\t\t\t}\n\t\t}\n\t\treturn incorrectPos;\n\t}", "public static int makeGuess(BufferedImage subImage) {\n\t\tdouble bestOverlap = -1;\r\n\t\tint bestGuess = -1;\r\n\r\n\t\tfor (int i=0; i<templates.length; i++) { // for each possible character\r\n\r\n\t\t\tint totalCount = 0;\r\n\t\t\tint matchCount = 0;\r\n\r\n\t\t\tfor (int x=0; x<subImage.getWidth(); x++) {\r\n\t\t\t\tfor (int y=0; y<subImage.getHeight(); y++) {\r\n\r\n\t\t\t\t\tint pixelVal = subImage.getRGB(x, y);\r\n\r\n\t\t\t\t\tif (!isBlack(pixelVal)) continue;\r\n\t\t\t\t\tif (isBlack(templates[i].getRGB(x, y))) matchCount++;\r\n\t\t\t\t\ttotalCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (debug) \r\n\t\t\t\tSystem.out.println(i + \": matched \" + matchCount + \" / \" + totalCount);\r\n\r\n\t\t\tdouble overlap = matchCount / (double) totalCount;\r\n\t\t\tif (overlap > bestOverlap) {\r\n\t\t\t\tbestOverlap = overlap;\r\n\t\t\t\tbestGuess = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn bestGuess;\r\n\t}", "public static void numberManiaGame(Scanner input, byte difficulty){\n Random rand=new Random();\n int numberLimit=0,operation,number1,number2,total=0,userNumber;\n boolean isTheNumber=false;\n System.out.println(\"How many numbers would you like to guess? Maximum amount of questions allowed in this version are 128\");\n byte amountOfQuestions=input.nextByte();\n switch (difficulty){\n case 1:\n numberLimit=1000;\n break;\n case 2: \n numberLimit=5000;\n break;\n case 3:\n numberLimit=10000;\n break;\n }\n System.out.println(\"Great, let's start our game.\");\n for(int i=0;i<amountOfQuestions;i++){\n operation=rand.nextInt(2)-0;\n switch(operation){\n case 0:\n number1=rand.nextInt((numberLimit/2));\n number2=rand.nextInt((numberLimit/2));\n total=(number1+number2);\n System.out.println(\"Which number + \" + number1 + \" gives you \" + total);\n userNumber=input.nextInt();\n do{ \n if (userNumber==number2){\n System.out.println(\"Congratulations, that is the number.\");\n isTheNumber=true;\n }else{\n System.out.println(\"That is not the number. Please write another number\");\n userNumber=input.nextInt();\n }\n }while (isTheNumber==false);\n isTheNumber=false;\n break;\n case 1:\n number1=rand.nextInt((numberLimit/2));\n number2=rand.nextInt((numberLimit/2));\n total=(number1-number2);\n System.out.println(\"Which number - \" + number1 + \" gives you \" + total);\n userNumber=input.nextInt();\n do{ \n if (userNumber==number2){\n System.out.println(\"Congratulations, that is the number.\");\n isTheNumber=true;\n }else{\n System.out.println(\"That is not the number. Please write another number\");\n userNumber=input.nextInt();\n }\n }while (isTheNumber==false);\n isTheNumber=false;\n break;\n }\n }\n\n System.out.println(\"Thanks for playing! Returning to main menu...\");\n \n }", "public static void startGame(Scanner console){\r\n // 1. generate new game ans the random number\r\n GuessFourDigits guess = new GuessFourDigits(4);\r\n \r\n System.out.println(\"Welcome to GuessDigits\"); \r\n System.out.println(\"-----------------------------------------\");\r\n System.out.println(\"guess the right sequence of digits in \"+guess.NUMBER_LENGTH+ \"digits number.\");\r\n System.out.println(\"with each try there will be tipp about result\");\r\n System.out.println(\"-----------------------------------------\");\r\n \r\n // declaring and initialization of loop flag\r\n boolean tipp = false;\r\n \r\n //counter of tries\r\n int counterTry = 0;\r\n \r\n do{\r\n // 2. asking User to guess\r\n System.out.println(\"Your guess: \");\r\n String usersNumber = UserInput.askUserToInsert(console);\r\n \r\n // 2a. check validity of inserted number\r\n if(!guess.validityCheckOfNumber(usersNumber)){\r\n System.out.println(\" inserted number is not valid+\\n\"\r\n + \" a 4 digit positive number, no digit repeated.\");\r\n continue;\r\n }\r\n \r\n // if inserted nummer valid, tipp counter goes up\r\n counterTry++;\r\n \r\n // 3. comparing numbers\r\n int[] comparingNum = guess.compareTheNumbers(usersNumber);\r\n \r\n // 4. giving tipps and congratulating user\r\n if(comparingNum[0] == guess.NUMBER_LENGTH){\r\n //user wins\r\n System.out.println(\"Congrats, you reach \"+usersNumber+\" in \"\r\n + counterTry+ \" tries.\\n\");\r\n tipp = true;\r\n }else{\r\n // tipp to user\r\n System.out.println(\"right number at right position: \"\r\n +comparingNum[0]+ \" right number at wrong position: \"\r\n + comparingNum[1]+ \"\\n\");\r\n }\r\n \r\n \r\n \r\n }while(!tipp);\r\n \r\n }", "public boolean alreadyGuessed(char guess) {\r\n return false;\r\n }", "@Override\r\n\tpublic Code nextGuess() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tRandom randGen = new Random();\r\n\t\tCode newCode;\r\n\t\t\r\n\t\tArrayList<String> values;\r\n\t\twhile(true)\r\n\t\t{values = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < super.getNumVars(); i++)\r\n\t\t{\r\n\t\t\tint colorIndex = randGen.nextInt((super.getColorList().size()));\r\n\t\t\tvalues.add(super.getColorList().get(colorIndex));\r\n\t\t}\r\n\t\t\r\n\t\tnewCode = new Code(super.getNumVars());\r\n\t\t\r\n\t\tfor (int i = 0; i < values.size(); i++)\r\n\t\t{\r\n\t\t\tnewCode.addEntry(values.get(i));\r\n\t\t}\r\n\t\t//contains method for code\r\n\t\t\r\n\t\tboolean shouldBreak=true;//(guessHistory.size()==0?true:false);\r\n\t\tfor(int i=0,totalequal=0;i<guessHistory.size();++i,totalequal=0)\r\n\t\t{\r\n\t\t\tCode itrHistory=guessHistory.get(i);\r\n\t\t\tfor(int j=0;j<super.getNumVars();++j)\r\n\t\t\tif(newCode.colorAt(j).equals(itrHistory.colorAt(j)))\r\n\t\t\t\t\ttotalequal++;\r\n\t\t\t\t\r\n\t\t\tif(totalequal==super.getNumVars())\r\n\t\t\t\tshouldBreak=false;\r\n\t\t\t\r\n\t\t}\r\n\t\tif(shouldBreak)\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tguessHistory.add(newCode);\r\n\t\treturn newCode;\r\n\t}", "public boolean guess(int number) {\n\t\tcount++;\n\t\tif (number == secret) {\n\t\t\tsetHint(String.format(\"Correct. The secret is %d. You used %d guesses.\", this.secret, this.count));\n\t\t\treturn true;\n\n\t\t} else if (number < secret) {\n\t\t\tsetHint(\"Sorry,your guess is too small\");\n\t\t} else {\n\t\t\tsetHint(\"Sorry,your guess is too large\");\n\t\t}\n\t\treturn false;\n\n\t}", "public static void main(String[] args){\n Scanner keyboard = new Scanner(System.in);\n //declare variables for the answer, user's guess, and number fo guesses\n int answer;\n int guess;\n int numOfGuess = 0;\n \n boolean done = false;\n answer = (int)(100*Math.random())+1;\n \n //print an introduction that tells the user how to play this game\n System.out.println(\"Hello user! I will generate a number between 1-100 inclusive and you will try to guess it! I will tell you if your answer is too low or too high after each incorrect guess!\");\n do \n {\n System.out.print(\"Please enter your guess:\");\n guess = keyboard.nextInt();\n if (guess > answer){\n System.out.println(\"Too high!\");\n }\n else if( guess < answer){\n System.out.println(\"Too low!\");\n }\n else{\n done = true;\n }\n numOfGuess += 1;\n } while (done == false);\n \n System.out.println(\"Congratulations! You're score is \" + numOfGuess);\n if (numOfGuess >= 20){\n System.out.println(\"Rating: You are terrible at this game!\");\n }\n else if (numOfGuess >= 10 && numOfGuess <=19){\n System.out.println(\"Rating: You need more practice!\");\n }\n else if (numOfGuess >= 5 && numOfGuess <= 9){\n System.out.println(\"Rating: Not too bad, But can you get it in fewer than 5 guesses?\");\n }\n else if (numOfGuess >= 2 && numOfGuess <= 4){\n System.out.println(\"Rating: AWESOME. You win a trip to Hawaii!\");\n }\n else{\n System.out.println(\"Rating: That was pure LUCK and you know it!\");\n }\n \n }", "public test(){\r\n while(true){\r\n int num = (int)(Math.random()*5); // this is hard coded, you should use words.length instead of 5\r\n String str = words[num];\r\n int n = Guess(str);\r\n System.out.println(\"The word is \"+ str +\".You missed \"+n+\"times.\\n\");\r\n System.out.println(\"Do you want to guess for another word? Entry y or n\");\r\n String s = input.next();\r\n if(s.equals(\"n\")){\r\n break;\r\n }\r\n System.out.println(\"Game over!\");\r\n }\r\n }", "public GuessingGame(int upperBound) {\n\t\tthis.upperBound = upperBound;\n\t\tthis.secret = getRandomNumber(upperBound);\n\t\tthis.hint = \"I'm thinking of a number between 1 and \" + upperBound;\n\t}", "public void checkUserGuess(int userGuess, int randomNumber) {\n guessesLeft();\n if (userGuess == randomNumber) {\n gameFragmentLayout.setVisibility(View.VISIBLE);\n savehighscore();\n level++;\n hideKeybord();\n\n CorrectGameFragment correctGameFragment = new CorrectGameFragment();\n FragmentManager fragmentManager = getSupportFragmentManager();\n correctGameFragment.getCorrectFragInfo(this, level, levelMaxRange, guessesLeft);\n fragmentManager.beginTransaction()\n .replace(R.id.game_fragment, correctGameFragment)\n .commit();\n }\n }", "public int guessCount(String tester, char guess) {\n StringBuilder r = new StringBuilder(tester);\n\n int guessCount = 0;\n for (int i = 0; i < tester.length(); i++) {\n if (r.charAt(i) == guess) {\n guessCount++;\n }\n }\n\n return guessCount;\n }", "private static int coinFlip() {\n\t\tint num = (Math.random() <= 0.5) ? 1 : 2; \n\t\tString answer;\n\t\tif ( num == 1) {\n\t\t\tanswer = \"h\";\n\t\t}else {\n\t\t\tanswer = \"t\";\n\t\t}\n\t\t\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\t\n System.out.print(\"Enter you guess (h = heads, t = tails):\");\n String guess = input.next();\n //change the guess to lower case to accept both capital or lower case answer\n guess.toLowerCase();\n \n //gain 50 points if win the toss\n if ( guess.equals(answer)) {\n \t//System.out.println(\"You won the toss, congratulation! +50 points\");\n \treturn 50;\n }else {\n \t //System.out.println(\"Wrong guess! 0 points\");\n \t return 0;\n }\n \n\t}", "private String getClassGuess(List<String> guesses) {\n\t\t// build structures to count occurrence of unique class guesses\n\t\tArrayList<Integer> countGuesses = new ArrayList<>();\n\t\tArrayList<String> uniqueEntry = new ArrayList<>();\n\n\t\t// build list to be populated with likely guesses\n\t\tArrayList<String> highCountGuess = new ArrayList<>();\n\n\t\tfor (String check : guesses) {\n\t\t\t// if we have already seen this guess\n\t\t\tif (uniqueEntry.contains(check)) {\n\t\t\t\t// grab the index of guess, and increment count\n\t\t\t\tint sharedIndex = uniqueEntry.indexOf(check);\n\t\t\t\tint oldVal = countGuesses.get(sharedIndex);\n\t\t\t\tcountGuesses.set(sharedIndex, oldVal + 1);\n\t\t\t} else {\n\t\t\t\t// new class guess, add to uniqueEntry\n\t\t\t\tcountGuesses.add(1);\n\t\t\t\tuniqueEntry.add(check);\n\t\t\t} // end if-else\n\t\t} // end for\n\n\t\tint highestCount = 0; // largest occurrence\n\t\tfor (int i = 0; i < uniqueEntry.size(); i++) {\n\t\t\tif (countGuesses.get(i) > highestCount) {\n\t\t\t\thighCountGuess.clear();\n\t\t\t\thighCountGuess.add(uniqueEntry.get(i));\n\t\t\t} else if (countGuesses.get(i) == highestCount) {\n\t\t\t\thighCountGuess.add(uniqueEntry.get(i));\n\t\t\t} // end if-else\n\t\t} // end for\n\t\tRandom rng = new Random();\n\t\treturn highCountGuess.get(rng.nextInt(highCountGuess.size()));\n\t}", "private void tryGuess(char letter) {\n\t\tSystem.out.println(\"=============================\");\n\t\t// if the same guess has been done before, print corresponding information\n\t\tif (this.guessedLetters.contains(letter)){\n\t\t\tSystem.out.println(\"Letter already guessed, try another one.\");\n\t\t}else {\n\t\t\t// else, update the guessedLetters\n\t\t\tthis.guessedLetters.add(letter);\n\t\t\t// if the guess is correct\n\t\t\tif(this.word.takeGuess(letter)) {\n\t\t\t\t// print corresponding information\n\t\t\t\tSystem.out.println(\"Correct letter!\");\n\t\t\t}else {\n\t\t\t\t// else, add the letter to the wrongLetters list\n\t\t\t\tthis.wrongLetters.add(letter);\n\t\t\t\t// increase the count of wrong guesses\n\t\t\t\tthis.numOfWrongGuess ++;\n\t\t\t\t// print out the corresponding information\n\t\t\t\tSystem.out.println(\"Wrong letter, better luck next turn.\");\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\r\n Scanner scan = new Scanner(System.in);\r\n Random generator = new Random();\r\n final int cap = 100;\r\n String answer = \"Y\";\r\n do {\r\n int numToGuess;\r\n int guess = -1;\r\n int count = 0;\r\n answer = \"Y\";\r\n numToGuess = generator.nextInt(cap) + 1; \r\n System.out.print(\"Please guess the integer number between\"\r\n + \" 1 and 100.\\nIf you wish to quit, type, \\\"0.\\\" \");\r\n while (guess != 0) {\r\n guess = scan.nextInt();\r\n System.out.println(\"Your guess was...\" + guess);\r\n if (guess > cap || guess < 0) {\r\n throw new IllegalArgumentException(\"Input cannot be more \"\r\n + \"than 100 or less than 0. To quit the input must\"\r\n + \" be -1\");\r\n } else if (guess == 0) {\r\n System.out.println(\"Quitting game...\\n\");\r\n } else if (guess > numToGuess) {\r\n System.out.println(\"That number is too high.\");\r\n count++;\r\n } else if (guess < numToGuess) {\r\n System.out.println(\"That number is too low.\");\r\n count++;\r\n } else if (guess == numToGuess) {\r\n System.out.println(\"That was correct.\");\r\n guess = 0;\r\n count++;\r\n }\r\n \r\n }\r\n System.out.println(\"Number of guesses for this game: \" + count);\r\n System.out.println(\"Would you like to play again? \\n\\\"N\\\" for no,\"\r\n + \" or any other input to start a new game.\");\r\n answer = scan.next();\r\n } while (!answer.equals(\"N\"));\r\n System.out.println(\"Goodbye!\");\r\n }", "java.lang.String getCorrectAnswer();", "@Test\n public void testUsersRealNhsNoBestGuess() {\n String unitCode = userMappingDao.getUsersRealNhsNoBestGuess(\"username2\", tenancy);\n\n assertEquals(\"incorrect nhsno found with best guess\", \"nhsno2\", unitCode);\n }", "public char getUserGuess(){\n char letter = '\\u0000';\n if(mGuessEditText.getText().toString().toLowerCase().length() != 0)\n letter = mGuessEditText.getText().toString().toLowerCase().charAt(0);\n return letter;\n }", "public static void main(String[] args){\n \n //\"Declaring\" local variables for use later in the method.\n String firstName, lastName;\n int goalNumber, userGuess, countGuesses, ranNum;\n int triangleHeight;\n Scanner keyboardReader = new Scanner(System.in);\n \n //Get the user's name.\n System.out.print(\"Enter your first and last name: \");\n firstName = keyboardReader.next();\n lastName = keyboardReader.next();\n \n //Display a marquee with a personalized greeting.\n drawBorder(40, '*');\n printWelcome(firstName, lastName);\n drawBorder(40, '*');\n \n //Explain the game.\n printGameIntro(firstName);\n \n //Set up the game.\n goalNumber = (int)(1 + 20 * Math.random());\n countGuesses = 1;\n \n //Get the first guess.\n drawBorder(40, '*');\n System.out.print(\"Enter guess #\" + countGuesses + \": \");\n userGuess = keyboardReader.nextInt();\n \n //Loop until the user correctly guesses.\n while(userGuess != goalNumber){\n \n //Give advice to the user.\n if(userGuess < goalNumber){\n System.out.println(\"Too low. Guess higher.\");\n }\n else{\n System.out.println(\"Too high. Guess lower.\");\n }\n \n countGuesses = countGuesses + 1;\n \n System.out.print(\"Enter guess #\" + countGuesses + \": \");\n userGuess = keyboardReader.nextInt();\n \n } //end of while loop.\n \n //User wins if it takes fewer than 5 guesses.\n if(countGuesses < 5){\n System.out.print(\"Congratulations \" + firstName + \", \");\n System.out.println(\"you got it in \" + countGuesses + \" tries.\");\n System.out.println(\"You are a good guesser.\");\n }\n else{\n System.out.print(\"OK \" + firstName + \", \");\n System.out.println(\"you got it, but took 5 or more tries.\");\n }\n \n //Some artwork:\n drawBorder(40, '*');\n System.out.println(\"And now, we bring you a triangle of money!\");\n ranNum = (int)(1 + 10 * Math.random());\n triangleHeight = ranNum;\n \n //Display the triangle:\n for(int rowCount = 1; rowCount <= triangleHeight; rowCount++){\n drawBorder(rowCount, '$');\n }\n \n }", "public static void numberManiaDifficulty(Scanner input){\n Random rand= new Random();\n byte difficulty=0;\n String userInput;\n boolean difficultyHasBeenChosen=false;\n System.out.println(\"Easy from number 1 to 1000. (1)\\nMedium from number 1 to 5000 (2)\\nHard from number 1 to 10000 (3)\");\n do{\n userInput=input.nextLine();\n switch(userInput){\n case \"1\":\n difficulty=1;\n difficultyHasBeenChosen=true;\n break;\n case \"2\":\n difficulty=2;\n difficultyHasBeenChosen=true;\n break;\n case \"3\":\n difficulty=3;\n difficultyHasBeenChosen=true;\n break;\n default:\n System.out.println(\"Please write a valid option\");\n }\n \n }while (difficultyHasBeenChosen==false);\n numberManiaGame(input, difficulty);\n }", "@Test\n public void testUsersRealUnitcodeBestGuess() {\n String unitCode = userMappingDao.getUsersRealUnitcodeBestGuess(\"username2\", tenancy);\n\n assertEquals(\"incorrect unitcode found with best guess\", \"unitcode2\", unitCode);\n }", "public EvilHangman(int numGuess){\n\t\tthis.guesses = numGuess;\n\t\tthis.dict = new EvilDictionary(\"dictionary.txt\");\n\t\tthis.usedLetters = new ArrayList<Character>();\n\t\tthis.showWords = false;\n\t}", "public static void main(String[] args) {\n Random rand = new Random();\r\n int answer = rand.nextInt(10) + 1;\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"John's Guessing Game\");\r\n System.out.println(\"Guess a number between 1 and 10\");\r\n\r\n while (true) {\r\n System.out.print(\"Enter a number: \");\r\n int guess = sc.nextInt();\r\n if (guess == answer) {\r\n break;\r\n } else if (guess >= answer) {\r\n System.out.println(\"The number is lower, try again...\");\r\n } else {\r\n System.out.println(\"The number is higher, try again...\");\r\n }\r\n }\r\n System.out.println(\"You got it!!!\");\r\n }", "public String isGoodNumberInput(String s, String g) {\n boolean isBadInput = true;\n while (isBadInput) {\n g = scanner.nextLine();\n if (s.equals(\"changePhone\") || s.equals(\"phoneNumber\")) {\n if (!isNumeric(g)) {\n System.out.println(\"That is not a number, please enter a number\");\n } else if (g.length() >= 11) {\n System.out.println(\"I'm sorry that number is too large, place try again.\");\n } else if (g.length() < 10) {\n System.out.println(\"I'm sorry, that is too small please use 10 digits\");\n } else {\n isBadInput = false;\n }\n } else if (s.equals(\"changeStreet\") || s.equals(\"streetNumber\")) {\n if (!isNumeric(g)) {\n System.out.println(\"That is not a number, please enter a number\");\n } else if (g.length() < 0) {\n System.out.println(\"It seems you have not entered an address number. Please try again .\");\n } else if (g.length() > 10) {\n System.out.println(\"It seems like that is a little too long for an address number. Why don't you try again.\");\n } else {\n isBadInput = false;\n }\n } else if (s.equals(\"changeAptNum\") || s.equals(\"aptNum\")) {\n if (g.equalsIgnoreCase(\"n/a\")) {\n isBadInput = false;\n } else if (!isNumeric(g)) {\n System.out.println(\"That is not a number, please try again\");\n } else if (g.length() >= 6) {\n System.out.println(\"It seems like that is a little too long for an apartment number. Why don't you try again.\");\n } else {\n isBadInput = false;\n }\n } else if (s.equals(\"changeZip\") || s.equals(\"zip\")) {\n if (!isNumeric(g)) {\n System.out.println(\"That is not a number, please enter a number.\");\n } else if (g.length() < 0) {\n System.out.println(\"You have not entered a zip code, please try again.\");\n } else if (g.length() > 6) {\n System.out.println(\"That is too long for a zip code, please try again.\");\n } else {\n isBadInput = false;\n }\n\n } else {\n System.out.println(\"There is no option for that, please try again\");\n }\n }\n\n return g;\n }", "String getUsser();", "public MyHangmanGame(String secretWord, int numGuesses, String LetterHistory){\n OriginSecretWord = secretWord;\n GuessRemainingNum = numGuesses;\n LetterLeftNum = secretWord.length();\n for(int i = 0; i < secretWord.length(); i++)\n {\n CurrentState += \"_ \";\n for(int j = i; j > 0; j--)\n {\n if(secretWord.charAt(i) == secretWord.charAt(j-1))\n {\n LetterLeftNum--;//If the letter appears many times in the secret word, it will be counted just once.\n break;\n }\n }\n }\n LetterGuessHistory = LetterHistory;\n }", "public void userMessageInput() {\n //declaring and initializing new userScanner variable\n Scanner userScanner = new Scanner(System.in);\n //displayed message to the user with the updating replacedMovie variable\n System.out.println(\"You are guessing :\" + this.replacedMovie);\n //displaying message with total number of wrong trials (guessed letters) to the user ,\n // together with the wrong guessed letter/s.\n getAllWrongLetters(); // calls method to dispaly the whole list of wrong guessed letters.\n System.out.println(\"You have guessed \" + this.wrongLettersCount + \" wrong letter(s): \" + allWrongLetters);\n //displaying a message asking the user to enter a guessed letter\n System.out.println(\"Guess a Letter\");\n //storing the entered letter in userEnteredLetter variable\n this.setUserGuessedLetter(userScanner.next().charAt(0));\n\n //return userEnteredLetter; // returning userEnteredLetter variable\n\n }", "public static void main(String[] args) {\n int randomValue = (int) (100 * Math.random() + 1);\n /*Inicializamos una variable de tipo entero con un valor de 5 que\n * representará los intentos que tiene el usuario para adivinar el número*/\n int lives = 5;\n\n /*Pedimos por consola que el usuario escriba un número (primer intento)*/\n Scanner input = new Scanner(System.in);\n System.out.println(\"You have \" + lives + \" lives. Good luck!\");\n System.out.println(\"Try to guess the number:\");\n int inputNumber = input.nextInt();\n\n /*A partir del segundo intento se irá pidiendo al usuario que añada un número cada vez que no acierte,\n * mostrando algunos mensajes sobre las vidas que le quedan y si el número añadido es más grande o más\n * pequeño que el número que debe adivinar*/\n while (lives > 0) {\n lives--;\n if (lives == 0) {\n System.out.println(\"You died.\");\n break;\n }\n if (inputNumber > randomValue) {\n System.out.println(inputNumber + \" Your number is too big:\");\n System.out.println(\"Remaining lives: \" + lives);\n System.out.println(\"Try to guess the number:\");\n inputNumber = input.nextInt();\n }\n if (inputNumber < randomValue) {\n System.out.println(inputNumber + \" Your number is too small:\");\n System.out.println(\"Remaining lives: \" + lives);\n System.out.println(\"Try to guess the number:\");\n inputNumber = input.nextInt();\n }\n if (inputNumber == randomValue) {\n System.out.println(\"Good job! You are right!\");\n System.out.println(\"You wrote \" + inputNumber + \" and the number is \" + randomValue);\n System.out.println(\"Remaining lives: \" + lives);\n break;\n }\n }\n }", "public Code guess(){\n int minimumEliminated = -1;\n Code bestGuess = null;\n //Create a list of all codes in sample space (including both impossible and possible codes)\n List<Code> unusedCodes = new LinkedList<>(possibleCodes);\n unusedCodes.addAll(impossibleCodes);\n\n //MinMax part\n //For each code in the sample space\n for (Code arbitraryCode : unusedCodes) {\n //Create a new 2D miniMax table\n int[][] scoreTable = new int[Code.CODE_LENGTH + 1][Code.CODE_LENGTH + 1];\n //For each possibleCode\n for (Code possibleCode : possibleCodes) {\n Response response = arbitraryCode.getResponse(possibleCode); //Compare with the temporary arbitrary code and get response\n scoreTable[response.getStrikes()][response.getHits()]++; //Increase number of codes which have this response\n }\n //Find max in the table\n int maxScoreHits = -1;\n for (int[] row : scoreTable) {\n for (int i : row) {\n maxScoreHits = Integer.max(i, maxScoreHits);\n }\n }\n int score = possibleCodes.size() - maxScoreHits; //Evaluate score\n //Update minimumEliminated and bestGuess\n if (score > minimumEliminated) {\n minimumEliminated = score;\n bestGuess = arbitraryCode;\n }\n }\n\n //Update guess\n guess = bestGuess;\n\n return bestGuess;\n }", "public static void main(String[] args) {\n Scanner myInt = new Scanner(System.in); // This line creates a scanner object\r\n System.out.print(\"Enter number between 1 and 5:\");\r\n \r\n int guess = myInt.nextInt(); // read user input\r\n if (guess >=1 && guess <=5){\r\n int result = guess%2; \r\n if (result == 0)\r\n {\r\n System.out.println(\"Lucky Guess\");\r\n }else{\r\n System.out.println(\"Better Luck Next Time\");\r\n } }else{\r\n System.out.print(\"Enter number between 1 and 5:\");\r\n guess = myInt.nextInt();\r\n } \r\n }", "public boolean guess(char letter)\n\t{\n\t\treturn false;\n\t}", "public static void paintHangman() {\n if (count == 1) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"1 incorrect guess, 6 guesses left\");\n }\n if (count == 2) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"2 incorrect guesses, 5 guesses left\");\n }\n if (count == 3) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|\");\n System.out.println(\" | / |\");\n System.out.println(\" | / |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"3 incorrect guesses, 4 guesses left\");\n }\n if (count == 4) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"4 incorrect guesses, 3 guesses left\");\n }\n if (count == 5) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | /\");\n System.out.println(\" | /\");\n System.out.println(\" | _/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"5 incorrect guesses, 2 guesses left\");\n }\n if (count == 6) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < ' |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"6 incorrect guesses, only 1 guess left!\");\n }\n if (count == 7) {\n System.out.println(\"GAME OVER!\");\n System.out.println(\"7 incorrect guesses\");\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / X X \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | __ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"RIP \" + UserName.getUserName());\n System.out.println(\"GAME OVER! The word was \" + CategorySelector.word);\n }\n }", "public void noteIncorrectGuess(char letter) \n\t{ \n\t choosePart(i);\n\t i++;\n\t wrong+=letter;\n\t wrongLabel.setLabel(wrong);\n\t add(wrongLabel);\n\t}", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "@RequestMapping(value = \"/flipAction\", method = RequestMethod.POST, consumes =\n MediaType.APPLICATION_FORM_URLENCODED_VALUE)\n public String flipAndGuess(@RequestParam(\"guess\") String guess,\n Map<String, Object> model){\n try {\n int userGuess = Integer.parseInt(guess); // HEADS = 0 , TAILS = 1\n int actualResult = toss();\n if (actualResult == 0){\n model.put(\"result\", HEADS_RESULT);\n }\n else if (actualResult == 1){\n model.put(\"result\", TAILS_RESULT);\n }\n if (guessResult(userGuess, actualResult)){\n model.put(\"message\", WINNING_MESSAGE);\n }\n else{\n model.put(\"message\", LOSING_MESSAGE);\n }\n\n } catch (NumberFormatException e) {\n model.put(\"guess\", ERROR);\n }\n return \"flipCoinGuess\";\n }", "public static int getGuessInt(String state){\r\n\t\tint num = 1;\r\n\t\ttry{\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tBufferedReader names = new BufferedReader(new FileReader(new File(\"stateNames.txt\")));\r\n\t\t\tString line = \"\";\r\n\t\t\t\r\n\t\t\t\twhile((line = names.readLine()) !=null){\r\n\t\t\t\t\tif(line.equalsIgnoreCase(state)){\r\n\t\t\t\t\t\treturn num;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\tnames.close();\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public interface IGuessingGamePlayer {\n int nextGuess() throws NumberFormatException;\n}" ]
[ "0.67421937", "0.6711226", "0.6694919", "0.66275287", "0.6499352", "0.64834917", "0.632399", "0.6310437", "0.6273462", "0.6273047", "0.6128648", "0.60740733", "0.60292786", "0.59731704", "0.5967536", "0.59553504", "0.5927946", "0.5894054", "0.5889003", "0.58859706", "0.5867795", "0.5855825", "0.58435583", "0.58216965", "0.5784494", "0.57754874", "0.5728448", "0.5706307", "0.56847674", "0.5677524", "0.5674112", "0.56691986", "0.5628343", "0.5621574", "0.5618784", "0.559982", "0.5562227", "0.5553473", "0.55460674", "0.55362153", "0.5515098", "0.55086786", "0.5495847", "0.5492351", "0.54886174", "0.54842335", "0.5482056", "0.54431856", "0.5441649", "0.5429123", "0.5394039", "0.539168", "0.53669477", "0.5360442", "0.5355956", "0.5347712", "0.53427476", "0.5329943", "0.53291464", "0.53170156", "0.5310744", "0.53101057", "0.529708", "0.529402", "0.5292597", "0.5290142", "0.52807826", "0.5275598", "0.52695775", "0.52679414", "0.52527905", "0.5241389", "0.5237457", "0.5235231", "0.52205545", "0.52172947", "0.52070606", "0.520597", "0.5204876", "0.52002376", "0.5196168", "0.5194495", "0.51938134", "0.5188733", "0.5186083", "0.517933", "0.5178596", "0.5176216", "0.51758325", "0.5163229", "0.5159143", "0.5158915", "0.5158495", "0.51566565", "0.51548916", "0.5142176", "0.5137607", "0.5132605", "0.51217365", "0.5119551" ]
0.59140795
17
Constructor for objects of class Person.
public Person(String name, String address, String postalCode, String city, String phone){ // initialise instance variables this.name = name; this.address = address; this.postalCode = postalCode; this.city = city; this.phone = phone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Person() {}", "public Person() {\n\t\t\n\t}", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Person() {\n }", "public Person() {\n }", "public Person() {\n }", "public Person() {\n }", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}", "public Person1() {\n\t\tsuper();\n\t}", "public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}", "public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"john.doe@organization.com\";\n }", "public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}", "private TypicalPersons() {}", "private TypicalPersons() {}", "public Person(String firstName, String lastName) {\n this.firstName = firstName;\n this.lastName = lastName;\n }", "public Person (String firstName, String lastName, String address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.address = address;\n\n }", "public Person()\n {\n //intentionally left empty\n }", "public Person(String name)\n {\n this.name = name;\n }", "public Person(String name) {\n this.name = name;\n }", "public Person(String firstName, String lastName) {\n this.lastName = lastName;\n this.firstName = firstName;\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}", "public Person(String vorname, String nachname) {\n\n\t}", "public Person(String name){\n\t\tthis.name = name ; \n\t}", "public Person(String first, String last) {\n // Set instance var firstname to what is called from constructor\n this.firstName = first; \n // Set instance var lastname to what is called from constructor\n this.lastName = last;\n }", "public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }", "public Person (String _name, int _ID) {\n name = _name;\n ID = _ID;\n }", "public Persona() {\n }", "public Persona() {\n\t}", "public Customer(Person person) {\n this(person.getName(), person.getLastName(), person.getSex(), person.getBirthDay(), 0);\n }", "public Person(String firstName, String lastName) {\r\n name = new Name(firstName, lastName); \r\n id = (int )(Math.random() * 200 + 100);; \r\n }", "public Person(String name) {\n\t\tthis.name = name;\n\t\tSystem.out.println(\"Instantiated a Person Object\");\n\t}", "public PersonRecord() {}", "public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}", "public Person(String name) {\n\t\t// Person person1 = new Person(name);\n\t\tthis.name = name;\n\t\tthis.listOfFriends = new LinkedQueue<Person>();\n\t\tthis.messages = new LinkedStack<String>();\n\t}", "public Persona(){\n \n }", "public Persona(){\n \n }", "People(String name, int age) {\n this.name = name;\n this.age = age;\n }", "public Person1(int age, String name) {\n\t\tsuper();\n\t\tthis.age = age;\n\t\tthis.name = name;\n\t}", "public Person(String inName)\n {\n name = inName;\n }", "public AvroPerson() {}", "public Person(String name, String surname) {\n this.name = name;\n this.surname = surname;\n }", "public Persona() {\n \t\n }", "public Person(String first, String last) {\n\t\tthis(first, last, -1);\n\t}", "public PersonEvent(Person person) {\n super(person);\n this.person = person;\n }", "public Person (String inName, String inFirstName, LocalDate inDateOfBirth) {\n super(inName);\n this.dateOfBirth = inDateOfBirth;\n this.firstName = inFirstName;\n }", "public SchoolPerson() {\n }", "public Person(String name, String address, String phoneNumber, String emailAddress)\n {\n this.name = name;\n this.address = address;\n this.phoneNumber = phoneNumber;\n this.emailAddress = emailAddress;\n }", "public Person(String name, String city) {\n this.name = name;\n this.city = city;\n }", "public Persona() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Person(String username, String email) {\n this.username = username;\n this.email = email;\n }", "public PersonSummary() {}", "public PersonResult(Person person){\n super(\"\");\n this.person = person;\n }", "public Person(String name, String number)\r\n\t{\r\n\t\tthis.name = name;\r\n\t\tthis.telephoneNumber = number;\r\n\t}", "private Person()\r\n\t{\r\n\t\tsuper();\r\n\t\t//created = LocalDateTime.now();\r\n\t\tcreated = Calendar.getInstance().getTime();\r\n\t}", "public PersonaFisica() {}", "public PersonBean() {\n\t}", "public Person2(String fname, String lname) {\n this.fname = fname;\n this.lname = lname;\n }", "public Person(String name, ArrayList<String> pnArray) {\n\n\t}", "private Person(String name, String urlpt) {\n this.name = name;\n this.urlpt = urlpt;\n personMap.put(name, this);\n coauthorsLoaded = false;\n labelvalid = false;\n }", "public Person(String name, String phoneNumber, String email){\n setName(name);\n setPhoneNumber(phoneNumber);\n setEmail(email);\n }", "public SalesPerson(String firstName, String lastName, String ppsNumber){\r\n //pulls the constructor with parameters from the superclass SalesEmployee\r\n super(firstName, lastName, ppsNumber);\r\n }", "public Person() {\n\t\tmessagesReceived = new ArrayList<Message>();\n\t\tmessagesSent = new ArrayList<Message>();\n\t}", "public Person(String name) {\n this.name = name;\n this.date = new Date();\n this.neck = -1.0;\n this.bust = -1.0;\n this.chest = -1.0;\n this.waist = -1.0;\n this.hip = -1.0;\n this.inseam = -1.0;\n this.comment = \"Not comment available.\";\n }", "public Person(String name, int birthYear, String homeTown) {\n\n\t\t// initialises variable and refers to the object\n\t\tthis.name = name;\n\t\tthis.birthYear = birthYear;\n\t\tthis.homeTown = homeTown;\n\n\t}", "public PersonList() {\r\n this.personList = new ArrayList<Person>();\r\n }", "public Person(String n,int d, int m, int y)\n\t{\n\t\tname=n;\n\t\tdob=new Date(d,m,y);\t\n\t}", "public Person(String personNum, String personType, String personName, String personTelNo, String personEmail, String personAddress) {\r\n\t\tthis.personNum = personNum;\r\n\t\tthis.personType = personType;\r\n\t\tthis.personName = personName;\r\n\t\tthis.personTelNo = personTelNo;\r\n\t\tthis.personEmail = personEmail;\r\n\t\tthis.personAddress = personAddress;\r\n\t}", "public Person(String associatedUserName, String firstName, String lastName, Gender gender) {\n Id = UUID.randomUUID().toString();\n AssociatedUserName = associatedUserName;\n FirstName = firstName;\n LastName = lastName;\n Gender = gender;\n }", "public Person(String ID, String number){\n \n phoneNums = new LinkedList<String>();\n this.addNum(number);\n this.ID = ID;\n }", "public Person(String first, String middle, String last) {\n this.firstNames = first+ \" \" +middle;\n this.lastName = last;\n }", "People(int id, String name, int age) {\n this.id = id;\n this.name = name;\n this.age = age;\n }", "public Person (String name) {\n // if in the setName method i have a transformation (lowercase)\n // like this.name = name.toLowerCase();\n // id use this.setName(name);\n // or below if i dont have a transformation i need to make\n this.name = name;\n }", "public Person(){\n count++;\n System.out.println(\"Creating an object\");\n }", "public XmlAdaptedPerson() {}", "public Persona(String nombre) {\n this.nombre = nombre;\n }", "public Person1(int[] celNumber, int age, String name) {\n\t\tsuper();\n\t\tthis.celNumber = celNumber;\n\t\tthis.age = age;\n\t\tthis.name = name;\n\t}", "public Person(final JSONObject p, final String className) {\n this(p);\n info.add(PersonInfo.createInfo(\"Group\", className));\n }", "private PrivatePerson(String name, int age) {\n super(name, age);\n }", "public PersonsResult() {\n }", "public Person(String lastName, String firstName, String street, long tid, String phone, String mobile, String email) {\n this.lastName = lastName;\n this.firstName = firstName;\n this.address = street;\n this.tid = tid;\n this.phone = phone;\n this.mobile = mobile;\n this.email = email;\n }", "Person createPerson();", "public Person(String name, String address, String aadharId) {\n this.name = name;\n this.address = address;\n this.aadharId = aadharId;\n }", "public Person(String name, int age, String city /* ,*ArrayList friends*/) {\n this.name = name;\n this.age = age;\n this.city = city;\n //this.friends = new ArrayList<>();\n }", "public PersonaVO() {\n }", "public Person(String personID, String assocUserName, String firstName, String lastName, String gender, String fatherID, String motherID, String spouseID, String childID) {\r\n setPersonID(personID);\r\n setAssocUserName(assocUserName);\r\n setFirstName(firstName);\r\n setLastName(lastName);\r\n setGender(gender);\r\n setFatherID(fatherID);\r\n setMotherID(motherID);\r\n setSpouseID(spouseID);\r\n setChildID(childID);\r\n }", "public Person(String name, String lastName, String home, int identificationNumber) {\n this.name = name;\n this.lastName = lastName;\n this.home = home;\n this.identificationNumber = identificationNumber;\n }", "protected Persona (String nombre,String apellido, String fechaNac){\r\n this.nombre = nombre;\r\n this.apellido = apellido;\r\n this.fechaNac = fechaNac;\r\n }", "public BirthInfo() {}", "public Persona(int idPersona){\n this.idPersona = idPersona;\n }", "public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}", "public Person( String emailAddress, String first, String last, \r\n String password, String currency, String creditCard )\r\n {\r\n setEmail( emailAddress );\r\n setFirstName( first );\r\n setLastName( last );\r\n setPassword( password );\r\n setCurrency( currency );\r\n setCreditCard( creditCard );\r\n }", "public Customer(Person person, double balance) {\n this(person.getName(), person.getLastName(), person.getSex(), person.getBirthDay(), balance);\n }", "public ShelterPerson(){\n\t\tthis.firstName = \"\";\n\t\tthis.lastName = \"\";\n\t}", "public Person(String fn, String ln, Set<String> pns) {\n\t\t\tthis.firstName = fn;\n\t\t\tthis.lastName = ln;\n\t\t\tCollection<E> oldSet = pns;\n\t\t\tTreeSet<E> tempPhone = new TreeSet<E>(pns);\n\t\t\tthis.phoneNumbers = tempPhone;\n\t\t}", "private Person(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Person(String id, String fName, String lName, LocalDate birthday,\r\n\t\t\tString phone, String status) {\r\n\t\tthis.id = id;\r\n\t\tthis.fName = fName;\r\n\t\tthis.lName = lName;\r\n\t\tthis.birthday = birthday;\r\n\t\tthis.phone = phone;\r\n\t\tthis.status = status;\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}", "public Person createPerson(Person p);", "public PersonRecord(long id, String name, long birthDate)\n\t{\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t\tthis.birthDate = birthDate;\n\t}" ]
[ "0.82836425", "0.8278918", "0.82760626", "0.8201892", "0.8201892", "0.8201892", "0.8201892", "0.7784857", "0.77694815", "0.7743317", "0.7710079", "0.76892304", "0.7687812", "0.7632335", "0.7632335", "0.763143", "0.7621148", "0.76030505", "0.7599125", "0.75528973", "0.74886113", "0.7439028", "0.74293274", "0.7410964", "0.7407649", "0.74027556", "0.7385267", "0.73626703", "0.7318187", "0.73067397", "0.72700393", "0.72685975", "0.7267982", "0.7234033", "0.7223848", "0.7220619", "0.718026", "0.718026", "0.7173227", "0.71113646", "0.7102138", "0.70956683", "0.7055252", "0.704854", "0.7027219", "0.7019652", "0.7013788", "0.69992423", "0.69968915", "0.69376993", "0.6935574", "0.6917316", "0.6893727", "0.6893609", "0.6890659", "0.6875898", "0.6855208", "0.68292266", "0.6782397", "0.6774646", "0.6768802", "0.6757604", "0.67523074", "0.6708247", "0.67048866", "0.6697382", "0.6668008", "0.6653466", "0.6643276", "0.663342", "0.6629403", "0.6623083", "0.6597451", "0.65877813", "0.6572188", "0.656725", "0.6566549", "0.6555142", "0.65165025", "0.6512262", "0.64736545", "0.6450542", "0.6429641", "0.64145815", "0.6413498", "0.64105517", "0.64085877", "0.63553476", "0.63543534", "0.6349004", "0.6310312", "0.63100624", "0.62934786", "0.6289877", "0.6285486", "0.628462", "0.62739503", "0.62723714", "0.62692654", "0.62651736" ]
0.7504337
20
Return name of person
public String getName(){ return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName(){\n return personName;\n }", "public String getName (){\r\n return firstName + \" \" + lastName;\r\n }", "public String getName(){\n\t\treturn this.firstName + \" \" + this.surname;\r\n\t}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String getName()\n {\n return foreName + \" \" + lastName;\n }", "public String getName() {\r\n\t\treturn firstName + \" \" + lastName;\r\n\t}", "Name getName();", "public static String name(PersonEntity pe)\n\t{\n\t\tif(pe == null) return null;\n\n\t\tPerson p = pe.getOx();\n\n\t\treturn cat(null, \" \", p.getLastName(),\n\t\t p.getFirstName(), p.getMiddleName()).toString();\n\t}", "String fullName();", "public String getName() {\n return firstName + \" \" + lastName;\n }", "public Name getName();", "String getName() ;", "public java.lang.String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.792911", "0.770087", "0.76518", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7618033", "0.7513964", "0.74691784", "0.74486154", "0.7442899", "0.7434498", "0.7396651", "0.73932", "0.737868", "0.7321398", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263", "0.731263" ]
0.0
-1
Print information about person
public void getInfo(){ System.out.println("Name: " + name + "\n" + "Address: " + address); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print() {\n System.out.println(\"Person of name \" + name);\n }", "public void printDetails()\n {\n System.out.println(\"Name: \" + foreName + \" \"\n + lastName + \"\\nEmail: \" + emailAddress);\n }", "public void printUserInfo(){\n System.out.print(\"Username: \"+ getName() + \"\\n\" + \"Birthday: \"+getBirthday()+ \"\\n\"+ \"Hometown: \"+getHome()+ \"\\n\"+ \"About: \" +getAbout()+ \" \\n\"+ \"Subscribers: \" + getSubscriptions());\n\t}", "public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }", "public String showDetails() {\n\t\treturn \"Person Name is : \" + name + \"\\n\" + \"Person Address is : \" + address;\n\t}", "void printEmployeeDetail(){\n\t\tSystem.out.println(\"First name: \" + firstName);\n\t\tSystem.out.println(\"Last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t\tSystem.out.println(\"Salary: \" + salary);\n\t\tSystem.out.println(firstName + \" has \" + car.color + \" \" + car.model + \" it's VIN is \" + car.VIN + \" and it is make year is \" + car.year );\n\t\t\n\t}", "void getInfo() {\n\tSystem.out.println(\"My name is \"+name+\" and I am going to \"+school+\" and my grade is \"+grade);\n\t}", "@Override\n public void information() {\n System.out.println(\"\");\n System.out.println(\"Dog :\");\n System.out.println(\"Age : \" + getAge());\n System.out.println(\"Name : \" + getName());\n System.out.println(\"\");\n }", "public void print() {\r\n Person tmp = saf.get(0);\r\n System.out.println(\"Person name : \" + tmp.getName() +\r\n \" Entering time : \" + tmp.getTime() +\r\n \" Waiting time : \" + tmp.getExitTime());\r\n }", "public String showPerson(){\n return _person.toString();\n }", "public void personLookup() {\n\t\tSystem.out.print(\"Person: \");\n\t\tString entryName = getInputForName();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getName().equals(entryName))\n\t\t\t.forEach(n -> System.out.println(n));\n\t}", "public void printInformation() {\n\n System.out.println(\"Name: \" + name);\n System.out.println(\"Weight: \" + weight);\n System.out.println(\"Shape: \" + shape);\n System.out.println(\"Color: \" + color);\n }", "public void printBorrowerDetails()\r\n {\r\n System.out.println( firstName + \" \" + lastName \r\n + \"\\n\" + address.getFullAddress()\r\n + \"\\nLibrary Number: \" + libraryNumber\r\n + \"\\nNumber of loans: \" + noOfBooks);\r\n }", "public void display() {\r\n System.out.println(\"<<Person>>>\" + this); \r\n }", "public void printUser() {\n\t\tSystem.out.println(\"First name: \" + this.firstname);\n\t\tSystem.out.println(\"Last name: \" + this.lastname);\n\t\tSystem.out.println(\"Age: \" + this.age);\n\t\tSystem.out.println(\"Email: \" + this.email);\n\t\tSystem.out.println(\"Gender: \" + this.gender);\n\t\tSystem.out.println(\"City: \" + this.city);\n\t\tSystem.out.println(\"State: \" + this.state + \"\\n\");\n\t}", "void printInfo() {\n\t\tdouble salary=120000;\n\t System.out.println(salary);\n\t\tSystem.out.println(name+\" \"+age);\n\t}", "public void print() {\n System.out.println(\"Nome: \" + nome);\n System.out.println(\"Telefone: \" + telefone);\n }", "public void printCustomerDetails()\r\n {\r\n System.out.println(title + \" \" + firstName + \" \" \r\n + lastName + \"\\n\" +getAddress() \r\n + \"\\nCard Number: \" + cardNumber \r\n + \"\\nPoints available: \" + points);\r\n }", "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + locX + \",\" + locY + \")\");\n System.out.println(\"Weight : \" + String.format(\"%.5f\", weight) + \" kg/day\");\n System.out.println(\"Habitat : \" + habitat);\n System.out.println(\"Type : \" + type);\n System.out.println(\"Diet : \" + diet);\n System.out.println(\"Fodder : \" + String.format(\"%.5f\", getFodder()) + \" kg\");\n System.out.println(tamed ? \"Tame : Yes \" : \"Tame : No \");\n System.out.println(\"Number of Legs : \" + legs);\n }", "public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}", "public void printPersonStats(String fullName)\n\t{\n\t\tSystem.out.println(\"\\n\"+fullName);\n\t\t\n\t\t//assuming person exists in graph\n\t\tfor(String relationship: personMap.get(fullName).inRelationships.keySet())\n\t\t\tSystem.out.println(\"-\"+relationship+\" to \"+personMap.get(fullName).inRelationships.get(relationship));\n\t\t\n\t\tfor(String relationship: personMap.get(fullName).outRelationships.keySet())\n\t\t\tSystem.out.println(\"-\"+personMap.get(fullName).outRelationships.get(relationship)+\" is the \"+relationship);\n\t}", "public void visPerson(){\r\n System.out.println(\"Hvilken person vil du se?\");\r\n String person = scan.nextLine().toLowerCase();\r\n if(person.equals(\"*\")) {\r\n for(Person sample : personListe.values()) {\r\n sample.visInfo();\r\n }\r\n }\r\n if (personListe.containsKey(person)) {\r\n personListe.get(person).visInfo();\r\n }\r\n\r\n else {\r\n System.out.println(\"Den personen finnes ikke\");\r\n }\r\n\r\n\r\n }", "void display() {\n System.out.println(id + \" \" + name + \" \" + age);\n }", "public void print() {\n\t\tSystem.out.println(\"ONOMA IDIOKTITH: \" + fname);\n\t\tSystem.out.println(\"EPWNYMO IDIOKTITH: \" + lname);\n\t\tSystem.out.println(\"DIEUTHINSH FARMAKEIOU: \" + address);\n\t\tSystem.out.println(\"THLEFWNO FARMAKEIOU: \" + telephone);\n\t\tSystem.out.println();\n\t}", "public void printInfo() {\n\t\tSystem.out.println(\"User: \" + userName);\n\t\tSystem.out.println(\"Login: \" + loginName);\n\t\tSystem.out.println(\"Host: \" + hostName);\n\t}", "public void printDetails()\n {\n super.printDetails();\n System.out.println(\"The author is \" + author + \" and the isbn is \" + isbn); \n }", "public void printInfo() {\r\n System.out.printf(\"%-25s\", \"Nomor Rekam Medis Pasien\");\r\n System.out.println(\": \" + getNomorRekamMedis());\r\n System.out.printf(\"%-25s\", \"Nama Pasien\");\r\n System.out.println(\": \" + getNama());\r\n System.out.printf(\"%-25s\", \"Tempat, Tanggal Lahir\");\r\n System.out.print(\": \" + getTempatLahir() + \" , \");\r\n getTanggalKelahiran();\r\n System.out.printf(\"%-25s\", \"Alamat\");\r\n System.out.println(\": \" + getAlamat());\r\n System.out.println(\"\");\r\n }", "void printInfo();", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "public void displayDetails() {\r\n\t\tSystem.out.println(\"*******************Profile Details*********************\");\r\n\t\tSystem.out.println(\"\\tUsername :\\t\" + uName);\r\n\t\tSystem.out.println(\"\\tFull Name :\\t\" + fullName);\r\n\t\tSystem.out.println(\"\\tPhone :\\t\" + phone);\r\n\t\tSystem.out.println(\"\\tE-Mail :\\t\" + email);\r\n\t}", "public static void printPerson(String navn, String alder, String by){\n\t\tSystem.out.println(\"Du har registrert personen: \" + navn + \" som er \" + alder + \"aar, fra \" + by);\n\t}", "void printData()\n {\n System.out.println(\"Studentname=\" +name);\n System.out.println(\"Student city =\"+city);\n System.out.println(\"Student age = \"+age);\n }", "public void print()\r\n {\n if (getOccupants().length != 0)\r\n {\r\n \t// will use the print method in the person class\r\n getOccupants()[0].print();\r\n }\r\n else if (this.explored)\r\n {\r\n System.out.print(\"[ H ]\");\r\n }\r\n else\r\n {\r\n System.out.print(\"[ ]\");\r\n }\r\n\r\n }", "public void outputNames(){\n System.out.printf(\"\\n%9s%11s\\n\",\"Last Name\",\"First Name\");\n pw.printf(\"\\n%9s%11s\",\"Last Name\",\"First Name\");\n ObjectListNode p=payroll.getFirstNode();\n while(p!=null){\n ((Employee)p.getInfo()).displayName(pw);\n p=p.getNext();\n }\n System.out.print(\"\\nNumber of Employees: \"+payroll.size()+\"\\n\");\n pw.print(\"\\nNumber of Employees: \"+payroll.size()+\"\\n\");\n }", "public void print() {\n\t\tSystem.out.println(name + \" -- \" + rating + \" -- \" + phoneNumber);\n\t}", "public void printAuthor()\n {\n System.out.println(\"by: \" + author);\n }", "public void printDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeight() + \" inches\");\n System.out.println(\"Weight: \" + (int) getWeight() + \" pounds\");\n\n // unary, binary, ternary(3)\n // ternary operator\n String travelMessage = canTravel ? \"Does travel\" : \"Does not travel\";\n System.out.println(travelMessage);\n\n String smokeMessage = smokes ? \"Does smoke\" : \"Does not smoke\";\n System.out.println(smokeMessage);\n\n // ternary operators can replace simple if-else statement\n // System.out.print(\"Does \");\n // if (!isCanTravel())\n // System.out.print(\"not \");\n // System.out.println(\"travel\");\n // System.out.print(\"Does \");\n // if (!isSmokes())\n // System.out.print(\"not \");\n // System.out.println(\"smoke\");\n }", "public void printUsers() {\n userAnya.printInfo();\n userRoma.printInfo();\n }", "public static void outputRecord() {\r\n System.out.println(\"First Name: Len\");\r\n System.out.println(\"Last Name: Payne\");\r\n System.out.println(\"College: Lambton College\");\r\n }", "void display()\n\t {\n\t\t System.out.println(\"Student ID: \"+id);\n\t\t System.out.println(\"Student Name: \"+name);\n\t\t System.out.println();\n\t }", "public void printStudentInfo(){\r\n System.out.println(\"Name: \" + getName());\r\n System.out.println(\"Student Id: \" + getId());\r\n printMarks();\r\n System.out.println(\"\\nAverage \" + getAverage() + \"%\");\r\n printNumberOfCoursesInEachLetterGradeCategory();\r\n }", "@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }", "public void printDetails()\n {\n System.out.println(title);\n System.out.println(\"by \" + author);\n System.out.println(\"no. of pages: \" + pages);\n \n if(refNumber == \"\"){\n System.out.println(\"reference no.: zzz\");\n }\n else{\n System.out.println(\"reference no.: \" + refNumber);\n }\n \n System.out.println(\"no. of times borrowed: \" + borrowed);\n }", "void display() {\n System.out.println(id + \" \" + name);\n }", "public static void printStudentInfo() {\n\t\tfor (Student student : StudentList)\n\t\t\tSystem.out.println(\"Name: \" + student.getName() + \" Matric Number: \" + student.getMatricNo() + \" Degree:\"\n\t\t\t\t\t+ student.getDegree());\n\t}", "public String toString(){\n\t\tString personInfo = \"First Name: \" + this.firstName + \" Last Name: \" + this.lastName;\n\t\t\n\t\treturn personInfo;\n\t}", "public void showInformation() {\n\t\tSystem.out.println(\"Title: \" + getTitle());\n\t\tSystem.out.println(\"Time: \" + getTime());\n\t\tSystem.out.println(\"Number: \" + getNumber());\n\t}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(name);\n\t}", "@Override\n public String toString() {\n return \"Person{\" + getId() + \" : \" + getUsername() + \" : \" + getJmeno() + \" \" + getPrijmeni() + '}';\n }", "public void showInfo(Member member) {\n\n if (member != null) {\n System.out.println(member.getInfo());\n } else {\n System.out.println(\"Felaktigt medlemsnummer\");\n }\n }", "void display() {\r\n\t\tSystem.out.println(id + \" \" + name);\r\n\t}", "public void printName()\n\t{\t\t\n\t\t//check if we know the name of the professor\n\t\tif(this.firstName == null || this.surname == null ||\n\t\t\tthis.firstName.isEmpty() || this.surname.isEmpty())\n\t\t{\n\t\t\t//We haven't learned exception throwing yet, so let's just output something and return :'(\n\t\t\tSystem.out.println(\"Error: This Professor is nameless, I'm sorry :(\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(String.format(\"\", this.firstName, this.surname));\n\t}", "abstract public void printInfo();", "void display(){\n System.out.println(\"Name:\"+name);\n System.out.println(\"Age:\"+age);\n System.out.println(\"Faculty:\"+faculty);\n System.out.println(\"Department:\"+department);\n System.out.println(\"IsHandicapped:\"+isHandicapped);\n }", "public void empdetails() {\r\n\t\tSystem.out.println(\"name : \"+ name);\r\n\t}", "public void set_info() {\n System.out.println(\"The name of the donor is \" + donor_name);\n System.out.println(\"The rating of the donor is \" + donor_rating); //display\n }", "public void print()\n\t{\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t\tSystem.out.println(\"[Lives: \" + lives + \"][Score: \" + score + \n\t\t\t\t\t\t\t\"][Time: \" + gameTime + \"]\");\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t}else\n\t\t\tSystem.out.println(\"Spawn a player ship to view game info\");\n\t}", "public void displayLable() {\n\t\tSystem.out.println(\"Name of Company :\"+name+ \" Address :\"+address);\r\n\t}", "@Override\n\tpublic String getPerson() throws RemoteException {\n\t\treturn \"[Person name=\" + name + \",sex=\" + sex + \",age=\" + age + \"]\";\n\t}", "@Override\n\tpublic void showPatientDetails() {\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"S.No Patient's name ID Mobile Age\");\n\t\tfor (int i = 1; i <= UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i - 1);\n\t\t\tSystem.out.print(\" \" + i + \" \" + jsnobj.get(\"Patient's name\") + \" \" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t+ \" \" + jsnobj.get(\"Mobile\") + \" \" + jsnobj.get(\"Age\") + \"\\n\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void printMeny(){\n\t\tSystem.out.println(\"1. Registrer en person\");\n\t\tSystem.out.println(\"2. Print personen\");\n\t}", "public void printInfo() throws IOException {\n System.out.println();\n System.out.println(\"* Current books in the database.\\n\");\n for(Book book :bookdatabase){\n System.out.println(book.getTitle());\n }\n System.out.println();\n System.out.println(\"* Current students in the database.\\n\");\n for(Student student :studentdatabase){\n System.out.println(student.getUsername());\n }\n System.out.println();\n System.out.println(\"* Current librarians in the database.\\n\");\n for(Librarian l :lib_db){\n System.out.println(l.getUsername());\n }\n\n\n\n }", "private static void printDetail() {\n System.out.println(\"Welcome to LockedMe.com\");\n System.out.println(\"Version: 1.0\");\n System.out.println(\"Developer: Sherman Xu\");\n System.out.println(\"sherman.xu@lockers.com\");\n }", "public void showName() {\n\t\tSystem.out.println(\"Object id: \" + id + \", \" + description + \": \" + name);\n\t\t//System.out.println(description);\n\t}", "public String printDetails(Animal animal) {\n return animal.getName() + \" - \" + animal.getBreedOrType() + \", born in \" + animal.getYearOfBirth();\n }", "public String printInfo() {\n\t\treturn \"\\n=====================================================================\"+\r\n\t\t\t\t\"\\n Gaming Center Information\"+\r\n\t\t\t\t\"\\n=====================================================================\"+\r\n\t\t\t\t\"\\n Gaming center Name \\t= \" + centerName +\r\n\t\t\t\t\"\\n Location \\t\\t= \" + location + \r\n\t\t\t\t\"\\n Contact Number \\t= \" + contact+\r\n\t\t\t\t\"\\n Operating hour \\t= \"+ operatingHour+\r\n\t\t\t\t\"\\n Number of Employee \\t= \"+ noOfEmployee+ \" pax\";\r\n\t}", "public void outputInfo(){\n outputHeader();\n ObjectListNode p=payroll.getFirstNode();\n while(p!=null){\n ((Employee)p.getInfo()).displayInfo(pw);\n p=p.getNext();\n }\n System.out.print(\"\\nNumber of Employees: \"+payroll.size()+\"\\n\");\n pw.print(\"\\nNumber of Employees: \"+payroll.size()+\"\\n\");\n }", "public void print()\n {\n System.out.println(name + \"\\n\");\n for(int iterator = 0; iterator < bookList.size() ; iterator++)\n {\n System.out.println((iterator+1) +\". \" + bookList.get(iterator).getTitle()+\" by \" +bookList.get(iterator).getAuthor()); \n }\n }", "public static void printInfo(){\n }", "public void info()\n {\n System.out.println(toString());\n }", "public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}", "public void printOut(){\n\t\tSystem.out.println(\"iD: \" + this.getiD());\n\t\tSystem.out.println(\"Titel: \" + this.getTitel());\n\t\tSystem.out.println(\"Produktionsland: \" + this.getProduktionsLand());\n\t\tSystem.out.println(\"Filmlaenge: \" + this.getFilmLaenge());\n\t\tSystem.out.println(\"Originalsprache: \" + this.getOriginalSprache());\n\t\tSystem.out.println(\"Erscheinungsjahr: \" + this.getErscheinungsJahr());\n\t\tSystem.out.println(\"Altersfreigabe: \" + this.getAltersFreigabe());\n\t\tif(this.kameraHauptperson != null) {\n\t\t\tSystem.out.println( \"Kameraperson: \" + this.getKameraHauptperson().toString() );\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println( \"Keine Kameraperson vorhanden \");\n\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tif ( this.listFilmGenre != null) {\n\t\t\tfor( FilmGenre filmGenre: this.listFilmGenre ){\n\t\t\t\tSystem.out.println(\"Filmgenre: \" + filmGenre);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person darsteller: this.listDarsteller ){\n\t\t\tSystem.out.println(\"Darsteller: \" + darsteller);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person synchronSpr: this.listSynchronsprecher ){\n\t\t\tSystem.out.println(\"synchro: \" + synchronSpr);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person regi: this.listRegisseure ){\n\t\t\tSystem.out.println(\"regi: \" + regi);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Musikstueck mstk: this.listMusickstuecke ){\n\t\t\tSystem.out.println(\"Musikstueck: \" + mstk);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tSystem.out.println(\"Datentraeger: \" + this.getDatentraeger());\n\t\tSystem.out.println(\"----------------------------\");\n\t}", "public void show() {\r\n\t\tSystem.out.println(\"Id \\t Name \\t Address\");\r\n\t\t\r\n\t\tfor (int index = 0; index < emp.size(); index++) {\r\n\t\t\tSystem.out.println(emp.get(index).empId + \"\\t\" + emp.get(index).name +\"\\t\" + emp.get(index).adress);\r\n\t\t}\r\n\t}", "public void printDetails()\n {\n super.printDetails();\n System.out.println(\"Body type: \" + bodyType + \" Number of doors: \" + noOfDoors + \" Number of seats: \" + noOfSeats);\n System.out.println();\n }", "public static void nameAndAddress () {\n\t\tSystem.out.println(\"Andrew Meiling\");\n\t\tSystem.out.println(\"224 South Dennis Ave\");\n\t\tSystem.out.println(\"Republic, MO 65738\");\n\t}", "public void printDetailedPlayer(Player player);", "public static void showResultPerson( Result<Record> result){\n \t for (Record r : result) {\n// Integer id = r.getValue(PERSON.PERSO_ID);\n String firstName = r.getValue(PERSON.PERSO_FIRSTNAME);\n String lastName = r.getValue(PERSON.PERSO_LASTNAME);\n\n System.out.println(\"Name : \" + firstName + \" \" + lastName);\n }\n }", "private void printInfo() {\n System.out.println(\"\\nThis program reads the file lab4.dat and \" +\n \"inserts the elements into a linked list in non descending \"\n + \"order.\\n\" + \"The contents of the linked list are then \" +\n \"displayed to the user in column form.\\n\");\n }", "public void display () {\n System.out.println(rollNo + \" \" + name + \" \" + college );\n }", "public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }", "public void printString() {\n\t\tSystem.out.println(name);\n\t\t\n\t\t\n\t}", "public void show()\n {\n System.out.println( getFullName() + \", \" +\n String.format(Locale.ENGLISH, \"%.1f\", getAcademicPerformance()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getSocialActivity()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getCommunicability()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getInitiative()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getOrganizationalAbilities())\n );\n }", "public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}", "void show() {\r\n System.out.println(\"regno:\"+regno + \"\\n name\"+ name + \"\\n marks :\" + m1+\",\"+m2+\",\"+m3);\r\n }", "public void print(){\n\t\tif(isEmpty()){\n\t\t\tSystem.out.printf(\"Empty %s\\n\", name);\n\t\t\treturn;\n\t\t}//end if\n\n\t\tSystem.out.printf(\"The %s is: \", name);\n\t\tListNode current = firstNode;\n\n\t\t//while not at end of list, output current node's data\n\t\twhile(current != null){\n\t\t\tSystem.out.printf(\"%s \", current.data);\n\t\t\tcurrent = current.nextNode;\n\t\t}//end while\n\n\t\tSystem.out.println(\"\\n\");\n\t}", "private static String showDetails (String name){\n\t\t//We find the user\n\t\tint position = findContact(name);\n\t\t//If not found, we return null\n\t\tif (position==-1)\n\t\t\treturn null;\n\t\t//We return the details invoking the toString method\n\t\telse\n\t\t\treturn contacts[position].toString();\n\t}", "public void introduceYourself() {\n\t\tSystem.out.println(\n\t\t\t\t// concatenated strings and variable names\n\t\t\t\t\"My name is \" + this.name + \", I am from \" + this.homeTown + \". I was born in \" + this.birthYear\n\t\t\t\t\t\t+ \" I am \" + calculateAge() + \" years old\");\n\t}", "public String getInfo(){\n return \" name: \" + this.name;\n }", "@Override\n\tpublic void print() {\n\t\tSystem.out.print(\"\\nMSc. student:\\n\");\n\t\tsuper.print();\n\t}", "void printInfo(String name) {\n System.out.println(\"Info for \" + name + \": \");\n showStyle();\n showDim();\n System.out.println(\"Area is \" + area());\n }", "public String printInfo()\r\n {\r\n String info;\r\n \r\n info = \"Inputed number = \" + mark;\r\n \r\n return info;\r\n }", "public String printAuthor(){\n System.out.println();\n return author;\n }", "public void displayCustomerDetails(){\n\t\tStringBuffer fullname = new StringBuffer();//Creates new string buffer\n\t\tStringBuffer fulladdress = new StringBuffer();//Creates new string buffer\n\t\tfullname.append(\"Full Name: \" + fname + \" \" + lname);\n\t\tfulladdress.append(\"Full Address: \" + address1 + \", \" + address2 + \", \" + postcode);\n\t\tSystem.out.println(fullname);\n\t\tSystem.out.println(fulladdress);\n\t\tSystem.out.println(\"Account No: \" + linkedacc);\n\t\tSystem.out.println(\"Customer Ref: \" + custref);\n\t}", "@Override\n\tpublic void printInfo() {\n\t\tsuper.printInfo();\n\t\tmessage();\n\t\tdoInternet();\n\t\tmailing();\n\t\tcalling();\n\t\twatchingTV();\n\n\t}", "public void printModuleStudentInfo() {\t\r\n\tfor(int i =0; i<(StudentList.size()); i++) {\r\n\t\tStudent temp =StudentList.get(i);\r\n\t\tSystem.out.println(temp.getUserName());\r\n\t}\t\r\n}", "public void printContact(){\n for (int i = 0 ; i<contact.size() ; i++){\r\n System.out.print(contact.get(i).getFirstName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getLastName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getPhoneNumber());\r\n System.out.println(\"\\t\\t\"+contact.get(i).getAddress());\r\n }\r\n }", "private static void display(String fName, String lName, int age) {\n\t\tSystem.out.println(\"Hi \" + fName + \" \" + lName + \". How are you doing?\" + \"\\nyour age is \" + age);\n\t}", "public void showTrainers(){\r\n System.out.println(\"Trainer: \"+this.lastName.toUpperCase()+\" \"+this.firstName.toUpperCase()+\" ,with subject: \"+\r\n this.subject.getStream().getTitle().toUpperCase());\r\n }", "public void searchPerson() {\n\t\tSystem.out.println(\"*****Search a person*****\");\n\t\tSystem.out.println(\"Enter Phone Number to search: \");\n\t\tlong PhoneSearch = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneSearch) {\n\t\t\t\tSystem.out.print(\"Firstname \\tLastname \\tAddress \\t\\tCity \\t\\tState \\t\\t\\tZIP \\t\\tPhone \\n\");\n\t\t\t\tSystem.out.println(details[i]);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.7852944", "0.7756185", "0.7690556", "0.75346315", "0.7477022", "0.73552173", "0.73543555", "0.7316239", "0.7311789", "0.7297884", "0.72952175", "0.72524077", "0.7234082", "0.715994", "0.7157083", "0.7148473", "0.7137992", "0.7072121", "0.70349675", "0.70273805", "0.702414", "0.7016892", "0.6983235", "0.6977038", "0.69675976", "0.6962059", "0.69538796", "0.69422024", "0.68779665", "0.68779665", "0.68702346", "0.6860958", "0.685747", "0.6847981", "0.68354726", "0.6826367", "0.6822", "0.68055516", "0.6805406", "0.6799435", "0.6786756", "0.67756796", "0.675671", "0.67462885", "0.67220855", "0.6714021", "0.6707943", "0.6707034", "0.6698226", "0.66979927", "0.66968256", "0.66946524", "0.66843385", "0.66822255", "0.6644178", "0.66378456", "0.66310436", "0.66233784", "0.6617609", "0.66085815", "0.66047496", "0.6602294", "0.65944755", "0.65901476", "0.658811", "0.6586504", "0.65609646", "0.65571016", "0.6556576", "0.6555898", "0.6551825", "0.65485936", "0.652452", "0.65050155", "0.6495387", "0.6484311", "0.6482643", "0.64812714", "0.6479979", "0.6472849", "0.6465366", "0.6462819", "0.64346987", "0.6425331", "0.6424417", "0.6422514", "0.63974404", "0.638872", "0.63870203", "0.638467", "0.63812584", "0.63698065", "0.6369525", "0.63687575", "0.63619184", "0.63578254", "0.634295", "0.6342849", "0.6340209", "0.63188607" ]
0.73408484
7
TODO Autogenerated method stub
public static void main(String[] args) throws Exception { System.setProperty("webdriver.chrome.driver", ".\\chromedriver.exe"); ChromeOptions option= new ChromeOptions(); //option.setBinary(new File("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe")); option.addArguments("disable-infobars"); option.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true); option.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); option.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT); option.setCapability(CapabilityType.PLATFORM_NAME, Platform.WINDOWS); option.setCapability(CapabilityType.TAKES_SCREENSHOT,true ); option.setCapability(CapabilityType.SUPPORTS_LOCATION_CONTEXT,true ); driver= new ChromeDriver(option); driver.manage().window().maximize(); driver.get("http://www.automobiledatafilling.com/"); Thread.sleep(5000); driver.findElement(page.login_username).sendKeys("7995990309"); driver.findElement(page.login_userpwd).sendKeys("nice@123"); driver.findElement(page.login_buton).click(); Thread.sleep(4000); select_form(); /* Date date = Calendar.getInstance().getTime(); DateFormat dateFormat = new SimpleDateFormat("yyyy_mm_dd_hh_mm_ss"); String strDate = dateFormat.format(date); file = new File(".\\"+strDate+".txt"); System.out.println(file.getAbsolutePath()); if (file.createNewFile()) { System.out.println("File is created : "+strDate); select_form(); } else { System.out.println("File already exists."+strDate); } */ }
{ "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
do not expose in controllers
public PrivateKey getMyPrivateKey() { return myKeyPair.getPrivate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CityController() {\r\n\t}", "ControllerContext() {\n\t\t// do nothing\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private GuestController() {}", "private stendhal() {\n\t}", "private StoreController(){}", "private ClientController(){\n\n }", "public ListaSEController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "private ClientController() {\n }", "public interface BaseController {\n\n\t/**\n\t * Root Endpoint\n\t *\n\t * @return the root\n\t */\n\tResponseEntity<String> getRoot();\n\n\t/**\n\t * This method exposes API to show the main application info\n\t *\n\t * @return the main application info\n\t */\n\tResponseEntity<String> getAbout();\n\t#if (${withCache} == 'Y')\n\t/**\n\t * Cache Endpoint\n\t *\n\t * @return the cache\n\t */\n\tResponseEntity<String> cleanCache();\n\t#end\n\n}", "private void authorize() {\r\n\r\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "public ControllerEnfermaria() {\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public detalleInventarioController() {\n }", "private MissaJpaController() {\r\n }", "public ModelAccessException() {\n\t\tsuper();\n\n\t}", "public GeneralListVueController() {\n\n\t}", "@RequestMapping(method = RequestMethod.GET)\n //function to return all students\n public Collection<Student> getAllStudent() {\n return studentService.getAllStudent();\n\n }", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "@RequestMapping(\"/getUser\")\n public Users getUser(String userId){\n return null;\n }", "PickController(){\n restrictionList = RestrictionManager.getStandardRestriction();\n }", "public default boolean shouldHideEntity(){ return false; }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public PacienteController() {\n\t\t\n\t\tatualizarTela();\n\t\t}", "public void hideCastMiniController() {\n }", "@RequestMapping(value = \"/admin/privatePage\", method = RequestMethod.GET)\n\tpublic String privatePage() {\n\t\treturn \"privatePage\";\n\t}", "@RequestMapping(\"/hello\")\n public String insertUser(){\n return null;\n }", "@RequestMapping(\"goeasy\")\n public void goeasy(){\n }", "public ABTemaPropioController(){\n }", "@Override\r\n\tpublic ModelAndView dataPreview(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\treturn null;\r\n\t}", "public interface IController{\n // Currently no benefit to having any controller specific methods. This interface is available\n // for further extension of different controller implementations. Our current implementation\n // is for the edit view. If future controllers are needed they will implement this interface.\n\n}", "public void doGet( )\n {\n \n }", "public EstadoProyectoController() {\n \n }", "@Override\n public boolean isPrivate() {\n return true;\n }", "public ControllerProtagonista() {\n\t}", "public abstract String tiposervicio();", "public ProduktController() {\r\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "public interface UniverseController {\n\n /**\n * 创建新的股票池\n * @param universeName\n * @param universe\n */\n public void createNewUniverse(String universeName, List<String> universe) throws DuplicateName;\n\n\n /**\n * 删除股票池\n * @param universeName\n */\n public void deleteUniverse(String universeName);\n\n\n /**\n * 获取所有自建的股票池\n * @return 所有自建的股票池\n */\n public List<UniverseVO> getAllUniverses();\n\n\n /**\n * 更新股票池\n * @param universeName 股票池名称\n * @param universe 股票池包含的股票代码\n */\n public void updateUniverse(String universeName, List<String> universe);\n\n\n /**\n * 获取股票的属性\n * @param code 股票代码\n * @return 股票的属性\n */\n public StockAttributesVO getStockAttributes(String code) throws StockNotFoundException;\n\n}", "private View() {}", "@RequestMapping(\"/\")\r\n\t//public CredentialConfiguration index() {\r\n\t\r\n\tpublic Map index() {\r\n\t\t\r\n\t\t\r\n\t\tMap data=new HashMap();\r\n\t\t\r\n\t\tdata.put(\"username\",cred.getUserName());\r\n\t\tdata.put(\"password\",cred.getPassword());\r\n\t\tdata.put(\"screteQuestion\",cred.getScreteQuestion());\r\n\t\tdata.put(\"screteAnswer\",cred.getScreteAnswer());\r\n\t\treturn data;\r\n\t}", "@RequestMapping(\"/spyrjaNotanda\")\r\n public String spyrjaNotandi () {\r\n \treturn \"demo/hvadaNotandi\";\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public PersonasController() {\r\n }", "@Override\n public void perish() {\n \n }", "public void service() {\n\t}", "@Override\n\tpublic String view_request() {\n\t\treturn null;\n\t}", "public PiranhaController() {\n piranhas = new ArrayList<Piranha>();\n toRemove = new ArrayList<Piranha>();\n }", "@Override\n\tpublic void beforeAction(String method, HttpServletRequest request, HttpServletResponse response) {\n\t\t// Default behavior : nothing to do \n\t}", "public interface DealsImportedSummaryControllerHelper {\n\n SummaryDto searchDealsSummary(String fileName);\n\n}", "public interface GoodsFace {\n public ModelAndView insertGoods(GoodsModel goodsModel);\n\n public ModelAndView findAllGoods(String username ,int page);\n\n public ModelAndView serachByCloumnGoods(String cloumn ,int page);\n\n public ModelAndView updateByNumberGoods(GoodsModel goodsModel);\n\n public ModelAndView deleteByNumberQuestion(String number);\n\n\n\n// public ModelAndView toggleByStateQuestion(String state,String number);\n}", "@GetMapping(\"/product\") \nprivate List<Products> getAllProducts() \n{ \nreturn ProductsService.getAllProducts(); \n}", "private SecureController()\n\t{\n\t\tField field;\n\t\ttry\n\t\t{\n\t\t\tfield = Class.forName(\"javax.crypto.JceSecurity\").getDeclaredField(\n\t\t\t\t\t\"isRestricted\");\n\t\t\tfield.setAccessible(true);\n\t\t\tfield.set(null, java.lang.Boolean.FALSE);\n\t\t}\n\t\tcatch (NoSuchFieldException | SecurityException\n\t\t\t\t| ClassNotFoundException | IllegalArgumentException\n\t\t\t\t| IllegalAccessException e)\n\t\t{\n\t\t\tlogger.fatal(\"security load failed: \" + e.getMessage());\n\t\t}\n\t}", "private Get() {}", "private Get() {}", "public FillInTheBlankController(){\n check = false;\n }", "@Override\r\n public boolean isRequest() {\n return false;\r\n }", "public interface IndexController {\n\n @LoggerInfo(Method = \"/sys/index\",Name = \"系统模块首页\")\n String index(Model model);\n}", "public interface Exposable\n{\n}", "private HibernateController(){}", "@Override\n protected void init(PageDto page, HttpServletRequest request, HttpServletResponse response, Model model) {\n\n }", "public LicenciaController() {\n }", "public void checkPublic() {\n }", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "public interface IPersonController {\n\n /**\n * Vytvoří nového uživatele.\n *\n * @return boolean\n *\n * @param person\n */\n boolean addPerson(Person person);\n\n /**\n * Deaktivuje uživatele (na jeho účet se nepůjde přihlásit).\n *\n * @return boolean\n *\n * @param person\n */\n boolean deactivatePerson(Person person);\n\n /**\n * Vrátí všechny uživatele\n *\n * @return boolean\n */\n List getAllUsers();\n\n /**\n * Vrátí přihlášeného uživatele.\n *\n * @return\n */\n Person getLoggedPerson();\n\n /**\n * Vrátí uživatele podle ID.\n *\n * @return\n *\n * @param id\n */\n Person getPerson(int id);\n\n /**\n * Zkusí přihlásit uživatele s danými přihlašovacími údaji.\n *\n * @return boolean\n *\n * @param username\n * @param password\n */\n boolean loginPerson(String username, String password);\n\n /**\n * Odhlásí aktuálního uživatele.\n */\n void logout();\n\n /**\n * Odešle GUI pokyn k obnovení.\n */\n void refresh();\n\n}", "protected BackendModule(){ }", "public PlantillaController() {\n }", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "@Override\r\n protected ModelAndView handleRequestInternal(\r\n HttpServletRequest request,\r\n HttpServletResponse response\r\n ) throws Exception\r\n {\r\n throw new UnsupportedOperationException(\"No need to implement it\");\r\n }", "public TipoInformazioniController() {\n\n\t}", "@Override\n\tprotected void validate(Controller c) {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public interface DispenserService {\n\n public ModelAndView addDispenser(HttpServletRequest request, HttpServletResponse response);\n\n public List<Dispenser> getAllDispenserFromCustomer(int id);\n\n public ModelAndView deleteDispenser(Integer id, HttpServletRequest request, HttpServletResponse response);\n}", "protected void onBeginRequest()\n\t{\n\t}", "public Controller()\n\t{\n\n\t}", "public EstructuraOrganicaController(){\r\n\t\tloadDefault();\r\n\t}", "protected ReliedOnView() {}", "@RestController\npublic interface UserContoller extends UserApi {\n\n}", "public EpisodeController(){\n\t\t//intentionally empty, I think\n\t}", "public IController getController();", "public interface IndexRestController {\n}", "public interface CustomerController {\n\n\n /**\n * Returns a list of customers.\n * \n */\n public ResponseEntity<?> getCustomers();\n\n /**\n * Generate a new customer.\n * \n */\n public ResponseEntity<?> createCustomer(customer.controller.Customer customer);\n\n /**\n * Return the customer with given id.\n * \n */\n public ResponseEntity<customer.controller.Customer> getCustomerById(Long id);\n\n /**\n * Update the customer with given id.\n * \n */\n public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);\n\n /**\n * No description\n * \n */\n public ResponseEntity<?> deleteCustomerById(Long id);\n\n}", "@GetMapping(\"/\")\r\npublic String index(Model model) {\n\r\n return \"index\";\r\n}", "private Aspirations() {}", "protected void agregarUbicacion(){\n\n\n\n }", "private FrameUIController(){\r\n\t\t\r\n\t}", "protected void index()\r\n\t{\n\t}", "public void referToSpecialist(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String contextPath = req.getContextPath();\n// String path = uri.replaceAll(contextPath, \"\");\n Method method = urlMethodMap.get(contextPath);\n if (method != null) {\n String packageName = methodPackageMap.get(method);\n String controllerName = nameMap.get(packageName);\n UserController userController = (UserController) instanceMap.get(controllerName);\n try {\n method.setAccessible(true);\n method.invoke(userController);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }", "public interface BaseView {\n\n /**\n * 返回请求信息\n * @param value\n */\n void showReqResult(String value);\n\n}", "@RequestMapping(value = \"/endpoint_managerd\", method = RequestMethod.GET, produces = \"application/json; charset=utf-8\")\r\n public String endpointManagerDebug(HttpServletRequest request, ModelMap model) throws ServletException, IOException {\r\n UserAuthorities ua = userAuthoritiesProvider.getInstance();\r\n if (ua.userIsAdmin() || ua.userIsSuperUser()) {\r\n return(renderPage(request, model, \"endpoint_manager\", null, null, null, true));\r\n } else {\r\n throw new SuperUserOnlyException(\"You are not authorised to manage WMS endpoints for this server\");\r\n }\r\n }", "public CreateDocumentController() {\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }" ]
[ "0.61482155", "0.6140181", "0.5959167", "0.59356046", "0.5795205", "0.5749109", "0.57214624", "0.5664051", "0.5647703", "0.5635248", "0.5627889", "0.5622779", "0.5616973", "0.5582725", "0.5580317", "0.55706376", "0.5558567", "0.5540514", "0.5523442", "0.5517755", "0.55125606", "0.5509919", "0.5493002", "0.5493002", "0.5482833", "0.54776555", "0.547588", "0.5469923", "0.5466302", "0.5448706", "0.5430364", "0.54279673", "0.5418936", "0.541097", "0.54048413", "0.5401063", "0.5398779", "0.5396896", "0.5386008", "0.53848225", "0.5377188", "0.5374464", "0.5374367", "0.5373668", "0.53723127", "0.53676564", "0.5367076", "0.5358391", "0.5358391", "0.5358391", "0.5352886", "0.5351141", "0.53501505", "0.53499657", "0.5344857", "0.53441", "0.5343808", "0.53437686", "0.5339864", "0.5334817", "0.53269917", "0.53269917", "0.5316427", "0.5316409", "0.53150344", "0.5314891", "0.5311786", "0.5309178", "0.5309093", "0.5309021", "0.5305429", "0.52953434", "0.5292977", "0.5283046", "0.5281358", "0.52739984", "0.52657646", "0.52624947", "0.525997", "0.5259483", "0.5253704", "0.5253252", "0.5249254", "0.5248658", "0.5246375", "0.52412796", "0.5241002", "0.5238159", "0.5237783", "0.5236705", "0.5234696", "0.52324104", "0.5231963", "0.52289486", "0.52267444", "0.5223985", "0.52212423", "0.5220496", "0.52159435", "0.5215705", "0.5213346" ]
0.0
-1
Create a fixedsize pool
public ListPool(int capacity) { pool = new ArrayBlockingQueue<>(capacity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void createPool();", "public BlockingObjectPool(int size) {\n synchronized (pool) {\n range(0, size)\n .forEach(i -> pool.add(new Object()));\n }\n }", "private static void useFixedSizePool(){\n ExecutorService executor = Executors.newFixedThreadPool(10);\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 20).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }", "int getPoolSize();", "static Pool newVariablePool() {\n return new VariablePool();\n }", "public MemoryPool(int offset, int length, boolean canGrow) {\n this.limit = length;\n this.canGrow = canGrow;\n\n freeSpace = new TreeSet<Block>();\n free(new Block(offset, limit-offset));\n }", "OMMPool getPool();", "private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }", "public CacheThreadPool(final int size)\n {\n synchronized (m_lock)\n {\n m_pool = new PooledThread[size];\n \n // We assume that a list is expanded once it reaches half of its capacity\n // and it doesn't harm if the assumption is wrong.\n m_index = new ArrayList(size + 1 + (size / 2));\n }\n }", "private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }", "static Pool newConstantPool() {\n return new ConstantPool();\n }", "public MemManager( int poolSize )\n {\n\n this.poolSize = poolSize;\n memoryPool = new byte[poolSize];\n // creates a twoWayLinkedList that will store HashMaps defining the\n // blocks\n // of free space within our pool\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( 0, poolSize );\n freeBlockList = new TwoWayLinkedList<HashMap<Integer, Integer>>();\n // Initially adds the entire memory\n freeBlockList.add( freeBlock );\n\n }", "int getMinPoolSize();", "public synchronized T doCreate() throws PoolException {\n if (maxSize == INFINITE || inUse < maxSize) {\n T item = create();\n inUse++;\n return item;\n } else {\n throw new PoolException(\"pool at capacity: \" + inUse + \" item(s) checked out. \" + getStack().size() + \" items in getStack().\");\n }\n }", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "public final void fill( final int fillSize ) throws Exception\n {\n final int size = Math.min( m_pool.length, fillSize );\n\n for( int i = m_count; i < size; i++ )\n {\n m_pool[ i ] = (Poolable)m_factory.newInstance();\n }\n\n m_count = size - 1;\n }", "int getMaxPoolSize();", "public abstract T create() throws PoolException;", "public int getPoolSize() {\n return poolSize;\n }", "public static SimplePool simplePool(int poolSize) {\n return new SimplePool(poolSize);\n }", "private ByteBuffer allocateFromPool(int length, boolean isFragmented) {\n return (isFragmented ? this.fragmentedBufferPool : this.unfragmentedBufferPool).get(length);\n}", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public void createNew(int size);", "public void setPoolSize(final int poolSize) {\n this.poolSize = poolSize;\n }", "public interface IPool<T>\r\n{\r\n\t/**\r\n\t * Returns a stored instance and removes it from the pool.\r\n\t * @return A stored instance.\r\n\t */\r\n\tT get();\r\n\t\r\n\t/**\r\n\t * Returns always a new instance.\r\n\t * @return A new instance.\r\n\t */\r\n\tT getNew();\r\n\t\r\n\t/**\r\n\t * Ensures that the given amount of instances is present in the pool.\r\n\t * @param count\r\n\t */\r\n\tvoid ensure(int count);\r\n\t\r\n\t/**\r\n\t * Stores one or more instances in the pool.\r\n\t * @param t instances of the type of the pool.\r\n\t */\r\n\tint store(@SuppressWarnings(\"unchecked\") T... instance);\r\n\t\r\n\t/**\r\n\t * Returns the current instance count in the pool.\r\n\t * @return the current instance count.\r\n\t */\r\n\tint size();\r\n}", "int getMaximumPoolSize();", "public FixedSizeList(int capacity) {\n // YOUR CODE HERE\n }", "int getPoolNumber();", "private static BufferPoolMXBean createBufferPoolMXBean(BufferPool paramBufferPool)\n/* */ {\n/* 227 */ new BufferPoolMXBean() {\n/* */ private volatile ObjectName objname;\n/* */ \n/* */ public ObjectName getObjectName() {\n/* 231 */ ObjectName localObjectName = this.objname;\n/* 232 */ if (localObjectName == null) {\n/* 233 */ synchronized (this) {\n/* 234 */ localObjectName = this.objname;\n/* 235 */ if (localObjectName == null) {\n/* 236 */ localObjectName = Util.newObjectName(\"java.nio:type=BufferPool,name=\" + this.val$pool\n/* 237 */ .getName());\n/* 238 */ this.objname = localObjectName;\n/* */ }\n/* */ }\n/* */ }\n/* 242 */ return localObjectName;\n/* */ }\n/* */ \n/* */ public String getName() {\n/* 246 */ return this.val$pool.getName();\n/* */ }\n/* */ \n/* */ public long getCount() {\n/* 250 */ return this.val$pool.getCount();\n/* */ }\n/* */ \n/* */ public long getTotalCapacity() {\n/* 254 */ return this.val$pool.getTotalCapacity();\n/* */ }\n/* */ \n/* */ public long getMemoryUsed() {\n/* 258 */ return this.val$pool.getMemoryUsed();\n/* */ }\n/* */ };\n/* */ }", "public interface PoolFactory<T> {\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @return the t\n\t */\n\tpublic T create();\n}", "private void initPool() throws SQLException {\n\t\tint POOL_SIZE = 90;\n\t\tthis.connectionPool = new LinkedBlockingQueue<>(POOL_SIZE);\n\t\tfor(int i = 0; i < POOL_SIZE; i++) {\n\t\t\tConnection con = DriverManager.getConnection(dburl, user, password);\n\t\t\tconnectionPool.offer(con);\n\t\t}\n\t}", "public BufferPool(int numPages) {\n // some code goes here\n this.pageNum = numPages;\n this.bufferedPages = new ConcurrentHashMap<PageId, Node>();\n currentTransactions = new ConcurrentHashMap<TransactionId, Long>();\n lockManager = new LockManager();\n }", "public void initialize() {\n if (factory == null || poolName == null)\n throw new IllegalStateException(\"Factory and Name must be set before pool initialization!\");\n if (initialized)\n throw new IllegalStateException(\"Cannot initialize more than once!\");\n initialized = true;\n permits = new FIFOSemaphore(maxSize);\n factory.poolStarted(this);\n lastGC = System.currentTimeMillis();\n //fill pool to min size\n fillToMin();\n /*\n int max = maxSize <= 0 ? minSize : Math.min(minSize, maxSize);\n Collection cs = new LinkedList();\n for(int i=0; i<max; i++)\n {\n cs.add(getObject(null));\n }\n while (Iterator i = cs.iterator(); i.hasNext();)\n {\n releaseObject(i.next());\n } // end of while ()\n */\n collector.addPool(this);\n }", "public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }", "protected interface Pool<T> {\n /** Retrieves the give object from the pool if it is found, or null otherwise. */\n @Nullable\n T get(T input);\n\n /** Stores the given object into the pool. */\n void put(T input);\n\n /** Clears the pool. */\n void clear();\n\n /** Returns the size of the pool. */\n int size();\n }", "public GraphPool() {\n\t\tmMetadataPool = new PoolNodeMetadata();\n\t\tmIdentifierPool = new PoolNodeIdentifier(mMetadataPool);\n\t\tmLinkPool = new PoolExpandedLink(mIdentifierPool, mMetadataPool);\n\t}", "Connection createConnection(ExecutorService pool);", "public abstract int getFromPool(int x);", "public interface Pool {\n public PooledConnection getConnection();\n\n public void createConnection(int ocunt);\n}", "public FixedQueue(int size) {\r\n q = new char[size]; // allocate memory for queue\r\n putloc = getlock = 0;\r\n }", "public Pool(Creator<T> creator) {\n\t\tcount = spares = 0;\n\t\tthis.creator = creator;\n\t\tlist = new LinkedList<Pooled<T>>();\n\t}", "DS (int size) {sz = size; p = new int [sz]; for (int i = 0; i < sz; i++) p[i] = i; R = new int[sz];}", "public final int getCapacity()\n {\n return m_pool.length;\n }", "private static Pool setUpPool(String name, double volume, double temp,\n double pH, double nutrientCoefficient, GuppySet startingGuppies) {\n Pool pool = new Pool(name, volume, temp, pH, nutrientCoefficient);\n\n pool.addFish(startingGuppies.generateGuppies());\n\n return pool;\n }", "void setPoolNumber(int poolNumber);", "public ObjectPool() {\n }", "public int getActivePoolSize(){return activePoolSize;}", "public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThreadPool(2);\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "public MapWorkPool(int nThreads) {\n\t\tthis.nThreads = nThreads;\n\n\t}", "public ConstantPool() {\n super(ActionType.CONSTANT_POOL);\n }", "ManagePool(List DefaultList,List AllocList)\r\n\t{\r\n\t\tthis.DefaultList = DefaultList;\r\n\t\tthis.AllocList = AllocList;\r\n\t}", "public BoneCP getPool() {\n return pool;\n }", "int getExecutorLargestPoolSize();", "public final void grow( final int increase )\n {\n if( null == m_pool )\n {\n m_pool = new Poolable[ increase ];\n return;\n }\n\n final Poolable[] poolables = new Poolable[ increase + m_pool.length ];\n System.arraycopy( m_pool, 0, poolables, 0, m_pool.length );\n m_pool = poolables;\n }", "void fillPool(List<RocketInterface> rockets);", "private ConnectionPool() {\n connections = new LinkedBlockingQueue<>(DEFAULT_POOL_SIZE);\n this.init();\n }", "static ExecutorService boundedNamedCachedExecutorService(int maxThreadBound, String poolName, long keepalive, int queueSize, RejectedExecutionHandler abortPolicy) {\n\n ThreadFactory threadFactory = new NamedThreadFactory(poolName);\n LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>(queueSize);\n\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(\n maxThreadBound,\n maxThreadBound,\n keepalive,\n TimeUnit.SECONDS,\n queue,\n threadFactory,\n abortPolicy\n );\n\n threadPoolExecutor.allowCoreThreadTimeOut(true);\n\n return threadPoolExecutor;\n }", "public <T> ArrayBlockingQueue<T> create(int size){\n return new ArrayBlockingQueue<T>(size);\n }", "Collection<?> create(int initialCapacity);", "int getExecutorPoolSize();", "public void createNew(int xSize, int ySize, int countOfMines);", "public DynamicMemoryPool(int queueSize, boolean dynamic, Allocator<T> allocator, int... sz)\n throws OutOfMemoryError, CudaException {\n this.allocator = allocator;\n this.sz = sz;\n this.dynamic = dynamic;\n Collection<T> values = new ArrayList<T>(queueSize);\n\n for (int i = 0; i < queueSize; i++) {\n values.add(allocator.allocate(sz));\n }\n\n if (dynamic)\n queueSize *= 2;\n\n this.memoryQueue = new ArrayBlockingQueue<T>(queueSize, false, values);\n\n }", "public PooledConnection newInstance() {\n return new PooledConnection(pool);\n }", "public FixedSizedPriorityQueue(int elementsLeft) {\n\t\tsuper();\n\t\tthis.elementsLeft = elementsLeft;\n\t}", "private BlocksPool(int blockSizeBytes) {\n this.blockSizeBytes = blockSizeBytes;\n this.newAllocBlocks = convertSizeToBlocks(NEW_ALLOC_MIN_SIZE_BYTES, 1);\n this.lowReservedBlocks = convertSizeToBlocks(LOW_RESERVED_SIZE_BYTES, 0);\n this.highReservedBlocks = convertSizeToBlocks(HIGH_RESERVED_SIZE_BYTES, this.lowReservedBlocks + 1);\n alloc(convertSizeToBlocks(PRE_ALLOC_SIZE_BYTES, 0));\n }", "private void createBin(int size) \n\t{\n\t// create an array of the appropriate type\n\tfBin = (Object[]) Array.newInstance(fClass, size);\t\n\t}", "int fixedSize();", "protected abstract void allocateBlocks(int numBlocks);", "public BetterParkingLot( int size )\n\t{\n\t\tsuper(size);\n queue = new PriorityQueue<Integer>(size);\n\n // add all available parking slots in zero-indexed form\n for(int i=0; i <= size; i++) // this is my only problem. It HAS to be O(n) here.\n queue.add(i);\n\t}", "public void setPoolId(Long poolId);", "@Override\n\tpublic void setConnectionPoolSize(int arg0) {\n\n\t}", "private void init(int threadCount, Type type) {\r\n //The backend starts to polling threads.\r\n mPoolThread=new Thread(){\r\n @Override\r\n public void run() {\r\n Looper.prepare();\r\n mPoolThreadHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //take a thread from the thread pool and execute it.\r\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n };\r\n //if this thread is finished, release a signal to the handler.\r\n mSemaphorePoolThreadHandler.release();\r\n Looper.loop();\r\n }\r\n };\r\n mPoolThread.start();\r\n //Get the maximum available memory for our service.\r\n int maxMemory= (int) Runtime.getRuntime().maxMemory();\r\n int cacheMemory = maxMemory / 8;//8\r\n mLruCache=new LruCache<String, Bitmap>(cacheMemory){\r\n @Override\r\n protected int sizeOf(String key, Bitmap value) {\r\n return value.getRowBytes()*value.getHeight();\r\n }\r\n };\r\n mThreadPool= Executors.newFixedThreadPool(threadCount);\r\n mTaskQueue=new LinkedList<>();\r\n mType=type==null? Type.LIFO:type;\r\n mSemaphoreThreadPool=new Semaphore(threadCount);\r\n\r\n }", "Limit createLimit();", "private JedisPool getPool() {\n if (pool == null) {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMinIdle(poolMinIdle);\n config.setMaxIdle(poolMaxIdle);\n config.setMaxTotal(poolMaxTotal);\n pool = new JedisPool(config, host, port, (int) timeout);\n logger.debug(\"Creando jedisPool@ \" + host + \":\" + port + \". MinIdle/MaxIdle/MaxTotal: \" + poolMinIdle + \"/\" + poolMaxIdle + \"/\" + poolMaxTotal + \". Timeout: \" + timeout);\n }\n return pool;\n }", "myQueue(int size){\n }", "public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}", "public FixedLengthConsumer(Allocator allocator, long limit) {\n this.allocator = allocator;\n this.limit = limit;\n }", "public int getInitialCapacity();", "int getExecutorMaximumPoolSize();", "public void testNewFixedThreadPool4() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(0);\n shouldThrow();\n } catch (IllegalArgumentException success) {}\n }", "public void initialize(int size);", "public MRUCache(int size, CacheDataFactory<K, V> fact, CacheSource<K,V> source) {\r\n factory = fact;\r\n this.source = source;\r\n buckets = new AtomicReference[nextPrime(size + (int)(size * .15))];\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n buckets[i] = new AtomicReference<CacheData<K, V>>(null);\r\n }\r\n }", "public ObjectPool(PoolObjectFactory factory, String poolName) {\n setObjectFactory(factory);\n setName(poolName);\n }", "public void testNewFixedThreadPool2() {\n final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "public BufferPool(String fileName, int numBuffers)\n throws IOException\n {\n BLOCK_SIZE = 4096;\n // create linked list of buffers, open file, create pointer tempArray\n this.pool = new LinkedList<Buffer>();\n this.buffArr = new Buffer[numBuffers];\n this.file = new RandomAccessFile(fileName, \"rw\");\n this.tempArray = new byte[BLOCK_SIZE];\n\n // initialize all the statistics to zero\n cacheHits = cacheMisses = diskReads = diskWrites = 0;\n\n Buffer newBuf;\n // initialize the appropriate number of buffers\n for (int i = 0; i < numBuffers; i++)\n {\n newBuf = new Buffer(tempArray, -1);\n pool.append(newBuf);\n buffArr[i] = newBuf;\n }\n }", "public Pooled(T t, Pool<T> pool, LogTarget logTarget) {\n\t\t\tcontent = t;\n\t\t\tthis.pool = pool;\n\t\t\tthis.logTarget = logTarget;\n\t\t}", "@Override\n public int getMaxCapacity() {\n return 156250000;\n }", "public boolean isPoolingEnabled();", "public void testCreateThreadPool_int()\n {\n System.out.println( \"createThreadPool\" );\n int numRequestedThreads = 0;\n ThreadPoolExecutor result = ParallelUtil.createThreadPool( ParallelUtil.OPTIMAL_THREADS );\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool( -1 );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n \n result = ParallelUtil.createThreadPool( -1 );\n assertTrue( result.getMaximumPoolSize() > 0 );\n \n numRequestedThreads = 10;\n result = ParallelUtil.createThreadPool( numRequestedThreads );\n assertEquals( numRequestedThreads, result.getMaximumPoolSize() );\n }", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "SMALL createSMALL();", "public SRWDatabasePool() {\n }", "@DefaultValue(\"20\")\n int getApiClientThreadPoolSize();", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }", "private void init() {\n _capacity = 1 << 9;\n int holderSize = _capacity << 1;\n _keyValueHolder = new int[holderSize];\n _mask = holderSize - 1;\n _maxNumEntries = (int) (_capacity * LOAD_FACTOR);\n }", "abstract protected int getCapacity();", "public Map createBuffer() {\n // Get the available processors, processors==threads is probably best?\n Runtime runtime = Runtime.getRuntime();\n int nProcessors = runtime.availableProcessors();\n int nThreads = 1; // nProcessors/2;\n compute();\n return serviceArea;\n }", "@Bean\n OPartitionedDatabasePool getOPartitionedDatabasePool() {\n return factory().createPool();\n }", "public static ListenableThreadPoolExecutor newOptimalSizedExecutorService(String name, int priority) {\r\n\t\tint processors = Runtime.getRuntime().availableProcessors();\r\n\t\tint threads = processors > 1 ? processors - 1 : 1;\r\n\t\treturn new ListenableThreadPoolExecutor(name, threads, priority);\r\n\t}", "private void initThreadPool(int numOfThreadsInPool, int[][] resultMat, Observer listener) {\n for(int i=0;i<numOfThreadsInPool; i++){\r\n PoolThread newPoolThread = new PoolThread(m_TaskQueue, resultMat);\r\n newPoolThread.AddResultMatListener(listener);\r\n m_Threads.add(newPoolThread);\r\n }\r\n // Start all Threads:\r\n for(PoolThread currThread: m_Threads){\r\n currThread.start();\r\n }\r\n }" ]
[ "0.7193604", "0.66545826", "0.64631695", "0.63936645", "0.61971724", "0.6192035", "0.6109354", "0.6078461", "0.6056461", "0.59869266", "0.5947217", "0.59399086", "0.59036446", "0.58848137", "0.5874784", "0.5868601", "0.5861551", "0.58504236", "0.58406377", "0.58403844", "0.58371776", "0.5797204", "0.5793957", "0.57147986", "0.57066435", "0.5676305", "0.56512547", "0.5650347", "0.56430185", "0.5639739", "0.56178784", "0.56143105", "0.5613877", "0.5604053", "0.55916744", "0.5577862", "0.5574551", "0.55642027", "0.55383146", "0.54835135", "0.5482887", "0.54702353", "0.54605615", "0.5447358", "0.5423888", "0.5384862", "0.53500646", "0.5341832", "0.5335843", "0.529964", "0.5296804", "0.5278137", "0.52675486", "0.52640593", "0.52555734", "0.52495676", "0.5238202", "0.5231429", "0.5230628", "0.52278745", "0.52239484", "0.5207562", "0.5200151", "0.5193717", "0.5181812", "0.51816124", "0.5167403", "0.5161011", "0.515243", "0.51519907", "0.5151436", "0.5131549", "0.51159376", "0.51087815", "0.5098155", "0.5088915", "0.5086128", "0.50811774", "0.50790286", "0.5077322", "0.50703335", "0.5065753", "0.5063692", "0.503829", "0.5031457", "0.5018418", "0.50034183", "0.49931335", "0.4985903", "0.49827567", "0.49820048", "0.4979653", "0.4977053", "0.49666607", "0.49652666", "0.49648356", "0.49620345", "0.49609566", "0.49588504", "0.49533117" ]
0.5863913
16
Create a new List with given initial values. This implementation creates an ArrayList. Override to create a different type of list.
protected <V> List<V> newObject(Collection<V> initialValues) { return new ArrayList<>(initialValues); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> List<T> createList (T... args) {\n\tif (args == null) { return new ArrayList<T>(); };\n\treturn new ArrayList<T>(Arrays.asList(args));\n }", "public static <T> List<T> createList() {\n\t\treturn Collections.emptyList();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }", "public static <T> ArrayList<T> createArrayList() {\n \t\treturn new ArrayList<T>();\n \t}", "ListType createListType();", "public MutiList() {\n\t\tsuper();\n\t\tthis.myList = new ArrayList<>();\n\t}", "abstract protected Object newList( int capacity );", "@Test\n\tpublic void createListFromList() {\n\t\tList<String> list = new ArrayList<>();\n\t\tlist.add(\"AAPL\");\n\t\tlist.add(\"MSFT\");\n\n\t\t// Create a copy using constructor of ArrayList\n\t\tList<String> copy = new ArrayList<>(list);\n\n\t\tassertTrue(list.equals(copy));\n\t}", "@SuppressWarnings(\"unchecked\")\n public ArrayList(int initialCap) {\n list = (E[])new Object[0];\n capacity = initialCap;\n size = 0;\n }", "public MyArrayList() {\r\n\t\tthis.list=new Object[this.capacity];\r\n\t}", "public static <T> List<T> createList(T item1) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tlist.add(item1);\n\t\treturn list;\n\t}", "public List(){\n\t\tthis(\"list\", new DefaultComparator());\n\t}", "abstract void makeList();", "public MyArrayList(final int initialCapacity) {\n // initialize the array to have the capacity specified by the argument\n arrayList = new int[initialCapacity];\n // There are initially no elements in the array\n size = 0;\n capacity = initialCapacity;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[INIT_SIZE];\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tObject[] oList = new Object[INIT_SIZE];\n\t\tlist = (E[]) oList;\n\t\tsize = INIT_SIZE;\n\t}", "public ArrayList() {\n\t\tthis(10, 75);\n\t}", "@SuppressWarnings(\"unchecked\")\n public ArrayList() {\n list = (E[])new Object[DEFAULT_CAP];\n capacity = 10;\n size = 0;\n }", "private Lists() { }", "@SuppressWarnings(\"unchecked\")\n \tpublic static <T> List<T> createConcurrentList() {\n \t\treturn (List<T>) Collections.synchronizedList(createArrayList());\n \t}", "public TempList() {\n list = new ArrayList<T>();\n }", "public List()\n\t{\n\t\tthis(null, null);\n\t}", "public ArrayList() {\n\t\tthis.elements = new Object[5];\n\t\tthis.last = -1;\n\t}", "public List()\n {\n list = new Object [10];\n }", "public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\n }", "@SuppressWarnings(\"unchecked\")\r\n \tpublic List() {\r\n \t\titems = (T[]) new Object[INIT_LEN];\r\n \t\tnumItems = 0;\r\n \t\tcurrentObject = 0;\r\n \t}", "public static <T> List<T> list(T... items)\r\n\t{\r\n\t\treturn new ArrayList<T>(Arrays.asList(items));\r\n\t}", "public SimpleArrayList() {\n this.values = new Object[SimpleArrayList.DEFAULT_SIZE];\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList () {\n\t\tcapacity = 10;\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[capacity];\n\t}", "public ArrayList(int initialCapacity) {\n\t\tthis(initialCapacity, 75);\n\t}", "@SuppressWarnings(\"unchecked\")\n public ArrayList(ArrayList<E> lst) {\n list = (E[])new Object[lst.size()];\n capacity = lst.capacity;\n size = lst.size;\n for(int i = 0; i < size; i++) {\n list[i] = lst.list[i];\n }\n }", "public static <T> List<T> createList(T item1, T item2) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tlist.add(item1);\n\t\tlist.add(item2);\n\t\treturn list;\n\t}", "public static ListInitExpression listInit(NewExpression newExpression, Expression[] arguments) { throw Extensions.todo(); }", "public static ArrayList<Integer> createList(int listSize) {\n ArrayList<Integer> list = new ArrayList<>();\n for (int i = 0; i < listSize; i++) {\n list.add(i);\n }\n return list;\n }", "List() {\n final int ten = 10;\n list = new int[ten];\n size = 0;\n }", "public ArrayList(int initialCapacity, int growthFactor) {\n\t\tthis.storedObjects = new Object[initialCapacity];\n\t\tthis.growthFactor = growthFactor;\n\t}", "public VectorLinearList(int initialCapacity)\n {\n if (initialCapacity < 1)\n throw new IllegalArgumentException\n (\"VectorLinearList.constructor: \" +\n \"initialCapacity must be >= 1\");\n element = new Vector(initialCapacity);\n }", "private void initList() {\n\n }", "public ArrayList(int initCapacity) {\n elements = new Object[initCapacity];\n }", "private ArrayList<String> initList(String[] vastitems){\n return new ArrayList<>(Arrays.asList(vastitems));\n }", "public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }", "public <T> void makeArrayList(List<T> list) {\n\t\tList<T> list1 = new ArrayList<T>(); // now we can create the list using \"T\"\n\t\tlist1.addAll(list);\n\t}", "public static <T> List<T> unmodifiableList(List<T> original) {\n ArrayList<T> list = new ArrayList<>(original.size());\n original.forEach(list::add);\n return Collections.unmodifiableList(list);\n }", "public ArrayList()\n {\n list = new int[SIZE];\n length = 0;\n }", "@Test\n\tpublic void createListWithInitialCapacity() {\n\t\tList<String> list1 = new ArrayList<>();\n\n\t\t// You can set capacity using constructor of ArrayList\n\t\tList<String> list2 = new ArrayList<>(20);\n\n\t\tassertTrue(list1.isEmpty());\n\t\tassertTrue(list2.isEmpty());\n\t\tassertTrue(list1.equals(list2));\n\t}", "ArrayList<String> createList(String finalInput);", "public ArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }", "private static <T> List<T> list(T... elements) {\n return ImmutableList.copyOf(elements);\n }", "public ArrayList() { // constructs list with default capacity\n this(CAPACITY);\n }", "public List<New> list();", "public static <C> LIST<C> LIST1(C a) {\n LIST<C> L = new LIST<C>();\n L.list.addFirst( a );\n return L;\n }", "@SuppressWarnings(\"unchecked\" )\n public static <T> ConstList<T> make() {\n return emptylist;\n }", "private void createLoanList() {\n\t\tArrayList<Object> loans = new ArrayList<Object>(Arrays.asList(loanArray));\n\t\tfor (int i = 0; i < loans.size(); i++)\n\t\t\tif (((Loan) loans.get(i)).getFineAmount() == 0)\n\t\t\t\tloans.remove(i);\n\t\tlist = new LoanList();\n\t\tlist.setItems(loans);\n\t\tadd(list);\n\t}", "public static <T> List<T> immutableList(T... elements){\n return Collections.unmodifiableList(Arrays.asList(elements.clone()));\n }", "public TempList(int n) {\n list = new ArrayList<T>(n >= 0 ? n : 0);\n }", "int createList(int listData) {\n\t\tint list = newList_();\n\t\t// m_lists.set_field(list, 0, null_node());//head\n\t\t// m_lists.set_field(list, 1, null_node());//tail\n\t\t// m_lists.set_field(list, 2, null_node());//prev list\n\t\tm_lists.setField(list, 3, m_list_of_lists); // next list\n\t\tm_lists.setField(list, 4, 0);// node count in the list\n\t\tm_lists.setField(list, 5, listData);\n\t\tif (m_list_of_lists != nullNode())\n\t\t\tsetPrevList_(m_list_of_lists, list);\n\n\t\tm_list_of_lists = list;\n\t\treturn list;\n\t}", "public ListHolder()\n {\n this.list = new TestList(15, false);\n }", "public List getList(List oldList) {\n List newList = new ArrayList();\n Collections.copy(newList, oldList);\n return newList;\n }", "public ArrayList() {\n arr = (T[]) new Object[10];\n size = 0;\n }", "public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }", "@Test\n\tpublic void createTypedList() {\n\t\tList<String> list = new ArrayList<>();\n\n\t\tlist.add(\"String\");\n\n\t\tassertEquals(list, Collections.singletonList(\"String\"));\n\t}", "public ObjectList(final int initialCapacity) {\n super(initialCapacity);\n }", "public XSListSimpleType asList() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: idiv \n // 1: laload \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 2 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }", "@Override\r\n public ListADT<T> toMutable() {\r\n return new ListADTImpl<T>(this.head);\r\n }", "ListValue createListValue();", "public ArrayList<Item> createArrayList(int items) {\n\t\tArrayList<Item> array = new ArrayList<Item>();\n\t\tfor (int i=0;i<items;i++) {\n\t\t\t\n\t\t\tItem item = genItem(i,items);\n\t\t\tarray.add(item);\n\t\t}\n\t\t\n\t\t\n\t\treturn array;\n\t\t\n\t}", "public static <T> List<T> createList(T item1, T item2, T item3, T item4) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tlist.add(item1);\n\t\tlist.add(item2);\n\t\tlist.add(item3);\n\t\tlist.add(item4);\n\t\treturn list;\n\t}", "public <V> List<V> get(Collection<V> initialValues) {\n List obj = pool.poll();\n if (obj != null) {\n @SuppressWarnings(\"unchecked\")\n List<V> value = (List<V>)obj;\n value.addAll(initialValues);\n return value;\n } else {\n return newObject(initialValues);\n }\n }", "public SimpleList(int capacity) {\n this.values = new Object[capacity];\n }", "public SimpleArrayList(int size) {\n this.values = new Object[size];\n }", "private ArrayList<String> createList(JList aListComponent) {\n ArrayList<String> aList = new ArrayList<>();\n if (aListComponent.getModel().getSize() > 0) {\n for (int i=0; i < aListComponent.getModel().getSize();i++) {\n aList.add(aListComponent.getModel().getElementAt(i).toString());\n }\n }\n return aList;\n }", "public MyArrayList(int capacity) {\r\n\t\t//checks if the capacity of the list exceeds the minimum capacity required by the array\r\n\t\tif (capacity > 4)\r\n\t\t\tthis.capacity=capacity;\r\n\t\tthis.list=new Object[this.capacity];\r\n\t\t//this()\r\n\t}", "public ArrayList<E> clone() {\n ArrayList<E> temp = new ArrayList<E>();\n temp.size = this.size;\n temp.capacity = this.capacity;\n temp.list = Arrays.copyOf(this.list, this.list.length);\n return temp;\n }", "public IntList() { // doesn't HAVE to be declared public, but doesn't hurt\n theList = new int[STARTING_SIZE];\n size = 0;\n }", "public static <T> List<T> createList(T item1, T item2, T item3) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tlist.add(item1);\n\t\tlist.add(item2);\n\t\tlist.add(item3);\n\t\treturn list;\n\t}", "public static final ArrayList list (Object ... items) {\r\n ArrayList sequence = new ArrayList();\r\n for (int i=0; i<items.length; i++) {\r\n sequence.add(items[i]);\r\n }\r\n return sequence;\r\n }", "public List(String name)\n\t{\n\t\tthis(name, null);\n\t}", "public ListADTImpl(ImmutableListADTImpl<T> listToMakeMutable) {\r\n this.head = new GenericEmptyNode();\r\n for (int i = 0; i < listToMakeMutable.getSize(); i++) {\r\n T value = listToMakeMutable.get(i);\r\n this.head = this.head.addBack(value);\r\n }\r\n }", "public VectorLinearList()\n {// use default capacity of 10\n this(10);\n }", "public static ListInitExpression listInitE(NewExpression newExpression, Iterable<Expression> arguments) { throw Extensions.todo(); }", "public MyArrayList(int i) {\n if(i <= 0) {\n System.out.println(\"Negative number given please try again\");\n return;\n }\n\n this.arrayList = new Object[i];\n this.elementsInArray = 0;\n this.size = i;\n }", "private ConstList(List<T> list) {\n this.list = list;\n }", "public static <T> List<T> getOrCreateList(List<T> list) {\n return list == null ? new ArrayList<>() : list;\n }", "public static MutableLinearList start () {\r\n\t\t\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tMutableLinearList item2 = new MutableLinearList();\r\n\t\tMutableLinearList item3 = new MutableLinearList();\r\n\t\t\r\n\t\tlist.head = 42;\r\n\t\tlist.tail = item2;\r\n\t\t\r\n\t\titem2.head = 8;\r\n\t\titem2.tail = item3;\r\n\t\t\r\n\t\titem3.head = 15;\r\n\t\titem3.tail = null;\r\n\t\t\r\n\t\t\r\n/*\t\t// alternative Implementierung:\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tlist.head = 15;\r\n\t\tlist.addInFront(8);\r\n\t\tlist.addInFront(42);\r\n*/\t\t\r\n\t\t\r\n\t\treturn list;\r\n\t}", "public List(int length, int x) {\n if (x == 1){\n list = new int[]{5, 4, 3, 2, 1, 10, 9, 8, 7, 6};\n }else if (x == 2) {\n list = new int[length];\n generateList();\n }else if (x == 3) {\n list = new int[length];\n }\n }", "public static ListInitExpression listInit(NewExpression newExpression, ElementInit[] elementInits) { throw Extensions.todo(); }", "public List(String name) {\n super(name);\n children = new ArrayList<>();\n }", "public RDFList createRDFList(List<Expression> list, int arobase) {\r\n RDFList rlist = new RDFList(newBlankNode(), list); \r\n if (arobase == L_DEFAULT){\r\n arobase = listType;\r\n }\r\n switch (arobase){\r\n \r\n case L_LIST: \r\n rlist = complete(rlist);\r\n break;\r\n \r\n case L_PATH:\r\n rlist = path(rlist);\r\n break;\r\n }\r\n return rlist;\r\n }", "public static ListInitExpression listInit(NewExpression newExpression, Method method, Expression[] arguments) { throw Extensions.todo(); }", "public MyList(String name) {\n nameList = name;\n }", "private MyIntegerList generatedPopulatedList() {\n final MyIntegerList mil = new MyIntegerList();\n\n mil.push(1);\n mil.push(2);\n mil.push(1);\n mil.push(6);\n mil.push(6);\n mil.push(7);\n mil.push(2);\n mil.push(2);\n mil.push(0);\n mil.push(5);\n\n return mil;\n }", "public <T> void makeArrayList(T t) {\n\t\tList<T> list = new ArrayList<T>(); // now we can create the list using \"T\"\n\t\tlist.add(t);\n\t}", "public static ListType LIST(FieldType elementType) {\n return new ListType(elementType);\n }", "public static ListInitExpression listInit(NewExpression newExpression, Method method, Iterable<Expression> arguments) { throw Extensions.todo(); }", "public ArrayJList(int initialCapacity) {\n if (initialCapacity > 0) {\n this.elementData = new Object[initialCapacity];\n } else {\n throw new IllegalArgumentException(\"Illegal Capacity: \" +\n initialCapacity);\n }\n }", "public NumericObjectArrayList() {\r\n list = new Copiable[10];\r\n count = 0;\r\n }", "public static <T> List<T> createList(T item1, T item2, T item3, T item4, T item5) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tlist.add(item1);\n\t\tlist.add(item2);\n\t\tlist.add(item3);\n\t\tlist.add(item4);\n\t\tlist.add(item5);\n\t\treturn list;\n\t}", "private static <T> List<T> singletonArrayList(@Nullable T value) {\n @SuppressWarnings(\"unchecked\")\n T[] singleArray = (T[]) new Object[1];\n singleArray[0] = value;\n return Arrays.asList(singleArray);\n }", "public MyArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }" ]
[ "0.7272073", "0.72501796", "0.71666193", "0.6988631", "0.6878644", "0.6800376", "0.6758375", "0.67245597", "0.65926594", "0.65492517", "0.65319514", "0.6506476", "0.6499427", "0.64920944", "0.6488746", "0.6488523", "0.6482115", "0.64747345", "0.6422666", "0.6414716", "0.6398082", "0.63877195", "0.6383881", "0.6376278", "0.63681203", "0.635259", "0.6341753", "0.6338329", "0.6331438", "0.63175935", "0.6313468", "0.63022643", "0.62951875", "0.629443", "0.6289838", "0.6285562", "0.62806183", "0.626771", "0.6260384", "0.6257957", "0.62474555", "0.6235221", "0.6229322", "0.6229229", "0.62290317", "0.6223985", "0.62207544", "0.6201549", "0.619973", "0.6182003", "0.61516505", "0.61403394", "0.613493", "0.6126032", "0.61212516", "0.6117921", "0.60794973", "0.60758615", "0.6075823", "0.60598636", "0.60468245", "0.60423154", "0.6040606", "0.6039245", "0.6025129", "0.60228956", "0.6018557", "0.6010738", "0.6007935", "0.60075116", "0.599179", "0.59851825", "0.59798664", "0.59786177", "0.5978253", "0.5975846", "0.5972447", "0.5966399", "0.5965841", "0.5953309", "0.5946922", "0.59447724", "0.59428144", "0.59407294", "0.5939848", "0.5939404", "0.5936989", "0.593481", "0.59244967", "0.5920605", "0.5903829", "0.59004456", "0.5897294", "0.58958775", "0.58839697", "0.5875367", "0.5873439", "0.58725125", "0.5872326", "0.58631396" ]
0.7685378
0
Get a new or cached List
public <V> List<V> get(Collection<V> initialValues) { List obj = pool.poll(); if (obj != null) { @SuppressWarnings("unchecked") List<V> value = (List<V>)obj; value.addAll(initialValues); return value; } else { return newObject(initialValues); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.google.protobuf.ByteString> getCachedList();", "public List<New> list();", "public List getList(List oldList) {\n List newList = new ArrayList();\n Collections.copy(newList, oldList);\n return newList;\n }", "public List getList();", "private List getList() {\n if(itemsList == null) {\n itemsList = new ArrayList<>();\n }\n return itemsList;\n }", "public DOCKSList getList() {\r\n return localList;\r\n }", "public java.util.List<com.google.protobuf.ByteString>\n getCachedList() {\n return java.util.Collections.unmodifiableList(cached_);\n }", "private ArrayList<Object> loadCache() {\n if (cachedLabTest == null)\n {\n cachedLabTest = getOrderedTestCollection();\n return cachedLabTest;\n }\n else\n {\n return cachedLabTest;\n }\n }", "public java.util.List<com.google.protobuf.ByteString>\n getCachedList() {\n return cached_;\n }", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "Object getTolist();", "public List hardList() {\r\n List result = new ArrayList();\r\n\r\n for (int i=0; i < size(); i++) {\r\n Object tmp = get(i);\r\n\r\n if (tmp != null)\r\n result.add(tmp);\r\n }\r\n\r\n return result;\r\n }", "public abstract List<T> getList();", "@SuppressWarnings(\"unchecked\")\n \tpublic static <T> List<T> createConcurrentList() {\n \t\treturn (List<T>) Collections.synchronizedList(createArrayList());\n \t}", "public List<T> read(int numbersToRetrieve)\r\n {\r\n// final String methodName = \"read\";\r\n List<T> list = null;\r\n\r\n if (_cache.isEmpty())\r\n {\r\n// Advisory advisory = new Advisory();\r\n//\r\n// advisory.setPackageName (ConstantsPackages.CACHE);\r\n// advisory.setMethodName (_className + \"::\" + methodName);\r\n// advisory.setStatus (Status.STATUS_CACHE_INVALID);\r\n//\r\n// AdvisoryLog.log (advisory);\r\n }\r\n\r\n else\r\n {\r\n int elementIndex = 0;\r\n int pageIndex = 0;\r\n\r\n list = new ArrayList<T>();\r\n\r\n while((list.size() < numbersToRetrieve)&&(!_cache.isEmpty()))\r\n {\r\n List<T> workList;\r\n \r\n synchronized(_cache)\r\n {\r\n workList = _cache.get (pageIndex);\r\n }\r\n \r\n int numbersRemaining = numbersToRetrieve - list.size();\r\n\r\n // Can current cache be used to retrieve all data?\r\n if (numbersRemaining < workList.size())\r\n {\r\n for (int index = 0; index < numbersRemaining; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n }\r\n\r\n // Data must be retrieved from multiple pages of cache.\r\n else\r\n {\r\n // Retrieve available data from current page of cache.\r\n int available = workList.size();\r\n\r\n for (int index = 0; index < available; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n \r\n synchronized(_cache)\r\n {\r\n _cache.remove (pageIndex);\r\n }\r\n \r\n // Refill page.\r\n _addPages (1);\r\n }\r\n }\r\n }\r\n\r\n return list;\r\n }", "private List<itemInfo> getNewEntries() {\n\n final List<itemInfo> entries = new ArrayList<itemInfo>();\n return entries;\n }", "public List<OnlineObject> getNewObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn new ArrayList<OnlineObject>(this.recentlyAddedObjects);\n\t\t}\n\t}", "List<?> getList();", "public static <T> List<T> getOrCreateList(List<T> list) {\n return list == null ? new ArrayList<>() : list;\n }", "public List getList() throws HibException;", "public final List getList()\n {\n return this.list;\n }", "List<T> read();", "protected abstract List<E> getList();", "protected final <T> List<T> getLocalCache(CacheKeyList<T> key,\n Callable<List<T>> caller\n ){\n try {\n return key.cast(spanListCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "List<T> readList();", "public List<T> getList() {\n\t\treturn list;\n\t}", "protected Object[] getList() {\n return list;\n }", "@Override\n public List<Transaction> getTxListFromCache() {\n return null;\n }", "public ArrayList getList() {\n \t\treturn list;\n \t}", "private ServiceRecordList GetServiceList(TreeSet<ServiceRecordList> treeToSearch, int listKey)\r\n {\r\n ServiceRecordList listForSearch = new ServiceRecordList(listKey);\r\n ServiceRecordList actualList = treeToSearch.floor(listForSearch);\r\n \r\n if (actualList == null || actualList.GetKey() != listKey) //The list doesn't exist, so we create it and add it to treeToSearch\r\n {\r\n treeToSearch.add(listForSearch);\r\n actualList = listForSearch;\r\n }\r\n \r\n return actualList;\r\n }", "public java.util.List getList() {\n\t\treturn list;\n\t}", "abstract protected Object newList( int capacity );", "public void cacheResult(java.util.List<Todo> todos);", "abstract List<T> getReuslt();", "private JList getHistoryList() {\n if (historyList == null) {\n historyList = new JList();\n historyList.setModel(new ListListModel(new ArrayList()));\n historyList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n historyList.setCellRenderer(new HistoryListCellRenderer());\n historyList.addListSelectionListener(new ListSelectionListener() {\n\n public void valueChanged(ListSelectionEvent e) {\n final History history = (History) historyList.getSelectedValue();\n\n getViewPanel().setHistory(history);\n\n /*\n * Toggle the buttons off if no action needs to be taken\n */\n\n if (!isLocked() && getUserAccount().isAdministrator()) {\n final OkCancelButtonPanel panel = getButtonPanel();\n\n panel.getOkayButton().setEnabled((history != null) && !history.isProcessed());\n panel.getCancelButton().setEnabled((history != null) && !history.isProcessed());\n }\n\n }\n\n });\n }\n\n return historyList;\n }", "List<T> getStoredData() { return null; }", "public List<T> getCopyOfUnfilteredItemList(){\n synchronized (listsLock){\n if (originalList != null){\n return new ArrayList<T>(originalList);\n } else {\n // if original list is null filtered list is unfiltered\n return new ArrayList<T>(filteredList);\n }\n }\n }", "TaskList getList();", "List<Link> findLinkByCache();", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "ObservableList<T> getReadOnlyList();", "public synchronized List<Item> getItems()\n\t{\n\t\t/**\n\t\t * TODO Q: Deep copy override clone in Item?\n\t\t * pre-condition: List not null;\n\t\t * Invariant:size list of active items cannot more than server capacity\n\t\t * post-condition:return the copy of items in the list.\n\t\t * Exception: list size more than server capacity.\n\t\t */\n\t\t// TODO: IMPLEMENT CODE HERE\n\t\t// Some reminders:\n\t\t// Don't forget that whatever you return is now outside of your control.\n\t\treturn new ArrayList<>(itemsUpForBidding);\n\t}", "public static <T> List<T> createList() {\n\t\treturn Collections.emptyList();\n\t}", "public ArrayList<URI> getList() { return new ArrayList<URI>(); }", "public List<Item> getItemList();", "protected <T> List<T> getDocCache(CacheKeyList<T> key,\n Callable<List<T>> caller\n ){\n try {\n return key.cast(docListCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "edu.usfca.cs.dfs.StorageMessages.List getList();", "List<Member> list(long now);", "public ArrayList<T> getList() {\n synchronized(this) {\n return new ArrayList<T>(_treeSet);\n }\n }", "protected <ELEMENT> List<ELEMENT> newReferrerList() { // overriding to import\r\n return new ArrayList<ELEMENT>();\r\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "@Override\n public void refreshList(ArrayList<String> newList){\n }", "public static ServerList getCurrentList(Context context) {\n if (sCurrentList != null)\n return sCurrentList;\n\n try {\n sCurrentList = parseCachedList(context);\n }\n catch (IOException e) {\n try {\n sCurrentList = parseBuiltinList(context);\n }\n catch (IOException be) {\n Log.w(TAG, \"unable to load builtin server list\", be);\n }\n }\n\n return sCurrentList;\n }", "protected <ELEMENT> List<ELEMENT> newReferrerList() { // overriding to import\n return new ArrayList<ELEMENT>();\n }", "public DList2 list(){\r\n return this.list;\r\n }", "public ArrayList<Company> updateCacheList() {\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n\n try {\n Company.pinAll(\"companyList\", query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchant from Parse Database:\\n\" + e.getMessage());\n }\n\n return getCompaniesFromCache();\n }", "public interface ReadOnlyListManager<T> {\n /**\n * Returns an unmodifiable view of the list.\n * This list will not contain any duplicate elements.\n */\n\n ObservableList<T> getReadOnlyList();\n}", "ListType createListType();", "public JsonArray getCache() {\n return cache;\n }", "@NonNull\n public List<T> getList() {\n return data;\n }", "public List getList() {\n return Arrays.asList(toJavaArray()); \n }", "public List<NotificationItem> refreshTest()\n {\n return listItems;\n }", "public JList obtenirList() {\r\n\t\treturn list;\r\n\t}", "private void cache(WechatMaterialList wechatMaterialList) {\n this.wechatMaterialList = wechatMaterialList;\n }", "public static ArrayList<String> getTodoListInstance(){\n\t\tif (todoList==null){\n\t\t\ttodoList=new ArrayList<String>();\n\t\t}\n\t\treturn todoList;\n\t}", "public static EntryList getEntryList(){\n if (entryList == null){\n entryList = new EntryList();\n\n }\n return entryList;\n }", "private void loadLists() {\n }", "@SuppressWarnings(\"unchecked\" )\n public ConstList<T> makeConst() {\n if (clist == null)\n clist = (list.isEmpty() ? emptylist : new ConstList<T>(list));\n return clist;\n }", "protected <ELEMENT> List<ELEMENT> newReferrerList() {\r\n return new ArrayList<ELEMENT>();\r\n }", "@RequestMapping(value = \"/cache\", method = RequestMethod.GET)\n public ResponseEntity<List<LocationEntity>> getCache(){\n ResponseEntity<List<LocationEntity>> responseEntity = null;\n\n // Get last 10 geocode lookups\n List<LocationEntity> location = geoLocationService.getLocationCache();\n\n if (location != null && location.size() > 0){\n responseEntity= new ResponseEntity<List<LocationEntity>>(location, HttpStatus.OK);\n }else{\n responseEntity= new ResponseEntity<List<LocationEntity>>(location, HttpStatus.NO_CONTENT);\n }\n\n\n return responseEntity;\n }", "protected abstract Collection<Cache> loadCaches();", "static List<Stock> getList2() {\n\t\treturn null;\n\t}", "public synchronized T get(int index) {\n\t\t\n\t\tObjectId id = mIds.get(index);\n\t\tObject lock = (id != null) ? mIdLocks.get(id) : new Object();\n\t\tT obj = mObjects.get(index);\n\t\t\n\t\t// If null was added to the list (so no id available for a null object) just return null\n\t\tif(id == null && obj == null) return null;\n\t\t// While we don't have the object yet, await for it\n\t\twhile(obj == null) {\n\t\t\t// If there is no id anymore to fetch (and no object) return null\n\t\t\tif(id == null) return null;\n\t\t\t// Wait on the lock for that object to fetch\n\t\t\tsynchronized(lock) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait(2000);\n\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\tLogger.getLogger(LazyList.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Get new id, lock and object for the index.\n\t\t\t// That should never return any other id then the call at the start of this method,\n\t\t\t// since all modification methods of this list are synchronized, we just call this\n\t\t\t// to make really sure, this loop won't result in a dead lock.\n\t\t\t//id = mIds.get(index);\n\t\t\t//lock = mIdLocks.get(id);\n\t\t\tobj = mObjects.get(index);\n\t\t}\n\t\t\n\t\treturn obj;\n\t\t\n\t}", "public ArrayList<String> get_list_data_from_local_DB(String agentID){\n\n // set url to query for Lists table in local DB\n String URL = \"content://app.admin.pressfit.provider/Lists\";\n // parse url\n Uri List_uri = Uri.parse(URL);\n // define arraylist object\n ArrayList<String> array_of_lists_local_DB = new ArrayList<>();\n\n // query on List name column get all list names from local db of list table\n Cursor MyList_cursor = getContentResolver().query(List_uri, new String[]{GlobalProvider.List_Name},\n GlobalProvider.List_Login_User_ID + \" = ? AND \" + GlobalProvider.List_deleted + \" = ?\",\n new String[]{agentID, \"0\"}, null);\n\n /* cursor will move to first object */\n if(MyList_cursor.moveToFirst()){\n do{\n // listData_obj = setValuesOfList_LocalDB(MyList_cursor)\n String list_name = MyList_cursor.getString(MyList_cursor.getColumnIndex(GlobalProvider.List_Name));\n // added into arraylist\n array_of_lists_local_DB.add(list_name);\n\n } while(MyList_cursor.moveToNext());\n }\n return array_of_lists_local_DB;\n }", "public List<Article> getList() {\n return list;\n }", "public List<GeneralItem> getList() {\n return stList;\n }", "public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);", "public ArrayList<TACardInfo> getCardList() {\n synchronized (cardInfoListLock) {\n ArrayList<TACardInfo> cardInfoList = new ArrayList<>();\n if (cardInfoListCache == null) {\n try {\n cardInfoListCache = getCardListFromTa();\n LogC.i(\"cardInfoListCache is null, refresh\", false);\n } catch (WalletTaException.WalletTaSystemErrorException e) {\n LogC.e(\"WalletTaManager get tacardList erro,errorCode=\" + e.getCode(), false);\n return null;\n }\n }\n if (cardInfoListCache != null) {\n if (cardInfoListCache.size() != 0) {\n Iterator<TACardInfo> it = cardInfoListCache.iterator();\n while (it.hasNext()) {\n cardInfoList.add(it.next().clone());\n }\n return cardInfoList;\n }\n }\n }\n }", "public List<E> clone();", "public static CatalogStructure getCache() {\n return CACHE.get();\n }", "protected List<Request> requestList() {\n return Collections.unmodifiableList(mRequestList);\n }", "@SuppressWarnings(\"unchecked\" )\n public static <T> ConstList<T> make() {\n return emptylist;\n }", "private PotCollection loadPotList(){\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n int sizeOfPotList = preferences.getInt(SHAREDPREF_ITEM_POTLIST_SIZE, 0);\n for(int i = 0; i<sizeOfPotList; i++){\n Log.i(\"serving calculator\", \"once\");\n String potName = preferences.getString(SHAREDPREF_ITEM_POTLIST_NAME+i, \"N\");\n int potWeight = preferences.getInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, 0);\n Pot tempPot = new Pot(potName, potWeight);\n potList.addPot(tempPot);\n }\n return potList;\n }", "protected <ELEMENT> List<ELEMENT> newReferrerList() {\n return new ArrayList<ELEMENT>();\n }", "public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\n }", "@Override\n public void refreshList() {\n }", "public PacketLinkedList<SimplePacket> getListBuffer() {\n\t\treturn list;\n\t}", "List<CacheHealth> getCacheHealth();", "abstract void makeList();", "private ArrayList<Read> makeReadList() {\r\n\t\tArrayList<Read> rlist=makeReadList2();\r\n\t\tif(mateStream!=null){\r\n\t\t\tListNum<Read> matesln=mateStream.nextList();\r\n\t\t\tArrayList<Read> mates=matesln.list;\r\n\t\t\tif(rlist!=null && mates!=null){\r\n\t\t\t\tint max=Tools.min(rlist.size(), mates.size());\r\n\t\t\t\tfor(int i=0; i<max; i++){\r\n\t\t\t\t\tRead a=rlist.get(i);\r\n\t\t\t\t\tRead b=mates.get(i);\r\n\t\t\t\t\ta.mate=b;\r\n\t\t\t\t\tb.mate=a;\r\n\t\t\t\t\tb.setPairnum(1);\r\n\t\t\t\t}\r\n\t\t\t\tmates.clear();\r\n\t\t\t\tmateStream.returnList(matesln, false);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rlist;\r\n\t}", "Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }", "public List getList(String name) {\n if (lists.contains(name)) return lists.get(name);\n throw new IllegalArgumentException(\"The list with this id isn't contained in the ListSet\");\n }", "@Override\n public void addCacheList(ArrayList<String> cacheList) {\n scanList = cacheList;\n }", "public ArrayList<User> getUserList () {\n return (ArrayList<User>)Users.clone();\n \n }", "java.util.List<online_info>\n getInfoList();", "public UserList list();", "Object get()\n\t{\n\t\tif (length == 0 ) \n\t\t{\t\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on empty List\");\n\t\t}\n\t\tif (cursor == null\t) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on cursor that is off the list\");\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn cursor.data;\n\t\t}\n\t}", "private void refreshList() {\n\t\t\t\tlist.clear();\n\t\t\t\tGetChildrenBuilder childrenBuilder = client.getChildren();\n\t\t\t\ttry {\n\t\t\t\t\tList<String> listdir = childrenBuilder.forPath(servicezoopath);\n\t\t\t\t\tfor (String string : listdir) {\n\t\t\t\t\t\tbyte[] data = client.getData().forPath(servicezoopath + \"/\" + string);\n\t\t\t\t\t\tlist.add(new String(data));\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic List<News> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<News> list = (List<News>)getCurrentSession().createQuery(\"FROM News\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}", "public void populateUserListFromDatabase() {\n\t\tList<com.expensetracker.model.User> modelUserList = null;\n\t\tLogger.logMessage(\"UserManager.populateUserListFromDatabase() : Populating user list cache..\");\n\t\ttry {\n\t\t\tmodelUserList = Service.getService().getUserList();\n\t\t\tList<User> list = ConvertUtil.modelToPojo(modelUserList);\n\t\t\tif (list != null) {\n\t\t\t\tuserList.addAll(list);\n\t\t\t\tpopulateUserMap(list);\n\t\t\t} else {\n\t\t\t\tLogger.logMessage(\"UserManager.populateUserListFromDatabase() : No data received from database for populating userlist cache\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLogger.logMessage(\"UserManager.populateUserListFromDatabase() : Error in getting list of users from database for populating userlist cache \"\n\t\t\t\t\t+ e);\n\t\t}\n\t}" ]
[ "0.72654754", "0.67558277", "0.66619956", "0.6639087", "0.6636883", "0.66058695", "0.654355", "0.6472876", "0.64653075", "0.64573", "0.644034", "0.6364646", "0.63608086", "0.6243996", "0.6213326", "0.6196993", "0.6194057", "0.61888885", "0.61349994", "0.6111644", "0.6082102", "0.6051905", "0.6032549", "0.601761", "0.5978598", "0.5973054", "0.5953434", "0.5941125", "0.59381354", "0.59315735", "0.5927679", "0.5896171", "0.5894581", "0.58945674", "0.58916926", "0.5890615", "0.587252", "0.5846891", "0.58399844", "0.58347046", "0.5832544", "0.5816405", "0.5815266", "0.5790106", "0.57810473", "0.57786673", "0.57717633", "0.5739442", "0.5737389", "0.57217115", "0.5714989", "0.5703351", "0.5687967", "0.56822413", "0.5666913", "0.5660141", "0.5647776", "0.5645444", "0.56423956", "0.5635562", "0.5631523", "0.56280136", "0.56269914", "0.56268036", "0.5623386", "0.561568", "0.5610766", "0.56007504", "0.55980074", "0.5587582", "0.5584029", "0.5580531", "0.5576318", "0.5569209", "0.55611145", "0.55567735", "0.5554143", "0.5546006", "0.5539013", "0.55254406", "0.5524128", "0.5523339", "0.55208504", "0.55145353", "0.5512314", "0.55082196", "0.55061084", "0.5504844", "0.5496989", "0.5492111", "0.5489664", "0.54880154", "0.54839844", "0.546719", "0.54639024", "0.54636186", "0.5458346", "0.5456923", "0.5454408", "0.5451427" ]
0.5772498
46
Add a new list to the pool. The list may not be read or modified after this call.
public void add(List<?> list) { list.clear(); pool.offer(list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void addList(int[] list) {\r\n listsOfSorted.offer(list);\r\n }", "public static void addList() {\n\t}", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "public void addNewList(GroceryList list) {\n String key = listsRef.push().getKey();\n Map<String, Object> postValues = list.toMap();\n\n // TODO: lastUpdated\n\n // Set the values\n listsRef.child(key).setValue(postValues);\n }", "public TempList<T> add(T elem) {\n chk();\n list.add(elem);\n return this;\n }", "public void addList()\n\t{\n\t\tdlm_patch.clear();\n\t\tif (pf.getAllPatch_DB() != null)\n\t\t{\n\t\t\tfor ( Patch p : pf.getAllPatch_DB() )\n\t\t\t\tdlm_patch.addElement(p);\n\t\t}\n\t}", "private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}", "public void addPart(ArrayList<Part> pList) {\n\t\tpartsCollected.addAll(pList);\n\t}", "public void AddList( TColStd_HSequenceOfTransient list) {\n OCCwrapJavaJNI.Interface_EntityIterator_AddList(swigCPtr, this, TColStd_HSequenceOfTransient.getCPtr(list) , list);\n }", "public void appendInPlace (List l) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = l.myHead;\n\t\t\tmySize = l.mySize;\n\t\t\tmyTail = l.myTail;\n\t\t}\n\t\telse if (l.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = l.myHead;\n\t\t\tmyTail = l.myTail;\n\t\t\tmySize += l.mySize;\n\t\t}\n\t}", "public void addSecretList(SecretInfo secretList) {\n if (this.secretList == null) {\n this.secretList = new ArrayList<>();\n }\n this.secretList.add(secretList);\n }", "@Override\r\n\tpublic void fill(ArrayList<T> list) {\r\n\t\t//Copy of list\r\n\t\tArrayList<T> copyData = list;\r\n\t\t// Add copy of list to the Stack\r\n\t\tfor (T e: copyData) {\r\n\t\t\tdata.add(e);\r\n\t\t}\r\n\t}", "public void addList(ShoppingList list) {\n\n lists.add(0, list);\n list.save();\n notifyItemInserted(0);\n\n }", "public boolean add(List<T> e) {\n\t\treturn lists.add(e);\n\t}", "abstract protected Object newList( int capacity );", "public void addList(String name){\n }", "public static <T> ConstList<T> append(List<T> list, T element) {\n TempList<T> ans = new TempList<T>(list.size() + 1);\n ans.addAll(list).add(element);\n return ans.makeConst();\n }", "public void add(List list) throws PropException {\n if (!contains(list.obtainTitle())) lists.put(list.obtainTitle(), list);\n else throw new PropException(ErrorString.EXISTING_LIST);\n }", "@Override\n public void addParamList(ParamList paramList) {\n this.paramList = paramList;\n }", "public void addALl(List<T> list){\n for(int i = 0; i < list.size(); i++){\n add(list.get(i));\n }\n }", "public void addPool(ArrayList al) {\n\tsynchronized (al) {\n\t for (int i = 0; i < al.size(); i++) {\n\t\taddProcessor((TaskProcessorHandle)al.get(i));\n\t }\n\t}\n }", "public FplList append(FplList list) {\n\t\tif (list == null || list.isEmpty()) {\n\t\t\treturn this;\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\treturn list;\n\t\t}\n\t\tint totalSize = size() + list.size();\n\t\tint totalBuckets = shape.length + list.shape.length;\n\n\t\tFplValue[] lastBucket = shape[shape.length - 1];\n\t\tFplValue[] listFirstBucket = list.shape[0];\n\n\t\tif (lastBucket.length + listFirstBucket.length <= BASE_SIZE) {\n\t\t\tif (needsReshaping(totalBuckets - 1, totalSize)) {\n\t\t\t\treturn new FplList(mergedShape(shape, list.shape, totalSize));\n\t\t\t} else {\n\t\t\t\tFplValue[][] buckets = copyOf(shape, shape.length + list.shape.length - 1);\n\t\t\t\tFplValue[] bucket = copyOf(lastBucket, lastBucket.length + listFirstBucket.length);\n\t\t\t\tarraycopy(listFirstBucket, 0, bucket, lastBucket.length, listFirstBucket.length);\n\t\t\t\tbuckets[shape.length - 1] = bucket;\n\t\t\t\tarraycopy(list.shape, 1, buckets, shape.length, list.shape.length - 1);\n\t\t\t\treturn new FplList(buckets);\n\t\t\t}\n\t\t} else {\n\t\t\tif (needsReshaping(totalBuckets, totalSize)) {\n\t\t\t\treturn new FplList(mergedShape(shape, list.shape, totalSize));\n\t\t\t} else {\n\t\t\t\tFplValue[][] buckets = copyOf(shape, shape.length + list.shape.length);\n\t\t\t\tarraycopy(list.shape, 0, buckets, shape.length, list.shape.length);\n\t\t\t\treturn new FplList(buckets);\n\t\t\t}\n\t\t}\n\t}", "public void itemListAdd(ArrayList<String> list) {\n\t\titemList.addAll(list);\n\t}", "public void addAll(List<Post> newList) {\n posts.addAll(newList);\n notifyDataSetChanged();\n }", "public IList<T> append(IList<T> l) {\n return l;\n }", "IList<T> append(IList<T> l);", "public boolean addList(ArrayList<Npcinfo> NpcinfoList);", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "@Override\n public void batchAdd(List<CmdbIpConfPoolEntity> data) {\n confPoolMapper.batchAdd(data);\n }", "public void addItem(ArrayList<HashMap<String, String>> new_list) {\n list = new_list;\n notifyDataSetChanged();\n }", "public void addValues(List newValues) {\n synchronized (values) {\n values.addAll(newValues);\n }\n }", "public void add(E e) {\n if (n == list.length) { grow(); }\n list[n++] = e;\n }", "synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }", "private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }", "public void add(){\n list.add(smart);\n list.add(mega);\n list.add(smartMini);\n list.add(absolute);\n\n clientsList.add(client1);\n clientsList.add(client2);\n clientsList.add(client3);\n clientsList.add(client4);\n clientsList.add(client5);\n }", "public void addBlockList(int n) {\n BlockList.add(n);\r\n }", "public void offer(int num){\n if(tail == fixedSize - 1) {\n List<Object> newList = new ArrayList<>();\n newList.add(num);\n //save next new list at tail\n tailList.add(newList);\n tailList = (List<Object>) tailList.get(tail);\n tail = 0;\n }else{ //not in last index,then directly add it;\n tailList.add(num);\n }\n count++;\n tail++;\n }", "public void addCsgList() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"csg-list\",\n null,\n childrenNames());\n }", "public void add(Object o){\n list.add(o);\n }", "@Override\n public void addCacheList(ArrayList<String> cacheList) {\n scanList = cacheList;\n }", "@RequestMapping(value = \"/{listName}/add\", method = RequestMethod.POST)\r\n\tpublic String addList(\r\n\t\t\t@PathVariable String listName\r\n\t\t\t){\r\n\t\tClearList clearList = new ClearList();\r\n\t\tclearList.setListName(listName);\r\n\t\tclearList.setActive(false);\r\n\t\tclearListRepository.save(clearList);\r\n\t\t\r\n\t\treturn \"A Clearlist has been successfully created\";\r\n\t}", "public void add(E e) {\n resize();\n list[size] = e;\n size++;\n }", "@Override\n\tpublic void add(L value) {\n\t\tif(value==null) throw new NullPointerException();\n\t\tListNode<L> newNode=new ListNode<>(value);\n newNode.storage=value;\n newNode.next=null;\n newNode.previous=last;\n if(last==null){\n first=newNode;\n }else {\n last.next=newNode;\n }\n last=newNode;\n\t\tthis.size++;\n\t\tthis.modificationCount++;\n\t}", "@Test\n\tpublic void testAddList() {\n\t\tarrayList = new ArrayListImplementation<String>();\n\t\tarrayList.addItem(\"1\");\n\t\tarrayList.addItem(\"2\");\n\t\tArrayListImplementation<String> tempArrayList = new ArrayListImplementation<String>();\n\t\ttempArrayList.addItem(\"4\");\n\t\ttempArrayList.addItem(\"5\");\n\t\ttempArrayList.addItem(\"6\");\n\t\tint sizeBeforeListAdded = arrayList.getActualSize();\n\t\tarrayList.addList(tempArrayList);\n\t\tint sizeAfterListAdded = arrayList.getActualSize();\n\t\tassertNotEquals(sizeBeforeListAdded, sizeAfterListAdded);\n\t}", "public void addListObject(List<Student> list2)\r\n\t{\r\n\t\tlist2.add(s7);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"after adding\");\r\n\t\tfor(Student e:list2)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "public ListPool(int capacity) {\n pool = new ArrayBlockingQueue<>(capacity);\n }", "public void add(T item) {\n if (nextindex >= list.length) {\n resize();\n }\n list[nextindex] = item;\n nextindex++;\n }", "void add(int list) {\n\t\t\n\t\t// check if element can be added to the queue\n\t\tif (!canPush)\n\t\t\tthrow new IllegalStateException(\"Queue capacity is excided!\");\n\t\t\n\t\t// add element into the cell push-pointer points to and shift pointer\n\t\tqueue[qPush++] = list;\n\t\t\n\t\t// set poll-flag, cuz there's now at least one element in the queue\n\t\tcanPoll = true;\n\t\t\n\t\t/*\n\t\t * If poll pointer went beyond array bounds - return it to the first position\n\t\t */\n\t\t\n\t\tif (qPush == queue.length)\n\t\t\tqPush = 0;\n\t\t\n\t\t/*\n\t\t * If push pointer now points to the poll pointer - then queue is full\n\t\t * Set flag\n\t\t */\n\t\t\n\t\tif (qPush == qPoll)\n\t\t\tcanPush = false;\n\t}", "ManagePool(List DefaultList,List AllocList)\r\n\t{\r\n\t\tthis.DefaultList = DefaultList;\r\n\t\tthis.AllocList = AllocList;\r\n\t}", "public void insertItem(LinkedList<DisplayPoolItem> fList) {\n\t\t\tmFragLock.lock();\r\n\t\t\tfor (DisplayPoolItem f2 : fList) {\r\n\t\t\t\tmDispItems.add(f2);\r\n\t\t\t}\r\n\t\t\tmFragLock.unlock();\r\n\t\t}", "public void addToTaskList(Task task) {\n taskList.add(task);\n }", "private ArrayList<Node<T>> addAll(Node<T> current, ArrayList<Node<T>> list) {\n\t\tlist.add(current);\n\t\tif (current.getLeft() != null) {\n\t\t\tlist = addAll(current.getLeft(), list);\n\t\t}\n\t\t\n\t\tif (current.getRight() != null) {\n\t\t\tlist = addAll(current.getRight(), list);\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }", "public void addValue(String listValue) {\n\t\tthis.listValues.add(listValue);\n\t}", "public void add(E a)\n {\n if (size == data.length) { // if the list is at capacity...\n // create a new, larger array\n E[] newData = (E[])(new Object[2*data.length]);\n \n // copy over all of the old elements\n for (int i = 0; i < size; i++)\n newData[i] = data[i];\n \n // redirect the old data reference\n data = newData;\n }\n\n // insert the new element\n data[size] = a;\n size++;\n }", "protected <T> ArrayList<T> addToList(ArrayList<T> l, T value)\n {\n if (l == null) {\n l = new ArrayList<T>();\n }\n l.add(value);\n return l;\n }", "public void addAll(List<Comment> list) {\n comments.addAll(list);\n notifyDataSetChanged();\n }", "public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }", "public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\n }", "public void addNewPool(poolLocation pool) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getPoolLocationData(PooltableName,\n\t\t\t\tpool.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tPOOL_LIST.add(pool);\n\n\t\t\tlong RowIds = helper.insertPoolLocation(PooltableName,\n\t\t\t\t\tpool.getTitle(), pool.getDescription(),\n\t\t\t\t\tconvertToString(pool.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}", "public void add(List<SermCit> citList){\n //Add one by one\n for (SermCit x : citList){\n add(x);\n }\n }", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "@Override\n\tpublic void add(int n) {\n\t\tvalues[size] = n; //add value to the list\n\t\tsize++; //increment size\n\t\tif (size == values.length){ //if the list is full expand it\n\t\t\tresize();\n\t\t}\n\t}", "public static void testAdd(LinkedList list) {\n\t\tNode n1 = new Node(\"1\");\n\t\tNode n2 = new Node(\"2\");\n\t\tNode n3 = new Node(\"3\");\n\t\tNode n4 = new Node(\"4\");\n\t\t\n\t\t// add to empty list\n\t\tlist.add(n2);\n\t\t\n\t\t// add to end of list\n\t\tlist.add(n4);\n\t\t\n\t\t// add in the middle\n\t\tlist.add(n3);\n\t\t\n\t\t// add at the head\n\t\tlist.add(n1);\n\t\t\n\t\tlist.printForward();\n\t\tSystem.out.println(\"Size: \" + list.getSize());\n\t}", "public void addToList(E data){\n if(headNode==null){\n headNode=new Node<E>(data);\n currentNode=headNode;\n }\n else{\n currentNode.next=new Node<E>(data);\n currentNode=currentNode.next;\n }\n size++;\n }", "public MyArrayList() {\r\n\t\tthis.list=new Object[this.capacity];\r\n\t}", "void addAll(intList list) throws IllegalAccessException;", "public void add(ListNode newNode)\r\n {\r\n if (length == 0)\r\n {\r\n firstNode=newNode;\r\n }\r\n else\r\n {\r\n \tListNode currentNode;\r\n \tListNode previousNode = null;\r\n \tcurrentNode = firstNode;\r\n \t\r\n \twhile(currentNode!=null)\r\n \t{\r\n \t\tpreviousNode = currentNode;\r\n \t\tcurrentNode = currentNode.next;\r\n \t}\r\n currentNode = newNode;\r\n previousNode.next = currentNode;\r\n }\r\n length++;\r\n }", "public <T extends E> void add(EntityList<T> entityList)\r\n\t{\r\n\t\tadd( entityList.entities, 0, entityList.size );\r\n\t}", "public void add(String str) {\r\n list.add(str);\r\n }", "public void addNewData(List<PublicPollResponseModel.Data> data) {\n //remove footer view\n this.removeFooterView(footer);\n //Add all data into the adapter\n adapter.addAll(data);\n //Notifies the attached observers that the underlying\n // data has been changed and any View reflecting the data set should refresh itself.\n adapter.notifyDataSetChanged();\n isLoading = false;\n }", "public void cbListAddElement() {\n cbWorker.clear();\n cbWorker.add(cbJ);\n cbWorker.add(cbK);\n cbWorker.add(cbM);\n cbWorker.add(cbP);\n cbWorker.add(cbA);\n cbWorker.add(cbS);\n }", "public void add(T data) {\n\t\tListNode<T> newTail = new ListNode<T>(data, null);\n\t\tif (empty()) {\n\t\t\tthis.head = newTail;\n\t\t\tthis.size++;\n\t\t} else {\n\t\t\tListNode<T> currentTail = goToIndex(this.size - 1);\n\t\t\tcurrentTail.setNext(newTail);\n\t\t\tthis.size++;\n\t\t}\n\t}", "@Override\n public void add(T newItem) {\n LinkedElement<T> tmpElement = new LinkedElement<>(newItem);\n\n if (firstElement == null) {\n firstElement = tmpElement;\n size = 1;\n } else {\n LinkedElement<T> currentElement = firstElement;\n while (currentElement.next != null) {\n currentElement = currentElement.next;\n }\n // currentElement is the last element in the list, now. Meaning that currentElement.next is null.\n currentElement.next = tmpElement; // These two are pointing at each other now.\n tmpElement.prev = currentElement;\n size++;\n }\n }", "private ListNode add(ListNode current, T datum) {\n\t\tif (current == null) {\n\t\t\tsize++;\n\t\t\treturn new ListNode(datum);\n\t\t}\n\t\telse {\n\t\t\tcurrent.next = add(current.next, datum);\n\t\t\treturn current;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }", "public gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.GmlLatLonListDocument.GmlLatLonList addNewGmlLatLonList()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.GmlLatLonListDocument.GmlLatLonList target = null;\n target = (gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.GmlLatLonListDocument.GmlLatLonList)get_store().add_element_user(GMLLATLONLIST$0);\n return target;\n }\n }", "public void addFriendList(FriendList list);", "public void updateList()\r\n\t{\r\n\t\tclientQueue.offer(name);\r\n\t}", "public void add(E element) {\n\n\t\tif (size == capacity) {\n\t\t\tgrowArray();\n\t\t}\n\n\t\tlist[size] = element;\n\t\tsize++;\n\t}", "public void addInventoryList(ArrayList<? extends Item> toAddList){\n\t\tinventoryList.addAll(toAddList);\n\t}", "public void add(List<Element> addList, Fitness score) {\r\n Validate.nonNull(addList, \"list\");\r\n\r\n if (numElements >= capacity) {\r\n assert numElements == capacity : numElements;\r\n if (worstScore().compareTo(score) >= 0) {\r\n return;\r\n }\r\n }\r\n\r\n int addCount = addList.size();\r\n List<Element> list = elementsByFitness.get(score);\r\n if (list == null) {\r\n list = new ArrayList<>(addCount);\r\n List<Element> previousList = elementsByFitness.put(score, list);\r\n assert previousList == null;\r\n } else {\r\n assert !list.isEmpty();\r\n }\r\n\r\n for (Element element : addList) {\r\n if (!list.contains(element)) {\r\n list.add(element);\r\n ++numElements;\r\n }\r\n }\r\n if (list.isEmpty()) {\r\n list = elementsByFitness.remove(score);\r\n assert list != null;\r\n }\r\n cull(capacity);\r\n }", "public void addTaskList(TaskList taskList) {\n\t\tMessage msg=new Message(null, null, taskList);\n\t\ttry {\n\t\t\tchannel.send(msg);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t//Runtime exception with info for use in debugging\n\t\t\tthrow new RuntimeException(ex.getMessage());\n\t\t}\n\t}", "public void addLobby(Lobby lobby) {\n rrwl_lobbylist.writeLock().lock();\n try {\n lobbyList.add(lobby);\n } finally {\n rrwl_lobbylist.writeLock().unlock();\n }\n }", "void reserveLists(int listCount) {\n\t\tm_lists.setCapacity(listCount);\n\t}", "@SuppressWarnings (\"unchecked\") public void addAll(ItemList list){\n items.addAll(list.items);\n }", "@Override\n\tpublic void fill(ArrayList<T> list) throws StackOverflowException {\n\t\t//Iterate through the ArrayList. Copy each item, and add the copy to the Stack\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\tT newItem = list.get(i);\n\t\t\tthis.push(newItem);\n\t\t}\n\t\t\n\t}", "public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }", "IList<T> add(T t);", "void addList(ShoppingList _ShoppingList);", "private static void testAdd(ArrayList list, int[] content) {\n System.out.print(\"Adding to the list: \");\n for (int index = 0; index < content[index]; index++) {\n list.addToEnd(content);\n } // end for\n System.out.println();\n displayList(list);\n }", "public void addToFreeList(V value) {\n this.mFreeList.add(value);\n }", "public void addAll(List<Comment> list) {\n mComments.addAll(list);\n notifyDataSetChanged();\n }", "public void addValue(List<Integer> list, int number) {\n list.add(number);\n System.out.println(list);\n }", "void addTasks(List<Task> tasks);", "public void add(Node newNode) {\r\n\t\tif (this.size() == 0) {\r\n\t\t\thead = newNode;\r\n\t\t\ttail = newNode;\r\n\t\t}else {\r\n\t\t\ttail.setNext(newNode); \r\n\t\t\ttail = newNode;\r\n\t\t}\r\n\t\tthis.setSize(this.size() + 1);\r\n\t}" ]
[ "0.65153867", "0.65004194", "0.60981727", "0.6057204", "0.59365165", "0.5903686", "0.58843255", "0.5842094", "0.58385164", "0.5810257", "0.5774791", "0.5770001", "0.5751229", "0.5733232", "0.5691293", "0.5688095", "0.5660911", "0.5657817", "0.5635888", "0.56199515", "0.5594111", "0.55756074", "0.5561053", "0.55583507", "0.55536216", "0.5530329", "0.55207723", "0.55079365", "0.55047053", "0.5474476", "0.5468031", "0.5466177", "0.54513055", "0.54026514", "0.53792965", "0.53752816", "0.53564787", "0.5342702", "0.53414476", "0.5336094", "0.5325069", "0.53236675", "0.5320167", "0.5319058", "0.5305129", "0.5302608", "0.5296896", "0.52964747", "0.52939844", "0.5293463", "0.52902913", "0.5285388", "0.52759504", "0.5264529", "0.5264529", "0.5264529", "0.5264529", "0.52404416", "0.52376264", "0.52326447", "0.5225986", "0.5220251", "0.52198434", "0.520841", "0.5208131", "0.52020854", "0.51942796", "0.5176983", "0.5175615", "0.51739883", "0.51660824", "0.5161692", "0.515679", "0.51527035", "0.51414084", "0.51388294", "0.5131078", "0.5123078", "0.5119765", "0.5114821", "0.5114285", "0.51010257", "0.5098386", "0.50944936", "0.5090509", "0.50861645", "0.50790495", "0.507711", "0.5073879", "0.5073711", "0.5059046", "0.50578505", "0.5054498", "0.5051309", "0.5048839", "0.504094", "0.5032978", "0.5030802", "0.50253403", "0.50081336" ]
0.7845587
0
Remove all objects from the pool.
public void clear() { pool.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "public void drain() {\n\t\tsynchronized (list) {\n\t\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\t\tPooled<T> pt = list.remove();\n\t\t\t\tcreator.destroy(pt.content);\n\t\t\t\tpt.logTarget.log(\"Pool drained \", creator.toString());\n\t\t\t}\n\t\t\tcount = spares = 0;\n\t\t}\n\n\t}", "public void cerrarPool() {\n if (pool != null) {\n pool.shutdown();\n }\n }", "public static void clearPool() throws SQLException {\n\t\tfor (Connection c : instance.connectionPool) {\n\t\t\tc.close();\n\t\t}\n\t\tinstance.connectionPool.clear();\n\t}", "public void shutDown() {\n collector.removePool(this);\n factory.poolClosing(this);\n\n // close all objects\n synchronized (objects) {\n for (Iterator it = objects.values().iterator(); it.hasNext();) {\n ObjectRecord rec = (ObjectRecord) it.next();\n if (null != rec) {\n if (rec.isInUse())\n factory.returnObject(rec.getClientObject());\n factory.deleteObject(rec.getObject());\n rec.close();\n }\n }\n objects.clear();\n deadObjects.clear();\n }//end of synch\n\n factory = null;\n poolName = null;\n initialized = false;\n }", "private void releaseObjects() {\n if (fPermStorage != null) {\n Iterator<IJavaObject> iterator = fPermStorage.iterator();\n while (iterator.hasNext()) {\n IJavaObject object = iterator.next();\n try {\n object.enableCollection();\n } catch (CoreException e) {\n if ((e.getStatus().getException() instanceof VMDisconnectedException)) {\n break;\n }\n JDIDebugPlugin.log(e);\n }\n }\n fPermStorage = null;\n }\n }", "public synchronized void emptyPool(){\n // Iterate over the entire pool closing the JDBC connections\n for(int x=0; x<pool.size();x++){\n PooledConnection pcon = (PooledConnection)pool.elementAt(x);\n //If the PooledConnection is not in use, close it.\n if(pcon.inUse() == false){\n pcon.close();\n }\n else{\n // If it's still in use, sleep 30 secs and force close\n try{\n java.lang.Thread.sleep(30000);\n pcon.close();\n }catch(InterruptedException ie){\n System.err.println(ie.getMessage() + \" in ConnectionPool.emptyPool()\");\n }\n }\n }\n }", "public void dispose()\n {\n while( m_count > 0 )\n {\n int i = m_count - 1;\n try\n {\n m_factory.decommission( m_pool[ i ] );\n }\n catch( Exception e )\n {\n // To be backwards compatible, we have to support the logger having not been set.\n if( ( getLogger() != null ) && ( getLogger().isDebugEnabled() ) )\n {\n getLogger().debug( \"Error decommissioning object\", e );\n }\n }\n m_pool[ i ] = null;\n m_count--;\n }\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void freeAll()\n\t\t{\n\t\t\ts_cGameInstance = null; \n\t\t}", "public void purge() {\n\t\tIterator<T> it = iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t}\n\t}", "public void clearAll();", "public void clearAll();", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "public static void closePool(){\n\t\t\n\t\t// TODO signal to kill all pool.\n\t\t\n\t}", "void clearInstances();", "public void killAll() {\n distributors.forEach(Person::kill);\n distributors = new ArrayList<>();\n }", "public void releaseAll() {\n for (T p : this.memoryQueue) {\n p = this.allocator.deallocate(p);\n }\n\n System.gc();\n }", "public void cleanToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"CLEAN\",null));\n\t\t}\n\t}", "public void destroyForAll() {\n super.destroyForAll();\n }", "public void deleteAll() {\n tasks = new ArrayList<>();\n }", "protected abstract void clearAll();", "void removeAll();", "void removeAll();", "void destroy() {\n \t\ttry {\r\n \t\t\tupKeep.stopRunning();\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \r\n \t\t// Kill all running processes.\r\n \t\tfor (MaximaProcess mp : pool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tpool.clear();\r\n \r\n \t\t// Kill all used processes.\r\n \t\tfor (MaximaProcess mp : usedPool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tusedPool.clear();\r\n \t}", "public static void clean() {\n keptObservers.put(new Object(), new ArrayList<Runnable>());\n }", "private void maintain() {\n SoftObject obj;\n int count = 0;\n\n while ((obj = (SoftObject)queue.poll()) != null) {\n count++;\n collection.remove(obj);\n }\n\n if (count != 0) {\n // some temporary debugging fluff\n System.err.println(\"vm reclaimed \" + count + \" objects\");\n }\n }", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}", "void unsetPoolRaces();", "public synchronized void unRegisterAll()\r\n {\r\n clearNameObjectMaps();\r\n }", "@Override\n public void cleanup() {\n log.trace(\"cleanup called\");\n long startTime = System.currentTimeMillis();\n\n long sortTime = System.currentTimeMillis();\n sort();\n sortTime = System.currentTimeMillis() - sortTime;\n\n long duplicateTime = System.currentTimeMillis();\n removeDuplicates();\n duplicateTime = System.currentTimeMillis() - duplicateTime;\n //noinspection DuplicateStringLiteralInspection\n log.debug(String.format(\n \"cleanup of %s finished for %d elements in %dms (%dms for sort, %dms for duplicate removal)\",\n poolName, size(), System.currentTimeMillis() - startTime, sortTime, duplicateTime));\n }", "public void cancelAll() {\n this.disposables.dispose();\n }", "public CardCollection destroyAllCards() ;", "public void cleanDeadThreads()\n {\n\t\tSystem.gc();\n }", "void clearAll();", "void clearAll();", "public void removeAll() {\n synchronized (mBitmapCache) {\n mBitmapCache.evictAll();\n }\n }", "public void deleteAll(){\r\n\t\thead = null;\r\n\t}", "public synchronized void removeAll() {\r\n\t\tif (trackedResources == null)\r\n\t\t\treturn;\r\n\t\tPair<IPath, IResourceChangeHandler>[] entries = (Pair<IPath, IResourceChangeHandler>[]) trackedResources.toArray(new Pair[trackedResources.size()]);\r\n\t\tfor (Pair<IPath, IResourceChangeHandler> entry : entries) {\r\n\t\t\tremoveResource(entry.first, entry.second);\r\n\t\t}\r\n\t}", "public void evictAll()\n {\n}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public void removeAll() {\n start = null;\n _size = 0;\n }", "private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void garbageCollectOrphans() {\r\n /**\r\n * The list of orphaned queues was assembled in the browser session \r\n * preceding the current one. At this point it is safe to get rid \r\n * of them; their windows must have long since being destroyed.\r\n */\r\n for (SeleneseQueue q : orphanedQueues) {\r\n q.endOfLife();\r\n }\r\n orphanedQueues.clear();\r\n }", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void destroyAll() {\n children.destroyAll();\n }", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public void clean(){\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\tlong lastTime=resourceStatus.getLastNotInUseTime();\n\t\t\t\t\t\tlong currentTime=System.currentTimeMillis();\n\t\t\t\t\t\tT resource=resourceStatus.getResource();\n\t\t\t\t\t\tif((currentTime-lastTime)>=this.resourceAliveTime){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdestroyResource(resource);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tlogger.error(Constants.Base.EXCEPTION, e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.resourcesStatus[index]=null;\n\t\t\t\t\t\t\tthis.currentSize--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "public static void removeAll() {\r\n\t\tfor (final Block block : new HashSet<>(instances_.keySet())) {\r\n\t\t\trevertBlock(block, Material.AIR);\r\n\t\t}\r\n\t\tfor (final TempBlock tempblock : REVERT_QUEUE) {\r\n\t\t\ttempblock.state.update(true, applyPhysics(tempblock.state.getType()));\r\n\t\t\tif (tempblock.revertTask != null) {\r\n\t\t\t\ttempblock.revertTask.run();\r\n\t\t\t}\r\n\t\t}\r\n\t\tREVERT_QUEUE.clear();\r\n\t}", "abstract public void removeAll();", "void purge();", "public void clearAll() {\n infectionsQueue.clear();\n populationQueue.clear();\n deathsQueue.clear();\n healsQueue.clear();\n }", "@Override\r\n public void processRemoveAll()\r\n {\r\n final ICacheEvent<String> cacheEvent =\r\n createICacheEvent(getCacheName(), \"all\", ICacheEventLogger.REMOVEALL_EVENT);\r\n try\r\n {\r\n reset();\r\n }\r\n finally\r\n {\r\n logICacheEvent(cacheEvent);\r\n }\r\n }", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }", "public void toss() {\n\t\t\tif (pool != null) {\n\t\t\t\tpool.creator.destroy(content);\n\t\t\t}\n\t\t\t// Don't allow finalize to put it back in.\n\t\t\tpool = null;\n\t\t}", "public void deleteAll() {\n new Thread(new DeleteAllRunnable(dao)).start();\n }", "@Override\r\n\tpublic void clear() {\r\n\t\tbuckets = new Object[numBuckets];\r\n\t\tfor (int i = 0; i < numBuckets; i++) {\r\n\t\t\tbuckets[i] = new Bucket();\r\n\t\t}\r\n\t}", "public void disposeResources()\n {\n for (Disposable disposable : this.disposableObjects) {\n disposable.dispose();\n }\n }", "public void clear() {\n while(taskList.size > 0)\n taskList.pop().removeSafely();\n }", "public void purgeQueue() {\r\n\t\tfDirtyRegions.clear();\r\n\t}", "void deleteAll();", "void deleteAll();", "void deleteAll();", "protected void deallocate() {\r\n\t\t// create a list of objects ordered by the time of last access\r\n\t\tList<ObjectStatus> timeOrderedObjects = getListOfObjectClassTimeSorted();\r\n\t\twhile (!sizeNormal() && timeOrderedObjects.size() > 0) {\r\n\t\t\t// take the least recently used object and remove it from the list\r\n\t\t\tString currentObjectID = timeOrderedObjects.remove(0).getID();\r\n\t\t\t// kill that object in the ever seen so\r\n\t\t\t// it would be treated as a dead object from now on\r\n\t\t\tkillObject(currentObjectID);\r\n\t\t\tdeallocate(currentObjectID);\r\n\r\n\t\t}\r\n\r\n\t}", "public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }", "public void clear()\n {\n this.buckets = new Object[this.capacity];\n this.size = 0;\n }", "final void cleanUp() {\r\n\t\t\tfor (Variable var : varRefs.keySet()) {\r\n\t\t\t\tvar.deleteObserver(this);\r\n\t\t\t}\r\n\t\t\tvarRefs.clear();\r\n\t\t}", "@Override\n public void cleanup() {\n for (String key : cache.keySet()) {\n CacheObject co = cache.get(key).get();\n if (co.isExpired()) {\n synchronized (co) {\n if (co.isExpired()) {\n cache.remove(key);\n queue.add(co);\n }\n }\n }\n }\n\n }", "public synchronized void clear() {\n collected.clear();\n }", "public void closePool() {\n threadPool.destroy();\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Candidate candidate : findAll()) {\n\t\t\tremove(candidate);\n\t\t}\n\t}", "public void removeAll()\n {\n this.front = null;\n this.rear = null;\n }", "public void clearEntities()\n\t{\n\t\twhile(!this.entities.isEmpty())\n\t\t{\n\t\t\t//Can use 0 index because we use swap with last anyway\n\t\t\tthis.removeEntity(0); //Important because onDespawn and to remove from hash grid\n\t\t}\n\t}", "private void cleanup() {\n\t\tTreeSet<CacheEntry> entries = new TreeSet<CacheEntry>(map.values());\n\t\tint i = region.getItemsToEvict();\n\t\tIterator<CacheEntry> it = entries.iterator();\n\t\twhile (it.hasNext() && i > 0) {\n\t\t\tremoveEntry(it.next());\n\t\t\ti--;\n\t\t}\n\t}", "public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}" ]
[ "0.6904411", "0.6895527", "0.6738769", "0.6726521", "0.66655797", "0.65874755", "0.6522811", "0.6517216", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.65098405", "0.64655536", "0.6450951", "0.6448624", "0.6448624", "0.64247996", "0.64223784", "0.6417637", "0.64144975", "0.64135987", "0.63768345", "0.63663036", "0.63587636", "0.6356391", "0.6336951", "0.6336951", "0.63218856", "0.63057506", "0.63016707", "0.63001764", "0.628065", "0.62300605", "0.6220888", "0.61992866", "0.61983085", "0.6196959", "0.61947966", "0.61947966", "0.6172082", "0.6170981", "0.61687815", "0.6166031", "0.6163658", "0.6163658", "0.6149597", "0.6141742", "0.6131563", "0.6129291", "0.61261976", "0.6112946", "0.6108294", "0.610036", "0.6085222", "0.6085222", "0.6085222", "0.6085222", "0.6085222", "0.6085222", "0.6085222", "0.6085222", "0.6085222", "0.6085222", "0.6082977", "0.6080886", "0.60711044", "0.6060575", "0.6056499", "0.60388076", "0.602779", "0.6026158", "0.6025418", "0.6018165", "0.60097665", "0.60069907", "0.6000549", "0.59728056", "0.59728056", "0.59728056", "0.5966233", "0.596573", "0.59652436", "0.5959595", "0.5941388", "0.5939491", "0.5936959", "0.59218025", "0.59192467", "0.59173775", "0.5915398", "0.5909889", "0.59085554" ]
0.79390794
0
Construct a new join message command.
public JoinMessageCommand(String channelId) { super(GuildMemberJoinEvent.class); this.displayName = "Join message"; this.description = "Sends a join message whenever a new user joins"; this.channelId = channelId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Join createJoin();", "public static Message createJoinEvent(long group_, int ifindex_)\r\n { return new Message(JOIN, 0, 0, group_, ifindex_); }", "public static Message createJoinEvent(long src_, long group_, int ifindex_)\r\n { return new Message(JOIN, src_, -1, group_, ifindex_); }", "public static Message createJoinEvent(long src_, long srcmask_, long group_, int ifindex_)\r\n { return new Message(JOIN, src_, srcmask_, group_, ifindex_); }", "private void doJoin(){\n\n final String aggHost = System.getProperty(\"aggregate.host.uri\", \"\");\n if (aggHost.isEmpty()) {\n command(\"/aggregate\", \"addBot\", Record.of()\n .slot(\"node\", nodeUri().toString())\n .slot(\"key\", System.getProperty(\"device.name\", \"\")));\n } else {\n command(aggHost, \"/aggregate\", \"addBot\", Record.of()\n .slot(\"host\", hostUriHack().toString()) // ws://192.168.0.151:9001\n .slot(\"node\", nodeUri().toString()) // /bot/6\n .slot(\"key\", System.getProperty(\"device.name\", \"\")));// RaspiBot6|192.168.0.151:9001\n }\n }", "private SCTeamJoin(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n\tpublic SocketIOSocket join(String room) {\n\t\tString roomName = namespace.getName() + \"/\" + room;\n\t\tthis.manager.onJoin(this.id, roomName);\n//\t\tthis.manager.store.publish('join', this.id, name);\n\t\treturn this;\n\t}", "private static EmbedBuilder JoinDM (){\n Color color = new Color(238,119,0);\n return new EmbedBuilder()\n .setColor(color)\n .setTitle(\"FyreBot\")\n .setDescription(\"Hey, I'm FyreBot! Thanks for inviting me to your server!\\n\\n\" +\n \"My prefix is `!` for example `!command`\\n\\n\" +\n \"To get started use `!help` to list all my commands!\\n\\n\" +\n \"I'm developed by `Drix#8197` so if you have any questions about me you should ask him.\");\n }", "private void join(String address)\n\t{\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tif (stdGroup.groupExist() == null)\n\t\t\t\t{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstdGroup.createPeerGroup(WatchDog.PIPEIDSTR);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tlog.severe(\"I cannot create standard chat group! Bye...\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (StdChatException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tstdGroup.join(address);\n\t\t\t} catch (StdChatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} catch (PeerGroupException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tlog.severe(\"I cannot create standard chat group! Bye...\");\n\t\t\tSystem.exit(0);\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}", "public final void mT__79() throws RecognitionException {\n try {\n int _type = T__79;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:79:7: ( 'join' )\n // InternalIotLuaXtext.g:79:9: 'join'\n {\n match(\"join\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override public String toString()\n{\n return \"JOIN\";\n}", "private void joinNewClient() {\r\n\t\t\tString clientName = _clientView.getUserName();\r\n\t\t\tif(clientName == null)\r\n\t\t\t\treturn;\r\n\t\t\t_clientModel.connectToServer();\r\n\t\t\t_clientModel.joinChat(clientName);\r\n\t\t}", "private void joinRoom(int roomId) {\n // Reset room state variables\n messages.clear();\n\n ChatAdapter adapter = new ChatAdapter(getApplicationContext(),messages);\n adapter.notifyDataSetChanged();\n\n chatRecyclerView.setAdapter(adapter);\n this.destinationPublicKey = null;\n\n // Emit room join request.\n this.socket.emit(\"join\", roomId, nickname);\n }", "Client join(Participant participant);", "private CSTeamJoin(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Test\n public void whenSendOtherMessageThenOracleDontUnderstand() {\n this.testClient(\n Joiner.on(LN).join(\n \"Hello, dear friend, I'm a oracle.\",\n \"\",\n \"I don't understand you.\",\n \"\",\n \"\"\n ),\n Joiner.on(LN).join(\n \"Hello oracle\",\n \"How're you?\",\n \"Exit\",\n \"\"\n )\n );\n }", "public final void mJOIN() throws RecognitionException {\n try {\n int _type = JOIN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:357:5: ( J O I N )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:357:7: J O I N\n {\n mJ(); \n mO(); \n mI(); \n mN(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "JoinCondition createJoinCondition();", "public void handleJoin()\n {\n String n = name.getText();\n if(n.isEmpty())\n {\n setStatus(\"Bitte Namen eingeben!\",Color.RED);\n return;\n }\n if(n.contains(\";\"))\n {\n setStatus(\"Bitte keine ; verwenden!\",Color.RED);\n return;\n }if(n.contains(\"'\"))\n {\n setStatus(\"Bitte keine ' verwenden!\",Color.RED);\n return;\n }if(n.contains(\",\"))\n {\n setStatus(\"Bitte keine , verwenden!\",Color.RED);\n return;\n }\n String ip = ip_text.getText();\n if(ip.isEmpty())\n {\n setStatus(\"Bitte IP eingeben!\",Color.RED);\n return;\n }\n if(ip.contains(\";\"))\n {\n setStatus(\"Bitte kiene ; verwenden!\",Color.RED);\n return;\n }if(ip.contains(\"|\"))\n {\n setStatus(\"Bitte kiene | verwenden!\",Color.RED);\n return;\n }if(ip.contains(\",\"))\n {\n setStatus(\"Bitte kiene , verwenden!\",Color.RED);\n return;\n }\n\n matchup.joinGame(n,color_snake.getValue(),color_head.getValue(),ip);\n }", "public void join() throws OperationFailedException\n {\n if (chatRoomSession == null && chatInvitation == null)\n { // the session is not set and we don't have a chatInvitatoin\n // so we try to join the chatRoom again\n ChatRoomManager chatRoomManager =\n provider.getAimConnection().getChatRoomManager();\n chatRoomSession = chatRoomManager.joinRoom(this.getName());\n chatRoomSession.addListener(new AdHocChatRoomSessionListenerImpl(\n this));\n }\n else if (chatInvitation != null)\n {\n chatRoomSession = chatInvitation.accept();\n chatRoomSession.addListener(new AdHocChatRoomSessionListenerImpl(\n this));\n }\n\n // We don't specify a reason.\n opSetMuc.fireLocalUserPresenceEvent(this,\n LocalUserAdHocChatRoomPresenceChangeEvent.LOCAL_USER_JOINED, null);\n }", "public static JoinRequest buildJoinRequest(Integer chatRoomID, Integer userID) {\n JoinRequest.Data joinRequestData = JoinRequest.Data.builder()\n .chatRoomID(chatRoomID)\n .userID(userID)\n .build();\n return JoinRequest.builder()\n .request(\"join\")\n .data(joinRequestData)\n .build();\n }", "public void join();", "public void joinChatRoom(IChatroom room) {\n\t\tview.append(\"Join ChatRoom\" + room.getName());\n\t\tcountRoom++;\n\t\tIChatroom chatroom = new Chatroom(\"Chatroom\" + countRoom);\n\t\tIChatServer chatServer = new ChatServer(user, chatroom);\n\t\ttry {\n\t\t\tview.append(\"Start joining..\");\n\t\t\tIChatServer chatStub = (IChatServer) UnicastRemoteObject.exportObject(chatServer,\n\t\t\t\t\tIChatServer.BOUND_PORT + countRoom);\n\t\t\tfor (IChatServer members : room.getChatServers()) {\n\t\t\t\tchatroom.addChatServer(members);\n\t\t\t\tmembers.joinChatroom(chatStub);\n\t\t\t}\n\t\t\tchatroom.addChatServer(chatStub);\n\t\t\tuser.addRoom(chatroom);\n\t\t\tregistry.rebind(IChatServer.BOUND_NAME + chatroom.hashCode(), chatStub);\n\t\t\tHashSet<IChatServer> proxyChatServers = new HashSet<IChatServer>();\n\t\t\tfor (IChatServer stub : chatroom.getChatServers()) {\n\t\t\t\tProxyIChatServer proxyChatServer = new ProxyIChatServer(stub);\n\t\t\t\tproxyChatServers.add(proxyChatServer);\n\t\t\t}\n\t\t\tIMain2MiniAdpt miniMVCAdpt = view.makeMini(chatServer, proxyChatServers);\n\t\t\tminiMVCAdpts.put(chatroom, miniMVCAdpt);\n\t\t\tcountRoom++;\n\t\t\tview.append(\"Success!\");\n\t\t\t//\t\t\tminiMVCAdpt.refresh();\n\t\t} catch (Exception e) {\n\t\t\tview.append(\"Fail to join the room!\");\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public final EObject ruleJoinOperator() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_7=null;\n EObject lv_parameters_2_0 = null;\n\n EObject lv_parameters_4_0 = null;\n\n EObject lv_parameters_6_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:548:28: ( (otherlv_0= 'join' otherlv_1= '(' ( (lv_parameters_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ',' ( (lv_parameters_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:549:1: (otherlv_0= 'join' otherlv_1= '(' ( (lv_parameters_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ',' ( (lv_parameters_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:549:1: (otherlv_0= 'join' otherlv_1= '(' ( (lv_parameters_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ',' ( (lv_parameters_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:549:3: otherlv_0= 'join' otherlv_1= '(' ( (lv_parameters_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ',' ( (lv_parameters_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')'\n {\n otherlv_0=(Token)match(input,20,FOLLOW_20_in_ruleJoinOperator1229); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getJoinOperatorAccess().getJoinKeyword_0());\n \n otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleJoinOperator1241); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getJoinOperatorAccess().getLeftParenthesisKeyword_1());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:557:1: ( (lv_parameters_2_0= ruleStreamOperatorParameter ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:558:1: (lv_parameters_2_0= ruleStreamOperatorParameter )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:558:1: (lv_parameters_2_0= ruleStreamOperatorParameter )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:559:3: lv_parameters_2_0= ruleStreamOperatorParameter\n {\n \n \t newCompositeNode(grammarAccess.getJoinOperatorAccess().getParametersStreamOperatorParameterParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleJoinOperator1262);\n lv_parameters_2_0=ruleStreamOperatorParameter();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getJoinOperatorRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"parameters\",\n \t\tlv_parameters_2_0, \n \t\t\"StreamOperatorParameter\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,16,FOLLOW_16_in_ruleJoinOperator1274); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getJoinOperatorAccess().getCommaKeyword_3());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:579:1: ( (lv_parameters_4_0= ruleStreamOperatorParameter ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:580:1: (lv_parameters_4_0= ruleStreamOperatorParameter )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:580:1: (lv_parameters_4_0= ruleStreamOperatorParameter )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:581:3: lv_parameters_4_0= ruleStreamOperatorParameter\n {\n \n \t newCompositeNode(grammarAccess.getJoinOperatorAccess().getParametersStreamOperatorParameterParserRuleCall_4_0()); \n \t \n pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleJoinOperator1295);\n lv_parameters_4_0=ruleStreamOperatorParameter();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getJoinOperatorRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"parameters\",\n \t\tlv_parameters_4_0, \n \t\t\"StreamOperatorParameter\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:597:2: (otherlv_5= ',' ( (lv_parameters_6_0= ruleStreamOperatorParameter ) ) )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==16) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:597:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleStreamOperatorParameter ) )\n \t {\n \t otherlv_5=(Token)match(input,16,FOLLOW_16_in_ruleJoinOperator1308); \n\n \t \tnewLeafNode(otherlv_5, grammarAccess.getJoinOperatorAccess().getCommaKeyword_5_0());\n \t \n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:601:1: ( (lv_parameters_6_0= ruleStreamOperatorParameter ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:602:1: (lv_parameters_6_0= ruleStreamOperatorParameter )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:602:1: (lv_parameters_6_0= ruleStreamOperatorParameter )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:603:3: lv_parameters_6_0= ruleStreamOperatorParameter\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getJoinOperatorAccess().getParametersStreamOperatorParameterParserRuleCall_5_1_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleJoinOperator1329);\n \t lv_parameters_6_0=ruleStreamOperatorParameter();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getJoinOperatorRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"parameters\",\n \t \t\tlv_parameters_6_0, \n \t \t\t\"StreamOperatorParameter\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n otherlv_7=(Token)match(input,22,FOLLOW_22_in_ruleJoinOperator1343); \n\n \tnewLeafNode(otherlv_7, grammarAccess.getJoinOperatorAccess().getRightParenthesisKeyword_6());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "void join(User user);", "@Override\r\n\tpublic void join() {\n\r\n\t}", "public static void privateMessage(Player fromPlayer, Player toPlayer, String[] message) {\n PlayerDataObject fromPDO = PlayerManager.getPlayerDataObject(fromPlayer);\n PlayerDataObject toPDO = PlayerManager.getPlayerDataObject(toPlayer);\n //target.sendMessage(ChatColor.DARK_GRAY + \"[\" + player.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n //player.sendMessage(ChatColor.DARK_GRAY + \"[You > \" + target.getDisplayName() + ChatColor.DARK_GRAY + \"]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n ComponentBuilder toComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[\" + fromPDO.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]\" + ChatColor.WHITE + \":\");\n toComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + fromPDO.getPlainNick()).create()));\n toComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + fromPDO.getName() + \" \"));\n toComp.append(\" \").reset();\n \n ComponentBuilder fromComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[You > \" + toPDO.getDisplayName() + ChatColor.DARK_GRAY + \"]\" + ChatColor.WHITE + \":\");\n fromComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + toPDO.getPlainNick()).create()));\n fromComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + toPDO.getName() + \" \"));\n fromComp.append(\" \").reset();\n \n TextComponent messageComp = new TextComponent();\n for (String part : message) {\n if (part.matches(\"^.*(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|].*$\")) {\n messageComp.addExtra(assembleURLComponent(part));\n messageComp.addExtra(\" \");\n } else {\n messageComp.addExtra(part + \" \");\n }\n }\n \n BaseComponent[] toMSG = toComp\n .append(messageComp)\n .create();\n BaseComponent[] fromMsg = fromComp\n .append(messageComp)\n .create();\n \n toPDO.sendMessageIf(toMSG);\n fromPDO.sendMessageIf(fromMsg);\n }", "public boolean isJoin()\r\n { return type == JOIN; }", "void joinJob(long jobId, long joinJobId);", "protected void onJoin(String channel, String sender, String login, String hostname) {}", "private SCTeamJoinResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public String constructMessage(String separator, String... keys) {\r\n\t\tString result = \"\";\r\n\t\tfor (String key:keys) {\r\n\t\t\tresult += this.getString(key) + separator;\r\n\t\t}\r\n\t\treturn result.substring(0, result.length()-separator.length()); // ignore last separator\r\n\t}", "@Override\n public void onClick(View v) {\n Log.d(TAG,\"JOINING ROOMID\" + chat_list.get(position).roomhash );\n mSocket.emit(\"CreateRoom\",chat_list.get(position).roomhash,chat_list.get(position).gcmID);\n Intent intent2 = new Intent(CTX, ChatInstance.class);\n intent2.putExtra(\"roomnum\", chat_list.get(position).roomhash);\n\n CTX.startActivity(intent2);\n\n }", "@Override\n\tpublic JsonElement join(JoinGameRequest JoinRequest) {\n\t\treturn null;\n\t}", "void join();", "public CreateJoinTableResponse createJoinTable(CreateJoinTableRequest request) throws GPUdbException {\n CreateJoinTableResponse actualResponse_ = new CreateJoinTableResponse();\n submitRequest(\"/create/jointable\", request, actualResponse_, false);\n return actualResponse_;\n }", "void joinBill(Bill toJoin);", "public GmsHeader(byte type, JoinRsp join_rsp) {\n this.type=type;\n this.join_rsp=join_rsp;\n }", "public MailCommand() {\n this(\"\");\n }", "public Message newMessage(String message, Object... params) {\n/* 61 */ return new SimpleMessage(message);\n/* */ }", "void joinRoom(int roomId) throws RoomNotFoundException, RoomPermissionException, IOException;", "public void setJoin(boolean canJoin) {\n this.canJoin = canJoin;\n }", "public void setDrawingJoin(JOIN join);", "public Message newMessage(String message, Object p0, Object p1) {\n/* 77 */ return new SimpleMessage(message);\n/* */ }", "public void destination(JoinData joinData){\n WelcomeData welcome = new WelcomeData();\n NodeInfo nodeInfo = joinData.joinInfo;\n welcome.joinTable = joinData.joinTable;\n System.out.println(\"WELCOME!\");\n send(welcome, nodeInfo);\n }", "@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\r\n public void onJoin(PlayerJoinEvent joinEvent) {\n Player player = joinEvent.getPlayer();\r\n\r\n String health = String.valueOf(player.getHealth());\r\n String ping = String.valueOf(player.getPing());\r\n\r\n if (config.getBoolean(\"JoinEnabled\")) {\r\n joinEvent.setJoinMessage(config.getString(\"JoinMessage\").\r\n replace(\"%player%\", player.getDisplayName()).\r\n replace(\"%server%\", getServer().getMotd()).\r\n replace(\"%ping%\", ping).\r\n replace(\"%health%\", health));\r\n\r\n // Checks if the user has put a join message or not\r\n if (config.getString(\"JoinMessage\").trim().isEmpty() || config.getString(\"JoinMessage\").equals(\"\")) {\r\n this.getLogger().info(\"Couldn't define any join message.\");\r\n }\r\n }\r\n else this.getLogger().info(\"Join messages are disabled.\");\r\n }", "void onJoin(String joinedNick);", "public IAction getJoinAction() {\n\t\t\n\t\treturn joinAction;\n\t}", "public void lateJoin(Message message) throws JMSException\n {\n throw new RuntimeException(\"Not implemented.\");\n /*\n // Extract the joining clients details from its join request message.\n TestClientDetails clientDetails = new TestClientDetails();\n clientDetails.clientName = message.getStringProperty(\"CLIENT_NAME\");\n clientDetails.privateControlKey = message.getStringProperty(\"CLIENT_PRIVATE_CONTROL_KEY\");\n\n // Register the joining client, but do block for confirmation as cannot do a synchronous receivers during this\n // method call, as it may have been called from an 'onMessage' method.\n assignReceiverRole(clientDetails, new Properties(), false);\n */\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }", "public boolean isJoin()\r\n {\n return false;\r\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }", "public void setJoined() {\n\t\tstate = State.JOINED;\n\t}", "private void uponReceiveJoin(JoinMessage msg, Host from, short sourceProto, int channelId) {\n logger.debug(\"Received \" + msg + \" from \" + from);\n sendMessage(new DisconnectMessage(newSelf()), from, TCPChannel.CONNECTION_IN);\n logger.debug(\"Sent DisconnectMessage to {}\", from);\n ForwardJoinMessage fjm = new ForwardJoinMessage(msg.getNode(), (short) (layerRW+1), maxLayers, maxNeighs);\n uponReceiveForwardJoin(fjm, myself, sourceProto, channelId);\n\n }", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n\n .match(WhoToGreet.class, wtg -> {\n // -> uses the internal state of wtg and modify this internal state (this.greeting)\n this.greeting = \"Who to greet? -> \" + wtg.who;\n\n }).match(Greet.class, x -> {\n // -> send a message to another actor (thread)\n printerActor.tell(new Printer.Greeting(greeting), getSelf());\n\n }).build();\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n/* 145 */ return new SimpleMessage(message);\n/* */ }", "private void joinChannel() {\n // Get the User Id for the current user\n final String userId = mUser.getUid();\n // User Id set to 0 for auto handling by Agora\n int uid = 0;\n // Token object\n RtcTokenBuilder token = new RtcTokenBuilder();\n // Time stamp used for length of token\n int timestamp = (int)(System.currentTimeMillis() / 1000 + expirationTimeInSeconds);\n\n String uId = Objects.requireNonNull(mAuth.getCurrentUser()).getUid();\n\n addCallToDb(uId); // Add current user to db for active calls\n\n try {\n // Create a token using Agora Sdk\n agora_token = token.buildTokenWithUid(getString(R.string.agora_app_id), getString(R.string.agora_app_certificate),\n channelName, uid, RtcTokenBuilder.Role.Role_Publisher, timestamp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n // Join the channel with the given token and channel name\n mRtcEngine.joinChannel(agora_token, channelName, \"\", uid);\n }", "public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }", "@Override\n\tpublic boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n\t\tif (sender instanceof ConsoleCommandSender){\n\t\t\t\n\t\t\tsender.sendMessage(\"§r ARRETE DE FAIRE LE CON\");\n\t\t\t\n\t\t}\n\t\t//si c'est un joueur on gère la commandes\n\t\telse if(sender instanceof Player){\n\t\t\t\n\t\t\tPlayer player = (Player) sender;\n\t\t\t\n\t\t\t//on verifie que la commende est la bonne\n\t\t\tif(cmd.getName().equalsIgnoreCase(\"castejoin\")){\n\t\t\t\t\n\t\t\t\t//on verifie que l'on a bien des arguments\n\t\t\t\tif(args.length != 0){\n\t\t\t\t\t\n\t\t\t\t\t//on recupère la caste en argument\n\t\t\t\t\tString caste = args[0];\n\t\t\t\t\t\n\t\t\t\t\t//le message que le joueur recevra s'il ne peut pas rejoindre la caste au cas ou il y aurais plusieur raison\n\t\t\t\t\tString message = \"\"; \n\t\t\t\t\t\n\t\t\t\t\t//si le joueur peut rejoindre une caste\n\t\t\t\t\tif( (message = playerCanJoinCaste(player,caste)).equals(\"ok\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tint indexCaste = -1;\n\t\t\t\t\t\t//si la caste existe elle nous renvoie l'id de la position dans la liste des Caste sinon -1\n\t\t\t\t\t\tif( (indexCaste = isCasteExiste(caste)) != -1){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on recupère la class caste qui correspond pour la mettre dans la hashmap\n\t\t\t\t\t\t\tCaste casteClass = Caste.castes.get(indexCaste);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on l'ajoute a la liste des joueur et des caste qui leur corespond\n\t\t\t\t\t\t\tMain.playerCaste.put(player, casteClass);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on ecrit le changement dans le fichier player .yml\n\t\t\t\t\t\t\tPlayerManager.createEntryYml(player);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//message de confirmation\n\t\t\t\t\t\t\tplayer.sendMessage(\"vous avez rejoins la caste : \"+caste);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//la caste demander n'existe pas\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tplayer.sendMessage(\"la caste : \"+caste+\" n'existe pas\");\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\t//le joueur ne peut pas pretendre a aller dans cette caste\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tplayer.sendMessage(message);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tplayer.sendMessage(\"/casteJoin <nom_de_la_caste>\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tsender.sendMessage(\"impossible Oo\");\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@Override\n public void messageArrived(IChatMessage msg) {\n try { \n if (msg.getText().matches(\"JOIN .*\")) {\n //Obtenir el canal on s'ha unit.\n IChatChannel channel = server.getChannel(conf.getChannelName()); \n //Crear el missatge per a donar la benvinguda al usuari\n IChatMessage message = new ChatMessage(user, channel,\n \"Benvingut, \" + msg.getText().substring(ChatChannel.JOIN.length() + 1));\n //Enviar el missatge\n channel.sendMessage(message);\n }\n } catch (RemoteException e) {\n \n }\n }", "public Joins()\n {\n joins = new ArrayList<Join>();\n }", "private void UserJoinChannel(ClientData d)\n\t{\n\t\tApplicationManager.textChat.writeLog(d.ClientName + \" Join to \" + currentChannel.ChannelName);\n\t\tSendMessage(null, MessageType.channelInfo);\n\n\t}", "public static EmbedBuilder embedBuilder(String command, MessageCreateEvent event){\n return new EmbedBuilder().setTitle(command).setAuthor(event.getMessageAuthor().getName(), \"\", event.getMessageAuthor().getAvatar());\r\n }", "@Override\n public void onTombstoneLinkClicked(String roomId, String senderId) {\n showInitLoading();\n\n // Extract the server name\n String serverName = MXPatterns.extractServerNameFromId(senderId);\n\n List<String> viaServers = null;\n\n if (serverName != null) {\n viaServers = Collections.singletonList(serverName);\n }\n\n mSession.joinRoom(roomId, viaServers, new ApiCallback<String>() {\n @Override\n public void onNetworkError(Exception e) {\n hideInitLoading();\n Toast.makeText(getActivity(), e.getLocalizedMessage(), Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onMatrixError(MatrixError e) {\n hideInitLoading();\n Toast.makeText(getActivity(), e.getLocalizedMessage(), Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onUnexpectedError(Exception e) {\n hideInitLoading();\n Toast.makeText(getActivity(), e.getLocalizedMessage(), Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onSuccess(String info) {\n hideInitLoading();\n\n // Open the room\n if (isAdded()) {\n Intent intent = new Intent(getActivity(), VectorRoomActivity.class);\n intent.putExtra(VectorRoomActivity.EXTRA_ROOM_ID, info);\n intent.putExtra(VectorRoomActivity.EXTRA_MATRIX_ID, mSession.getCredentials().userId);\n getActivity().startActivity(intent);\n getActivity().finish();\n }\n }\n });\n }", "GameJoinResult join(Player player);", "public static WebSocket<JsonNode> join() {\n return new WebSocket<JsonNode>() {\n @Override\n public void onReady(In<JsonNode> in, Out<JsonNode> out) {\n ConnectedPlayer lowerPlayer = new ConnectedPlayer(in, out);\n log.trace(\"Incoming {}.\", lowerPlayer);\n\n // Tell the player that we are trying to find a pair.\n new WaitingForOpponent(lowerPlayer.getId()).write(out);\n\n // Try to pair the incoming player with another player.\n ConnectedPlayer upperPlayer = pendingPlayers.poll();\n if (upperPlayer != null) {\n Game game = new Game(\n upperPlayer, lowerPlayer,\n new Game.ShutdownListener() {\n @Override\n public void onGameShutdown(String gameId) {\n Application.onGameShutdown(gameId);\n }\n });\n game.start();\n games.put(game.getId(), game);\n log.trace(\"Started {} with {} and {}.\", game, upperPlayer, lowerPlayer);\n }\n\n // Else, queue the player into the waiting list.\n else {\n pendingPlayers.add(lowerPlayer);\n log.trace(\"Queued {}.\", lowerPlayer);\n }\n }\n };\n }", "public Train getJoin() {\n\t\treturn join;\n\t}", "public String constructMessage(String... keys) {\r\n\t\treturn this.constructMessage(\" \", keys);\r\n\t}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {\n/* 118 */ return new SimpleMessage(message);\n/* */ }", "private static void addGameJoinLink(GameDto gameDto) {\n if (gameDto.getPlayers()[0] == null || gameDto.getPlayers()[1] == null) {\n Link joinLink =\n linkTo(methodOn(GameController.class).join(gameDto.get_id(), null)).withRel(\"join\");\n gameDto.add(joinLink);\n }\n }", "public void join(NodeInfo info) {\n\t\taddAsPeer(info);\r\n\t\tSystem.out.println(\"Joined : \" + info.getIp() + \" \" + info.getPort());\r\n\t\t// join to obtained node\r\n\t\tString newJoinString = \"0114 JOIN \" + ip + \" \" + port;\r\n\t\tsend(newJoinString, info.getIp(), info.getPort());\r\n\t}", "public Join dup (Join self)\n {\n if (self == null)\n return null;\n\n Join copy = new Join ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.group = self.group;\n copy.status = self.status;\n return copy;\n }", "@Override\n public void onGuildMemberJoin(@NotNull GuildMemberJoinEvent event) {\n super.onGuildMemberJoin(event);\n event.getMember().getUser().openPrivateChannel().queue((channel) -> {\n channel.sendMessage(Settings.WELCOME_MESSAGE).queue();\n });\n }", "public JoinClass() {\n initComponents();\n }", "private void constructACLMessage()\n {\n PlayIntroAction playIntroObject = new PlayIntroAction();\n playIntroObject.setLenght(numberOfMeasures);\n playIntroObject.setNow(true);\n playIntroObject.setDuration(-1);\n msg = new ACLMessage(ACLMessage.CFP);\n msg.setLanguage(codec.getName());\n msg.setOntology(ontology.getName());\n for(int i = 0; i < receivers.size(); i++)\n {\n try\n {\n //fill the content using the Ontology concept\n myAgent.getContentManager().fillContent(msg,new Action((AID)receivers.elementAt(i),playIntroObject));\n }catch (Exception ex) { ex.printStackTrace(); }\n //Set the receiver of the message\n msg.addReceiver((AID)receivers.elementAt(i));\n\n }\n\n //Set the protocol that we gonna use\n msg.setProtocol(FIPANames.InteractionProtocol.FIPA_CONTRACT_NET);\n //We indicate the deadline of the reply\n msg.setReplyByDate(new Date(System.currentTimeMillis() + 30000));\n\n\n }", "@Override\n\tpublic Object visit(ASTJoin node, Object data) {\n\t\tint indent = (Integer) data;\n\t\t\n\t\tprintIndent(indent);\n\t\tSystem.out.println(\"join (\");\n\t\tnode.jjtGetChild(0).jjtAccept(this, indent + 2);\n\t\tSystem.out.println(\",\");\n\t\tnode.jjtGetChild(1).jjtAccept(this, indent + 2);\n\t\tSystem.out.println(\",\");\n\t\tnode.jjtGetChild(2).jjtAccept(this, indent + 2);\n\t\tSystem.out.print(\", \");\n\t\tnode.jjtGetChild(3).jjtAccept(this, 0);\n\t\tSystem.out.println();\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "void sendJoinWorld(String worldName);", "@EventHandler\n public void onPlayerJoin(PlayerJoinEvent event) {\n Player player = event.getPlayer();\n String motd = config.getString(\"motd\");\n if (motd != null && !motd.trim().isEmpty()) {\n motd = ChatColor.translateAlternateColorCodes('&', motd);\n player.sendMessage(motd.split(\"\\\\\\\\n\"));\n }\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {\n/* 109 */ return new SimpleMessage(message);\n/* */ }", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n .match(PrinterActorProtocol.OnCommand.class, greeting -> {\n System.out.println(\"**--become(createNormalReceive())\");\n getContext().become(createNormalReceive());\n })\n .match(PrinterActorProtocol.StartSelfTestCommand.class, greeting -> {\n System.out.println(\"**--become(createSelfTestModeReceive()\");\n getContext().become(createSelfTestModeReceive());\n })\n\n\n .matchAny( obj -> System.out.println(\"PritnerActor Unknown message \" + obj.getClass()) )\n .build();\n }", "public L2CommandChannel(L2PcInstance leader) \r\n\t{\r\n\t\t_commandLeader = leader;\r\n\t\t_partys = new FastList<L2Party>();\r\n\t\t_partys.add(leader.getParty());\r\n\t\t_channelLvl = leader.getParty().getLevel();\r\n\t\tleader.getParty().setCommandChannel(this);\r\n\t\tleader.getParty().broadcastToPartyMembers(new SystemMessage(SystemMessageId.COMMAND_CHANNEL_FORMED));\r\n\t\tleader.getParty().broadcastToPartyMembers(ExOpenMPCC.STATIC_PACKET);\r\n\t\tleader.getParty().broadcastToPartyMembers(new ExMultiPartyCommandChannelInfo(this));\r\n\t}", "public Message newMessage(String message, Object p0) {\n/* 69 */ return new SimpleMessage(message);\n/* */ }", "public CommandConjure()\n\t{\n\t\t aliases = new ArrayList<String>();\n\t\t aliases.add(\"conjure\");\n\t\t aliases.add(\"conj\");\n\t}", "public boolean join(){\n\t\tif (joined) return true;\n\t\t\n StructuredDocument creds = null;\n try {\n AuthenticationCredential authCred = new AuthenticationCredential(peerGroup, null, creds );\n MembershipService membership = peerGroup.getMembershipService();\n Authenticator auth = membership.apply( authCred );\n \n // Check if everything is okay to join the group\n if (auth.isReadyForJoin()){\n Credential myCred = membership.join(auth);\n StructuredTextDocument doc = (StructuredTextDocument)\n myCred.getDocument(new MimeMediaType(\"text/plain\"));\n }\n else\n log.error(\"You cannot join repository\");\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n log.info(\"Joined to Virtual Repository (low-level)\");\n //change DatabaseDiscovery\n DatabaseDiscovery dd = new DatabaseDiscovery(peerGroup.getParentGroup());\n \n try {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n //looking for cmu service\n try {\n\t\t\tmanagementModule = dd.obtainManagementServ(peerGroup.getPeerID().toString());\n\t\t} catch (GridException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n \n \n //point to discovery service in joined group\n new DatabaseDiscovery(peerGroup);\n\n this.joined = true; \n \n\t\treturn true;\n\t}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }", "public abstract void newChatMembersMessage(Message m);", "public TriggerMessage() {\n\t}", "private void joinParent() {\n System.out.println(\"JOINING parent...\");\n try {\n node.getParent()\n .sendMessage(\n new JoinMessage(node.getName()),\n () -> {\n System.out.println(\"Joined parent!\");\n this.state = State.RUNNING;\n }, () -> {\n node.isRoot = true;\n this.state = State.TERMINATED;\n// node.isRoot = true;\n System.out.println(\"Failed to connect to parent\");\n messageListener.interrupt();\n node.parent.detach();\n }\n );\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void joinChannel() {\n String userId = AuthenticationSingleton.getAdaptedInstance().getUid();\n String token1 = generateToken(userId);\n mRtcEngine.setAudioProfile(Constants.AUDIO_SCENARIO_SHOWROOM, Constants.AUDIO_SCENARIO_GAME_STREAMING);\n int joinStatus = mRtcEngine.joinChannelWithUserAccount(token1, appointment.getId(), userId);\n if (joinStatus == SUCCESS_CODE) {\n appointment.addInCallUser(new DatabaseUser(userId));\n }\n }", "public static MultiDatagramPacket createSendMessagePacket(\n\t\t\tString enterExitSendAllocNewName, String message) {\n\t\treturn new MultiDatagramPacket(SEND_MESSAGE, enterExitSendAllocNewName,\n\t\t\t\tnull, false, null, message);\n\t}", "public LineJoinEnum getLineJoin(\n )\n {return lineJoin;}", "public void join(String ip,int port, int myPort){\r\n\t\ttry{\r\n\t\t\tXmlRpcSender.execute(\"joinRequest\", new Object[] { this.ip, String.valueOf(this.port), this.id }, ip, port);\r\n\t\t\tthis.isJoined = true;\r\n\t\t}catch(Exception e ){e.printStackTrace();}\t\r\n\t}", "public ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) {\n/* 395 */ return joinGroup(multicastAddress, networkInterface, source, newPromise());\n/* */ }", "public void addJoin(String left, String right, boolean outer, int reltype) {\r\n DSJoinDescriptor d = new DSJoinDescriptor(left, right, outer, reltype);\r\n _joins.addElement(d);\r\n }", "protected ParseObject createMessage() {\n //format single variables appropriatly. most cases the field is an array\n ArrayList<ParseUser> nextDrinker = new ArrayList<ParseUser>();\n nextDrinker.add(mNextDrinker);\n ArrayList<String> groupName = new ArrayList<String>();\n groupName.add(mGroupName);\n\n ParseObject message = new ParseObject(ParseConstants.CLASS_MESSAGES);\n message.put(ParseConstants.KEY_SENDER_ID, ParseUser.getCurrentUser().getObjectId());\n message.put(ParseConstants.KEY_SENDER, ParseUser.getCurrentUser());\n message.put(ParseConstants.KEY_GROUP_ID, mGroupId);\n message.put(ParseConstants.KEY_GROUP_NAME, groupName);\n message.put(ParseConstants.KEY_SENDER_NAME, ParseUser.getCurrentUser().getUsername());\n message.put(ParseConstants.KEY_RECIPIENT_IDS, nextDrinker);\n message.put(ParseConstants.KEY_MESSAGE_TYPE, ParseConstants.TYPE_DRINK_REQUEST);\n\n return message;\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) {\n/* 136 */ return new SimpleMessage(message);\n/* */ }", "protected String getJoin( LogicalModel businessModel, LogicalRelationship relation,\n Map<LogicalTable, String> tableAliases, Map<String, Object> parameters, boolean genAsPreparedStatement,\n DatabaseMeta databaseMeta, String locale ) throws PentahoMetadataException {\n String join = \"\"; //$NON-NLS-1$\n if ( relation.isComplex() ) {\n try {\n // parse join as MQL\n SqlOpenFormula formula =\n new SqlOpenFormula( businessModel, databaseMeta, relation.getComplexJoin(), tableAliases, parameters,\n genAsPreparedStatement );\n formula.parseAndValidate();\n join = formula.generateSQL( locale );\n } catch ( PentahoMetadataException e ) {\n // backward compatibility, deprecate\n // FIXME: we need to get rid of this and just throw an exception\n logger.warn( Messages.getErrorString(\n \"SqlGenerator.ERROR_0017_FAILED_TO_PARSE_COMPLEX_JOIN\", relation.getComplexJoin() ), e ); //$NON-NLS-1$\n join = relation.getComplexJoin();\n }\n } else if ( relation.getFromTable() != null && relation.getToTable() != null && relation.getFromColumn() != null\n && relation.getToColumn() != null ) {\n // Left side\n String leftTableAlias = null;\n if ( tableAliases != null ) {\n leftTableAlias = tableAliases.get( relation.getFromColumn().getLogicalTable() );\n } else {\n leftTableAlias = relation.getFromColumn().getLogicalTable().getId();\n }\n\n join = databaseMeta.quoteField( leftTableAlias );\n join += \".\"; //$NON-NLS-1$\n join +=\n databaseMeta.quoteField( (String) relation.getFromColumn().getProperty( SqlPhysicalColumn.TARGET_COLUMN ) );\n\n // Equals\n join += \" = \"; //$NON-NLS-1$\n\n // Right side\n String rightTableAlias = null;\n if ( tableAliases != null ) {\n rightTableAlias = tableAliases.get( relation.getToColumn().getLogicalTable() );\n } else {\n rightTableAlias = relation.getToColumn().getLogicalTable().getId();\n }\n\n join += databaseMeta.quoteField( rightTableAlias );\n join += \".\"; //$NON-NLS-1$\n join += databaseMeta.quoteField( (String) relation.getToColumn().getProperty( SqlPhysicalColumn.TARGET_COLUMN ) );\n } else {\n throw new PentahoMetadataException( Messages.getErrorString(\n \"SqlGenerator.ERROR_0003_INVALID_RELATION\", relation.toString() ) ); //$NON-NLS-1$\n }\n\n return join;\n }", "public Message(int senderId, int receiverId, String text, Vect3 position, Vect3 speed, Vect3 targetPos, Vect3 startPos, double batteryLevel,\n\t\t\tPriority priority, ComInteract interaction, double vSpace) {\n\t\tthis.senderId = senderId;\n\t\tthis.receiverId = receiverId;\n\t\tthis.text = text;\n\t\tthis.position = position;\n\t\tthis.speed = speed;\n\t\tthis.targetPos = targetPos;\n\t\tthis.startPos = startPos;\n\t\tthis.batteryLevel = batteryLevel;\n\t\tthis.priority = priority;\n\t\tthis.interaction = interaction;\n\t\tthis.vSpace=vSpace;\n\t}", "public Message(int receiverId, String text, Vect3 startPos, Priority priority, ComInteract interaction) {\n\t\tthis.receiverId = receiverId;\n\t\tthis.startPos = startPos;\n\t\tthis.priority = priority;\n\t\tthis.interaction = interaction;\n\t}", "public void join(Node chord);" ]
[ "0.6925764", "0.6264422", "0.6247028", "0.61794645", "0.60333556", "0.58814245", "0.58733994", "0.5823057", "0.5739681", "0.56213635", "0.55471647", "0.55276114", "0.54659986", "0.5450099", "0.54414773", "0.54139274", "0.536507", "0.5331194", "0.5329517", "0.5304841", "0.530425", "0.53008425", "0.53001183", "0.5297879", "0.52971756", "0.52797335", "0.5242994", "0.523055", "0.51940674", "0.51750314", "0.51640266", "0.5152394", "0.51488143", "0.51327336", "0.5131498", "0.51172334", "0.51128143", "0.5111088", "0.5071139", "0.506075", "0.50552595", "0.5038866", "0.5037624", "0.50356364", "0.5034164", "0.50273454", "0.50147176", "0.5008542", "0.50072736", "0.49975157", "0.49785066", "0.49758", "0.49757156", "0.49631822", "0.49521676", "0.49491364", "0.494424", "0.49408436", "0.49403313", "0.49222004", "0.49130216", "0.49061346", "0.49008495", "0.48883927", "0.48864406", "0.48860434", "0.48696342", "0.486251", "0.48457333", "0.4833676", "0.4832673", "0.48295885", "0.48259643", "0.48238903", "0.48217082", "0.4814072", "0.4802489", "0.4789202", "0.4776656", "0.47736713", "0.47567174", "0.47533637", "0.47511542", "0.47468176", "0.47399563", "0.4730808", "0.47288838", "0.47120383", "0.471177", "0.47114217", "0.47107613", "0.47056878", "0.47033677", "0.4702296", "0.47001386", "0.46987566", "0.4697184", "0.46885246", "0.46863526", "0.46772826" ]
0.60286176
5
Kelas untuk membuat hubungan dengan database
public static void connect() { conn = null; try { Class.forName("org.postgresql.Driver"); conn = DriverManager.getConnection(url, user, password); System.out.println("Connected to Server Successfully."); }catch(Exception e) { System.out.println(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public GosplPopulationInDatabase() {\n\t\ttry {\n\t\t\tthis.connection = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:hsqldb:mem:\"+mySqlDBname+\";shutdown=true\", \"SA\", \"\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"error while trying to initialize the HDSQL database engine in memory: \"+e.getMessage(), e);\n\t\t}\n\t}", "private void connectDatabase(){\n }", "void smem_init_db() throws SoarException, SQLException, IOException\n {\n smem_init_db(false);\n }", "public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}", "private static void atualizarBD(){\n SchemaUpdate se = new SchemaUpdate(hibernateConfig);\n se.execute(true, true);\n }", "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }", "private void updateDB() {\n }", "public Database initDB() {\n Database db = new Database(\"dataBase.db\");\n\n// db.insertData(\"1 Dragos Dinescu dragos@yahoo.com 0744522600 Digi 10-12-2020\");\n// db.insertData(\"2 Adelina Mirea ademirea@gmail.com 0733651320 Orange 14-10-2020\");\n// db.insertData(\"3 Radu Sorostinean radusoro@gmail.com 0733723321 Digi 1-10-2020\");\n// db.insertData(\"4 Andrei Brasoveanu andreibraso@gmail.com 0732341390 Vodafone 12-11-2020\");\n return db;\n\n //db.deleteFromDB();\n //db.updateDB(\"1 alex radu radu@gmail.com 022256926 orange 10/08/2010\");\n }", "void setDataFromDBContent() {\n\n }", "DataBase createDataBase();", "Database createDatabase();", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "private void getDatabase(){\n\n }", "public void writeDatabase();", "private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }", "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}", "public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "private void setupDatabase() throws SQLException {\n\t\tdb.open(\"localhost\", 3306, \"wow\", \"greeneconomyapple\");\n\t\tdb.use(\"auctionscan\");\n\t}", "public void clearDatabase(){\n\t\tem.createNativeQuery(\"DELETE FROM CAMINHO\").executeUpdate();\r\n\t\tem.createNativeQuery(\"DELETE FROM MAPA\").executeUpdate();\r\n\t\t\r\n\t\tlog.info(\"Limpou a base de dados\");\r\n\t\r\n\t}", "public void initialiserBD() {\n\n // on crée une personne avec tous les champs à vide, cela nous permettra de tester l'existence de la BD pour les futurs lancements.\n pdao.open();\n pdao.creerPersonnePremierLancement();\n pdao.close();\n\n // création des 3 listes\n Liste liste1 = new Liste(1, \"Maison\", \"La liste de ma maison\");\n Liste liste2 = new Liste(2, \"Garage\", \"La liste de mon garage\");\n Liste liste3 = new Liste(3, \"Magasin\", \"La liste de mon magasin\");\n\n // ajout des listes\n ldao.open();\n ldao.ajouterListe(liste1);\n ldao.ajouterListe(liste2);\n ldao.ajouterListe(liste3);\n ldao.close();\n\n // on ajoute 3 catégories\n CategorieDAO categorieDAO = new CategorieDAO(this);\n categorieDAO.open();\n Categorie cuisine = new Categorie(0, \"Cuisine\", \"Tous les objets de la cuisine\");\n Categorie salon = new Categorie(0, \"Salon\", \"Tous les objets du Salon\");\n Categorie chambre = new Categorie(0, \"Chambre\", \"Tous les objets de la chambre\");\n categorieDAO.addCategorie(cuisine);\n categorieDAO.addCategorie(salon);\n categorieDAO.addCategorie(chambre);\n categorieDAO.close();\n\n Date date = new Date();\n\n // Création de la classe utilitaire pour les dates\n Utils utils = new Utils(this);\n String dateSimpleDateFormat = utils.getDateSimpleDateFormat();\n SimpleDateFormat sdf = new SimpleDateFormat(dateSimpleDateFormat);\n String dateDuJour = sdf.format(date);\n\n // texte explicatif\n String explication = \"Cet objet est crée au demarrage de l'application, vous pouvez le supprimer en cliquant dessus.\";\n\n // on ajoute 6 bien pour exemple\n Bien bien1 = new Bien(1, \"Lunette\", dateDuJour, dateDuJour, \"\", \"Légèrement rayées sur le coté\", \"251\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien2 = new Bien(2, \"Frigo\", dateDuJour, dateDuJour, \"\", \"\", \"3599\", \"\", \"\", \"\", \"\", 1, explication, \"45DG425845DA\");\n Bien bien3 = new Bien(3, \"Ordinateur\", dateDuJour, dateDuJour, \"\", \"Manque une touche\", \"1099\", \"\", \"\", \"\", \"\", 3, explication, \"515D-TGH2336\");\n Bien bien4 = new Bien(4, \"Vaisselle\", dateDuJour, dateDuJour, \"\", \"Vaisselle de Mémé\", \"6902\", \"\", \"\", \"\", \"\", 1, explication, \"\");\n Bien bien5 = new Bien(5, \"TV\", dateDuJour, dateDuJour, \"\", \"\", \"350\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien6 = new Bien(6, \"Home cinéma\", dateDuJour, dateDuJour, \"\", \"Marque Pioneer - Une enceinte grésille un peu\", \"400\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n\n\n // dans la liste 1\n ArrayList<Integer> listeIdListe1 = new ArrayList<Integer>();\n listeIdListe1.add(1);\n\n\n bdao.open();\n\n bdao.addBien(bien1, listeIdListe1);\n bdao.addBien(bien2, listeIdListe1);\n bdao.addBien(bien3, listeIdListe1);\n bdao.addBien(bien4, listeIdListe1);\n bdao.addBien(bien5, listeIdListe1);\n bdao.addBien(bien6, listeIdListe1);\n\n bdao.close();\n }", "private void configureDB() {\n\t\tmDb = mDbHelper.getWritableDatabase();\n\t}", "private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }", "public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "public DatabaseManagement() throws SQLException {\n\t\n\t\ttry {\n\t\t\t//use driver\n\t\t\tClass.forName(MYSQL_DRIVER);\n\t\t System.out.println(\"Class Loaded....\");\n\t\t\t\n\t\t //get connection to database\n\t\t\tmyConn = DriverManager.getConnection(getDbUrl(), getUserName(), getPassword());\n\t\t\t//System.out.println(\"Connected to database...\");\n\t\t\t\n\t\t\t//create a statement\n\t\t\tmyStmt = myConn.createStatement();\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\tcatch (Exception exc){\n\t\t\texc.printStackTrace();\n\t\t}\t\t\n\t}", "public void obrir() throws SQLException {\n\t\tbdClimb = dbHelper.getWritableDatabase();\n\t}", "public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public void schliessen() {\n try {\n mDb.close();\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n }", "public void schliessen() {\n mDb.close();\n }", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }", "private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}", "public Biodata() {\n initComponents();\n //pemanggilan fungsi koneksi database yang sudah kita buat pada class koneksi.java\n ConnectionDB DB = new ConnectionDB();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n pst = DB.pst;\n data_table_mahasiswa();\n }", "private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}", "@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}", "private void FetchingData() {\n\t\t try { \n\t\t\t \n\t \tmyDbhelper.onCreateDataBase();\n\t \t \t\n\t \t\n\t \t} catch (IOException ioe) {\n\t \n\t \t\tthrow new Error(\"Unable to create database\");\n\t \n\t \t} \n\t \ttry {\n\t \n\t \t\tmyDbhelper.openDataBase();\n\t \t\tmydb = myDbhelper.getWritableDatabase();\n\t\t\tSystem.out.println(\"executed\");\n\t \t\n\t \t}catch(SQLException sqle){\n\t \n\t \t\tthrow sqle;\n\t \n\t \t}\n\t}", "public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}", "public ConexionDB() {\n\n\t\tconn = null;\n\n\t}", "private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "private GestionBD(){\r\n\t\tlineConnection=SingleDBConnection.getConexionBD().conectarBD();\r\n\t}", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "void flushDB();", "public void setDatabase(Connection _db);", "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}", "@Override\n\tpublic void clearDBDomande() {\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\tdomande.clear();\n\t\tdb.commit();\n\t}", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 등록을 하다.\");\n\t}", "private DatabaseHandler(){\n createConnection();\n }", "@Before\n public void createDatabase() {\n dbService.getDdlInitializer()\n .initDB();\n kicCrud = new KicCrud();\n }", "void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}", "private void createDatabase() throws Exception{\n Statement stm = this.con.createStatement();\n stm.execute(\"CREATE DATABASE IF NOT EXISTS \" + database +\n \" DEFAULT CHARACTER SET utf8 COLLATE utf8_persian_ci\");\n }", "public void formDatabaseTable() {\n }", "private PrimeNrDatabase(Context context){\n database = new PrimeNrBaseHelper(context).getWritableDatabase();\n }", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "private void open_db() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); \n Con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projectlaundry\",\"root\",\"\");\n stm = Con.createStatement();\n }\n catch (Exception e){\n JOptionPane.showMessageDialog(null,\"Koneksi gagal\");\n System.out.println(e.getMessage());\n }\n }", "public void initDatabase(){\n CovidOpener cpHelper = new CovidOpener(this);\n cdb = cpHelper.getWritableDatabase();\n }", "private void updateDatabase() {\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\tArrayList<String> updatedRecords = serializer.serialize(records);\n\t\tDatabaseHandler.writeToDatabase(DATABASE_NAME, updatedRecords);\n\t}", "public Database() {\n\t\tconn = null;\n\t}", "public void hapusSemuaDataMahasiswa(){\n SQLiteDatabase db = this.getWritableDatabase();\n\n db.execSQL(\"DELETE FROM \" + TABLE_NAME);\n }", "private void dbConn()\n {\n\ttry\t\t\n\t{\t\n\t\t\t// driver to use with named database\n\t\tString url = \"jdbc:ucanaccess://c:/AH/AthloneHospital.mdb\";\n \n\t\t\t// connection represents a session with a specific database\n\t\tcon = DriverManager.getConnection(url);\n\n\t\t\t// stmt used for executing sql statements and obtaining results\n\t\tstmt = con.createStatement();\n\n\t\trs = stmt.executeQuery(\"SELECT * FROM Login\");\n\n\t\twhile(rs.next())\t// count number of rows in table\n\t\t\tcount++;\n\t\trs.close();\n System.out.println(\"Success!!!!\");\n\t}\n\tcatch(Exception e) { System.out.println(\"Error in start up......\");}\n }", "private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}", "DatabaseInformationFull(Database db) {\n super(db);\n }", "public FakeDatabase() {\n\t\t\n\t\t// Add initial data\n\t\t\n//\t\tSystem.out.println(authorList.size() + \" authors\");\n//\t\tSystem.out.println(bookList.size() + \" books\");\n\t}", "void fillDatabase() {\n Type.type( \"FOOD\" );\n Type.type( \"HOT\" );\n Type.type( \"SNACK\" );\n }", "DBConnect() {\n \n }", "private void autoPopulateDB() {\r\n User newUser = new User(\"din_djarin\", \"baby_yoda_ftw\");\r\n User secondNew = new User(\"csumb\", \"otters_woo\");\r\n User lastNew = new User(\"username\", \"password\");\r\n\r\n mUserDAO.insert(newUser);\r\n mUserDAO.insert(secondNew);\r\n mUserDAO.insert(lastNew);\r\n }", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }", "public void openDB() {\n\n\t\t// Connect to the database\n\t\tString url = \"jdbc:mysql://localhost:2000/X__367_2020?user=X__367&password=X__367\";\n\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"using url:\"+url);\n\t\t\tSystem.out.println(\"problem connecting to MariaDB: \"+ e.getMessage());\t\t\t\n\t\t\t//e.printStackTrace();\n\t\t}\n\n\t}", "public UtentiDB(){\r\n this.utenti = new LinkedList<Utente>();\r\n }", "private void testDB(){\n DB=new LinkedList<>(); \n DB.add(new Offer(\"ID1\",\"AGV923\",\"Nico\",\"Leo\",\"Salvo\",\"\"));\n DB.add(new Offer(\"ID2\",\"ADJ325\",\"Tizio\", \"Caio\", \"Sempronio\",\"\"));\n DB.add(new Offer(\"ID3\",\"T56G2G\",\"Antonella\", \"Daniele\",\"\",\"\"));\n }", "public void database() throws IOException\n {\n \tFile file =new File(\"data.txt\");\n\t if(!file.exists())\n\t {\n\t \tSystem.out.println(\"File 'data.txt' does not exit\");\n\t System.out.println(file.createNewFile());\n\t file.createNewFile();\n\t databaseFileWrite(file);//call the databaseFileRead() method, to initialize data from ArrayList and write data into data.txt\n\t }\n\t else\n\t {\n\t \tdatabaseFileRead();//call the databaseFileRead() method, to load data directly from data.txt\n\t }\n }", "private void makeSQLConn() {\n\t\ttry {\n\t\t\tmyDB = new MySQLAccess();\n\t\t} catch (Exception e) { e.printStackTrace(); }\n\t}", "public RecipeDataBase(){\n //recipes = new ArrayList<>();\n loadDatabase();\n \n }", "public Database() {\n size = 0;\n tables = new HashMap();\n p = new Parse(this);\n }", "public void limpiarMemoria();", "@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }", "public void creatDataBase(String dbName);", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private DBManager() throws Exception {\n file = new File(\"pdfLibraryDB.mv.db\");\n if (!file.exists()) {\n conn = connect();\n stmt = conn.createStatement();\n query = \"CREATE TABLE user(username VARCHAR(30) PRIMARY KEY, password VARCHAR(32));\" +\n \"CREATE TABLE category(id VARCHAR(30) PRIMARY KEY, name VARCHAR(30), username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE);\"+\n \"CREATE TABLE favorite(id VARCHAR(30) PRIMARY KEY, path VARCHAR(500), keyword VARCHAR(200), searchType VARCHAR(10), category VARCHAR(30),username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE, FOREIGN KEY(category) REFERENCES category(id) ON UPDATE CASCADE ON DELETE CASCADE);\" +\n \"CREATE TABLE history(id VARCHAR(30) PRIMARY KEY, keyword VARCHAR(200), type VARCHAR(10), directory VARCHAR(500), username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE);\";\n stmt.executeUpdate(query);\n stmt.close();\n conn.close();\n System.out.println(\"DB created!\");\n }\n }", "public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}", "public void saveToDB() throws java.sql.SQLException\n\t{\n\t\tStringBuffer sSQL=null;\n Vector vParams=new Vector();\n\t\t//-- Chequeamos a ver si es un objeto nuevo\n\t\tif(getID_BBDD()==-1) {\n\t\t\tsSQL = new StringBuffer(\"INSERT INTO INF_BBDD \");\n\t\t\tsSQL.append(\"(NOMBRE,DRIVER,URL,USUARIO,CLAVE,JNDI\");\n\t\t\tsSQL.append(\") VALUES (?,?,?,?,?,?)\");\n\n vParams = new Vector();\n vParams.add(getNOMBRE());\n vParams.add(getDRIVER());\n vParams.add(getURL());\n vParams.add(getUSUARIO());\n vParams.add(getCLAVE());\n vParams.add(getJNDI());\n\t\t}\n\t\telse {\n\t\t\tsSQL = new StringBuffer(\"UPDATE INF_BBDD SET \");\n sSQL.append(\" NOMBRE=?\");\n sSQL.append(\", DRIVER=?\");\n sSQL.append(\", URL=?\");\n sSQL.append(\", USUARIO=?\");\n sSQL.append(\", CLAVE=?\");\n\t\t\tsSQL.append(\", JNDI=?\");\n\t\t\tsSQL.append(\" WHERE ID_BBDD=?\");\n\n vParams = new Vector();\n vParams.add(getNOMBRE());\n vParams.add(getDRIVER());\n vParams.add(getURL());\n vParams.add(getUSUARIO());\n vParams.add(getCLAVE());\n vParams.add(getJNDI());\n vParams.add(new Integer(getID_BBDD()));\n\t\t}\n\n\t\tAbstractDBManager dbm = DBManager.getInstance();\n dbm.executeUpdate(sSQL.toString(),vParams);\n\n // Actualizamos la caché\n com.emesa.bbdd.cache.QueryCache.reloadQuery(\"base_datos\");\n\t}", "@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 수정을 하다.\");\n\t}", "Persistencia() {\n\t}", "private void loadDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Check to make sure the Bmod Database is there, if not, try \n\t\t\t\t// downloading from the website.\n\t\t\t\tif(!Files.exists(m_databaseFile))\n\t\t\t\t{\n\t\t\t\t\tFiles.createDirectories(m_databaseFile.getParent());\n\t\t\t\t\n\t\t\t\t\tbyte[] file = ExtensionPoints.readURLAsBytes(\"http://\" + Constants.API_HOST + HSQL_DATABASE_PATH);\n\t\t\t\t\tif(file.length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t\t\t\tFiles.write(m_databaseFile, file, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// make sure we have the proper scriptformat.\n\t\t\t\tsetScriptFormatCorrectly();\n\t\t\t}catch(NullPointerException|IOException ex)\n\t\t\t{\n\t\t\t\tm_logger.error(\"Could not fetch database from web.\", ex);\n\t\t\t}\n\t\t\t\n\t\n\t\t\t\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\n\t\t\n\t\t\t\n\t\t\tString db = ExtensionPoints.getBmodDirectory(\"database\").toUri().getPath();\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:file:\" + db, \"sa\", \"\");\n\t\t\t\n\t\t\t// Setup Connection\n\t\t\tCSVRecordLoader ldr = new CSVRecordLoader();\n\t\t\n\t\t\t// Load all of the building independent plugins\n\t\t\tfor(Record<?> cp : ldr.getRecordPluginManagers())\n\t\t\t{\n\t\t\t\tm_logger.debug(\"Creating table: \" + cp.getTableName());\n\t\t\t\t// Create a new table\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tgetPreparedStatement(cp.getSQLTableDefn()).execute();\n\t\t\t\t} catch(SQLException ex)\n\t\t\t\t{\n\t\t\t\t\t// Table exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_logger.debug(\"Doing index:\" + cp.getIndexDefn());\n\t\t\t\t\tif(cp.getIndexDefn() != null)\n\t\t\t\t\t\tgetPreparedStatement(cp.getIndexDefn()).execute();\n\t\t\t\t}catch(SQLException ex)\n\t\t\t\t{\t// index exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tif(ex instanceof DatabaseIntegrityException)\n\t\t\t\tDatabase.handleCriticalError((DatabaseIntegrityException)ex);\n\t\t\telse\n\t\t\t\tDatabase.handleCriticalError(new DatabaseIntegrityException(ex));\n\t\t}\n\t\t\n\t}", "@RequestMapping(value=\"/pokemon\", method =RequestMethod.GET)\n\tpublic boolean initDataBase() {//Inicializacion de la BD. Solo llamado una vez al iniciar la aplicacion\n\t\tboolean done = false;\n\t\thandler = new MongoDBQueries();//Inicializacion del objeto\n\t\thandler.initialize();//Inicializacion de la BD y la coleccion\n\t\thandler.getFile();//Lectura del fichero JSON e introduccion en la coleccion\n\t\tdone = true;\n\t\treturn done;\n\t}", "public void conectar() {\n try {\n //Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n Class.forName(\"org.mariadb.jdbc.Driver\"); \n\n //con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\"); \n con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\");\n state = con.createStatement();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public static void m1()\r\n\t{ \r\n\t\tUsername.clear();\r\n\t\tPassword.clear();\r\n\t\tId.clear();\r\n\t\ttry{ \r\n\t\tClass.forName(\"com.mysql.jdbc.Driver\"); //driver registration\r\n\t\tConnection con= (Connection) DriverManager.getConnection( \r\n\t\t\"jdbc:mysql://localhost:3306/rakesh\",\"root\",\"\");//this are used to establish connection to the database,so never fiddle with this \r\n\t\t//here sonoo is database name, root is user name and password \r\n\t\t\r\n\t/*\tfor (String object: foodlist) {\r\n\t\t System.out.println(object);\r\n\t\t}\r\n\t\tUsername.forEach(a->out.println(a\\t\\t));*/\r\n\t\t\r\n\t\t\r\n\t\tStatement stmt=(Statement) con.createStatement();//helps in creating a statement \r\n\t\tResultSet rs=(ResultSet) stmt.executeQuery(\"select * from rak\"); //helps to write a query as the statement is allowed\t\t\t\r\n\t\twhile(rs.next()) \r\n\t\t{\r\n\t\t\tUsername.add(rs.getString(\"UserName\"));\r\n\t\t\tPassword.add(rs.getString(\"Password\"));\r\n\t\t\tId.add(rs.getInt(\"id\"));\r\n\t\t}\r\n\t\t\r\n\t\tcon.close(); //to close the connection\r\n\t\t}catch(Exception e){ System.out.println(e);}\r\n\t \r\n\t\t}", "private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "private NodeDB() {\n\t\tNodeInfo me = new NodeInfo();\n\t\tme.alive = true;\n\t\tme.nodecomms = ConfigManager.get().node_interface;\n\t\tme.nodehash = ConfigManager.get().nodehash;\n\t\tme.timestamp = System.currentTimeMillis();\n\t\tthis.update(new NodeDB.NodeInfo[] { me });\n\t\tthis.random = new Random();\n\t\tthis.random.setSeed(System.currentTimeMillis());\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "public void bootstrapDatabase() throws Exception {\n\n }", "private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }", "private void readFromDb() {\n mMonthsList.clear();\n if(mDatabaseHandler.getMonthsList()!=null) {\n mMonthsList = mDatabaseHandler.getMonthsList();\n setMonthListAdapter(mMonthsList);\n }\n else\n LoggerUtility.makeShortToast(HomeActivity.this,getString(R.string.error_empty_database));\n }", "@SuppressWarnings(\"unchecked\")\npublic final void initDatabase()throws SQLException {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con =(Connection) DriverManager.getConnection(\"jdbc:mysql://localhost:3306/yajnab?zeroDateTimeBehavior=convertToNull\",\"root\",\"11\"); \n } \n catch (ClassNotFoundException | SQLException e) {\n }\n }", "@Transactional\n\tprivate void generateMabSet() {\n\t\tMinionCard petitChat = createMinionCard(\"Petit Chat\", 4, 1, 5, 1, \"Le petit.\",\n\t\t\t\t\"img/cardImg/mabSet/petitChat.jpg\");\n\t\tMinionCard madameChat = createMinionCard(\"Madame Chat\", 3, 2, 0, 0, \"La madame.\",\n\t\t\t\t\"img/cardImg/mabSet/madameChat.jpg\");\n\t\tMinionCard chatOrange = createMinionCard(\"Chat Orange\", 5, 2, 3, 1, \"L'orange.\",\n\t\t\t\t\"img/cardImg/mabSet/chatOrange.jpg\");\n\t\tMinionCard autreChat = createMinionCard(\"Autre Chat\", 4, 7, 4, 2, \"L'autre.\",\n\t\t\t\t\"img/cardImg/mabSet/autreChat.jpg\");\n\t\tcardRepository.save(petitChat);\n\t\tcardRepository.save(madameChat);\n\t\tcardRepository.save(chatOrange);\n\t\tcardRepository.save(autreChat);\n\t}" ]
[ "0.67057174", "0.6667508", "0.64086056", "0.6292254", "0.6282875", "0.62627", "0.6227438", "0.62227476", "0.6211966", "0.6182572", "0.6168912", "0.6150185", "0.6146926", "0.6131245", "0.6122124", "0.61151785", "0.610098", "0.6093576", "0.6087851", "0.60655785", "0.606484", "0.60602504", "0.6031667", "0.6027576", "0.60264456", "0.6023867", "0.60107017", "0.6005594", "0.59930515", "0.59811145", "0.59771967", "0.59684384", "0.59657866", "0.59594756", "0.59486794", "0.5947411", "0.59433705", "0.593884", "0.593474", "0.5933488", "0.59319556", "0.59319514", "0.59265935", "0.589659", "0.58916634", "0.587984", "0.58701485", "0.5869431", "0.58686393", "0.58674157", "0.58577675", "0.58568925", "0.58532596", "0.5852099", "0.58366317", "0.583368", "0.58276856", "0.58270335", "0.58270276", "0.58178914", "0.5815467", "0.58152974", "0.5809655", "0.58055604", "0.57943016", "0.57910514", "0.5773682", "0.5772926", "0.5772082", "0.5770822", "0.5770535", "0.57681316", "0.5768058", "0.5759947", "0.57579416", "0.5754694", "0.57525194", "0.5752067", "0.574861", "0.574193", "0.57396126", "0.57363987", "0.57363844", "0.5735442", "0.5735023", "0.5732021", "0.57289916", "0.5728353", "0.5726887", "0.57219887", "0.57202643", "0.57145876", "0.5708997", "0.570831", "0.570586", "0.5702369", "0.5699332", "0.5682043", "0.5681311", "0.5677397", "0.56723434" ]
0.0
-1
Kelas untuk memutus hubungan dengan database
public static void disconnect(){ if(conn != null) try{ conn.close(); }catch(SQLException e) { System.out.println(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}", "private void connectDatabase(){\n }", "private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "public GosplPopulationInDatabase() {\n\t\ttry {\n\t\t\tthis.connection = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:hsqldb:mem:\"+mySqlDBname+\";shutdown=true\", \"SA\", \"\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"error while trying to initialize the HDSQL database engine in memory: \"+e.getMessage(), e);\n\t\t}\n\t}", "public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }", "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }", "private void open_db() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); \n Con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projectlaundry\",\"root\",\"\");\n stm = Con.createStatement();\n }\n catch (Exception e){\n JOptionPane.showMessageDialog(null,\"Koneksi gagal\");\n System.out.println(e.getMessage());\n }\n }", "private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }", "DBConnect() {\n \n }", "private void getDatabase(){\n\n }", "public Biodata() {\n initComponents();\n //pemanggilan fungsi koneksi database yang sudah kita buat pada class koneksi.java\n ConnectionDB DB = new ConnectionDB();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n pst = DB.pst;\n data_table_mahasiswa();\n }", "private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}", "private void setupDatabase() throws SQLException {\n\t\tdb.open(\"localhost\", 3306, \"wow\", \"greeneconomyapple\");\n\t\tdb.use(\"auctionscan\");\n\t}", "public UfficioTecnicoDB() {\n this(ConnectionManager.getInstance());\n }", "Database createDatabase();", "DataBase createDataBase();", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public void openDB() {\n\n\t\t// Connect to the database\n\t\tString url = \"jdbc:mysql://localhost:2000/X__367_2020?user=X__367&password=X__367\";\n\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"using url:\"+url);\n\t\t\tSystem.out.println(\"problem connecting to MariaDB: \"+ e.getMessage());\t\t\t\n\t\t\t//e.printStackTrace();\n\t\t}\n\n\t}", "private void ucitajDrajver()throws Exception{\r\n db.loadDriver();\r\n }", "public Database initDB() {\n Database db = new Database(\"dataBase.db\");\n\n// db.insertData(\"1 Dragos Dinescu dragos@yahoo.com 0744522600 Digi 10-12-2020\");\n// db.insertData(\"2 Adelina Mirea ademirea@gmail.com 0733651320 Orange 14-10-2020\");\n// db.insertData(\"3 Radu Sorostinean radusoro@gmail.com 0733723321 Digi 1-10-2020\");\n// db.insertData(\"4 Andrei Brasoveanu andreibraso@gmail.com 0732341390 Vodafone 12-11-2020\");\n return db;\n\n //db.deleteFromDB();\n //db.updateDB(\"1 alex radu radu@gmail.com 022256926 orange 10/08/2010\");\n }", "private void dbConn()\n {\n\ttry\t\t\n\t{\t\n\t\t\t// driver to use with named database\n\t\tString url = \"jdbc:ucanaccess://c:/AH/AthloneHospital.mdb\";\n \n\t\t\t// connection represents a session with a specific database\n\t\tcon = DriverManager.getConnection(url);\n\n\t\t\t// stmt used for executing sql statements and obtaining results\n\t\tstmt = con.createStatement();\n\n\t\trs = stmt.executeQuery(\"SELECT * FROM Login\");\n\n\t\twhile(rs.next())\t// count number of rows in table\n\t\t\tcount++;\n\t\trs.close();\n System.out.println(\"Success!!!!\");\n\t}\n\tcatch(Exception e) { System.out.println(\"Error in start up......\");}\n }", "private GestionBD(){\r\n\t\tlineConnection=SingleDBConnection.getConexionBD().conectarBD();\r\n\t}", "public void initialiserBD() {\n\n // on crée une personne avec tous les champs à vide, cela nous permettra de tester l'existence de la BD pour les futurs lancements.\n pdao.open();\n pdao.creerPersonnePremierLancement();\n pdao.close();\n\n // création des 3 listes\n Liste liste1 = new Liste(1, \"Maison\", \"La liste de ma maison\");\n Liste liste2 = new Liste(2, \"Garage\", \"La liste de mon garage\");\n Liste liste3 = new Liste(3, \"Magasin\", \"La liste de mon magasin\");\n\n // ajout des listes\n ldao.open();\n ldao.ajouterListe(liste1);\n ldao.ajouterListe(liste2);\n ldao.ajouterListe(liste3);\n ldao.close();\n\n // on ajoute 3 catégories\n CategorieDAO categorieDAO = new CategorieDAO(this);\n categorieDAO.open();\n Categorie cuisine = new Categorie(0, \"Cuisine\", \"Tous les objets de la cuisine\");\n Categorie salon = new Categorie(0, \"Salon\", \"Tous les objets du Salon\");\n Categorie chambre = new Categorie(0, \"Chambre\", \"Tous les objets de la chambre\");\n categorieDAO.addCategorie(cuisine);\n categorieDAO.addCategorie(salon);\n categorieDAO.addCategorie(chambre);\n categorieDAO.close();\n\n Date date = new Date();\n\n // Création de la classe utilitaire pour les dates\n Utils utils = new Utils(this);\n String dateSimpleDateFormat = utils.getDateSimpleDateFormat();\n SimpleDateFormat sdf = new SimpleDateFormat(dateSimpleDateFormat);\n String dateDuJour = sdf.format(date);\n\n // texte explicatif\n String explication = \"Cet objet est crée au demarrage de l'application, vous pouvez le supprimer en cliquant dessus.\";\n\n // on ajoute 6 bien pour exemple\n Bien bien1 = new Bien(1, \"Lunette\", dateDuJour, dateDuJour, \"\", \"Légèrement rayées sur le coté\", \"251\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien2 = new Bien(2, \"Frigo\", dateDuJour, dateDuJour, \"\", \"\", \"3599\", \"\", \"\", \"\", \"\", 1, explication, \"45DG425845DA\");\n Bien bien3 = new Bien(3, \"Ordinateur\", dateDuJour, dateDuJour, \"\", \"Manque une touche\", \"1099\", \"\", \"\", \"\", \"\", 3, explication, \"515D-TGH2336\");\n Bien bien4 = new Bien(4, \"Vaisselle\", dateDuJour, dateDuJour, \"\", \"Vaisselle de Mémé\", \"6902\", \"\", \"\", \"\", \"\", 1, explication, \"\");\n Bien bien5 = new Bien(5, \"TV\", dateDuJour, dateDuJour, \"\", \"\", \"350\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien6 = new Bien(6, \"Home cinéma\", dateDuJour, dateDuJour, \"\", \"Marque Pioneer - Une enceinte grésille un peu\", \"400\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n\n\n // dans la liste 1\n ArrayList<Integer> listeIdListe1 = new ArrayList<Integer>();\n listeIdListe1.add(1);\n\n\n bdao.open();\n\n bdao.addBien(bien1, listeIdListe1);\n bdao.addBien(bien2, listeIdListe1);\n bdao.addBien(bien3, listeIdListe1);\n bdao.addBien(bien4, listeIdListe1);\n bdao.addBien(bien5, listeIdListe1);\n bdao.addBien(bien6, listeIdListe1);\n\n bdao.close();\n }", "public void setDatabase(Connection _db);", "public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }", "private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }", "private static void atualizarBD(){\n SchemaUpdate se = new SchemaUpdate(hibernateConfig);\n se.execute(true, true);\n }", "private void FetchingData() {\n\t\t try { \n\t\t\t \n\t \tmyDbhelper.onCreateDataBase();\n\t \t \t\n\t \t\n\t \t} catch (IOException ioe) {\n\t \n\t \t\tthrow new Error(\"Unable to create database\");\n\t \n\t \t} \n\t \ttry {\n\t \n\t \t\tmyDbhelper.openDataBase();\n\t \t\tmydb = myDbhelper.getWritableDatabase();\n\t\t\tSystem.out.println(\"executed\");\n\t \t\n\t \t}catch(SQLException sqle){\n\t \n\t \t\tthrow sqle;\n\t \n\t \t}\n\t}", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }", "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}", "private void updateDB() {\n }", "public void formDatabaseTable() {\n }", "public void CDatabase()\r\n\t{\n\t\ttry{\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"12345\");\r\n\t\t\tStatement stmt=con.createStatement();\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from StudentsList\");\r\n\t\t\tNames.clear();\r\n\t\t\t//Names1.clear();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\t\tNames.add(rs.getString(1));\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\te.printStackTrace();\t\r\n\t\t\t}\r\n\t}", "private Connection database() {\n Connection con = null;\n String db_url = \"jdbc:mysql://localhost:3306/hospitalms\";\n String db_driver = \"com.mysql.jdbc.Driver\";\n String db_username = \"root\";\n String db_password = \"\";\n \n try {\n Class.forName(db_driver);\n con = DriverManager.getConnection(db_url,db_username,db_password);\n } \n catch (SQLException | ClassNotFoundException ex) { JOptionPane.showMessageDialog(null,ex); }\n return con;\n }", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "private void loadDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Check to make sure the Bmod Database is there, if not, try \n\t\t\t\t// downloading from the website.\n\t\t\t\tif(!Files.exists(m_databaseFile))\n\t\t\t\t{\n\t\t\t\t\tFiles.createDirectories(m_databaseFile.getParent());\n\t\t\t\t\n\t\t\t\t\tbyte[] file = ExtensionPoints.readURLAsBytes(\"http://\" + Constants.API_HOST + HSQL_DATABASE_PATH);\n\t\t\t\t\tif(file.length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t\t\t\tFiles.write(m_databaseFile, file, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// make sure we have the proper scriptformat.\n\t\t\t\tsetScriptFormatCorrectly();\n\t\t\t}catch(NullPointerException|IOException ex)\n\t\t\t{\n\t\t\t\tm_logger.error(\"Could not fetch database from web.\", ex);\n\t\t\t}\n\t\t\t\n\t\n\t\t\t\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\n\t\t\n\t\t\t\n\t\t\tString db = ExtensionPoints.getBmodDirectory(\"database\").toUri().getPath();\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:file:\" + db, \"sa\", \"\");\n\t\t\t\n\t\t\t// Setup Connection\n\t\t\tCSVRecordLoader ldr = new CSVRecordLoader();\n\t\t\n\t\t\t// Load all of the building independent plugins\n\t\t\tfor(Record<?> cp : ldr.getRecordPluginManagers())\n\t\t\t{\n\t\t\t\tm_logger.debug(\"Creating table: \" + cp.getTableName());\n\t\t\t\t// Create a new table\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tgetPreparedStatement(cp.getSQLTableDefn()).execute();\n\t\t\t\t} catch(SQLException ex)\n\t\t\t\t{\n\t\t\t\t\t// Table exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_logger.debug(\"Doing index:\" + cp.getIndexDefn());\n\t\t\t\t\tif(cp.getIndexDefn() != null)\n\t\t\t\t\t\tgetPreparedStatement(cp.getIndexDefn()).execute();\n\t\t\t\t}catch(SQLException ex)\n\t\t\t\t{\t// index exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tif(ex instanceof DatabaseIntegrityException)\n\t\t\t\tDatabase.handleCriticalError((DatabaseIntegrityException)ex);\n\t\t\telse\n\t\t\t\tDatabase.handleCriticalError(new DatabaseIntegrityException(ex));\n\t\t}\n\t\t\n\t}", "private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public DatabaseManagement() throws SQLException {\n\t\n\t\ttry {\n\t\t\t//use driver\n\t\t\tClass.forName(MYSQL_DRIVER);\n\t\t System.out.println(\"Class Loaded....\");\n\t\t\t\n\t\t //get connection to database\n\t\t\tmyConn = DriverManager.getConnection(getDbUrl(), getUserName(), getPassword());\n\t\t\t//System.out.println(\"Connected to database...\");\n\t\t\t\n\t\t\t//create a statement\n\t\t\tmyStmt = myConn.createStatement();\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\tcatch (Exception exc){\n\t\t\texc.printStackTrace();\n\t\t}\t\t\n\t}", "void setDataFromDBContent() {\n\n }", "public void conectar() {\n try {\n //Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n Class.forName(\"org.mariadb.jdbc.Driver\"); \n\n //con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\"); \n con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\");\n state = con.createStatement();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }", "private void configureDB() {\n\t\tmDb = mDbHelper.getWritableDatabase();\n\t}", "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}", "private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}", "private void createDatabase() throws Exception{\n Statement stm = this.con.createStatement();\n stm.execute(\"CREATE DATABASE IF NOT EXISTS \" + database +\n \" DEFAULT CHARACTER SET utf8 COLLATE utf8_persian_ci\");\n }", "public connect_db() {\n initComponents();\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }", "public beranda() {\n initComponents();\n koneksi DB = new koneksi();\n DB.config();\n con = DB.con;\n st = DB.stm;\n ShowDataStore();\n ShowPermintaanStore();\n ShowPermintaanGudang();\n ShowDataStoreKurang15();\n }", "public void schliessen() {\n try {\n mDb.close();\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n }", "static void dataToevoegen(String querry) {\n try {\n Statement stmt = connectieMaken().createStatement(); //\n stmt.execute(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n }", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "private static Connection baglan() {\n Connection baglanti = null;\n try {\n baglanti = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/SogutucuKontrolCihazi\",\n \"postgres\", \"159753\");\n if (baglanti != null) //bağlantı varsa\n System.out.println(\"Veritabanına bağlandı!\");\n else\n System.out.println(\"Bağlantı girişimi başarısız!\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return baglanti;\n }", "@RequestMapping(value=\"/pokemon\", method =RequestMethod.GET)\n\tpublic boolean initDataBase() {//Inicializacion de la BD. Solo llamado una vez al iniciar la aplicacion\n\t\tboolean done = false;\n\t\thandler = new MongoDBQueries();//Inicializacion del objeto\n\t\thandler.initialize();//Inicializacion de la BD y la coleccion\n\t\thandler.getFile();//Lectura del fichero JSON e introduccion en la coleccion\n\t\tdone = true;\n\t\treturn done;\n\t}", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "void smem_init_db() throws SoarException, SQLException, IOException\n {\n smem_init_db(false);\n }", "@SuppressWarnings(\"unchecked\")\npublic final void initDatabase()throws SQLException {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con =(Connection) DriverManager.getConnection(\"jdbc:mysql://localhost:3306/yajnab?zeroDateTimeBehavior=convertToNull\",\"root\",\"11\"); \n } \n catch (ClassNotFoundException | SQLException e) {\n }\n }", "public void creatDataBase(String dbName);", "public void writeDatabase();", "public UtentiDB(){\r\n this.utenti = new LinkedList<Utente>();\r\n }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "private DBManager() throws Exception {\n file = new File(\"pdfLibraryDB.mv.db\");\n if (!file.exists()) {\n conn = connect();\n stmt = conn.createStatement();\n query = \"CREATE TABLE user(username VARCHAR(30) PRIMARY KEY, password VARCHAR(32));\" +\n \"CREATE TABLE category(id VARCHAR(30) PRIMARY KEY, name VARCHAR(30), username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE);\"+\n \"CREATE TABLE favorite(id VARCHAR(30) PRIMARY KEY, path VARCHAR(500), keyword VARCHAR(200), searchType VARCHAR(10), category VARCHAR(30),username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE, FOREIGN KEY(category) REFERENCES category(id) ON UPDATE CASCADE ON DELETE CASCADE);\" +\n \"CREATE TABLE history(id VARCHAR(30) PRIMARY KEY, keyword VARCHAR(200), type VARCHAR(10), directory VARCHAR(500), username VARCHAR(30), FOREIGN KEY(username) REFERENCES user(username) ON UPDATE CASCADE ON DELETE CASCADE);\";\n stmt.executeUpdate(query);\n stmt.close();\n conn.close();\n System.out.println(\"DB created!\");\n }\n }", "public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}", "private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public void dbConnection()\n {\n\t try {\n\t \t\tClass.forName(\"org.sqlite.JDBC\");\n // userName=rpanel.getUserName();\n String dbName=userName+\".db\";\n c = DriverManager.getConnection(\"jdbc:sqlite:database/\"+dbName);\n }\n //catch the exception\n catch ( Exception e ) \n { \n System.err.println( \"error in catch\"+e.getClass().getName() + \": \" + e.getMessage() );\n System.exit(0);\n }\n\t if(c!=null)\n\t {\n System.out.println(\"Opened database successfully\");\n\t System.out.println(c);\n createData();\n\t}\n }", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "private void testDB(){\n DB=new LinkedList<>(); \n DB.add(new Offer(\"ID1\",\"AGV923\",\"Nico\",\"Leo\",\"Salvo\",\"\"));\n DB.add(new Offer(\"ID2\",\"ADJ325\",\"Tizio\", \"Caio\", \"Sempronio\",\"\"));\n DB.add(new Offer(\"ID3\",\"T56G2G\",\"Antonella\", \"Daniele\",\"\",\"\"));\n }", "private void openDatabase() {\n database = new DatabaseExpenses(this);\n database.open();\n }", "public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}", "Object getDB();", "private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}", "private void TampilData() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"NO\");\n model.addColumn(\"ID\");\n model.addColumn(\"NAME\");\n model.addColumn(\"USERNAME\");\n tabelakses.setModel(model);\n\n //menampilkan data database kedalam tabel\n try {\n int i=1;\n java.sql.Connection conn = new DBConnection().connect();\n java.sql.Statement stat = conn.createStatement();\n ResultSet data = stat.executeQuery(\"SELECT * FROM p_login order by Id asc\");\n while (data.next()) {\n model.addRow(new Object[]{\n (\"\" + i++),\n data.getString(\"Id\"),\n data.getString(\"Name\"),\n data.getString(\"Username\")\n });\n tabelakses.setModel(model);\n }\n } catch (Exception e) {\n System.err.println(\"ERROR:\" + e);\n }\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 static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"mario46@hotmail.com\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "private TexeraDb() {\n super(\"texera_db\", null);\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "public void OpenDB() {\n\t\tString JDriver = \"com.microsoft.sqlserver.jdbc.SQLServerDriver\";// 数据库驱动\n\t\tSystem.out.println(\"数据库驱动成功\");\n\t\tString connectDB = \"jdbc:sqlserver://localhost:1433;DatabaseName=bookstoreDB\";// 数据库连接\n\t\ttry {\n\t\t\tClass.forName(JDriver);// 加载数据库引擎,返回给定字符串名的类\n\t\t} catch (ClassNotFoundException e) {// e.printStackTrace();\n\t\t\tSystem.out.println(\"加载数据库引擎失败\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\ttry {\n\t\t\tconDB = DriverManager.getConnection(connectDB, \"sa\", \"123456\");// 连接数据库对象\n\t\t\tSystem.out.println(\"连接数据库成功\");\n\t\t\tstaDB = conDB.createStatement();\n\t\t} // 创建SQL命令对象\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"数据库连接错误\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public v_home() {\n initComponents();\n koneksi = DatabaseConnection.getKoneksi(\"localhost\", \"5432\", \"postgres\", \"posgre\", \"db_hesco\");\n showData();\n showStok();\n }", "public ConexionDB() {\n\n\t\tconn = null;\n\n\t}", "void fillDatabase() {\n Type.type( \"FOOD\" );\n Type.type( \"HOT\" );\n Type.type( \"SNACK\" );\n }", "public void initDatabase(){\n CovidOpener cpHelper = new CovidOpener(this);\n cdb = cpHelper.getWritableDatabase();\n }", "public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }", "@ActionKey(\"db\")\n\tpublic void testDB() {\n\t\tUser user = User.dao.findById(1, \"qword_id\");\n\t\trenderText(\"data in database:\" + user.getStr(\"qword_id\"));\n\t\t\n\t}", "public static void main(String[] args){\n\r\n StringDB Database = new StringDB();\r\n Database.execute(\"INSERT INTO teachers VALUES ( 'Martin_Aumüller' , 'maau' ) ;\");\r\n\r\n\r\n\r\n }", "public static void m1()\r\n\t{ \r\n\t\tUsername.clear();\r\n\t\tPassword.clear();\r\n\t\tId.clear();\r\n\t\ttry{ \r\n\t\tClass.forName(\"com.mysql.jdbc.Driver\"); //driver registration\r\n\t\tConnection con= (Connection) DriverManager.getConnection( \r\n\t\t\"jdbc:mysql://localhost:3306/rakesh\",\"root\",\"\");//this are used to establish connection to the database,so never fiddle with this \r\n\t\t//here sonoo is database name, root is user name and password \r\n\t\t\r\n\t/*\tfor (String object: foodlist) {\r\n\t\t System.out.println(object);\r\n\t\t}\r\n\t\tUsername.forEach(a->out.println(a\\t\\t));*/\r\n\t\t\r\n\t\t\r\n\t\tStatement stmt=(Statement) con.createStatement();//helps in creating a statement \r\n\t\tResultSet rs=(ResultSet) stmt.executeQuery(\"select * from rak\"); //helps to write a query as the statement is allowed\t\t\t\r\n\t\twhile(rs.next()) \r\n\t\t{\r\n\t\t\tUsername.add(rs.getString(\"UserName\"));\r\n\t\t\tPassword.add(rs.getString(\"Password\"));\r\n\t\t\tId.add(rs.getInt(\"id\"));\r\n\t\t}\r\n\t\t\r\n\t\tcon.close(); //to close the connection\r\n\t\t}catch(Exception e){ System.out.println(e);}\r\n\t \r\n\t\t}", "DatabaseInformationFull(Database db) {\n super(db);\n }", "private boolean inDatabase() {\r\n \t\treturn inDatabase(0, null);\r\n \t}", "String getDatabase();", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "public RekapKamar() {\n Koneksi DB = new Koneksi();\n DB.koneksi();\n con = DB.conn;\n stat = DB.stmn;\n initComponents();\n loadTabel();\n }", "public void database() throws IOException\n {\n \tFile file =new File(\"data.txt\");\n\t if(!file.exists())\n\t {\n\t \tSystem.out.println(\"File 'data.txt' does not exit\");\n\t System.out.println(file.createNewFile());\n\t file.createNewFile();\n\t databaseFileWrite(file);//call the databaseFileRead() method, to initialize data from ArrayList and write data into data.txt\n\t }\n\t else\n\t {\n\t \tdatabaseFileRead();//call the databaseFileRead() method, to load data directly from data.txt\n\t }\n }", "public String getDatabase();", "public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void conexaoL() {\n try {\n System.setProperty(\"jdbc.Drivers\", driver);\n con = DriverManager.getConnection(caminho, usuario, senha);\n //JOptionPane.showMessageDialog(null, \"Conectou\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha ao se conectar com banco de Dados:\\n\" + ex);\n new ArquivoLog(\"...Erros 1\"+ex);\n }\n }" ]
[ "0.6917767", "0.68407094", "0.6817663", "0.6788311", "0.66675574", "0.6622597", "0.66040695", "0.6587308", "0.6584402", "0.65668136", "0.6494579", "0.6480342", "0.6476908", "0.6421197", "0.64037573", "0.63825834", "0.63681567", "0.6366194", "0.6323873", "0.63191235", "0.62929296", "0.62747055", "0.62744164", "0.6265142", "0.6262794", "0.62504536", "0.6234246", "0.6228211", "0.6221044", "0.6217807", "0.6197934", "0.6195488", "0.6190466", "0.6188425", "0.6184635", "0.61776584", "0.61589205", "0.615599", "0.6142621", "0.61384505", "0.6134493", "0.6134234", "0.61311865", "0.6128235", "0.6125251", "0.6118504", "0.61144984", "0.6108645", "0.6106109", "0.6103813", "0.6083659", "0.60790193", "0.6071703", "0.6068346", "0.6063086", "0.60544676", "0.60509086", "0.6047145", "0.6043691", "0.60361886", "0.60347426", "0.6025216", "0.6023344", "0.6020764", "0.60156596", "0.60135156", "0.60128176", "0.60102844", "0.6002696", "0.6001008", "0.59997904", "0.5998493", "0.59859633", "0.59794", "0.59757954", "0.5974017", "0.5973439", "0.5972079", "0.5970621", "0.5968681", "0.59658015", "0.5963491", "0.5962169", "0.5961663", "0.59580004", "0.59541273", "0.5950171", "0.5935502", "0.5935072", "0.59332156", "0.5929634", "0.59289676", "0.5927171", "0.5924301", "0.5922556", "0.5919774", "0.5912585", "0.5909016", "0.5908846", "0.59084564", "0.5907215" ]
0.0
-1
Hasil query yang merepresentasikan baris data
public static Boolean updateData(String query){ int affectedRow = 0; connect(); try{ Statement stm = conn.createStatement(); affectedRow = stm.executeUpdate(query); }catch(Exception e) { System.out.println(e.getMessage()); } disconnect(); if(affectedRow == 0) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "private void showData(String query) {\n try {\n ResultSet rs = DB.search(query);\n tbl.setRowCount(0);\n while (rs.next()) {\n Vector v = new Vector();\n v.add(rs.getString(1)); //inv id\n v.add(rs.getString(6)); //cus name\n v.add(rs.getString(2)); //date\n v.add(rs.getString(3)); //time\n v.add(rs.getString(10)); //price\n v.add(rs.getString(11)); //discount\n v.add(rs.getString(12)); //total\n v.add(rs.getString(13)); //pay method\n tbl.addRow(v);\n }\n //Calculating the total value of invoices\n double total = 0d;\n for (int row = 0; row < tbl.getRowCount(); row++) {\n total = total + Double.parseDouble(tbl.getValueAt(row, 4).toString());\n }\n lbAllValue.setText(String.valueOf(total));\n lbNoofnvs.setText(String.valueOf(tbl.getRowCount()));\n setCOLORSTB(jTable1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "String getBarcharDataQuery();", "Query query();", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "@Override\r\n\tprotected void onBoQuery() throws Exception {\n\t\tUIDialog querydialog = getQueryUI();\r\n\t\tif (querydialog.showModal() != UIDialog.ID_OK) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// 得到查询条件\r\n\t\tString strWhere = ((HYQueryConditionDLG) querydialog).getWhereSql();\r\n\t\t// 得到所有的查询标签\r\n\t\tConditionVO[] ttc = ((HYQueryConditionDLG) querydialog)\r\n\t\t\t\t.getQryCondEditor().getGeneralCondtionVOs();\r\n\t\t// ConditionVO[] vos =\r\n\t\t// ((HYQueryConditionDLG)querydialog).getQryCondEditor().getGeneralCondtionVOs();\r\n\t\tString sendsignState = \"\";\r\n\t\tfor (ConditionVO vo : ttc) {\r\n\t\t\tif (\"tb_pointposition.pp_archive\".equals(vo.getFieldCode())) {\r\n\t\t\t\tsendsignState = vo.getValue();\r\n\t\t\t\tif (\"Y\".equals(sendsignState)) {\r\n\t\t\t\t\tstrWhere = StringUtil.replaceIgnoreCase(strWhere,\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive = 'Y'\",\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive=1 and dr=0 \");\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Edit).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(\r\n\t\t\t\t\t\t\tfalse);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Delete)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Refresh)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Print).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t\t\t.setEnabled(false);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\t\t\t\t\tgetBillUI().updateButtons();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstrWhere = StringUtil.replaceIgnoreCase(strWhere,\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive = 'N'\",\r\n\t\t\t\t\t\t\t\" (tb_pointposition.pp_archive=0 or tb_pointposition.pp_archive is null) and dr=0 \");\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Edit).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Delete)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Refresh)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Print).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t\t\t.setEnabled(false);\r\n\t\t\t\t\tgetBillUI().updateButtons();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tSuperVO[] queryVos = queryHeadVOs(strWhere.toString());\r\n\r\n\t\tgetBufferData().clear();\r\n\t\t// 增加数据到Buffer\r\n\t\taddDataToBuffer(queryVos);\r\n\r\n\t\tupdateBuffer();\r\n\t\t// 修改按钮属性\r\n\t\tif (\"Y\".equals(sendsignState)) {\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\t\r\n\t\t\tmyaddbuttun=false;\r\n\t\t} else {\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\t\r\n\t\t\tmyaddbuttun=true;\r\n\t\t}\r\n\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\tgetBillUI().setCardUIState();\r\n\t\t// 在转回列表显示界面,显示数据\r\n\t\tsuper.onBoReturn();\r\n\t\t\r\n\t}", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "public abstract Statement queryToRetrieveData();", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public void getChallanRecords(TaxChallan taxChallan){\r\n\t\tObject data[][] = null;\r\n\t\r\n\t\ttry {\r\n\t\t\tString challanQuery = \"SELECT HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE,HRMS_TAX_CHALLAN_DTL.EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,HRMS_TAX_CHALLAN_DTL.CHALLAN_TDS,\"\r\n\t\t\t\t\t+ \" NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_SURCHARGE,0),NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_EDU_CESS,0),NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_TOTAL_TAX,0) FROM\"\r\n\t\t\t\t\t+ \" HRMS_TAX_CHALLAN_DTL INNER JOIN HRMS_TAX_CHALLAN ON(HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=HRMS_TAX_CHALLAN.CHALLAN_CODE)\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON(HRMS_TAX_CHALLAN_DTL.EMP_ID=HRMS_EMP_OFFC.EMP_ID)\"\r\n\t\t\t\t\t+ \" WHERE HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID()\r\n\t\t\t\t\t+ \" ORDER BY UPPER(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME)\";\r\n\t\t\tdata = getSqlModel().getSingleResult(challanQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in challanQuery in getChallanRecords method\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\tif(data.length> 0 && data!=null){\r\n\t\ttaxChallan.setListFlag(\"true\");\r\n\t\tArrayList<Object> chList = new ArrayList<Object>();\r\n\t\ttry{\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t\t\tTaxChallan bean=new TaxChallan(); \r\n\t\t\tbean.setChallanCode(String.valueOf(data[i][0]));//Challan Code\r\n\t\t\tbean.setEmpId(String.valueOf(data[i][1]));//Employee Id\r\n\t\t\tbean.setEmpToken(String.valueOf(data[i][2]));//Token No.\r\n\t\t\tbean.setEmpName(String.valueOf(data[i][3]));//Emp Name\r\n\t\t\tbean.setChallanTax(Utility.twoDecimals(String.valueOf(data[i][4])));//Tds\r\n\t\t\t//bean.setChallanSurcharge(String.valueOf(data[i][5]));\r\n\t\t\tbean.setChallanSurcharge(Utility.twoDecimals(String.valueOf(data[i][5])));//Surcharge\r\n\t\t\tbean.setChallanEduCess(Utility.twoDecimals(String.valueOf(data[i][6])));//Education cess\r\n\t\t\tbean.setChallanTotTax(Utility.twoDecimals(String.valueOf(data[i][7])));\t//Total Tax\r\n\t\t//\tbean.setChallanTotTax(String.valueOf(data[i][7]));\r\n\t\t//\tbean.setPayDate(String.valueOf(data[i][8]));\r\n\t\t\t\r\n\t\t//\tif(String.valueOf(data[i][9]).equals(\"null\") || String.valueOf(data[i][9]).equals(\"\")){\r\n\t\t//\t\tbean.setDeductDate(\"\");\r\n\t\t//\t}else{\r\n\t\t//\tbean.setDeductDate(String.valueOf(data[i][9]).trim());\r\n\t\t//\t}\r\n\t\t\t\r\n\t\t//\tif(String.valueOf(data[i][10]).equals(\"null\") || String.valueOf(data[i][10]).equals(\"\")){\r\n\t\t//\t\tbean.setDepDate(\"\");\r\n\t\t//\t}else{\r\n\t\t//\tbean.setDepDate(String.valueOf(data[i][10]).trim());\r\n\t\t//\t}\r\n\t\t\tchList.add(bean);\r\n\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in data loop\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\t taxChallan.setChallanList(chList);\r\n\t\t \r\n\t\t} //end of if\r\n\t\r\n\t}", "public void buscar(){\n \n String atributo=txtBuscar.getText();\n String consulta=extraerCombo();\n DefaultTableModel modelo=da.consultar(consulta, atributo);\n tblConsultar.setModel(modelo);\n lblTotal.setText(\"Se encontraron: \"+Integer.toString(da.getTotalRegistros())+\" resultados\");\n \n }", "static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }", "public void Query() {\n }", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public void queryTransactionDetail(){\n System.out.println(\"-----find transaction detail by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n String sql = \"select * from TransactionContains join Merchandise on TransactionContains.ProductID = Merchandise.ProductID where TransactionID=\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n sql+=id;\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"product id: \"+result.getInt(\"ProductID\"));\n System.out.println(\"product name: \"+result.getString(\"ProductName\"));\n System.out.println(\"actual price: \"+result.getDouble(\"ActualPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "Data<List<Boards>> getSearchBoards(String query);", "public void setMaxResult() {\n try {\n StringBuilder sql = new StringBuilder(\"select count(*) from LAPTOP_DATA a, LAPTOP_CONFIGURATION b where a.ID = b.LAPTOP_DATA_ID AND 1=1 \");\n ArrayList param = new ArrayList();\n if(laptop != null){\n if(laptop.getWeb() != null && !\"\".equals(laptop.getWeb())){\n sql.append(\" AND web = ? \");\n param.add(laptop.getWeb());\n }\n\n if(laptop.getBrand() != null && !\"\".equals(laptop.getBrand())){\n if(\"null\".equals(laptop.getBrand())){\n sql.append(\" AND brand is null \");\n }else{\n sql.append(\" AND brand = ? \");\n param.add(laptop.getBrand());\n }\n }\n\n if(laptop.getName() != null && !\"\".equals(laptop.getName())){\n sql.append(\" AND lower(name) like ? \");\n param.add(\"%\" + laptop.getName().toLowerCase() + \"%\");\n }\n\n if(laptop.getModel() != null && !\"\".equals(laptop.getModel())){\n if(\"null\".equals(laptop.getModel().toLowerCase())){\n sql.append(\" AND model is null \");\n }else{\n sql.append(\" AND lower(model) like ? \");\n param.add(laptop.getModel().toLowerCase());\n }\n }\n\n if(laptop.getChip() != null && !\"\".equals(laptop.getChip())){\n if(\"null\".equals(laptop.getChip())){\n sql.append(\" AND chip is null \");\n }else{\n sql.append(\" AND chip = ? \");\n param.add(laptop.getChip());\n }\n }\n\n if(laptop.getSpeed() != null && !\"\".equals(laptop.getSpeed())){\n if(\"null\".equals(laptop.getSpeed().toLowerCase())){\n sql.append(\" AND speed is null \");\n }else{\n sql.append(\" AND speed = ? \");\n param.add(laptop.getSpeed());\n }\n }\n\n if(laptop.getStorage() != null && !\"\".equals(laptop.getStorage())){\n if(\"null\".equals(laptop.getStorage())){\n sql.append(\" AND storage is null \");\n }else{\n sql.append(\" AND storage = ? \");\n param.add(laptop.getStorage());\n }\n }\n\n if(laptop.getHddType() != null && !\"\".equals(laptop.getHddType())){\n if(\"null\".equals(laptop.getHddType())){\n sql.append(\" AND hdd_Type is null \");\n }else{\n sql.append(\" AND hdd_Type = ? \");\n param.add(laptop.getHddType());\n }\n }\n\n if(laptop.getRam() != null && !\"\".equals(laptop.getRam())){\n if(\"null\".equals(laptop.getRam())){\n sql.append(\" AND ram is null \");\n }else{\n sql.append(\" AND ram = ? \");\n param.add(laptop.getRam());\n }\n }\n\n if(laptop.getVga() != null && !\"\".equals(laptop.getVga())){\n if(\"null\".equals(laptop.getVga())){\n sql.append(\" AND vga is null \");\n }else{\n sql.append(\" AND vga = ? \");\n param.add(laptop.getVga());\n }\n }\n\n if(laptop.getScreen() != null && !\"\".equals(laptop.getScreen())){\n if(\"null\".equals(laptop.getScreen().toLowerCase())){\n sql.append(\" AND screen is null \");\n }else{\n sql.append(\" AND screen = ? \");\n param.add(laptop.getScreen());\n }\n }\n\n if(laptop.getTouchscreen() != null && !\"\".equals(laptop.getTouchscreen())){\n if(\"null\".equals(laptop.getTouchscreen())){\n sql.append(\" AND touchscreen is null \");\n }else{\n sql.append(\" AND touchscreen = ? \");\n param.add(laptop.getTouchscreen());\n }\n }\n\n if(laptop.getOs() != null && !\"\".equals(laptop.getOs())){\n if(\"null\".equals(laptop.getOs())){\n sql.append(\" AND os is null \");\n }else{\n sql.append(\" AND os = ? \");\n param.add(laptop.getOs());\n }\n }\n\n if(laptop.getDvd() != null && !\"\".equals(laptop.getDvd())){\n if(\"null\".equals(laptop.getDvd())){\n sql.append(\" AND dvd is null \");\n }else{\n sql.append(\" AND dvd = ? \");\n param.add(laptop.getDvd());\n }\n }\n \n if(laptop.getBattery() != null && !\"\".equals(laptop.getBattery())){\n if(\"null\".equals(laptop.getBattery())){\n sql.append(\" AND battery is null \");\n }else{\n sql.append(\" AND battery = ? \");\n param.add(laptop.getBattery());\n }\n }\n\n if(laptop.getApprove() != null && \"on\".equals(laptop.getApprove())){\n sql.append(\" and approve = 'N' \");\n }\n if(laptop.getToday() != null && \"on\".equals(laptop.getToday())){\n sql.append(\" and Cast(a.last_update as date) = CAST(getdate() as date) \");\n }\n }\n\n SQLQuery query = getSession().createSQLQuery(sql.toString());\n for (int i = 0; i < param.size(); i++) {\n query.setParameter(i, param.get(i));\n }\n List lst = query.list();\n Integer countRecord = (Integer) lst.get(0);\n if (String.valueOf(count).length() >= 6) {\n count = countRecord.intValue();\n }\n jsonDataGrid.setTotalRows(countRecord.intValue());\n } catch (Exception ex) {\n jsonDataGrid.setTotalRows(0);\n ex.printStackTrace();\n }\n }", "public static void searchAll(){\r\n try {\r\n singleton.dtm = new DefaultTableModel(); \r\n singleton.dtm.setColumnIdentifiers(general);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n Statement stmt = singleton.conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM articulos\");\r\n //SELECT a.*,c.nombre FROM articulos a,categorias c,prodcategoria p WHERE a.codigo = p.articulo AND c.categoria_id = p.categoria\r\n \r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectos(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2)); \r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "public void getData( ){\n model.getDataVector( ).removeAllElements( );\n model.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement stat = (Statement)koneksi_db.config( ).createStatement( );\n String sql = \"Select * from daftar_log\";\n ResultSet res = stat.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(res.next ()){\n Object[ ] obj = new Object[6];\n obj[0] = res.getString(\"id_log\"); \n obj[1] = res.getString(\"nama_kejadian\");\n model.addRow(obj);\n }\n }\n catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "private void getDataBahasa(){\n\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Bahasa\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1= response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "protected String buildDataQuery() {\n StringBuilder sql = new StringBuilder(\"select\");\n String delim = \" \";\n for (String vname : getColumnNames()) {\n sql.append(delim).append(vname);\n delim = \", \";\n }\n \n Element ncElement = getNetcdfElement();\n \n String table = ncElement.getAttributeValue(\"dbTable\");\n if (table == null) {\n String msg = \"No database table defined. Must set 'dbTable' attribute.\";\n _logger.error(msg);\n throw new TSSException(msg);\n }\n sql.append(\" from \" + table);\n \n String predicate = ncElement.getAttributeValue(\"predicate\");\n if (predicate != null) sql.append(\" where \" + predicate);\n \n //Order by time.\n String tname = getTimeVarName();\n sql.append(\" order by \"+tname+\" ASC\");\n \n return sql.toString();\n }", "public List<TblRetur>getAllDataRetur();", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "public List<Dishes> select(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where 1=1 \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n /*list.add(book.getBookname());\n list.add(book.getPrice());\n list.add(book.getAuthor());\n list.add(book.getPic());\n list.add(book.getPublish());*/\n }\n return dao.select(sql.toString(), list.toArray());\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void getDataTakfidul(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Takhfidul Qur'an\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "public List<Dishes> selectHuai(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where \\\"cuisines\\\"='»´Ñï²Ë' \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n }\n return dao.select(sql.toString(), list.toArray());\n }", "private void selectAll() {\n //To change body of generated methods, choose Tools | Templates.\n \n tabelpulsa.setModel(model);\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n \n \n try {\n Connection c=koneksidb.getkoneksi();\n Statement s=c.createStatement();\n ResultSet r=s.executeQuery(\"select* from pulsa\");\n while(r.next()){\n Object[] pulsa = new Object[5]; \n pulsa[0]=r.getString(\"operator\");\n pulsa[1]=r.getString(\"id_pulsa\");\n pulsa[2]=r.getString(\"harga_default\");\n pulsa[3]=r.getString(\"harga_jual\");\n pulsa[4]=r.getString(\"harga_member\");\n model.addRow(pulsa);\n }\n }catch (SQLException e){\n System.out.println(\"terjadi error :\" +e);\n }\n }", "public void searchEmployee(TaxChallan taxChallan, HttpServletRequest request) {\r\n\t\tObject data[][] = null;\r\n\t\ttry {\r\n\t\t\tString challanQuery = \"SELECT HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE,HRMS_TAX_CHALLAN_DTL.EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,HRMS_TAX_CHALLAN_DTL.CHALLAN_TDS,\"\r\n\t\t\t\t\t+ \" TO_CHAR(NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_SURCHARGE,0), 9999999990.99),TO_CHAR(NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_EDU_CESS,0), 9999999990.99),TO_CHAR(NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_TOTAL_TAX,0), 9999999990.99) \" \r\n\t\t\t\t\t+ \" FROM HRMS_TAX_CHALLAN_DTL \"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_TAX_CHALLAN ON(HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=HRMS_TAX_CHALLAN.CHALLAN_CODE)\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON(HRMS_TAX_CHALLAN_DTL.EMP_ID=HRMS_EMP_OFFC.EMP_ID)\"\r\n\t\t\t\t\t+ \" WHERE HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID()\r\n\t\t\t\t\t+ \" ORDER BY EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME\";\r\n\t\t\tdata = getSqlModel().getSingleResult(challanQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in challanQuery in getChallanRecords method\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\tif(data.length> 0 && data!=null){\r\n\t\t\tint rownum = 0;\r\n\t\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\t\tif(String.valueOf(data[i][1]).equals(taxChallan.getSearchForEmpId())){\r\n\t\t\t\t\trownum = i;\r\n\t\t\t\t} //end of if\r\n\t\t\t} //end of loop\r\n\t\t\tlogger.info(\"rownum======\"+rownum);\r\n\t\t\tint recPerPage = 20;\r\n\t\t\tString[] pageIndex = Utility.doPaging(taxChallan.getMyPage(), data.length, recPerPage);\r\n\t\t\tif (pageIndex == null) {\r\n\t\t\t\tpageIndex[0] = \"0\";\r\n\t\t\t\tpageIndex[1] = \"20\";\r\n\t\t\t\tpageIndex[2] = \"1\";\r\n\t\t\t\tpageIndex[3] = \"1\";\r\n\t\t\t\tpageIndex[4] = \"\";\r\n\t\t\t} //end of if\r\n\t\t\trequest.setAttribute(\"totalPage\", Integer.parseInt(String\r\n\t\t\t\t\t.valueOf(pageIndex[2])));\r\n\t\t\t\r\n\r\n\t\t\tif (pageIndex[4].equals(\"1\"))\r\n\t\t\t\ttaxChallan.setMyPage(\"1\");\r\n\t\t\t\r\n\t\t\ttaxChallan.setListFlag(\"true\");\r\n\t\t\tArrayList<Object> chList = new ArrayList<Object>();\r\n\t\t\t\r\n\t\t\tint startRecNo = 0;\r\n\t\t\tint endRecNo = 0;\r\n\t\t\t\r\n\t\t\tint pageDiv = rownum/recPerPage;\r\n\t\t\t\r\n\t\t\tstartRecNo = pageDiv * recPerPage;\r\n\t\t\tendRecNo = startRecNo + recPerPage - 1;\r\n\t\t\t\r\n\t\t\tif(data.length <= endRecNo){\r\n\t\t\t\tendRecNo = data.length-1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlogger.info(\"startRecNo======\"+startRecNo);\r\n\t\t\tlogger.info(\"endRecNo======\"+endRecNo);\r\n\t\t\tint pageRemainder = (rownum+1)%recPerPage;\r\n\t\t\tlogger.info(\"pageRemainder======\"+pageRemainder);\r\n\t\t\t\r\n\t\t\tint highlightRec = 0;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(pageRemainder > 0){\r\n\t\t\t\tpageDiv = pageDiv+1;\r\n\t\t\t\thighlightRec = pageRemainder - 1;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tpageDiv = pageDiv+1;\r\n\t\t\t\thighlightRec = recPerPage - 1;\r\n\t\t\t}\r\n\t\t\trequest.setAttribute(\"highlightRec\", highlightRec);\r\n\t\t\tlogger.info(\"highlightRec======\"+highlightRec);\r\n\t\t\trequest.setAttribute(\"pageNo\", pageDiv);\r\n\t\t\ttaxChallan.setMyPage(String.valueOf(pageDiv));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tfor (int i = startRecNo; i <= endRecNo; i++) {\r\n\t\t\t\t\tTaxChallan bean=new TaxChallan(); \r\n\t\t\t\t\tbean.setChallanCode(String.valueOf(data[i][0]));//Challan Code\r\n\t\t\t\t\tbean.setEmpId(String.valueOf(data[i][1]));//Employee Id\r\n\t\t\t\t\tbean.setEmpToken(String.valueOf(data[i][2]));//Token No.\r\n\t\t\t\t\tbean.setEmpName(String.valueOf(data[i][3]));//Emp Name\r\n\t\t\t\t\tbean.setChallanTax(Utility.twoDecimals(String.valueOf(data[i][4])));//Tds\r\n\t\t\t\t\tbean.setChallanSurcharge(Utility.twoDecimals(String.valueOf(data[i][5])));//Surcharge\r\n\t\t\t\t\tbean.setChallanEduCess(Utility.twoDecimals(String.valueOf(data[i][6])));//Education cess\r\n\t\t\t\t\tbean.setChallanTotTax(Utility.twoDecimals(String.valueOf(data[i][7])));\t//Total Tax\r\n\t\t\t\t\r\n\t\t\t\t\tchList.add(bean);\r\n\t\t\t\t} //end of loop\r\n\t\t\t}catch (Exception e) {\r\n\t\t\t\tlogger.error(\"exception in data loop\",e);\r\n\t\t\t} //end of catch\r\n\t\t\t taxChallan.setChallanList(chList);\r\n\t\t} //end of if\r\n\t\t\r\n\t\tint fromYear=0;\r\n\t\tint toYear=0;\r\n\t\tif(Integer.parseInt(taxChallan.getMonth())>=4 && Integer.parseInt(taxChallan.getMonth())<=12) {\r\n\t\t\tfromYear =Integer.parseInt(taxChallan.getYear());\r\n\t\t\ttoYear=fromYear+1;\r\n\t\t } //end of if\r\n\t\telse if(Integer.parseInt(taxChallan.getMonth())>=1 && Integer.parseInt(taxChallan.getMonth())<=3) {\r\n\t\t fromYear =Integer.parseInt(taxChallan.getYear())-1;\r\n\t\t toYear=Integer.parseInt(taxChallan.getYear());\r\n\t\t} //end of else if\t\r\n\t\t\r\n\t\tString empIncomeQuery = \"SELECT TO_CHAR(NVL(TDS_TAXABLE_INCOME,0), 9999999990.99),TDS_EMP_ID FROM HRMS_TDS \" \r\n\t\t\t+\" LEFT JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_TDS.TDS_EMP_ID) \"\r\n\t\t\t+\" WHERE TDS_FROM_YEAR=\"+fromYear+\" AND TDS_TO_YEAR=\"+toYear+\" AND EMP_DIV = 22 \"\r\n\t\t\t+\" ORDER BY TDS_EMP_ID\";\r\n\t\t\tObject empTaxIncome[][] = getSqlModel().getSingleResult(empIncomeQuery);\r\n\t\t\t try {\r\n\t\t\t\t\tif(empTaxIncome != null && empTaxIncome.length != 0){\r\n\t\t\t\t\t\t ArrayList<Object> valuesList = new ArrayList<Object>();\r\n\t\t\t\t\t\t for (int i = 0; i < empTaxIncome.length; i++) {\r\n\t\t\t\t\t\t\t\t TaxChallan bean = new TaxChallan();\r\n\t\t\t\t\t\t\t\t bean.setHidListEmpId(String.valueOf(empTaxIncome[i][1]));\r\n\t\t\t\t\t\t\t\t bean.setHidListTdsIncome(String.valueOf(empTaxIncome[i][0]));\r\n\t\t\t\t\t\t\t\t valuesList.add(bean);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttaxChallan.setValuesList(valuesList);\r\n\t\t\t\t\t }\r\n\t\t\t\t} catch (RuntimeException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\ttaxChallan.setEnterTotalTax(\"0\");\r\n\t\t\ttaxChallan.setAddedTds(\"0\");\r\n\t\t\ttaxChallan.setAddedSurcharge(\"0\");\r\n\t\t\ttaxChallan.setAddedEduCess(\"0\");\r\n\t\t\ttaxChallan.setAddEmpId(\"\");\r\n\t\t\ttaxChallan.setAddEmpToken(\"\");\r\n\t\t\ttaxChallan.setAddEmpName(\"\");\r\n\t\t\ttaxChallan.setF9AddEmpFlag(\"false\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n String quey = \"select * from places p, branches b where b.place = p.id_place and p.place_name like 'TUNJA' \";\n //String quey = \"select * from branches \";\n List list = ModuleQueryController.findData(quey);\n \n for (Object l : list){\n System.out.println(l);\n //if(l instanceof Branch){\n // Branch p = (Branch) l;\n // System.out.println(p);\n //}\n //Object yourObject = (Object) SerializationUtils.deserialize(l);\n }\n System.out.println(list);\n }", "public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }", "public void getSelectRecord(TaxChallan taxChallan){\r\n\t\tObject taxData[][] = null;\r\n\t\ttry{\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT TO_CHAR(NVL(CHALLAN_TAX,0),9999999990.99), TO_CHAR(NVL(CHALLAN_SURCHARGE,0),9999999990.99), TO_CHAR(NVL(CHALLAN_EDUCESS,0),9999999990.99), TO_CHAR(NVL(CHALLAN_TOTALTAX,0),9999999990.99), NVL(CHALLAN_CHQNO,' '), NVL(TO_CHAR(CHALLAN_CHQDATE,'DD-MM-YYYY'),' '),\"\r\n\t\t\t\t\t+ \" CHALLAN_NO,TO_CHAR(CHALLAN_DATE,'DD-MM-YYYY'),BANK_NAME,BANK_BSR_CODE,CHALLAN_ACK_NO,BANK_MICR_CODE,CHALLAN_VCHR_NO,NVL(CHALLAN_INT_AMT,0.00),NVL(CHALLAN_OTHR_AMT,0.00),\"\r\n\t\t\t\t\t+ \" CHALLAN_BOOK_ENTRY,DECODE(CHALLAN_TAX_ONHOLD,'A','ALL','N','No','Y','Yes'),TO_CHAR(CHALLAN_DATE_PAYMENT,'DD-MM-YYYY'),DECODE(CHALLAN_SALARY_FLAG,'Y','true','N','false'), \" \r\n\t\t\t\t\t+ \" DECODE(CHALLAN_SETTLE_FLAG,'Y','true','N','false','false'),DECODE(CHALLAN_ALLOW_FLAG,'Y','true','N','false','false'),DECODE(CHALLAN_ARREARS_FLAG,'Y','true','N','false','false'), \" \r\n\t\t\t\t\t+ \" DECODE(CHALLAN_BONUS_FLAG,'Y','true','N','false','false'), DECODE(CHALLAN_LEAVE_FLAG,'Y','true','N','false','false'), DECODE(CHALLAN_OT_FLAG,'Y','true','N','false','false')\"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_CHALLAN \"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_BANK ON HRMS_BANK.BANK_BSR_CODE = hrms_tax_challan.CHALLAN_BANK WHERE CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID();\r\n\t\t\ttaxData = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"eception in taxData query\",e);\r\n\t\t} //end of catch\r\n\t\tif(!(taxData.length >0)){\r\n\t\t\ttaxChallan.setTax(\"\");\r\n\t\t\ttaxChallan.setSurcharge(\"\");\r\n\t\t\ttaxChallan.setEduCess(\"\");\r\n\t\t\ttaxChallan.setTotalTax(\"\");\r\n\t\t\ttaxChallan.setChequeNo(\"\");\r\n\t\t\ttaxChallan.setChequeDate(\"\");\r\n\t\t\ttaxChallan.setChallanNo(\"\");\r\n\t\t\ttaxChallan.setChallanDate(\"\");\r\n\t\t\ttaxChallan.setBank(\"\");\r\n\t\t\ttaxChallan.setBsrCode(\"\");\r\n\t\t\ttaxChallan.setAckNo(\"\");\r\n\t\t\ttaxChallan.setVchrNo(\"\");\r\n\t\t\ttaxChallan.setIntAmt(\"\");\r\n\t\t\ttaxChallan.setOthrAmt(\"\");\r\n\t\t\t//taxChallan.setBookEntry(\"\");\r\n\t\t}else{\r\n\t\t\ttaxChallan.setTax(Utility.twoDecimals(String.valueOf(taxData[0][0])));\r\n\t\t\ttaxChallan.setSurcharge(Utility.twoDecimals(String.valueOf(taxData[0][1])));\r\n\t\t\ttaxChallan.setEduCess(Utility.twoDecimals(String.valueOf(taxData[0][2])));\r\n\t\t\ttaxChallan.setTotalTax(Utility.twoDecimals(String.valueOf(taxData[0][3])));\r\n\t\t\ttaxChallan.setChequeNo(String.valueOf(taxData[0][4]));\r\n\t\t\ttaxChallan.setChequeDate(checkNull(String.valueOf(taxData[0][5])).trim());\r\n\t\t\ttaxChallan.setChallanNo(checkNull(String.valueOf(taxData[0][6])).trim());\r\n\t\t\ttaxChallan.setChallanDate(checkNull(String.valueOf(taxData[0][7])).trim());\r\n\t\t\ttaxChallan.setBank(checkNull(String.valueOf(taxData[0][8])));\r\n\t\t\ttaxChallan.setBsrCode(checkNull(String.valueOf(taxData[0][9])));\r\n\t\t\ttaxChallan.setAckNo(checkNull(String.valueOf(taxData[0][10])));\r\n\t\t\ttaxChallan.setMicr(checkNull(String.valueOf(taxData[0][11])));\r\n\t\t\ttaxChallan.setVchrNo(checkNull(String.valueOf(taxData[0][12])));\r\n\t\t\ttaxChallan.setIntAmt(Utility.twoDecimals(String.valueOf(taxData[0][13])));\r\n\t\t\ttaxChallan.setOthrAmt(Utility.twoDecimals(String.valueOf(taxData[0][14])));\r\n\t\t\ttaxChallan.setBookEntry(String.valueOf(taxData[0][15]));\r\n\t\t\ttaxChallan.setOnHold(String.valueOf(taxData[0][16]));\r\n\t\t\ttaxChallan.setPaymentDate(checkNull(String.valueOf(taxData[0][17])));\r\n\t\t\ttaxChallan.setIncludeSalary(String.valueOf(taxData[0][18]));\r\n\t\t\ttaxChallan.setIncludeSettlement(String.valueOf(taxData[0][19]));\r\n\t\t\ttaxChallan.setIncludeAllowance(String.valueOf(taxData[0][20]));\r\n\t\t\ttaxChallan.setIncludeArrears(String.valueOf(taxData[0][21]));\r\n\t\t\ttaxChallan.setIncludeBonus(String.valueOf(taxData[0][22]));\r\n\t\t\ttaxChallan.setIncludeLeaveEncashment(String.valueOf(taxData[0][23]));\r\n\t\t\ttaxChallan.setIncludeOverTime(String.valueOf(taxData[0][24]));\r\n\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(\"exception in getSelectRecord method\",e);\r\n\t\t} \r\n\t\tObject[][]tdsParameter = null;\r\n\t\ttry {\r\n\t\t\tString tdsParaQuery = \"SELECT TDS_DEBIT_CODE,TDS_EDU_CESS,TDS_REBATEMAX_AMOUNT,TDS_SURCHARGE \"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_PARAMETER \"\r\n\t\t\t\t\t+ \" WHERE TDS_CODE= (SELECT MAX(TDS_CODE) FROM HRMS_TAX_PARAMETER)\";\r\n\t\t\ttdsParameter = getSqlModel().getSingleResult(tdsParaQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in tdsParameter query\",e);\r\n\t\t}\r\n\t\t/**\r\n\t\t * this values are set...because they are used in java script for calculation\r\n\t\t * if in case total tax is changed.\r\n\t\t */\r\n\t\tif(tdsParameter !=null && tdsParameter.length >0){\r\n\t\t\ttaxChallan.setEduCessPercen(String.valueOf(tdsParameter[0][1]));\r\n\t\t\ttaxChallan.setRebateLimit(String.valueOf(tdsParameter[0][2]));\r\n\t\t\ttaxChallan.setSurchargePercen(String.valueOf(tdsParameter[0][3]));\r\n\t\t}\r\n\t}", "private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }", "@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }", "public void findUsers(String query)\n { \n if(searchtf.getText()!= null){\n ArrayList<StockOutBean> users = ListUsers(query);\n model = new DefaultTableModel() {\n @Override\n public boolean isCellEditable(int rowIndex, int mColIndex) {\n return false;\n }\n };\n \n model.setColumnIdentifiers(new Object[]{\"Invoice No.\", \"ProductId\", \"Barcode\", \"Product Name\", \n \"Product Description\", \"Category\", \"Quantity\", \"SellPrice\", \n \"Total\", \"Date\"});\n \n Object[] row = new Object[11];\n \n for(int i = 0; i < users.size(); i++)\n { \n row[0] = users.get(i).getInvoice();\n row[1] = users.get(i).getProductId();\n row[2] = users.get(i).getBarcode();\n row[3] = users.get(i).getPname();\n row[4] = users.get(i).getPdesc();\n row[5] = users.get(i).getCat();\n row[6] = users.get(i).getQty();\n row[7] = users.get(i).getSellPrice(); \n row[8] = users.get(i).getTotal();\n row[9] = users.get(i).getDate();\n \n model.addRow(row);\n }\n stable.setModel(model);\n \n }\n total.setText(\"TOTAL: \" + model.getRowCount());\n }", "HumidityQuery createHumidityQuery();", "@Query(\"Select * from Asignatura\")\n LiveData<List<Asignatura>> obtenerAsignaturas();", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "private static List<MapValue> display(NoSQLHandle handle,String query) throws Exception {\n \n \n \n QueryRequest queryRequest = new QueryRequest().setStatement(query);\n queryRequest.setLimit(1000);\n //q=q+String.valueOf(queryRequest.getLimit())+\"\\\\\\\\\\\\\"+String.valueOf(queryRequest.getMaxReadKB());\n String results1=null;\n List<MapValue> results=new ArrayList<>();\n QueryResult queryResult=null;\n do{\n queryResult = handle.query(queryRequest);\n results = queryResult.getResults();\n results1=results1+results.toString();\n }while (!queryRequest.isDone());\n \n return results;\n \n\n }", "public void QueryBUSINFO() {\r\n\r\n Cursor cursor = getBusINFOCursor();\r\n\r\n if (cursor != null) {\r\n\r\n if (cursor.moveToFirst()) {\r\n do {\r\n\r\n\r\n String busNUM = cursor.getString(1);\r\n String busINFO = cursor.getString(2);\r\n\r\n\r\n Log.d(\"test\", busNUM);\r\n if (busNUM.indexOf(\"九巴\") != -1 || busNUM.indexOf(\"KMB\") != -1) {\r\n if (Bus.isLanguare() == true) {\r\n busList.add(new Bus(busNUM, \"往 \" + busINFO, busICON[0]));\r\n } else {\r\n busList.add(new Bus(busNUM, \"To \" + busINFO, busICON[0]));\r\n }\r\n } else if (busNUM.indexOf(\"城巴\") != -1 || busNUM.indexOf(\"CITYBUS\") != -1) {\r\n if (Bus.isLanguare() == true) {\r\n busList.add(new Bus(busNUM, \"往 \" + busINFO, busICON[1]));\r\n } else {\r\n busList.add(new Bus(busNUM, \"To \" + busINFO, busICON[1]));\r\n }\r\n } else if (busNUM.indexOf(\"新巴\") != -1 || busNUM.indexOf(\"FIRST BUS\") != -1) {\r\n if (Bus.isLanguare() == true) {\r\n busList.add(new Bus(busNUM, \"往 \" + busINFO, busICON[2]));\r\n } else {\r\n busList.add(new Bus(busNUM, \"To \" + busINFO, busICON[2]));\r\n }\r\n }\r\n } while (cursor.moveToNext());\r\n }\r\n cursor.close();\r\n\r\n }\r\n\r\n }", "String queryInformation(String tableName,String queryname){\n Connection con = GetDBConnection.connectDB(\"booklibrarymanager\",\"root\",\"HanDong85\");\n String tar;\n if(tableName.equals(\"authorinformation\"))\n tar = \"author\";\n else if(tableName.equals(\"classificationinformation\"))\n tar = \"classification\";\n else tar = \"press\";\n String sql = \"select \" + tar + \"Id\" + \" from \" + tableName + \" where \";\n if(tableName.equals(\"authorinformation\"))\n sql += \"authorName = ?;\";\n else if(tableName.equals(\"classificationinformation\"))\n sql += \"classifcationName = ?;\";\n else sql += \"pressName = ?;\";\n System.out.println(sql);\n PreparedStatement preSQL;\n try{\n preSQL = con.prepareStatement(sql);\n preSQL.setString(1,queryname);\n ResultSet rs = preSQL.executeQuery();\n rs.beforeFirst();\n if(rs.next()){\n String ans = rs.getString(1);\n GetDBConnection.closeCon(con);\n return ans;\n }\n else{\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }\n catch (SQLException e){\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate CompoundQuery handleQuery() throws Exception{\n\t\tif (this.resultant != null && this.resultant.getResultsContainer() != null){\n\t\t\t//compoundQuery = (CompoundQuery) resultant.getAssociatedQuery();\n\t\t\tViewable view = newCompoundQuery.getAssociatedView();\n\t\t\tResultsContainer resultsContainer = this.resultant.getResultsContainer();\n\t\t\tsampleCrit = null;\n\t Collection sampleIDs = new ArrayList(); \n\t\t\t//Get the samples from the resultset object\n\t\t\tif(resultsContainer!= null){\n\t\t\t\tCollection samples = null;\n\t\t\t\tif(resultsContainer != null &&resultsContainer instanceof DimensionalViewContainer){\t\t\t\t\n\t\t\t\t\tDimensionalViewContainer dimensionalViewContainer = (DimensionalViewContainer)resultsContainer;\n\t\t\t\t\t\tCopyNumberSingleViewResultsContainer copyNumberSingleViewContainer = dimensionalViewContainer.getCopyNumberSingleViewContainer();\n\t\t\t\t\t\tGeneExprSingleViewResultsContainer geneExprSingleViewContainer = dimensionalViewContainer.getGeneExprSingleViewContainer();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(copyNumberSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = copyNumberSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(geneExprSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = geneExprSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t \t\tsampleCrit = new SampleCriteria();\n\t\t \t\t\tsampleCrit.setSampleIDs(sampleIDs);\n\n AddConstrainsToQueriesHelper constrainedSamplesHandler= new AddConstrainsToQueriesHelper();\n constrainedSamplesHandler.constrainQueryWithSamples(newCompoundQuery,sampleCrit);\n\t\t\t\tnewCompoundQuery = getShowAllValuesQuery(newCompoundQuery);\n\t\t\t\tnewCompoundQuery.setAssociatedView(view);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn newCompoundQuery;\n\t\t}", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }", "private void getDataFromDb() {\n viewModel.getCachedResults().observe(getViewLifecycleOwner(), searchResults -> {\n// Log.d(TAG, \"queryMusic: \" + new GsonBuilder().create().toJson(searchResults));\n\n //Checks if results is empty, will show the empty message if it do else, clears the list and adds the new one\n if (searchResults.isEmpty()) {\n resultsRv.setVisibility(View.GONE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.VISIBLE);\n } else {\n resultsRv.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.GONE);\n mSearchResultList.clear();\n mSearchResultList.addAll(searchResults);\n resultsListAdapter.setData(mSearchResultList);\n// Log.d(TAG, \"setData: mSearchResultList: \"+ new GsonBuilder().create().toJson(mSearchResultList));\n }\n });\n }", "default CompletableFuture<List<Box>> queryVisible() {\n //Fill search Map with the Values\n final Map<String,Object> searchData = new HashMap<String,Object>() {\n {\n put(BoxPersistenceDAO.QUERY_PARAM_DELFLAG, false);\n }\n\n @Override\n public Object put(String key, Object o) {\n if (o != null) return super.put(key, o);\n return null;\n }\n };\n\n return query(searchData);\n }", "private void getDataSalaf(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Salaf\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "public List<Map<String, Object>> Listar_Cumplea˝os(String mes,\r\n String dia, String aps, String dep, String are,\r\n String sec, String pue, String fec, String edad,\r\n String ape, String mat, String nom, String tip, String num) {\r\n sql = \"SELECT * FROM RHVD_FILTRO_CUMPL_TRAB \";\r\n sql += (!aps.equals(\"\")) ? \"Where UPPER(CO_APS)='\" + aps.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!dep.equals(\"\")) ? \"Where UPPER(DEPARTAMENTO)='\" + dep.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!are.equals(\"\")) ? \"Where UPPER(AREA)='\" + are.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!sec.equals(\"\")) ? \"Where UPPER(SECCION)='\" + sec.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!pue.equals(\"\")) ? \"Where UPPER(PUESTO)='\" + pue.trim().toUpperCase() + \"'\" : \"\";\r\n //sql += (!fec.equals(\"\")) ? \"Where FECHA_NAC='\" + fec.trim() + \"'\" : \"\"; \r\n sql += (!edad.equals(\"\")) ? \"Where EDAD='\" + edad.trim() + \"'\" : \"\";\r\n sql += (!ape.equals(\"\")) ? \"Where UPPER(AP_PATERNO)='\" + ape.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!mat.equals(\"\")) ? \"Where UPPER(AP_MATERNO)='\" + mat.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!nom.equals(\"\")) ? \"Where UPPER(NO_TRABAJADOR)='\" + nom.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!tip.equals(\"\")) ? \"Where UPPER(TIPO)='\" + tip.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!num.equals(\"\")) ? \"Where NU_DOC='\" + num.trim() + \"'\" : \"\";\r\n //buscar por rango de mes de cumplea├▒os*/\r\n\r\n sql += (!mes.equals(\"\") & !mes.equals(\"13\")) ? \"where mes='\" + mes.trim() + \"' \" : \"\";\r\n sql += (!mes.equals(\"\") & mes.equals(\"13\")) ? \"\" : \"\";\r\n sql += (!dia.equals(\"\")) ? \"and dia='\" + dia.trim() + \"'\" : \"\";\r\n return jt.queryForList(sql);\r\n }", "public List<ErpBookInfo> selData();", "private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}", "public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }", "public ResultSet findAllAnalysedData(String date) {\n String query = \"select\\n\"\n + \"bd.id as 'ID',\"\n + \"\tbd.keyword as 'Keyword',\\n\"\n + \"\tcount(*) as 'Profitable books',curdate() as 'Analysis Date'\\n\"\n + \"from\\n\"\n + \"\tbook_details bd\\n\"\n + \"where\\n\"\n + \"\tbd.bsr < 100000\\n\"\n + \"\tand(\\n\"\n + \"\t\tbd.no_of_reviews > 0\\n\"\n + \"\t\tand bd.no_of_reviews < 120\\n\"\n + \"\t)\\n\"\n + \"\tand datediff(CURDATE(),bd.date_of_publication) > 30\\n\"\n + \"\tand bd.price > 0\\n\"\n + \"\tand bd.publisher like '%self publisher%' \\n\"\n + \"group by\\n\"\n + \"\tbd.keyword\\n\"\n + \"order by\\n\"\n + \"\tcount(*) desc;\";\n try{\n connection = DBConnection.getInstance();\n //String date = simpleDateFormat.format(entity.getDateOfPublication());\n ps = connection.prepareStatement(query);\n return ps.executeQuery();\n \n }catch(Exception e)\n {\n e.printStackTrace();\n new MessageForm(\"Error\", e.toString(), \"error.png\").setVisible(true);\n }\n return null;\n }", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "private void load_buku() {\n Object header[] = {\"ID BUKU\", \"JUDUL BUKU\", \"PENGARANG\", \"PENERBIT\", \"TAHUN TERBIT\"};\n DefaultTableModel data = new DefaultTableModel(null, header);\n bookTable.setModel(data);\n String sql_data = \"SELECT * FROM tbl_buku\";\n try {\n Connection kon = koneksi.getConnection();\n Statement st = kon.createStatement();\n ResultSet rs = st.executeQuery(sql_data);\n while (rs.next()) {\n String d1 = rs.getString(1);\n String d2 = rs.getString(2);\n String d3 = rs.getString(3);\n String d4 = rs.getString(4);\n String d5 = rs.getString(5);\n\n String d[] = {d1, d2, d3, d4, d5};\n data.addRow(d);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "Tablero consultarTablero();", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "private void selectData() {\n String kolom[] = {\"ID\",\"Kasir\",\"Makanan\",\"Harga Makanan\",\"Minuman\",\"Harga Minuman\",\"Bayar\",\"Kembali\",\"Total\"};\n DefaultTableModel dtm = new DefaultTableModel(null, kolom);\n String SQL = \"SELECT * FROM tb_harga\";\n ResultSet rs = KoneksiDB.executeQuery(SQL);\n \n try\n {\n rs = KoneksiDB.executeQuery(SQL);\n while(rs.next())\n {\n String id = rs.getString(1);\n String kasir = rs.getString(2);\n String makanan = rs.getString(3);\n String hrg_makan = rs.getString(4);\n String minum = rs.getString(5);\n String hrg_minum = rs.getString(6);\n String bayar = rs.getString(7);\n String kembali = rs.getString(8);\n String total = rs.getString(9);\n \n String data[] = {id,kasir,makanan,hrg_makan,minum,hrg_minum,bayar,kembali,total};\n dtm.addRow(data);\n }\n }\n catch(SQLException ex)\n {\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\n }\n tData.setModel(dtm); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void getData( ){\n model2.getDataVector( ).removeAllElements( );\n model2.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement s = koneksi.createStatement();\n String sql = \"Select * from tb_customer\";\n ResultSet r = s.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(r.next ()){\n Object[ ] o = new Object[4];\n o[0] = r.getString(\"id\");\n o[1] = r.getString(\"nama\");\n o[2] = r.getString(\"alamat\");\n o[3] = r.getString(\"telepon\");\n\n model2.addRow(o);\n }\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "public List<Dishes> selectTian(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where \\\"cuisines\\\"='Ìðµã' \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n }\n return dao.select(sql.toString(), list.toArray());\n }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public static void searchDisplays(){\r\n try {\r\n \r\n singleton.dtm = new DefaultTableModel(); \r\n singleton.dtm.setColumnIdentifiers(displays);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n Statement stmt = singleton.conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT *,r.tam,r.resolucion FROM articulos a,mon r WHERE a.codigo = r.producto_id\");\r\n \r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n \r\n singleton.dtm.addRow(getArrayDeObjectosMon(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"tam\"),rs.getString(\"resolucion\")));\r\n\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "private void getDataDai(){\n\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Dai\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1= response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "private void queryList (String query) {\n\t\tmemoListAdapter.query(query);\n\t}", "public Collection<FlujoDetalleDTO> cargarTodos(int codigoFlujo) {\n/* 138 */ Collection<FlujoDetalleDTO> resultados = new ArrayList<FlujoDetalleDTO>();\n/* */ try {\n/* 140 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" order by t.secuencia\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 178 */ boolean rtaDB = this.dat.parseSql(s);\n/* 179 */ if (!rtaDB) {\n/* 180 */ return resultados;\n/* */ }\n/* 182 */ this.rs = this.dat.getResultSet();\n/* 183 */ while (this.rs.next()) {\n/* 184 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 187 */ catch (Exception e) {\n/* 188 */ e.printStackTrace();\n/* 189 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarTodos \", e);\n/* */ } \n/* 191 */ return resultados;\n/* */ }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Override\n\tpublic ResultBO<?> queryBill(Map<String, String> map) {\n\t\treturn super.queryBill(map);\n\t}", "@Query(\"SELECT * FROM unit WHERE name = :nama AND sync_delete = 1\")\n public List<Unit> cekNamaUnit(String nama);", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "public void query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "@Override\n\tpublic JSONObject getByPage(String param) {\n\t\tJSONObject data = new JSONObject();\n\t\tJSONObject result = new JSONObject();\n\t\tMainUtility mainUtil = new MainUtility();\n\t\tJSONObject jsonParams = mainUtil.stringToJson(param);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringBuilder builderGetTotal = new StringBuilder();\n\n\t\tbuilder.append(\"SELECT `wt_id`, `wt_title`, `wt_content`, user.full_name, \"\n\t\t\t\t+ \"IF(writing_test.created_date IS NULL,null, DATE_FORMAT(writing_test.created_date, '%d-%m-%Y')) AS created_date FROM writing_test \"\n\t\t\t\t+ \"LEFT JOIN crm_user AS user ON writing_test.created_by = user.user_id WHERE 1=1 \");\n\t\tbuilderGetTotal.append(\"SELECT COUNT(1) FROM `writing_test` \"\n\t\t\t\t+ \" WHERE 1=1\");\n\t\t// filter header\n\t\tif (jsonParams.get(\"status\") == null || Integer.parseInt(jsonParams.get(\"status\").toString()) == -1) {\n\t\t\tbuilder.append(\" AND writing_test.deleted <> 1\");\n\t\t\tbuilderGetTotal.append(\" AND writing_test.deleted <> 1\");\n\t\t} else if (Integer.parseInt(jsonParams.get(\"status\").toString()) == -2) {// thùng rác\n\t\t\tbuilder.append(\" AND writing_test.deleted = 1\");\n\t\t\tbuilderGetTotal.append(\" AND writing_test.deleted = 1\");\n\t\t}\n\t\tif (jsonParams.get(\"wt_title\") != null && !\"\".equals(jsonParams.get(\"wt_title\").toString())) {\n\t\t\tbuilder.append(\" AND wt_title LIKE N'%\" + jsonParams.get(\"wt_title\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND wt_title LIKE N'%\" + jsonParams.get(\"wt_title\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"wt_content\") != null && !\"\".equals(jsonParams.get(\"wt_content\").toString())) {\n\t\t\tbuilder.append(\" AND wt_content LIKE N'%\" + jsonParams.get(\"wt_content\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND wt_content LIKE N'%\" + jsonParams.get(\"wt_content\").toString() + \"%'\");\n\t\t}\n\t\t// sortby\n\t\tif (jsonParams.get(\"sortField\") != null && !\"\".equals(jsonParams.get(\"sortField\").toString())) {\n\t\t\tswitch (jsonParams.get(\"sortField\").toString()) {\n\t\t\tdefault:\n\t\t\t\tbuilder.append(\" ORDER BY writing_test.created_date DESC\");\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"descend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n//\t\t\t\tbuilder.append(\" DESC\");\n//\t\t\t}\n//\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"ascend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n//\t\t\t\tbuilder.append(\" ASC\");\n//\t\t\t}\n\t\t}\n\t\tmainUtil.getLimitOffset(builder, jsonParams);\n\t\ttry {\n\t\t\tint totalRow = this.jdbcTemplate.queryForObject(builderGetTotal.toString(), Integer.class);\n\t\t\tList<Map<String, Object>> lstWrittingTest = this.jdbcTemplate.queryForList(builder.toString());\n\t\t\tJSONObject results = new JSONObject();\n\t\t\tresults.put(\"results\", lstWrittingTest);\n\t\t\tresults.put(\"total\", totalRow);\n\t\t\tdata.put(\"data\", results);\n\t\t\tdata.put(\"success\", true);\n\t\t} catch (Exception e) {\n\t\t\tdata.put(\"success\", false);\n\t\t\tdata.put(\"err\", e.getMessage());\n\t\t\tdata.put(\"msg\", \"Lấy danh sách bài kiểm tra thất bại\");\n\t\t}\n\t\treturn data;\n\t}", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "@Override\n public boolean onQueryTextSubmit(String query) {\n queryMain = query;\n consultarDb();\n return true;\n }", "public void queryDevices(){\r\n\r\n\r\n reportsDb.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n\r\n\r\n\r\n\r\n\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n if(task.isSuccessful()){\r\n\r\n\r\n //Gets the snapshot of the database and added into a map data structure\r\n for (QueryDocumentSnapshot doc: task.getResult()){\r\n\r\n\r\n\r\n Map<String, Object> queryData = doc.getData();\r\n\r\n deviceID.add(doc.getId());\r\n deviceNames.add(queryData.get(\"Name\").toString());\r\n\r\n\r\n\r\n }\r\n\r\n //Passing in data into the recycler from the query, to create a list like view\r\n initialiseRecycler(deviceID, deviceNames);\r\n\r\n\r\n\r\n\r\n }\r\n\r\n }\r\n });\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "@Override\r\n\tpublic String[] getData(String[] sql) {\n\t\treturn null;\r\n\t}", "private void table(String where_condition){\n \n String query = \"SELECT reports.id,patients.patient_name,reports.report,doctors.doctor_name,reports.admitted FROM reports INNER JOIN patients on reports.patient_id = patients.id INNER JOIN doctors on reports.doctor_id = doctors.id WHERE (reports.patient_id = \"+global_patient_id+\") \"+where_condition+\" ORDER BY reports.id DESC\" ;\n\n ResultSet rs = null;\n \n try\n {\n rs = database().prepareStatement(query).executeQuery();\n displayTable.setModel(DbUtils.resultSetToTableModel(rs));\n displayTable.setVisible(true);\n }\n catch(Exception ex)\n { JOptionPane.showMessageDialog(null,ex); }\n}", "private void getDataLainya(){\n\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Komprehensif\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1= response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\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}", "@Override\r\n public List<Anggota> getAll() {\r\n List<Anggota> datas = new ArrayList<>();\r\n String query = \"SELECT *From Anggota\";\r\n try {\r\n\r\n PreparedStatement preparedStatement = connection.prepareStatement(query);\r\n ResultSet rs = preparedStatement.executeQuery();\r\n\r\n while (rs.next()) {\r\n Anggota anggota = new Anggota();\r\n anggota.setKdAnggota(rs.getString(1));\r\n anggota.setNmAnggota(rs.getString(2));\r\n anggota.setTelepon(rs.getString(3));\r\n anggota.setAlamat(rs.getString(4));\r\n datas.add(anggota);\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AnggotaDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return datas;\r\n\r\n }", "@Override\n\tpublic void loadData(){\n\t\tsuper.loadData();\n\t\topenProgressDialog();\n\t\tBmobQuery<Goods> query = new BmobQuery<Goods>();\n\t\tpageSize = 5;\n\t\tquery.setLimit(pageSize);\n\t\tquery.setSkip((pageNum - 1) * pageSize);\n\t\tif(point == 1){\n\t\t\tquery.addWhereEqualTo(\"type\", type);\n\t\t}else if(point == 2){\n\t\t\tquery.addWhereEqualTo(\"tradeName\", type);\n\t\t}\n\t\tquery.findObjects(this, new FindListener<Goods>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<Goods> object){\n\t\t\t\t// TODO Auto-generated method st\n\t\t\t\tcloseProgressDialog();\n\t\t\t\tonRefreshComplete();\n\t\t\t\tlist.addAll(object);\n\t\t\t\tLog.v(\"AAA\", JSON.toJSONString(list));\n\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(int code,String msg){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(mContext, \"查询失败\", Toast.LENGTH_SHORT).show();\n\t\t\t\tcloseProgressDialog();\n\t\t\t}\n\t\t});\n\n\t}", "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;", "private void showFilter() {\n dtmStok.getDataVector().removeAllElements();\n String pilih = cbFilter.getSelectedItem().toString();\n List<Stokdigudang> hasil = new ArrayList<>();\n\n int pan = tfFilter.getText().length();\n String banding = \"\";\n\n if (pilih.equals(\"Brand\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getBrand().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else if (pilih.equals(\"Kategori\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getIDKategori().getNamaKategori().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else if (pilih.equals(\"Supplier\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getIDSupplier().getNamaPerusahaan().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Pilih Filter !\");\n }\n\n if (hasil.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Tidak ada stok yang ditemukan !\");\n } else {\n for (Stokdigudang s : hasil) {\n dtmStok.addRow(new Object[]{\n s.getIDBarang(),\n s.getNamaBarang(),\n s.getStok(),\n s.getBrand(),\n s.getHarga(),\n s.getIDKategori().getNamaKategori(),\n s.getIDSupplier().getNamaPerusahaan(),\n s.getTanggalDidapat()\n });\n }\n\n tableStok.setModel(dtmStok);\n }\n }", "public void okFind()\n {\n ASPManager mgr = getASPManager();\n\n trans.clear();\n q = trans.addQuery(headblk);\n q.addWhereCondition(\"WO_NO<(SELECT Number_Serie_API.Get_Last_Wo_Number FROM DUAL) AND CONTRACT IN(SELECT User_Allowed_Site_API.Authorized(CONTRACT) FROM DUAL)\");\n q.addWhereCondition(\"CONNECTION_TYPE_DB = 'EQUIPMENT'\");\n q.includeMeta(\"ALL\");\n\n // nimhlk - Begin\n if (mgr.dataTransfered())\n {\n ASPBuffer retBuffer = mgr.getTransferedData();\n if (retBuffer.itemExists(\"WO_NO\"))\n {\n String ret_wo_no = retBuffer.getValue(\"WO_NO\");\n q.addWhereCondition(\"WO_NO = ?\");\n q.addParameter(\"WO_NO\",ret_wo_no);\n }\n else\n q.addOrCondition(mgr.getTransferedData());\n }\n // nimhlk - End\n\n mgr.querySubmit(trans,headblk);\n\n if (headset.countRows() == 0)\n {\n mgr.showAlert(mgr.translate(\"PCMWACTIVESEPARATENODATA: No data found.\"));\n headset.clear();\n }\n if (headset.countRows() == 1)\n {\n lay.setLayoutMode(lay.SINGLE_LAYOUT);\n }\n mgr.createSearchURL(headblk);\n }", "public List<ReporteComprasVentasRetenciones> getReporteRetencionClientes(int mes, int anio, int idOrganizacion)\r\n/* 231: */ {\r\n/* 232:307 */ StringBuffer sql = new StringBuffer();\r\n/* 233:308 */ sql.append(\"SELECT new ReporteComprasVentasRetenciones(fp.codigo, fp.nombre, COUNT(fp.codigo),\");\r\n/* 234:309 */ sql.append(\" (CASE WHEN fp.indicadorRetencionIva = true OR fp.indicadorRetencionFuente = true THEN SUM(dcfc.valor) END),\");\r\n/* 235:310 */ sql.append(\" 'Ventas', '' )\");\r\n/* 236:311 */ sql.append(\" FROM DetalleCobroFormaCobro dcfc\");\r\n/* 237:312 */ sql.append(\" JOIN dcfc.detalleFormaCobro dfc\");\r\n/* 238:313 */ sql.append(\" LEFT JOIN dfc.cobro c\");\r\n/* 239:314 */ sql.append(\" LEFT OUTER JOIN dfc.formaPago fp\");\r\n/* 240:315 */ sql.append(\" LEFT OUTER JOIN dcfc.detalleCobro dc\");\r\n/* 241:316 */ sql.append(\" LEFT OUTER JOIN dc.cuentaPorCobrar cpc\");\r\n/* 242:317 */ sql.append(\" LEFT OUTER JOIN cpc.facturaCliente fc\");\r\n/* 243:318 */ sql.append(\" WHERE MONTH(c.fecha) =:mes\");\r\n/* 244:319 */ sql.append(\" AND YEAR(c.fecha) =:anio\");\r\n/* 245:320 */ sql.append(\" AND fc.estado!=:estadoAnulado\");\r\n/* 246:321 */ sql.append(\" AND c.estado!=:estadoAnulado\");\r\n/* 247:322 */ sql.append(\" AND (fp.indicadorRetencionIva=true OR fp.indicadorRetencionFuente=true)\");\r\n/* 248:323 */ sql.append(\" AND fc.idOrganizacion = :idOrganizacion\");\r\n/* 249:324 */ sql.append(\" GROUP BY fp.codigo, fp.nombre, fp.indicadorRetencionIva, fp.indicadorRetencionFuente\");\r\n/* 250:325 */ sql.append(\" ORDER BY fp.codigo, fp.nombre\");\r\n/* 251:326 */ Query query = this.em.createQuery(sql.toString());\r\n/* 252:327 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 253:328 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 254:329 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 255:330 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 256:331 */ return query.getResultList();\r\n/* 257: */ }", "public void buscarDatos() throws Exception {\r\n try {\r\n String parameter = lbxParameter.getSelectedItem().getValue()\r\n .toString();\r\n String value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n Map<String, Object> parameters = new HashMap();\r\n parameters.put(\"parameter\", parameter);\r\n parameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n getServiceLocator().getHospitalizacionService().setLimit(\r\n \"limit 25 offset 0\");\r\n\r\n List<Hospitalizacion> lista_datos = getServiceLocator()\r\n .getHospitalizacionService().listar(parameters);\r\n rowsResultado.getChildren().clear();\r\n\r\n for (Hospitalizacion hospitalizacion : lista_datos) {\r\n rowsResultado.appendChild(crearFilas(hospitalizacion, this));\r\n }\r\n\r\n gridResultado.setVisible(true);\r\n gridResultado.setMold(\"paging\");\r\n gridResultado.setPageSize(20);\r\n\r\n gridResultado.applyProperties();\r\n gridResultado.invalidate();\r\n gridResultado.setVisible(true);\r\n\r\n } catch (Exception e) {\r\n MensajesUtil.mensajeError(e, \"\", this);\r\n }\r\n }", "@POST\n public String SendQueryResult(String data) throws JsonProcessingException {\n ObjectMapper objectMapper = new ObjectMapper();\n InputQueryData inputQueryData = new ObjectMapper().readValue(data, InputQueryData.class);\n// System.out.println(inputQueryData.getTableName());\n// System.out.println(inputQueryData.getSelectedColumns());\n// System.out.println(inputQueryData.getWhereConditionSelectedColumns());\n// System.out.println(inputQueryData.getWhereConditionSelectedValues());\n\n\n ManageFact manageFact = new ManageFact();\n\n String resultQuery = manageFact.QueryGenerator(inputQueryData.getTableName(), inputQueryData.getSelectedColumns(), inputQueryData.getWhereConditionSelectedColumns(), inputQueryData.getWhereConditionSelectedValues(),inputQueryData.getGroupByColumns());\n\n\n\n\n return objectMapper.writeValueAsString(resultQuery);\n }", "@Override\r\n public QueryResult.ResultQ1[] functionQ1() {\r\n QueryResult.ResultQ1[] res=null;\r\n ArrayList<QueryResult.ResultQ1> re=new ArrayList<QueryResult.ResultQ1>();\r\n String q = \"SELECT b.isbn,b.first_publish_year,p.publisher_id,p.publisher_name FROM book b, publisher p WHERE p.publisher_id = b.publisher_id AND b.page_count = (SELECT max(bo.page_count) FROM book bo ) ORDER BY b.isbn ASC\";\r\n try {\r\n Statement s = this.connection.createStatement();\r\n ResultSet r = s.executeQuery(q);\r\n while(r.next()){\r\n String is = r.getString(\"isbn\");\r\n String fpy= r.getString(\"first_publish_year\");\r\n int pc= r.getInt(\"publisher_id\");\r\n String pn=r.getString(\"publisher_name\");\r\n QueryResult.ResultQ1 qq = new QueryResult.ResultQ1(is,fpy,pc,pn);\r\n re.add(qq);\r\n \r\n \r\n }\r\n res=re.toArray(new QueryResult.ResultQ1[0]);\r\n s.close();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n return res;\r\n }", "private void getDataModern(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Modern\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "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}", "@Override\n\tpublic JSONArray searchData(String queryString)throws Exception { CALL DAO get database data\n\t\t//\n\t\ttry {\n\t\t\tJSONArray result=new JSONArray();\n\t\t\t//return null;\n result=testDB.getDataFromDB(queryString);\n\t\t\t//System.out.print(result.toString());\n\t\t\treturn result;\n\t\t\t//throw new Exception(\"Test Exception\");\n\t\t}catch(Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t}" ]
[ "0.65573424", "0.6432319", "0.6259644", "0.610364", "0.60601586", "0.6044599", "0.6003698", "0.5995475", "0.5976783", "0.5975382", "0.5942072", "0.5938775", "0.5902057", "0.5854901", "0.5836854", "0.58276075", "0.58113694", "0.5791425", "0.5786791", "0.5774888", "0.57734865", "0.57191175", "0.5714694", "0.57104623", "0.5705011", "0.5676464", "0.56749934", "0.566441", "0.56626207", "0.5655535", "0.5653427", "0.56465876", "0.56396145", "0.5634045", "0.56207645", "0.5619753", "0.56154704", "0.56073934", "0.5591512", "0.5588527", "0.5588095", "0.5581321", "0.5576304", "0.5546771", "0.5546691", "0.5538043", "0.55306447", "0.55204904", "0.5519384", "0.550829", "0.5506537", "0.55053234", "0.55016565", "0.55002046", "0.54996765", "0.549497", "0.5494494", "0.5490622", "0.5487937", "0.54843074", "0.547849", "0.5476556", "0.546715", "0.54664445", "0.5466215", "0.54605746", "0.5456216", "0.54561424", "0.5453273", "0.5448491", "0.544458", "0.54405034", "0.5439475", "0.5432305", "0.5430885", "0.5429314", "0.54263616", "0.5424533", "0.54193425", "0.54126674", "0.54117435", "0.5408589", "0.5406872", "0.54038143", "0.5403294", "0.54023266", "0.5401396", "0.5395069", "0.5392331", "0.5388454", "0.5383657", "0.5383129", "0.5380378", "0.53792673", "0.5379138", "0.5376156", "0.5376089", "0.53745127", "0.5373154", "0.53679633", "0.5365995" ]
0.0
-1
Hasil query yang merepresentasikan baris data
public static ArrayList<Object[]> getData(String query){ ArrayList<Object[]> resultList = new ArrayList<Object[]>(); ResultSet result; ResultSetMetaData rsmd; connect(); try{ Statement stm = conn.createStatement(); result = stm.executeQuery(query); rsmd = result.getMetaData(); Object[] obj = new Object[rsmd.getColumnCount()]; while(result.next()){ for(int col = 1; col < rsmd.getColumnCount(); col++){ obj[col-1] = result.getObject(col); } resultList.add(obj); } }catch(Exception e) { System.out.println(e.getMessage()); } disconnect(); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "private void showData(String query) {\n try {\n ResultSet rs = DB.search(query);\n tbl.setRowCount(0);\n while (rs.next()) {\n Vector v = new Vector();\n v.add(rs.getString(1)); //inv id\n v.add(rs.getString(6)); //cus name\n v.add(rs.getString(2)); //date\n v.add(rs.getString(3)); //time\n v.add(rs.getString(10)); //price\n v.add(rs.getString(11)); //discount\n v.add(rs.getString(12)); //total\n v.add(rs.getString(13)); //pay method\n tbl.addRow(v);\n }\n //Calculating the total value of invoices\n double total = 0d;\n for (int row = 0; row < tbl.getRowCount(); row++) {\n total = total + Double.parseDouble(tbl.getValueAt(row, 4).toString());\n }\n lbAllValue.setText(String.valueOf(total));\n lbNoofnvs.setText(String.valueOf(tbl.getRowCount()));\n setCOLORSTB(jTable1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "String getBarcharDataQuery();", "Query query();", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "@Override\r\n\tprotected void onBoQuery() throws Exception {\n\t\tUIDialog querydialog = getQueryUI();\r\n\t\tif (querydialog.showModal() != UIDialog.ID_OK) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// 得到查询条件\r\n\t\tString strWhere = ((HYQueryConditionDLG) querydialog).getWhereSql();\r\n\t\t// 得到所有的查询标签\r\n\t\tConditionVO[] ttc = ((HYQueryConditionDLG) querydialog)\r\n\t\t\t\t.getQryCondEditor().getGeneralCondtionVOs();\r\n\t\t// ConditionVO[] vos =\r\n\t\t// ((HYQueryConditionDLG)querydialog).getQryCondEditor().getGeneralCondtionVOs();\r\n\t\tString sendsignState = \"\";\r\n\t\tfor (ConditionVO vo : ttc) {\r\n\t\t\tif (\"tb_pointposition.pp_archive\".equals(vo.getFieldCode())) {\r\n\t\t\t\tsendsignState = vo.getValue();\r\n\t\t\t\tif (\"Y\".equals(sendsignState)) {\r\n\t\t\t\t\tstrWhere = StringUtil.replaceIgnoreCase(strWhere,\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive = 'Y'\",\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive=1 and dr=0 \");\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Edit).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(\r\n\t\t\t\t\t\t\tfalse);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Delete)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Refresh)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Print).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t\t\t.setEnabled(false);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\t\t\t\t\tgetBillUI().updateButtons();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstrWhere = StringUtil.replaceIgnoreCase(strWhere,\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive = 'N'\",\r\n\t\t\t\t\t\t\t\" (tb_pointposition.pp_archive=0 or tb_pointposition.pp_archive is null) and dr=0 \");\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Edit).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Delete)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Refresh)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Print).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t\t\t.setEnabled(false);\r\n\t\t\t\t\tgetBillUI().updateButtons();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tSuperVO[] queryVos = queryHeadVOs(strWhere.toString());\r\n\r\n\t\tgetBufferData().clear();\r\n\t\t// 增加数据到Buffer\r\n\t\taddDataToBuffer(queryVos);\r\n\r\n\t\tupdateBuffer();\r\n\t\t// 修改按钮属性\r\n\t\tif (\"Y\".equals(sendsignState)) {\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\t\r\n\t\t\tmyaddbuttun=false;\r\n\t\t} else {\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\t\r\n\t\t\tmyaddbuttun=true;\r\n\t\t}\r\n\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\tgetBillUI().setCardUIState();\r\n\t\t// 在转回列表显示界面,显示数据\r\n\t\tsuper.onBoReturn();\r\n\t\t\r\n\t}", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "public abstract Statement queryToRetrieveData();", "public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public void getChallanRecords(TaxChallan taxChallan){\r\n\t\tObject data[][] = null;\r\n\t\r\n\t\ttry {\r\n\t\t\tString challanQuery = \"SELECT HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE,HRMS_TAX_CHALLAN_DTL.EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,HRMS_TAX_CHALLAN_DTL.CHALLAN_TDS,\"\r\n\t\t\t\t\t+ \" NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_SURCHARGE,0),NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_EDU_CESS,0),NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_TOTAL_TAX,0) FROM\"\r\n\t\t\t\t\t+ \" HRMS_TAX_CHALLAN_DTL INNER JOIN HRMS_TAX_CHALLAN ON(HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=HRMS_TAX_CHALLAN.CHALLAN_CODE)\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON(HRMS_TAX_CHALLAN_DTL.EMP_ID=HRMS_EMP_OFFC.EMP_ID)\"\r\n\t\t\t\t\t+ \" WHERE HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID()\r\n\t\t\t\t\t+ \" ORDER BY UPPER(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME)\";\r\n\t\t\tdata = getSqlModel().getSingleResult(challanQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in challanQuery in getChallanRecords method\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\tif(data.length> 0 && data!=null){\r\n\t\ttaxChallan.setListFlag(\"true\");\r\n\t\tArrayList<Object> chList = new ArrayList<Object>();\r\n\t\ttry{\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t\t\tTaxChallan bean=new TaxChallan(); \r\n\t\t\tbean.setChallanCode(String.valueOf(data[i][0]));//Challan Code\r\n\t\t\tbean.setEmpId(String.valueOf(data[i][1]));//Employee Id\r\n\t\t\tbean.setEmpToken(String.valueOf(data[i][2]));//Token No.\r\n\t\t\tbean.setEmpName(String.valueOf(data[i][3]));//Emp Name\r\n\t\t\tbean.setChallanTax(Utility.twoDecimals(String.valueOf(data[i][4])));//Tds\r\n\t\t\t//bean.setChallanSurcharge(String.valueOf(data[i][5]));\r\n\t\t\tbean.setChallanSurcharge(Utility.twoDecimals(String.valueOf(data[i][5])));//Surcharge\r\n\t\t\tbean.setChallanEduCess(Utility.twoDecimals(String.valueOf(data[i][6])));//Education cess\r\n\t\t\tbean.setChallanTotTax(Utility.twoDecimals(String.valueOf(data[i][7])));\t//Total Tax\r\n\t\t//\tbean.setChallanTotTax(String.valueOf(data[i][7]));\r\n\t\t//\tbean.setPayDate(String.valueOf(data[i][8]));\r\n\t\t\t\r\n\t\t//\tif(String.valueOf(data[i][9]).equals(\"null\") || String.valueOf(data[i][9]).equals(\"\")){\r\n\t\t//\t\tbean.setDeductDate(\"\");\r\n\t\t//\t}else{\r\n\t\t//\tbean.setDeductDate(String.valueOf(data[i][9]).trim());\r\n\t\t//\t}\r\n\t\t\t\r\n\t\t//\tif(String.valueOf(data[i][10]).equals(\"null\") || String.valueOf(data[i][10]).equals(\"\")){\r\n\t\t//\t\tbean.setDepDate(\"\");\r\n\t\t//\t}else{\r\n\t\t//\tbean.setDepDate(String.valueOf(data[i][10]).trim());\r\n\t\t//\t}\r\n\t\t\tchList.add(bean);\r\n\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in data loop\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\t taxChallan.setChallanList(chList);\r\n\t\t \r\n\t\t} //end of if\r\n\t\r\n\t}", "public void buscar(){\n \n String atributo=txtBuscar.getText();\n String consulta=extraerCombo();\n DefaultTableModel modelo=da.consultar(consulta, atributo);\n tblConsultar.setModel(modelo);\n lblTotal.setText(\"Se encontraron: \"+Integer.toString(da.getTotalRegistros())+\" resultados\");\n \n }", "static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }", "public void Query() {\n }", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public void queryTransactionDetail(){\n System.out.println(\"-----find transaction detail by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n String sql = \"select * from TransactionContains join Merchandise on TransactionContains.ProductID = Merchandise.ProductID where TransactionID=\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n sql+=id;\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"product id: \"+result.getInt(\"ProductID\"));\n System.out.println(\"product name: \"+result.getString(\"ProductName\"));\n System.out.println(\"actual price: \"+result.getDouble(\"ActualPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "Data<List<Boards>> getSearchBoards(String query);", "public void setMaxResult() {\n try {\n StringBuilder sql = new StringBuilder(\"select count(*) from LAPTOP_DATA a, LAPTOP_CONFIGURATION b where a.ID = b.LAPTOP_DATA_ID AND 1=1 \");\n ArrayList param = new ArrayList();\n if(laptop != null){\n if(laptop.getWeb() != null && !\"\".equals(laptop.getWeb())){\n sql.append(\" AND web = ? \");\n param.add(laptop.getWeb());\n }\n\n if(laptop.getBrand() != null && !\"\".equals(laptop.getBrand())){\n if(\"null\".equals(laptop.getBrand())){\n sql.append(\" AND brand is null \");\n }else{\n sql.append(\" AND brand = ? \");\n param.add(laptop.getBrand());\n }\n }\n\n if(laptop.getName() != null && !\"\".equals(laptop.getName())){\n sql.append(\" AND lower(name) like ? \");\n param.add(\"%\" + laptop.getName().toLowerCase() + \"%\");\n }\n\n if(laptop.getModel() != null && !\"\".equals(laptop.getModel())){\n if(\"null\".equals(laptop.getModel().toLowerCase())){\n sql.append(\" AND model is null \");\n }else{\n sql.append(\" AND lower(model) like ? \");\n param.add(laptop.getModel().toLowerCase());\n }\n }\n\n if(laptop.getChip() != null && !\"\".equals(laptop.getChip())){\n if(\"null\".equals(laptop.getChip())){\n sql.append(\" AND chip is null \");\n }else{\n sql.append(\" AND chip = ? \");\n param.add(laptop.getChip());\n }\n }\n\n if(laptop.getSpeed() != null && !\"\".equals(laptop.getSpeed())){\n if(\"null\".equals(laptop.getSpeed().toLowerCase())){\n sql.append(\" AND speed is null \");\n }else{\n sql.append(\" AND speed = ? \");\n param.add(laptop.getSpeed());\n }\n }\n\n if(laptop.getStorage() != null && !\"\".equals(laptop.getStorage())){\n if(\"null\".equals(laptop.getStorage())){\n sql.append(\" AND storage is null \");\n }else{\n sql.append(\" AND storage = ? \");\n param.add(laptop.getStorage());\n }\n }\n\n if(laptop.getHddType() != null && !\"\".equals(laptop.getHddType())){\n if(\"null\".equals(laptop.getHddType())){\n sql.append(\" AND hdd_Type is null \");\n }else{\n sql.append(\" AND hdd_Type = ? \");\n param.add(laptop.getHddType());\n }\n }\n\n if(laptop.getRam() != null && !\"\".equals(laptop.getRam())){\n if(\"null\".equals(laptop.getRam())){\n sql.append(\" AND ram is null \");\n }else{\n sql.append(\" AND ram = ? \");\n param.add(laptop.getRam());\n }\n }\n\n if(laptop.getVga() != null && !\"\".equals(laptop.getVga())){\n if(\"null\".equals(laptop.getVga())){\n sql.append(\" AND vga is null \");\n }else{\n sql.append(\" AND vga = ? \");\n param.add(laptop.getVga());\n }\n }\n\n if(laptop.getScreen() != null && !\"\".equals(laptop.getScreen())){\n if(\"null\".equals(laptop.getScreen().toLowerCase())){\n sql.append(\" AND screen is null \");\n }else{\n sql.append(\" AND screen = ? \");\n param.add(laptop.getScreen());\n }\n }\n\n if(laptop.getTouchscreen() != null && !\"\".equals(laptop.getTouchscreen())){\n if(\"null\".equals(laptop.getTouchscreen())){\n sql.append(\" AND touchscreen is null \");\n }else{\n sql.append(\" AND touchscreen = ? \");\n param.add(laptop.getTouchscreen());\n }\n }\n\n if(laptop.getOs() != null && !\"\".equals(laptop.getOs())){\n if(\"null\".equals(laptop.getOs())){\n sql.append(\" AND os is null \");\n }else{\n sql.append(\" AND os = ? \");\n param.add(laptop.getOs());\n }\n }\n\n if(laptop.getDvd() != null && !\"\".equals(laptop.getDvd())){\n if(\"null\".equals(laptop.getDvd())){\n sql.append(\" AND dvd is null \");\n }else{\n sql.append(\" AND dvd = ? \");\n param.add(laptop.getDvd());\n }\n }\n \n if(laptop.getBattery() != null && !\"\".equals(laptop.getBattery())){\n if(\"null\".equals(laptop.getBattery())){\n sql.append(\" AND battery is null \");\n }else{\n sql.append(\" AND battery = ? \");\n param.add(laptop.getBattery());\n }\n }\n\n if(laptop.getApprove() != null && \"on\".equals(laptop.getApprove())){\n sql.append(\" and approve = 'N' \");\n }\n if(laptop.getToday() != null && \"on\".equals(laptop.getToday())){\n sql.append(\" and Cast(a.last_update as date) = CAST(getdate() as date) \");\n }\n }\n\n SQLQuery query = getSession().createSQLQuery(sql.toString());\n for (int i = 0; i < param.size(); i++) {\n query.setParameter(i, param.get(i));\n }\n List lst = query.list();\n Integer countRecord = (Integer) lst.get(0);\n if (String.valueOf(count).length() >= 6) {\n count = countRecord.intValue();\n }\n jsonDataGrid.setTotalRows(countRecord.intValue());\n } catch (Exception ex) {\n jsonDataGrid.setTotalRows(0);\n ex.printStackTrace();\n }\n }", "public static void searchAll(){\r\n try {\r\n singleton.dtm = new DefaultTableModel(); \r\n singleton.dtm.setColumnIdentifiers(general);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n Statement stmt = singleton.conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM articulos\");\r\n //SELECT a.*,c.nombre FROM articulos a,categorias c,prodcategoria p WHERE a.codigo = p.articulo AND c.categoria_id = p.categoria\r\n \r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectos(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2)); \r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "public void getData( ){\n model.getDataVector( ).removeAllElements( );\n model.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement stat = (Statement)koneksi_db.config( ).createStatement( );\n String sql = \"Select * from daftar_log\";\n ResultSet res = stat.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(res.next ()){\n Object[ ] obj = new Object[6];\n obj[0] = res.getString(\"id_log\"); \n obj[1] = res.getString(\"nama_kejadian\");\n model.addRow(obj);\n }\n }\n catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "private void getDataBahasa(){\n\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Bahasa\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1= response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "protected String buildDataQuery() {\n StringBuilder sql = new StringBuilder(\"select\");\n String delim = \" \";\n for (String vname : getColumnNames()) {\n sql.append(delim).append(vname);\n delim = \", \";\n }\n \n Element ncElement = getNetcdfElement();\n \n String table = ncElement.getAttributeValue(\"dbTable\");\n if (table == null) {\n String msg = \"No database table defined. Must set 'dbTable' attribute.\";\n _logger.error(msg);\n throw new TSSException(msg);\n }\n sql.append(\" from \" + table);\n \n String predicate = ncElement.getAttributeValue(\"predicate\");\n if (predicate != null) sql.append(\" where \" + predicate);\n \n //Order by time.\n String tname = getTimeVarName();\n sql.append(\" order by \"+tname+\" ASC\");\n \n return sql.toString();\n }", "public List<TblRetur>getAllDataRetur();", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "public List<Dishes> select(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where 1=1 \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n /*list.add(book.getBookname());\n list.add(book.getPrice());\n list.add(book.getAuthor());\n list.add(book.getPic());\n list.add(book.getPublish());*/\n }\n return dao.select(sql.toString(), list.toArray());\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void getDataTakfidul(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Takhfidul Qur'an\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "public List<Dishes> selectHuai(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where \\\"cuisines\\\"='»´Ñï²Ë' \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n }\n return dao.select(sql.toString(), list.toArray());\n }", "private void selectAll() {\n //To change body of generated methods, choose Tools | Templates.\n \n tabelpulsa.setModel(model);\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n \n \n try {\n Connection c=koneksidb.getkoneksi();\n Statement s=c.createStatement();\n ResultSet r=s.executeQuery(\"select* from pulsa\");\n while(r.next()){\n Object[] pulsa = new Object[5]; \n pulsa[0]=r.getString(\"operator\");\n pulsa[1]=r.getString(\"id_pulsa\");\n pulsa[2]=r.getString(\"harga_default\");\n pulsa[3]=r.getString(\"harga_jual\");\n pulsa[4]=r.getString(\"harga_member\");\n model.addRow(pulsa);\n }\n }catch (SQLException e){\n System.out.println(\"terjadi error :\" +e);\n }\n }", "public void searchEmployee(TaxChallan taxChallan, HttpServletRequest request) {\r\n\t\tObject data[][] = null;\r\n\t\ttry {\r\n\t\t\tString challanQuery = \"SELECT HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE,HRMS_TAX_CHALLAN_DTL.EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,HRMS_TAX_CHALLAN_DTL.CHALLAN_TDS,\"\r\n\t\t\t\t\t+ \" TO_CHAR(NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_SURCHARGE,0), 9999999990.99),TO_CHAR(NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_EDU_CESS,0), 9999999990.99),TO_CHAR(NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_TOTAL_TAX,0), 9999999990.99) \" \r\n\t\t\t\t\t+ \" FROM HRMS_TAX_CHALLAN_DTL \"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_TAX_CHALLAN ON(HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=HRMS_TAX_CHALLAN.CHALLAN_CODE)\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON(HRMS_TAX_CHALLAN_DTL.EMP_ID=HRMS_EMP_OFFC.EMP_ID)\"\r\n\t\t\t\t\t+ \" WHERE HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID()\r\n\t\t\t\t\t+ \" ORDER BY EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME\";\r\n\t\t\tdata = getSqlModel().getSingleResult(challanQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in challanQuery in getChallanRecords method\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\tif(data.length> 0 && data!=null){\r\n\t\t\tint rownum = 0;\r\n\t\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\t\tif(String.valueOf(data[i][1]).equals(taxChallan.getSearchForEmpId())){\r\n\t\t\t\t\trownum = i;\r\n\t\t\t\t} //end of if\r\n\t\t\t} //end of loop\r\n\t\t\tlogger.info(\"rownum======\"+rownum);\r\n\t\t\tint recPerPage = 20;\r\n\t\t\tString[] pageIndex = Utility.doPaging(taxChallan.getMyPage(), data.length, recPerPage);\r\n\t\t\tif (pageIndex == null) {\r\n\t\t\t\tpageIndex[0] = \"0\";\r\n\t\t\t\tpageIndex[1] = \"20\";\r\n\t\t\t\tpageIndex[2] = \"1\";\r\n\t\t\t\tpageIndex[3] = \"1\";\r\n\t\t\t\tpageIndex[4] = \"\";\r\n\t\t\t} //end of if\r\n\t\t\trequest.setAttribute(\"totalPage\", Integer.parseInt(String\r\n\t\t\t\t\t.valueOf(pageIndex[2])));\r\n\t\t\t\r\n\r\n\t\t\tif (pageIndex[4].equals(\"1\"))\r\n\t\t\t\ttaxChallan.setMyPage(\"1\");\r\n\t\t\t\r\n\t\t\ttaxChallan.setListFlag(\"true\");\r\n\t\t\tArrayList<Object> chList = new ArrayList<Object>();\r\n\t\t\t\r\n\t\t\tint startRecNo = 0;\r\n\t\t\tint endRecNo = 0;\r\n\t\t\t\r\n\t\t\tint pageDiv = rownum/recPerPage;\r\n\t\t\t\r\n\t\t\tstartRecNo = pageDiv * recPerPage;\r\n\t\t\tendRecNo = startRecNo + recPerPage - 1;\r\n\t\t\t\r\n\t\t\tif(data.length <= endRecNo){\r\n\t\t\t\tendRecNo = data.length-1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlogger.info(\"startRecNo======\"+startRecNo);\r\n\t\t\tlogger.info(\"endRecNo======\"+endRecNo);\r\n\t\t\tint pageRemainder = (rownum+1)%recPerPage;\r\n\t\t\tlogger.info(\"pageRemainder======\"+pageRemainder);\r\n\t\t\t\r\n\t\t\tint highlightRec = 0;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(pageRemainder > 0){\r\n\t\t\t\tpageDiv = pageDiv+1;\r\n\t\t\t\thighlightRec = pageRemainder - 1;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tpageDiv = pageDiv+1;\r\n\t\t\t\thighlightRec = recPerPage - 1;\r\n\t\t\t}\r\n\t\t\trequest.setAttribute(\"highlightRec\", highlightRec);\r\n\t\t\tlogger.info(\"highlightRec======\"+highlightRec);\r\n\t\t\trequest.setAttribute(\"pageNo\", pageDiv);\r\n\t\t\ttaxChallan.setMyPage(String.valueOf(pageDiv));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tfor (int i = startRecNo; i <= endRecNo; i++) {\r\n\t\t\t\t\tTaxChallan bean=new TaxChallan(); \r\n\t\t\t\t\tbean.setChallanCode(String.valueOf(data[i][0]));//Challan Code\r\n\t\t\t\t\tbean.setEmpId(String.valueOf(data[i][1]));//Employee Id\r\n\t\t\t\t\tbean.setEmpToken(String.valueOf(data[i][2]));//Token No.\r\n\t\t\t\t\tbean.setEmpName(String.valueOf(data[i][3]));//Emp Name\r\n\t\t\t\t\tbean.setChallanTax(Utility.twoDecimals(String.valueOf(data[i][4])));//Tds\r\n\t\t\t\t\tbean.setChallanSurcharge(Utility.twoDecimals(String.valueOf(data[i][5])));//Surcharge\r\n\t\t\t\t\tbean.setChallanEduCess(Utility.twoDecimals(String.valueOf(data[i][6])));//Education cess\r\n\t\t\t\t\tbean.setChallanTotTax(Utility.twoDecimals(String.valueOf(data[i][7])));\t//Total Tax\r\n\t\t\t\t\r\n\t\t\t\t\tchList.add(bean);\r\n\t\t\t\t} //end of loop\r\n\t\t\t}catch (Exception e) {\r\n\t\t\t\tlogger.error(\"exception in data loop\",e);\r\n\t\t\t} //end of catch\r\n\t\t\t taxChallan.setChallanList(chList);\r\n\t\t} //end of if\r\n\t\t\r\n\t\tint fromYear=0;\r\n\t\tint toYear=0;\r\n\t\tif(Integer.parseInt(taxChallan.getMonth())>=4 && Integer.parseInt(taxChallan.getMonth())<=12) {\r\n\t\t\tfromYear =Integer.parseInt(taxChallan.getYear());\r\n\t\t\ttoYear=fromYear+1;\r\n\t\t } //end of if\r\n\t\telse if(Integer.parseInt(taxChallan.getMonth())>=1 && Integer.parseInt(taxChallan.getMonth())<=3) {\r\n\t\t fromYear =Integer.parseInt(taxChallan.getYear())-1;\r\n\t\t toYear=Integer.parseInt(taxChallan.getYear());\r\n\t\t} //end of else if\t\r\n\t\t\r\n\t\tString empIncomeQuery = \"SELECT TO_CHAR(NVL(TDS_TAXABLE_INCOME,0), 9999999990.99),TDS_EMP_ID FROM HRMS_TDS \" \r\n\t\t\t+\" LEFT JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_TDS.TDS_EMP_ID) \"\r\n\t\t\t+\" WHERE TDS_FROM_YEAR=\"+fromYear+\" AND TDS_TO_YEAR=\"+toYear+\" AND EMP_DIV = 22 \"\r\n\t\t\t+\" ORDER BY TDS_EMP_ID\";\r\n\t\t\tObject empTaxIncome[][] = getSqlModel().getSingleResult(empIncomeQuery);\r\n\t\t\t try {\r\n\t\t\t\t\tif(empTaxIncome != null && empTaxIncome.length != 0){\r\n\t\t\t\t\t\t ArrayList<Object> valuesList = new ArrayList<Object>();\r\n\t\t\t\t\t\t for (int i = 0; i < empTaxIncome.length; i++) {\r\n\t\t\t\t\t\t\t\t TaxChallan bean = new TaxChallan();\r\n\t\t\t\t\t\t\t\t bean.setHidListEmpId(String.valueOf(empTaxIncome[i][1]));\r\n\t\t\t\t\t\t\t\t bean.setHidListTdsIncome(String.valueOf(empTaxIncome[i][0]));\r\n\t\t\t\t\t\t\t\t valuesList.add(bean);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttaxChallan.setValuesList(valuesList);\r\n\t\t\t\t\t }\r\n\t\t\t\t} catch (RuntimeException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\ttaxChallan.setEnterTotalTax(\"0\");\r\n\t\t\ttaxChallan.setAddedTds(\"0\");\r\n\t\t\ttaxChallan.setAddedSurcharge(\"0\");\r\n\t\t\ttaxChallan.setAddedEduCess(\"0\");\r\n\t\t\ttaxChallan.setAddEmpId(\"\");\r\n\t\t\ttaxChallan.setAddEmpToken(\"\");\r\n\t\t\ttaxChallan.setAddEmpName(\"\");\r\n\t\t\ttaxChallan.setF9AddEmpFlag(\"false\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n String quey = \"select * from places p, branches b where b.place = p.id_place and p.place_name like 'TUNJA' \";\n //String quey = \"select * from branches \";\n List list = ModuleQueryController.findData(quey);\n \n for (Object l : list){\n System.out.println(l);\n //if(l instanceof Branch){\n // Branch p = (Branch) l;\n // System.out.println(p);\n //}\n //Object yourObject = (Object) SerializationUtils.deserialize(l);\n }\n System.out.println(list);\n }", "public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }", "public void getSelectRecord(TaxChallan taxChallan){\r\n\t\tObject taxData[][] = null;\r\n\t\ttry{\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT TO_CHAR(NVL(CHALLAN_TAX,0),9999999990.99), TO_CHAR(NVL(CHALLAN_SURCHARGE,0),9999999990.99), TO_CHAR(NVL(CHALLAN_EDUCESS,0),9999999990.99), TO_CHAR(NVL(CHALLAN_TOTALTAX,0),9999999990.99), NVL(CHALLAN_CHQNO,' '), NVL(TO_CHAR(CHALLAN_CHQDATE,'DD-MM-YYYY'),' '),\"\r\n\t\t\t\t\t+ \" CHALLAN_NO,TO_CHAR(CHALLAN_DATE,'DD-MM-YYYY'),BANK_NAME,BANK_BSR_CODE,CHALLAN_ACK_NO,BANK_MICR_CODE,CHALLAN_VCHR_NO,NVL(CHALLAN_INT_AMT,0.00),NVL(CHALLAN_OTHR_AMT,0.00),\"\r\n\t\t\t\t\t+ \" CHALLAN_BOOK_ENTRY,DECODE(CHALLAN_TAX_ONHOLD,'A','ALL','N','No','Y','Yes'),TO_CHAR(CHALLAN_DATE_PAYMENT,'DD-MM-YYYY'),DECODE(CHALLAN_SALARY_FLAG,'Y','true','N','false'), \" \r\n\t\t\t\t\t+ \" DECODE(CHALLAN_SETTLE_FLAG,'Y','true','N','false','false'),DECODE(CHALLAN_ALLOW_FLAG,'Y','true','N','false','false'),DECODE(CHALLAN_ARREARS_FLAG,'Y','true','N','false','false'), \" \r\n\t\t\t\t\t+ \" DECODE(CHALLAN_BONUS_FLAG,'Y','true','N','false','false'), DECODE(CHALLAN_LEAVE_FLAG,'Y','true','N','false','false'), DECODE(CHALLAN_OT_FLAG,'Y','true','N','false','false')\"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_CHALLAN \"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_BANK ON HRMS_BANK.BANK_BSR_CODE = hrms_tax_challan.CHALLAN_BANK WHERE CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID();\r\n\t\t\ttaxData = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"eception in taxData query\",e);\r\n\t\t} //end of catch\r\n\t\tif(!(taxData.length >0)){\r\n\t\t\ttaxChallan.setTax(\"\");\r\n\t\t\ttaxChallan.setSurcharge(\"\");\r\n\t\t\ttaxChallan.setEduCess(\"\");\r\n\t\t\ttaxChallan.setTotalTax(\"\");\r\n\t\t\ttaxChallan.setChequeNo(\"\");\r\n\t\t\ttaxChallan.setChequeDate(\"\");\r\n\t\t\ttaxChallan.setChallanNo(\"\");\r\n\t\t\ttaxChallan.setChallanDate(\"\");\r\n\t\t\ttaxChallan.setBank(\"\");\r\n\t\t\ttaxChallan.setBsrCode(\"\");\r\n\t\t\ttaxChallan.setAckNo(\"\");\r\n\t\t\ttaxChallan.setVchrNo(\"\");\r\n\t\t\ttaxChallan.setIntAmt(\"\");\r\n\t\t\ttaxChallan.setOthrAmt(\"\");\r\n\t\t\t//taxChallan.setBookEntry(\"\");\r\n\t\t}else{\r\n\t\t\ttaxChallan.setTax(Utility.twoDecimals(String.valueOf(taxData[0][0])));\r\n\t\t\ttaxChallan.setSurcharge(Utility.twoDecimals(String.valueOf(taxData[0][1])));\r\n\t\t\ttaxChallan.setEduCess(Utility.twoDecimals(String.valueOf(taxData[0][2])));\r\n\t\t\ttaxChallan.setTotalTax(Utility.twoDecimals(String.valueOf(taxData[0][3])));\r\n\t\t\ttaxChallan.setChequeNo(String.valueOf(taxData[0][4]));\r\n\t\t\ttaxChallan.setChequeDate(checkNull(String.valueOf(taxData[0][5])).trim());\r\n\t\t\ttaxChallan.setChallanNo(checkNull(String.valueOf(taxData[0][6])).trim());\r\n\t\t\ttaxChallan.setChallanDate(checkNull(String.valueOf(taxData[0][7])).trim());\r\n\t\t\ttaxChallan.setBank(checkNull(String.valueOf(taxData[0][8])));\r\n\t\t\ttaxChallan.setBsrCode(checkNull(String.valueOf(taxData[0][9])));\r\n\t\t\ttaxChallan.setAckNo(checkNull(String.valueOf(taxData[0][10])));\r\n\t\t\ttaxChallan.setMicr(checkNull(String.valueOf(taxData[0][11])));\r\n\t\t\ttaxChallan.setVchrNo(checkNull(String.valueOf(taxData[0][12])));\r\n\t\t\ttaxChallan.setIntAmt(Utility.twoDecimals(String.valueOf(taxData[0][13])));\r\n\t\t\ttaxChallan.setOthrAmt(Utility.twoDecimals(String.valueOf(taxData[0][14])));\r\n\t\t\ttaxChallan.setBookEntry(String.valueOf(taxData[0][15]));\r\n\t\t\ttaxChallan.setOnHold(String.valueOf(taxData[0][16]));\r\n\t\t\ttaxChallan.setPaymentDate(checkNull(String.valueOf(taxData[0][17])));\r\n\t\t\ttaxChallan.setIncludeSalary(String.valueOf(taxData[0][18]));\r\n\t\t\ttaxChallan.setIncludeSettlement(String.valueOf(taxData[0][19]));\r\n\t\t\ttaxChallan.setIncludeAllowance(String.valueOf(taxData[0][20]));\r\n\t\t\ttaxChallan.setIncludeArrears(String.valueOf(taxData[0][21]));\r\n\t\t\ttaxChallan.setIncludeBonus(String.valueOf(taxData[0][22]));\r\n\t\t\ttaxChallan.setIncludeLeaveEncashment(String.valueOf(taxData[0][23]));\r\n\t\t\ttaxChallan.setIncludeOverTime(String.valueOf(taxData[0][24]));\r\n\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(\"exception in getSelectRecord method\",e);\r\n\t\t} \r\n\t\tObject[][]tdsParameter = null;\r\n\t\ttry {\r\n\t\t\tString tdsParaQuery = \"SELECT TDS_DEBIT_CODE,TDS_EDU_CESS,TDS_REBATEMAX_AMOUNT,TDS_SURCHARGE \"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_PARAMETER \"\r\n\t\t\t\t\t+ \" WHERE TDS_CODE= (SELECT MAX(TDS_CODE) FROM HRMS_TAX_PARAMETER)\";\r\n\t\t\ttdsParameter = getSqlModel().getSingleResult(tdsParaQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in tdsParameter query\",e);\r\n\t\t}\r\n\t\t/**\r\n\t\t * this values are set...because they are used in java script for calculation\r\n\t\t * if in case total tax is changed.\r\n\t\t */\r\n\t\tif(tdsParameter !=null && tdsParameter.length >0){\r\n\t\t\ttaxChallan.setEduCessPercen(String.valueOf(tdsParameter[0][1]));\r\n\t\t\ttaxChallan.setRebateLimit(String.valueOf(tdsParameter[0][2]));\r\n\t\t\ttaxChallan.setSurchargePercen(String.valueOf(tdsParameter[0][3]));\r\n\t\t}\r\n\t}", "private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }", "@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }", "public void findUsers(String query)\n { \n if(searchtf.getText()!= null){\n ArrayList<StockOutBean> users = ListUsers(query);\n model = new DefaultTableModel() {\n @Override\n public boolean isCellEditable(int rowIndex, int mColIndex) {\n return false;\n }\n };\n \n model.setColumnIdentifiers(new Object[]{\"Invoice No.\", \"ProductId\", \"Barcode\", \"Product Name\", \n \"Product Description\", \"Category\", \"Quantity\", \"SellPrice\", \n \"Total\", \"Date\"});\n \n Object[] row = new Object[11];\n \n for(int i = 0; i < users.size(); i++)\n { \n row[0] = users.get(i).getInvoice();\n row[1] = users.get(i).getProductId();\n row[2] = users.get(i).getBarcode();\n row[3] = users.get(i).getPname();\n row[4] = users.get(i).getPdesc();\n row[5] = users.get(i).getCat();\n row[6] = users.get(i).getQty();\n row[7] = users.get(i).getSellPrice(); \n row[8] = users.get(i).getTotal();\n row[9] = users.get(i).getDate();\n \n model.addRow(row);\n }\n stable.setModel(model);\n \n }\n total.setText(\"TOTAL: \" + model.getRowCount());\n }", "HumidityQuery createHumidityQuery();", "@Query(\"Select * from Asignatura\")\n LiveData<List<Asignatura>> obtenerAsignaturas();", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "private static List<MapValue> display(NoSQLHandle handle,String query) throws Exception {\n \n \n \n QueryRequest queryRequest = new QueryRequest().setStatement(query);\n queryRequest.setLimit(1000);\n //q=q+String.valueOf(queryRequest.getLimit())+\"\\\\\\\\\\\\\"+String.valueOf(queryRequest.getMaxReadKB());\n String results1=null;\n List<MapValue> results=new ArrayList<>();\n QueryResult queryResult=null;\n do{\n queryResult = handle.query(queryRequest);\n results = queryResult.getResults();\n results1=results1+results.toString();\n }while (!queryRequest.isDone());\n \n return results;\n \n\n }", "public void QueryBUSINFO() {\r\n\r\n Cursor cursor = getBusINFOCursor();\r\n\r\n if (cursor != null) {\r\n\r\n if (cursor.moveToFirst()) {\r\n do {\r\n\r\n\r\n String busNUM = cursor.getString(1);\r\n String busINFO = cursor.getString(2);\r\n\r\n\r\n Log.d(\"test\", busNUM);\r\n if (busNUM.indexOf(\"九巴\") != -1 || busNUM.indexOf(\"KMB\") != -1) {\r\n if (Bus.isLanguare() == true) {\r\n busList.add(new Bus(busNUM, \"往 \" + busINFO, busICON[0]));\r\n } else {\r\n busList.add(new Bus(busNUM, \"To \" + busINFO, busICON[0]));\r\n }\r\n } else if (busNUM.indexOf(\"城巴\") != -1 || busNUM.indexOf(\"CITYBUS\") != -1) {\r\n if (Bus.isLanguare() == true) {\r\n busList.add(new Bus(busNUM, \"往 \" + busINFO, busICON[1]));\r\n } else {\r\n busList.add(new Bus(busNUM, \"To \" + busINFO, busICON[1]));\r\n }\r\n } else if (busNUM.indexOf(\"新巴\") != -1 || busNUM.indexOf(\"FIRST BUS\") != -1) {\r\n if (Bus.isLanguare() == true) {\r\n busList.add(new Bus(busNUM, \"往 \" + busINFO, busICON[2]));\r\n } else {\r\n busList.add(new Bus(busNUM, \"To \" + busINFO, busICON[2]));\r\n }\r\n }\r\n } while (cursor.moveToNext());\r\n }\r\n cursor.close();\r\n\r\n }\r\n\r\n }", "String queryInformation(String tableName,String queryname){\n Connection con = GetDBConnection.connectDB(\"booklibrarymanager\",\"root\",\"HanDong85\");\n String tar;\n if(tableName.equals(\"authorinformation\"))\n tar = \"author\";\n else if(tableName.equals(\"classificationinformation\"))\n tar = \"classification\";\n else tar = \"press\";\n String sql = \"select \" + tar + \"Id\" + \" from \" + tableName + \" where \";\n if(tableName.equals(\"authorinformation\"))\n sql += \"authorName = ?;\";\n else if(tableName.equals(\"classificationinformation\"))\n sql += \"classifcationName = ?;\";\n else sql += \"pressName = ?;\";\n System.out.println(sql);\n PreparedStatement preSQL;\n try{\n preSQL = con.prepareStatement(sql);\n preSQL.setString(1,queryname);\n ResultSet rs = preSQL.executeQuery();\n rs.beforeFirst();\n if(rs.next()){\n String ans = rs.getString(1);\n GetDBConnection.closeCon(con);\n return ans;\n }\n else{\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }\n catch (SQLException e){\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate CompoundQuery handleQuery() throws Exception{\n\t\tif (this.resultant != null && this.resultant.getResultsContainer() != null){\n\t\t\t//compoundQuery = (CompoundQuery) resultant.getAssociatedQuery();\n\t\t\tViewable view = newCompoundQuery.getAssociatedView();\n\t\t\tResultsContainer resultsContainer = this.resultant.getResultsContainer();\n\t\t\tsampleCrit = null;\n\t Collection sampleIDs = new ArrayList(); \n\t\t\t//Get the samples from the resultset object\n\t\t\tif(resultsContainer!= null){\n\t\t\t\tCollection samples = null;\n\t\t\t\tif(resultsContainer != null &&resultsContainer instanceof DimensionalViewContainer){\t\t\t\t\n\t\t\t\t\tDimensionalViewContainer dimensionalViewContainer = (DimensionalViewContainer)resultsContainer;\n\t\t\t\t\t\tCopyNumberSingleViewResultsContainer copyNumberSingleViewContainer = dimensionalViewContainer.getCopyNumberSingleViewContainer();\n\t\t\t\t\t\tGeneExprSingleViewResultsContainer geneExprSingleViewContainer = dimensionalViewContainer.getGeneExprSingleViewContainer();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(copyNumberSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = copyNumberSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(geneExprSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = geneExprSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t \t\tsampleCrit = new SampleCriteria();\n\t\t \t\t\tsampleCrit.setSampleIDs(sampleIDs);\n\n AddConstrainsToQueriesHelper constrainedSamplesHandler= new AddConstrainsToQueriesHelper();\n constrainedSamplesHandler.constrainQueryWithSamples(newCompoundQuery,sampleCrit);\n\t\t\t\tnewCompoundQuery = getShowAllValuesQuery(newCompoundQuery);\n\t\t\t\tnewCompoundQuery.setAssociatedView(view);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn newCompoundQuery;\n\t\t}", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }", "private void getDataFromDb() {\n viewModel.getCachedResults().observe(getViewLifecycleOwner(), searchResults -> {\n// Log.d(TAG, \"queryMusic: \" + new GsonBuilder().create().toJson(searchResults));\n\n //Checks if results is empty, will show the empty message if it do else, clears the list and adds the new one\n if (searchResults.isEmpty()) {\n resultsRv.setVisibility(View.GONE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.VISIBLE);\n } else {\n resultsRv.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.GONE);\n mSearchResultList.clear();\n mSearchResultList.addAll(searchResults);\n resultsListAdapter.setData(mSearchResultList);\n// Log.d(TAG, \"setData: mSearchResultList: \"+ new GsonBuilder().create().toJson(mSearchResultList));\n }\n });\n }", "default CompletableFuture<List<Box>> queryVisible() {\n //Fill search Map with the Values\n final Map<String,Object> searchData = new HashMap<String,Object>() {\n {\n put(BoxPersistenceDAO.QUERY_PARAM_DELFLAG, false);\n }\n\n @Override\n public Object put(String key, Object o) {\n if (o != null) return super.put(key, o);\n return null;\n }\n };\n\n return query(searchData);\n }", "private void getDataSalaf(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Salaf\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "public List<Map<String, Object>> Listar_Cumplea˝os(String mes,\r\n String dia, String aps, String dep, String are,\r\n String sec, String pue, String fec, String edad,\r\n String ape, String mat, String nom, String tip, String num) {\r\n sql = \"SELECT * FROM RHVD_FILTRO_CUMPL_TRAB \";\r\n sql += (!aps.equals(\"\")) ? \"Where UPPER(CO_APS)='\" + aps.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!dep.equals(\"\")) ? \"Where UPPER(DEPARTAMENTO)='\" + dep.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!are.equals(\"\")) ? \"Where UPPER(AREA)='\" + are.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!sec.equals(\"\")) ? \"Where UPPER(SECCION)='\" + sec.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!pue.equals(\"\")) ? \"Where UPPER(PUESTO)='\" + pue.trim().toUpperCase() + \"'\" : \"\";\r\n //sql += (!fec.equals(\"\")) ? \"Where FECHA_NAC='\" + fec.trim() + \"'\" : \"\"; \r\n sql += (!edad.equals(\"\")) ? \"Where EDAD='\" + edad.trim() + \"'\" : \"\";\r\n sql += (!ape.equals(\"\")) ? \"Where UPPER(AP_PATERNO)='\" + ape.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!mat.equals(\"\")) ? \"Where UPPER(AP_MATERNO)='\" + mat.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!nom.equals(\"\")) ? \"Where UPPER(NO_TRABAJADOR)='\" + nom.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!tip.equals(\"\")) ? \"Where UPPER(TIPO)='\" + tip.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!num.equals(\"\")) ? \"Where NU_DOC='\" + num.trim() + \"'\" : \"\";\r\n //buscar por rango de mes de cumplea├▒os*/\r\n\r\n sql += (!mes.equals(\"\") & !mes.equals(\"13\")) ? \"where mes='\" + mes.trim() + \"' \" : \"\";\r\n sql += (!mes.equals(\"\") & mes.equals(\"13\")) ? \"\" : \"\";\r\n sql += (!dia.equals(\"\")) ? \"and dia='\" + dia.trim() + \"'\" : \"\";\r\n return jt.queryForList(sql);\r\n }", "public List<ErpBookInfo> selData();", "public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }", "private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}", "public ResultSet findAllAnalysedData(String date) {\n String query = \"select\\n\"\n + \"bd.id as 'ID',\"\n + \"\tbd.keyword as 'Keyword',\\n\"\n + \"\tcount(*) as 'Profitable books',curdate() as 'Analysis Date'\\n\"\n + \"from\\n\"\n + \"\tbook_details bd\\n\"\n + \"where\\n\"\n + \"\tbd.bsr < 100000\\n\"\n + \"\tand(\\n\"\n + \"\t\tbd.no_of_reviews > 0\\n\"\n + \"\t\tand bd.no_of_reviews < 120\\n\"\n + \"\t)\\n\"\n + \"\tand datediff(CURDATE(),bd.date_of_publication) > 30\\n\"\n + \"\tand bd.price > 0\\n\"\n + \"\tand bd.publisher like '%self publisher%' \\n\"\n + \"group by\\n\"\n + \"\tbd.keyword\\n\"\n + \"order by\\n\"\n + \"\tcount(*) desc;\";\n try{\n connection = DBConnection.getInstance();\n //String date = simpleDateFormat.format(entity.getDateOfPublication());\n ps = connection.prepareStatement(query);\n return ps.executeQuery();\n \n }catch(Exception e)\n {\n e.printStackTrace();\n new MessageForm(\"Error\", e.toString(), \"error.png\").setVisible(true);\n }\n return null;\n }", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "private void load_buku() {\n Object header[] = {\"ID BUKU\", \"JUDUL BUKU\", \"PENGARANG\", \"PENERBIT\", \"TAHUN TERBIT\"};\n DefaultTableModel data = new DefaultTableModel(null, header);\n bookTable.setModel(data);\n String sql_data = \"SELECT * FROM tbl_buku\";\n try {\n Connection kon = koneksi.getConnection();\n Statement st = kon.createStatement();\n ResultSet rs = st.executeQuery(sql_data);\n while (rs.next()) {\n String d1 = rs.getString(1);\n String d2 = rs.getString(2);\n String d3 = rs.getString(3);\n String d4 = rs.getString(4);\n String d5 = rs.getString(5);\n\n String d[] = {d1, d2, d3, d4, d5};\n data.addRow(d);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "Tablero consultarTablero();", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "private void selectData() {\n String kolom[] = {\"ID\",\"Kasir\",\"Makanan\",\"Harga Makanan\",\"Minuman\",\"Harga Minuman\",\"Bayar\",\"Kembali\",\"Total\"};\n DefaultTableModel dtm = new DefaultTableModel(null, kolom);\n String SQL = \"SELECT * FROM tb_harga\";\n ResultSet rs = KoneksiDB.executeQuery(SQL);\n \n try\n {\n rs = KoneksiDB.executeQuery(SQL);\n while(rs.next())\n {\n String id = rs.getString(1);\n String kasir = rs.getString(2);\n String makanan = rs.getString(3);\n String hrg_makan = rs.getString(4);\n String minum = rs.getString(5);\n String hrg_minum = rs.getString(6);\n String bayar = rs.getString(7);\n String kembali = rs.getString(8);\n String total = rs.getString(9);\n \n String data[] = {id,kasir,makanan,hrg_makan,minum,hrg_minum,bayar,kembali,total};\n dtm.addRow(data);\n }\n }\n catch(SQLException ex)\n {\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\n }\n tData.setModel(dtm); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void getData( ){\n model2.getDataVector( ).removeAllElements( );\n model2.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement s = koneksi.createStatement();\n String sql = \"Select * from tb_customer\";\n ResultSet r = s.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(r.next ()){\n Object[ ] o = new Object[4];\n o[0] = r.getString(\"id\");\n o[1] = r.getString(\"nama\");\n o[2] = r.getString(\"alamat\");\n o[3] = r.getString(\"telepon\");\n\n model2.addRow(o);\n }\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "public List<Dishes> selectTian(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where \\\"cuisines\\\"='Ìðµã' \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n }\n return dao.select(sql.toString(), list.toArray());\n }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public static void searchDisplays(){\r\n try {\r\n \r\n singleton.dtm = new DefaultTableModel(); \r\n singleton.dtm.setColumnIdentifiers(displays);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n Statement stmt = singleton.conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT *,r.tam,r.resolucion FROM articulos a,mon r WHERE a.codigo = r.producto_id\");\r\n \r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n \r\n singleton.dtm.addRow(getArrayDeObjectosMon(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"tam\"),rs.getString(\"resolucion\")));\r\n\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "private void getDataDai(){\n\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Dai\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1= response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "private void queryList (String query) {\n\t\tmemoListAdapter.query(query);\n\t}", "public Collection<FlujoDetalleDTO> cargarTodos(int codigoFlujo) {\n/* 138 */ Collection<FlujoDetalleDTO> resultados = new ArrayList<FlujoDetalleDTO>();\n/* */ try {\n/* 140 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" order by t.secuencia\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 178 */ boolean rtaDB = this.dat.parseSql(s);\n/* 179 */ if (!rtaDB) {\n/* 180 */ return resultados;\n/* */ }\n/* 182 */ this.rs = this.dat.getResultSet();\n/* 183 */ while (this.rs.next()) {\n/* 184 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 187 */ catch (Exception e) {\n/* 188 */ e.printStackTrace();\n/* 189 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarTodos \", e);\n/* */ } \n/* 191 */ return resultados;\n/* */ }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Override\n\tpublic ResultBO<?> queryBill(Map<String, String> map) {\n\t\treturn super.queryBill(map);\n\t}", "@Query(\"SELECT * FROM unit WHERE name = :nama AND sync_delete = 1\")\n public List<Unit> cekNamaUnit(String nama);", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "public void query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "@Override\n\tpublic JSONObject getByPage(String param) {\n\t\tJSONObject data = new JSONObject();\n\t\tJSONObject result = new JSONObject();\n\t\tMainUtility mainUtil = new MainUtility();\n\t\tJSONObject jsonParams = mainUtil.stringToJson(param);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringBuilder builderGetTotal = new StringBuilder();\n\n\t\tbuilder.append(\"SELECT `wt_id`, `wt_title`, `wt_content`, user.full_name, \"\n\t\t\t\t+ \"IF(writing_test.created_date IS NULL,null, DATE_FORMAT(writing_test.created_date, '%d-%m-%Y')) AS created_date FROM writing_test \"\n\t\t\t\t+ \"LEFT JOIN crm_user AS user ON writing_test.created_by = user.user_id WHERE 1=1 \");\n\t\tbuilderGetTotal.append(\"SELECT COUNT(1) FROM `writing_test` \"\n\t\t\t\t+ \" WHERE 1=1\");\n\t\t// filter header\n\t\tif (jsonParams.get(\"status\") == null || Integer.parseInt(jsonParams.get(\"status\").toString()) == -1) {\n\t\t\tbuilder.append(\" AND writing_test.deleted <> 1\");\n\t\t\tbuilderGetTotal.append(\" AND writing_test.deleted <> 1\");\n\t\t} else if (Integer.parseInt(jsonParams.get(\"status\").toString()) == -2) {// thùng rác\n\t\t\tbuilder.append(\" AND writing_test.deleted = 1\");\n\t\t\tbuilderGetTotal.append(\" AND writing_test.deleted = 1\");\n\t\t}\n\t\tif (jsonParams.get(\"wt_title\") != null && !\"\".equals(jsonParams.get(\"wt_title\").toString())) {\n\t\t\tbuilder.append(\" AND wt_title LIKE N'%\" + jsonParams.get(\"wt_title\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND wt_title LIKE N'%\" + jsonParams.get(\"wt_title\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"wt_content\") != null && !\"\".equals(jsonParams.get(\"wt_content\").toString())) {\n\t\t\tbuilder.append(\" AND wt_content LIKE N'%\" + jsonParams.get(\"wt_content\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND wt_content LIKE N'%\" + jsonParams.get(\"wt_content\").toString() + \"%'\");\n\t\t}\n\t\t// sortby\n\t\tif (jsonParams.get(\"sortField\") != null && !\"\".equals(jsonParams.get(\"sortField\").toString())) {\n\t\t\tswitch (jsonParams.get(\"sortField\").toString()) {\n\t\t\tdefault:\n\t\t\t\tbuilder.append(\" ORDER BY writing_test.created_date DESC\");\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"descend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n//\t\t\t\tbuilder.append(\" DESC\");\n//\t\t\t}\n//\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"ascend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n//\t\t\t\tbuilder.append(\" ASC\");\n//\t\t\t}\n\t\t}\n\t\tmainUtil.getLimitOffset(builder, jsonParams);\n\t\ttry {\n\t\t\tint totalRow = this.jdbcTemplate.queryForObject(builderGetTotal.toString(), Integer.class);\n\t\t\tList<Map<String, Object>> lstWrittingTest = this.jdbcTemplate.queryForList(builder.toString());\n\t\t\tJSONObject results = new JSONObject();\n\t\t\tresults.put(\"results\", lstWrittingTest);\n\t\t\tresults.put(\"total\", totalRow);\n\t\t\tdata.put(\"data\", results);\n\t\t\tdata.put(\"success\", true);\n\t\t} catch (Exception e) {\n\t\t\tdata.put(\"success\", false);\n\t\t\tdata.put(\"err\", e.getMessage());\n\t\t\tdata.put(\"msg\", \"Lấy danh sách bài kiểm tra thất bại\");\n\t\t}\n\t\treturn data;\n\t}", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "@Override\n public boolean onQueryTextSubmit(String query) {\n queryMain = query;\n consultarDb();\n return true;\n }", "public void queryDevices(){\r\n\r\n\r\n reportsDb.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n\r\n\r\n\r\n\r\n\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n if(task.isSuccessful()){\r\n\r\n\r\n //Gets the snapshot of the database and added into a map data structure\r\n for (QueryDocumentSnapshot doc: task.getResult()){\r\n\r\n\r\n\r\n Map<String, Object> queryData = doc.getData();\r\n\r\n deviceID.add(doc.getId());\r\n deviceNames.add(queryData.get(\"Name\").toString());\r\n\r\n\r\n\r\n }\r\n\r\n //Passing in data into the recycler from the query, to create a list like view\r\n initialiseRecycler(deviceID, deviceNames);\r\n\r\n\r\n\r\n\r\n }\r\n\r\n }\r\n });\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "private void table(String where_condition){\n \n String query = \"SELECT reports.id,patients.patient_name,reports.report,doctors.doctor_name,reports.admitted FROM reports INNER JOIN patients on reports.patient_id = patients.id INNER JOIN doctors on reports.doctor_id = doctors.id WHERE (reports.patient_id = \"+global_patient_id+\") \"+where_condition+\" ORDER BY reports.id DESC\" ;\n\n ResultSet rs = null;\n \n try\n {\n rs = database().prepareStatement(query).executeQuery();\n displayTable.setModel(DbUtils.resultSetToTableModel(rs));\n displayTable.setVisible(true);\n }\n catch(Exception ex)\n { JOptionPane.showMessageDialog(null,ex); }\n}", "@Override\r\n\tpublic String[] getData(String[] sql) {\n\t\treturn null;\r\n\t}", "private void getDataLainya(){\n\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Komprehensif\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1= response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\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}", "@Override\r\n public List<Anggota> getAll() {\r\n List<Anggota> datas = new ArrayList<>();\r\n String query = \"SELECT *From Anggota\";\r\n try {\r\n\r\n PreparedStatement preparedStatement = connection.prepareStatement(query);\r\n ResultSet rs = preparedStatement.executeQuery();\r\n\r\n while (rs.next()) {\r\n Anggota anggota = new Anggota();\r\n anggota.setKdAnggota(rs.getString(1));\r\n anggota.setNmAnggota(rs.getString(2));\r\n anggota.setTelepon(rs.getString(3));\r\n anggota.setAlamat(rs.getString(4));\r\n datas.add(anggota);\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AnggotaDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return datas;\r\n\r\n }", "@Override\n\tpublic void loadData(){\n\t\tsuper.loadData();\n\t\topenProgressDialog();\n\t\tBmobQuery<Goods> query = new BmobQuery<Goods>();\n\t\tpageSize = 5;\n\t\tquery.setLimit(pageSize);\n\t\tquery.setSkip((pageNum - 1) * pageSize);\n\t\tif(point == 1){\n\t\t\tquery.addWhereEqualTo(\"type\", type);\n\t\t}else if(point == 2){\n\t\t\tquery.addWhereEqualTo(\"tradeName\", type);\n\t\t}\n\t\tquery.findObjects(this, new FindListener<Goods>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<Goods> object){\n\t\t\t\t// TODO Auto-generated method st\n\t\t\t\tcloseProgressDialog();\n\t\t\t\tonRefreshComplete();\n\t\t\t\tlist.addAll(object);\n\t\t\t\tLog.v(\"AAA\", JSON.toJSONString(list));\n\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(int code,String msg){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(mContext, \"查询失败\", Toast.LENGTH_SHORT).show();\n\t\t\t\tcloseProgressDialog();\n\t\t\t}\n\t\t});\n\n\t}", "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;", "private void showFilter() {\n dtmStok.getDataVector().removeAllElements();\n String pilih = cbFilter.getSelectedItem().toString();\n List<Stokdigudang> hasil = new ArrayList<>();\n\n int pan = tfFilter.getText().length();\n String banding = \"\";\n\n if (pilih.equals(\"Brand\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getBrand().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else if (pilih.equals(\"Kategori\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getIDKategori().getNamaKategori().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else if (pilih.equals(\"Supplier\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getIDSupplier().getNamaPerusahaan().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Pilih Filter !\");\n }\n\n if (hasil.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Tidak ada stok yang ditemukan !\");\n } else {\n for (Stokdigudang s : hasil) {\n dtmStok.addRow(new Object[]{\n s.getIDBarang(),\n s.getNamaBarang(),\n s.getStok(),\n s.getBrand(),\n s.getHarga(),\n s.getIDKategori().getNamaKategori(),\n s.getIDSupplier().getNamaPerusahaan(),\n s.getTanggalDidapat()\n });\n }\n\n tableStok.setModel(dtmStok);\n }\n }", "public void okFind()\n {\n ASPManager mgr = getASPManager();\n\n trans.clear();\n q = trans.addQuery(headblk);\n q.addWhereCondition(\"WO_NO<(SELECT Number_Serie_API.Get_Last_Wo_Number FROM DUAL) AND CONTRACT IN(SELECT User_Allowed_Site_API.Authorized(CONTRACT) FROM DUAL)\");\n q.addWhereCondition(\"CONNECTION_TYPE_DB = 'EQUIPMENT'\");\n q.includeMeta(\"ALL\");\n\n // nimhlk - Begin\n if (mgr.dataTransfered())\n {\n ASPBuffer retBuffer = mgr.getTransferedData();\n if (retBuffer.itemExists(\"WO_NO\"))\n {\n String ret_wo_no = retBuffer.getValue(\"WO_NO\");\n q.addWhereCondition(\"WO_NO = ?\");\n q.addParameter(\"WO_NO\",ret_wo_no);\n }\n else\n q.addOrCondition(mgr.getTransferedData());\n }\n // nimhlk - End\n\n mgr.querySubmit(trans,headblk);\n\n if (headset.countRows() == 0)\n {\n mgr.showAlert(mgr.translate(\"PCMWACTIVESEPARATENODATA: No data found.\"));\n headset.clear();\n }\n if (headset.countRows() == 1)\n {\n lay.setLayoutMode(lay.SINGLE_LAYOUT);\n }\n mgr.createSearchURL(headblk);\n }", "public List<ReporteComprasVentasRetenciones> getReporteRetencionClientes(int mes, int anio, int idOrganizacion)\r\n/* 231: */ {\r\n/* 232:307 */ StringBuffer sql = new StringBuffer();\r\n/* 233:308 */ sql.append(\"SELECT new ReporteComprasVentasRetenciones(fp.codigo, fp.nombre, COUNT(fp.codigo),\");\r\n/* 234:309 */ sql.append(\" (CASE WHEN fp.indicadorRetencionIva = true OR fp.indicadorRetencionFuente = true THEN SUM(dcfc.valor) END),\");\r\n/* 235:310 */ sql.append(\" 'Ventas', '' )\");\r\n/* 236:311 */ sql.append(\" FROM DetalleCobroFormaCobro dcfc\");\r\n/* 237:312 */ sql.append(\" JOIN dcfc.detalleFormaCobro dfc\");\r\n/* 238:313 */ sql.append(\" LEFT JOIN dfc.cobro c\");\r\n/* 239:314 */ sql.append(\" LEFT OUTER JOIN dfc.formaPago fp\");\r\n/* 240:315 */ sql.append(\" LEFT OUTER JOIN dcfc.detalleCobro dc\");\r\n/* 241:316 */ sql.append(\" LEFT OUTER JOIN dc.cuentaPorCobrar cpc\");\r\n/* 242:317 */ sql.append(\" LEFT OUTER JOIN cpc.facturaCliente fc\");\r\n/* 243:318 */ sql.append(\" WHERE MONTH(c.fecha) =:mes\");\r\n/* 244:319 */ sql.append(\" AND YEAR(c.fecha) =:anio\");\r\n/* 245:320 */ sql.append(\" AND fc.estado!=:estadoAnulado\");\r\n/* 246:321 */ sql.append(\" AND c.estado!=:estadoAnulado\");\r\n/* 247:322 */ sql.append(\" AND (fp.indicadorRetencionIva=true OR fp.indicadorRetencionFuente=true)\");\r\n/* 248:323 */ sql.append(\" AND fc.idOrganizacion = :idOrganizacion\");\r\n/* 249:324 */ sql.append(\" GROUP BY fp.codigo, fp.nombre, fp.indicadorRetencionIva, fp.indicadorRetencionFuente\");\r\n/* 250:325 */ sql.append(\" ORDER BY fp.codigo, fp.nombre\");\r\n/* 251:326 */ Query query = this.em.createQuery(sql.toString());\r\n/* 252:327 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 253:328 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 254:329 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 255:330 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 256:331 */ return query.getResultList();\r\n/* 257: */ }", "public void buscarDatos() throws Exception {\r\n try {\r\n String parameter = lbxParameter.getSelectedItem().getValue()\r\n .toString();\r\n String value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n Map<String, Object> parameters = new HashMap();\r\n parameters.put(\"parameter\", parameter);\r\n parameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n getServiceLocator().getHospitalizacionService().setLimit(\r\n \"limit 25 offset 0\");\r\n\r\n List<Hospitalizacion> lista_datos = getServiceLocator()\r\n .getHospitalizacionService().listar(parameters);\r\n rowsResultado.getChildren().clear();\r\n\r\n for (Hospitalizacion hospitalizacion : lista_datos) {\r\n rowsResultado.appendChild(crearFilas(hospitalizacion, this));\r\n }\r\n\r\n gridResultado.setVisible(true);\r\n gridResultado.setMold(\"paging\");\r\n gridResultado.setPageSize(20);\r\n\r\n gridResultado.applyProperties();\r\n gridResultado.invalidate();\r\n gridResultado.setVisible(true);\r\n\r\n } catch (Exception e) {\r\n MensajesUtil.mensajeError(e, \"\", this);\r\n }\r\n }", "@POST\n public String SendQueryResult(String data) throws JsonProcessingException {\n ObjectMapper objectMapper = new ObjectMapper();\n InputQueryData inputQueryData = new ObjectMapper().readValue(data, InputQueryData.class);\n// System.out.println(inputQueryData.getTableName());\n// System.out.println(inputQueryData.getSelectedColumns());\n// System.out.println(inputQueryData.getWhereConditionSelectedColumns());\n// System.out.println(inputQueryData.getWhereConditionSelectedValues());\n\n\n ManageFact manageFact = new ManageFact();\n\n String resultQuery = manageFact.QueryGenerator(inputQueryData.getTableName(), inputQueryData.getSelectedColumns(), inputQueryData.getWhereConditionSelectedColumns(), inputQueryData.getWhereConditionSelectedValues(),inputQueryData.getGroupByColumns());\n\n\n\n\n return objectMapper.writeValueAsString(resultQuery);\n }", "@Override\r\n public QueryResult.ResultQ1[] functionQ1() {\r\n QueryResult.ResultQ1[] res=null;\r\n ArrayList<QueryResult.ResultQ1> re=new ArrayList<QueryResult.ResultQ1>();\r\n String q = \"SELECT b.isbn,b.first_publish_year,p.publisher_id,p.publisher_name FROM book b, publisher p WHERE p.publisher_id = b.publisher_id AND b.page_count = (SELECT max(bo.page_count) FROM book bo ) ORDER BY b.isbn ASC\";\r\n try {\r\n Statement s = this.connection.createStatement();\r\n ResultSet r = s.executeQuery(q);\r\n while(r.next()){\r\n String is = r.getString(\"isbn\");\r\n String fpy= r.getString(\"first_publish_year\");\r\n int pc= r.getInt(\"publisher_id\");\r\n String pn=r.getString(\"publisher_name\");\r\n QueryResult.ResultQ1 qq = new QueryResult.ResultQ1(is,fpy,pc,pn);\r\n re.add(qq);\r\n \r\n \r\n }\r\n res=re.toArray(new QueryResult.ResultQ1[0]);\r\n s.close();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n return res;\r\n }", "private void getDataModern(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Modern\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "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}", "@Override\n\tpublic JSONArray searchData(String queryString)throws Exception { CALL DAO get database data\n\t\t//\n\t\ttry {\n\t\t\tJSONArray result=new JSONArray();\n\t\t\t//return null;\n result=testDB.getDataFromDB(queryString);\n\t\t\t//System.out.print(result.toString());\n\t\t\treturn result;\n\t\t\t//throw new Exception(\"Test Exception\");\n\t\t}catch(Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t}" ]
[ "0.65566087", "0.6432345", "0.6259196", "0.6103453", "0.60606474", "0.60450155", "0.60052687", "0.59946156", "0.5976343", "0.5975784", "0.5941381", "0.5938913", "0.5901869", "0.5855035", "0.5836922", "0.58260024", "0.5811637", "0.57908946", "0.57867414", "0.5774023", "0.57728183", "0.5720244", "0.5714496", "0.57105434", "0.57044226", "0.5677276", "0.56741166", "0.5663465", "0.5662227", "0.5655051", "0.5652675", "0.5647387", "0.5639378", "0.56337535", "0.56210846", "0.5620297", "0.56166416", "0.56071013", "0.559144", "0.5589506", "0.55879134", "0.5581861", "0.55754817", "0.55474", "0.55466884", "0.5539375", "0.55312055", "0.55212855", "0.55189025", "0.5509063", "0.55063725", "0.5505567", "0.55020815", "0.55009997", "0.54992026", "0.5495432", "0.54947484", "0.54897344", "0.5488759", "0.5485293", "0.5479481", "0.54770595", "0.5467385", "0.54665744", "0.54658425", "0.54600716", "0.54565406", "0.5456054", "0.5453543", "0.54480135", "0.54448164", "0.5441313", "0.5439837", "0.5432755", "0.54311776", "0.54295063", "0.5426324", "0.54238456", "0.5418971", "0.5411463", "0.54113096", "0.54092115", "0.5407786", "0.5403859", "0.5403249", "0.5401153", "0.5400881", "0.5395835", "0.53936553", "0.538799", "0.538389", "0.5383201", "0.5380406", "0.5380089", "0.5378788", "0.5377242", "0.53745544", "0.5374073", "0.5373816", "0.5367494", "0.53655595" ]
0.0
-1
Creates new form JDialogStampaArticoli
public JDialogStampaArticoli(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); KeyValuePair kv = new KeyValuePair(null, "<non stampare prezzi>"); KeyValuePair kv1 = new KeyValuePair("EL1", "<Ultimi prezzi di Vendita>"); KeyValuePair kv2 = new KeyValuePair("EL2", "<Ultimi prezzi di Acquisto>"); SwingUtils.initJComboFromDb(listini, Db.getConn(), "select codice, descrizione from tipi_listino order by descrizione", "codice", "descrizione", kv, kv1, kv2); Vector v = new Vector(); v.add(new KeyValuePair("art.codice", "Codice")); v.add(new KeyValuePair("art.descrizione", "Descrizione")); v.add(new KeyValuePair("cat.categoria, sotcat.sottocategoria, art.codice", "Categoria, Sottocategoria, Codice articolo")); v.add(new KeyValuePair("cat.categoria, sotcat.sottocategoria, art.descrizione", "Categoria, Sottocategoria, Descrizione articolo")); SwingUtils.initJComboFromKVList(ordine, v); v = new Vector(); v.add(new KeyValuePair("pdf", "PDF")); v.add(new KeyValuePair("html", "HTML")); v.add(new KeyValuePair("xls", "EXCEL")); SwingUtils.initJComboFromKVList(formato, v); checkSorgente(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jMenuItemCentroInscripcionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemCentroInscripcionesActionPerformed\n LOG.trace(evt.paramString());\n\n JDialogCentroInscripciones vci = new JDialogCentroInscripciones(listaDeportes);\n LOG.info(\"Launching JDialogCentroInscripciones...\");\n vci.setModalityType(modal);\n vci.setLocationRelativeTo(this);\n vci.setVisible(true);\n}", "private void jMenuItemControlAsistenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemControlAsistenciaActionPerformed\n JDialogControlAsistencia vca = new JDialogControlAsistencia(this, modal, listaDeportes);\n LOG.info(\"Launching JDialogControlAsistencia...\");\n vca.setLocationRelativeTo(this);\n vca.setVisible(true);\n}", "public VistaArticulosBajas() {\r\n\t\tsetTitle(\"Baja_Art\\u00EDculos\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 367, 208);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\t// Definir el Diálogo Confirmar Baja Artículo\r\n\t\tdlgConfBaja.setLayout(new FlowLayout());\r\n\t\tdlgConfBaja.add(lblConfBaja);\r\n\t\tdlgConfBaja.add(btnConfBajaSi);\r\n\t\tdlgConfBaja.add(btnConfBajaNo);\r\n\t\tdlgConfBaja.setSize(200, 150);\r\n\t\tdlgConfBaja.setLocationRelativeTo(null);\r\n\t\tdlgConfBaja.addWindowListener(this);\r\n\t\tbtnConfBajaSi.addActionListener(this);\r\n\t\tbtnConfBajaNo.addActionListener(this);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"Escoge un Art\\u00EDculo\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblNewLabel.setBounds(10, 23, 147, 23);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\r\n\t\tchcArticuloBajas = new Choice();\r\n\t\tchcArticuloBajas.setBounds(10, 46, 169, 20);\r\n\t\tcontentPane.add(chcArticuloBajas);\r\n\t\t// Mostrar los artículos en el choice chcArticuloBajas conectando con la BD\r\n\t\tResultSet articulos = null;\r\n\t\tConnection conArticulo = null;\r\n\t\tconArticulo = modelo.conectar();\r\n\t\tarticulos = modelo.consultaArticulos(conArticulo);\r\n\t\ttry {\r\n\t\t\tString id;\r\n\t\t\tString descripcion;\r\n\t\t\twhile(articulos.next()) {\r\n\t\t\t\tid = articulos.getInt(\"idArticulos\")+\"\";\r\n\t\t\t\tdescripcion = articulos.getString(\"descripcionArticulo\");\r\n\t\t\t\tchcArticuloBajas.add(id+\" - \"+descripcion);\r\n\t\t\t}\r\n\t\t\tmodelo.desconectar(conArticulo);\r\n\t\t}catch(SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Botón Volver. Acción --> vuelve al Menú Principal\r\n\t\tJButton btnVolverBajas = new JButton(\"VOLVER\");\r\n\t\tbtnVolverBajas.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVolverBajas.setBounds(252, 46, 89, 23);\r\n\t\tcontentPane.add(btnVolverBajas);\r\n\r\n\t\t// Botón Eliminar. Acción --> abre el Diálogo Confirmar_Baja \r\n\t\tJButton btnEliminarBajas = new JButton(\"ELIMINAR\");\r\n\t\tbtnEliminarBajas.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdlgConfBaja.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnEliminarBajas.setBounds(252, 126, 89, 23);\r\n\t\tcontentPane.add(btnEliminarBajas);\r\n\r\n\t}", "private void jMenuItemIniciarJuegosOlimpicosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemIniciarJuegosOlimpicosActionPerformed\n JDialogVerAsistencia dialogVerAsistencia = new JDialogVerAsistencia(listaDeportes);\n LOG.info(\"Launching JDialogVerAsistencia...\");\n dialogVerAsistencia.setModalityType(ModalityType.APPLICATION_MODAL);\n dialogVerAsistencia.setLocationRelativeTo(this);\n dialogVerAsistencia.setVisible(true);\n}", "@SuppressWarnings(\"static-access\")\r\n\tprivate void abrirTelaNovoArtista() {\r\n\t\t\r\n\t\tFrmArtistaCad newArtista = new FrmArtistaCad();\r\n\t\tnewArtista.setVisible(true);\r\n\t\tnewArtista.setDefaultCloseOperation(newArtista.DISPOSE_ON_CLOSE);\r\n\t\tnewArtista.setResizable(false);\r\n\t}", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public Trabajadores() {\n initComponents();\n setSize(725,260);\n DialogoImportar.setLocationRelativeTo(null);\n this.PastelNosin.setVisible(false);\n \n }", "private void btnEntrarActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n Alumno.Aula = jcbAula.getSelectedItem().toString();\n Alumno.Materia = \"\";\n Info_Computo a1 = new Info_Computo();\n a1.setVisible(true);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jdi_universo = new javax.swing.JDialog();\n jtf_codigo = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n btn_universo = new javax.swing.JButton();\n jSpinner2 = new javax.swing.JSpinner();\n jd_mundo = new javax.swing.JDialog();\n jLabel4 = new javax.swing.JLabel();\n jtf_ntorgua = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n js_pesomundo = new javax.swing.JSpinner();\n btn_gmundo = new javax.swing.JButton();\n jd_criaturas = new javax.swing.JDialog();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jtf_raza = new javax.swing.JTextField();\n jScrollPane4 = new javax.swing.JScrollPane();\n ta_objetos = new javax.swing.JTextArea();\n js_vivos = new javax.swing.JSpinner();\n js_anioscriatura = new javax.swing.JSpinner();\n jtf_region = new javax.swing.JTextField();\n btn_nuevacriatura = new javax.swing.JButton();\n js_energia = new javax.swing.JSpinner();\n js_pesocaricatura = new javax.swing.JSpinner();\n jLabel14 = new javax.swing.JLabel();\n jpm_mundos = new javax.swing.JPopupMenu();\n jm_agregar = new javax.swing.JMenuItem();\n jm_eliminar = new javax.swing.JMenuItem();\n Modificar = new javax.swing.JMenu();\n jmu_nombremundo = new javax.swing.JMenuItem();\n jmu_pesomundo = new javax.swing.JMenuItem();\n jpm_criatura = new javax.swing.JPopupMenu();\n jm_agrgarcriatura = new javax.swing.JMenuItem();\n eliminar = new javax.swing.JMenuItem();\n jMenu1 = new javax.swing.JMenu();\n jm_nombrecriatura = new javax.swing.JMenuItem();\n jm_region = new javax.swing.JMenuItem();\n jToolBar1 = new javax.swing.JToolBar();\n Cuniverso = new javax.swing.JButton();\n btn_mundo = new javax.swing.JButton();\n btn_criatura = new javax.swing.JButton();\n btn_mundotree = new javax.swing.JButton();\n btn_criaturatotree = new javax.swing.JButton();\n btn_pesouniverso = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jt_universo = new javax.swing.JTree();\n jScrollPane2 = new javax.swing.JScrollPane();\n jlist_mundos = new javax.swing.JList<>();\n jScrollPane3 = new javax.swing.JScrollPane();\n jlist_criaturas = new javax.swing.JList<>();\n jLabel15 = new javax.swing.JLabel();\n\n jLabel1.setText(\"Codigo\");\n\n jLabel2.setText(\"Edad\");\n\n jLabel3.setText(\"Crear Universo\");\n\n btn_universo.setText(\"Crear Universo\");\n btn_universo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_universoMouseClicked(evt);\n }\n });\n\n jSpinner2.setModel(new javax.swing.SpinnerNumberModel(50, 0, null, 1));\n\n javax.swing.GroupLayout jdi_universoLayout = new javax.swing.GroupLayout(jdi_universo.getContentPane());\n jdi_universo.getContentPane().setLayout(jdi_universoLayout);\n jdi_universoLayout.setHorizontalGroup(\n jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jdi_universoLayout.createSequentialGroup()\n .addContainerGap(50, Short.MAX_VALUE)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jdi_universoLayout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtf_codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jdi_universoLayout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_universo)\n .addComponent(jSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(87, 87, 87)))\n .addGap(70, 70, 70))\n );\n jdi_universoLayout.setVerticalGroup(\n jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jdi_universoLayout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtf_codigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jdi_universoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addComponent(btn_universo)\n .addContainerGap(76, Short.MAX_VALUE))\n );\n\n jLabel4.setText(\"Crear Mundo Disco\");\n\n jLabel5.setText(\"Nombre de Tortuga\");\n\n jLabel6.setText(\"Peso\");\n\n js_pesomundo.setModel(new javax.swing.SpinnerNumberModel(50, 0, null, 1));\n\n btn_gmundo.setText(\"Crear Mundo\");\n btn_gmundo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_gmundoMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jd_mundoLayout = new javax.swing.GroupLayout(jd_mundo.getContentPane());\n jd_mundo.getContentPane().setLayout(jd_mundoLayout);\n jd_mundoLayout.setHorizontalGroup(\n jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_mundoLayout.createSequentialGroup()\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_mundoLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(51, 51, 51)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtf_ntorgua, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_pesomundo, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jd_mundoLayout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_gmundo, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n jd_mundoLayout.setVerticalGroup(\n jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_mundoLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtf_ntorgua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addGap(25, 25, 25)\n .addGroup(jd_mundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(js_pesomundo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(52, 52, 52)\n .addComponent(btn_gmundo)\n .addContainerGap(83, Short.MAX_VALUE))\n );\n\n jLabel7.setText(\"Criatura\");\n\n jLabel8.setText(\"Nombre de Raza\");\n\n jLabel9.setText(\"Numero de Energia\");\n\n jLabel10.setText(\"Numero max de años\");\n\n jLabel11.setText(\"Nombre de la Region\");\n\n jLabel12.setText(\"Cantidad Vivos\");\n\n jLabel13.setText(\"Lista de objetos\");\n\n ta_objetos.setColumns(20);\n ta_objetos.setRows(5);\n jScrollPane4.setViewportView(ta_objetos);\n\n js_vivos.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n js_anioscriatura.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n btn_nuevacriatura.setText(\"Crear Criatura\");\n btn_nuevacriatura.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_nuevacriaturaMouseClicked(evt);\n }\n });\n\n js_energia.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n js_pesocaricatura.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n jLabel14.setText(\"Peso\");\n\n javax.swing.GroupLayout jd_criaturasLayout = new javax.swing.GroupLayout(jd_criaturas.getContentPane());\n jd_criaturas.getContentPane().setLayout(jd_criaturasLayout);\n jd_criaturasLayout.setHorizontalGroup(\n jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jd_criaturasLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(119, 119, 119))\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE)\n .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addComponent(jLabel14)))\n .addGap(18, 18, 18)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtf_raza, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_vivos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_anioscriatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jtf_region, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.LEADING))\n .addComponent(btn_nuevacriatura, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_energia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(js_pesocaricatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(163, Short.MAX_VALUE))\n );\n jd_criaturasLayout.setVerticalGroup(\n jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jd_criaturasLayout.createSequentialGroup()\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jtf_raza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel9))\n .addComponent(js_energia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(js_anioscriatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(jtf_region, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(js_vivos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jd_criaturasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(js_pesocaricatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addComponent(btn_nuevacriatura)\n .addGap(22, 22, 22))\n );\n\n jm_agregar.setText(\"Agregar\");\n jm_agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_agregarActionPerformed(evt);\n }\n });\n jpm_mundos.add(jm_agregar);\n\n jm_eliminar.setText(\"Eliminar\");\n jm_eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_eliminarActionPerformed(evt);\n }\n });\n jpm_mundos.add(jm_eliminar);\n\n Modificar.setText(\"modificar\");\n\n jmu_nombremundo.setText(\"Nombre\");\n jmu_nombremundo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jmu_nombremundoActionPerformed(evt);\n }\n });\n Modificar.add(jmu_nombremundo);\n\n jmu_pesomundo.setText(\"Peso\");\n jmu_pesomundo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jmu_pesomundoActionPerformed(evt);\n }\n });\n Modificar.add(jmu_pesomundo);\n\n jpm_mundos.add(Modificar);\n\n jm_agrgarcriatura.setText(\"Agregar\");\n jm_agrgarcriatura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_agrgarcriaturaActionPerformed(evt);\n }\n });\n jpm_criatura.add(jm_agrgarcriatura);\n\n eliminar.setText(\"Eliminar\");\n eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n eliminarActionPerformed(evt);\n }\n });\n jpm_criatura.add(eliminar);\n\n jMenu1.setText(\"Modificar\");\n\n jm_nombrecriatura.setText(\"Raza\");\n jm_nombrecriatura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_nombrecriaturaActionPerformed(evt);\n }\n });\n jMenu1.add(jm_nombrecriatura);\n\n jm_region.setText(\"Region\");\n jm_region.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jm_regionActionPerformed(evt);\n }\n });\n jMenu1.add(jm_region);\n\n jpm_criatura.add(jMenu1);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jToolBar1.setRollover(true);\n\n Cuniverso.setText(\"Crear Universo\");\n Cuniverso.setFocusable(false);\n Cuniverso.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n Cuniverso.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n Cuniverso.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n CuniversoMouseClicked(evt);\n }\n });\n jToolBar1.add(Cuniverso);\n\n btn_mundo.setText(\"Crear Mundo\");\n btn_mundo.setEnabled(false);\n btn_mundo.setFocusable(false);\n btn_mundo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_mundo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_mundo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_mundoMouseClicked(evt);\n }\n });\n btn_mundo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_mundoActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_mundo);\n\n btn_criatura.setText(\"Añadir Criatura Lista\");\n btn_criatura.setEnabled(false);\n btn_criatura.setFocusable(false);\n btn_criatura.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_criatura.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_criatura.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_criaturaMouseClicked(evt);\n }\n });\n jToolBar1.add(btn_criatura);\n\n btn_mundotree.setText(\"Añadir Mundo a Universo\");\n btn_mundotree.setEnabled(false);\n btn_mundotree.setFocusable(false);\n btn_mundotree.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_mundotree.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_mundotree.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_mundotreeMouseClicked(evt);\n }\n });\n jToolBar1.add(btn_mundotree);\n\n btn_criaturatotree.setText(\"Agregar Criatura al arbol\");\n btn_criaturatotree.setEnabled(false);\n btn_criaturatotree.setFocusable(false);\n btn_criaturatotree.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_criaturatotree.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_criaturatotree.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_criaturatotreeMouseClicked(evt);\n }\n });\n jToolBar1.add(btn_criaturatotree);\n\n btn_pesouniverso.setText(\"Informacion del Universo\");\n btn_pesouniverso.setEnabled(false);\n btn_pesouniverso.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btn_pesouniversoMouseClicked(evt);\n }\n });\n jToolBar1.add(btn_pesouniverso);\n\n javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode(\"Universo\");\n jt_universo.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));\n jScrollPane1.setViewportView(jt_universo);\n\n jlist_mundos.setModel(new DefaultListModel());\n jlist_mundos.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jlist_mundosMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jlist_mundos);\n\n jlist_criaturas.setModel(new DefaultListModel());\n jlist_criaturas.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jlist_criaturasMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(jlist_criaturas);\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 0, 48)); // NOI18N\n jLabel15.setText(\"Lab 5 :)\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(131, 131, 131))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(jLabel15)\n .addGap(57, 57, 57)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE)\n .addComponent(jScrollPane2)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap(90, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ModPla = new javax.swing.JDialog();\n jLabel20 = new javax.swing.JLabel();\n tf_nombrep1 = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n js_temp1 = new javax.swing.JSpinner();\n jLabel22 = new javax.swing.JLabel();\n jcbox_anillos1 = new javax.swing.JCheckBox();\n jLabel23 = new javax.swing.JLabel();\n tf_superficie1 = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n js_dist1 = new javax.swing.JSpinner();\n bt_crearpla1 = new javax.swing.JButton();\n ModAst = new javax.swing.JDialog();\n jLabel25 = new javax.swing.JLabel();\n tf_nombrea1 = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n tf_nacio1 = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n js_sueldo1 = new javax.swing.JSpinner();\n jLabel28 = new javax.swing.JLabel();\n tf_exp1 = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n tf_sexo1 = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n js_peso1 = new javax.swing.JSpinner();\n bt_creara1 = new javax.swing.JButton();\n ppm_menu = new javax.swing.JPopupMenu();\n mod = new javax.swing.JMenuItem();\n elim = new javax.swing.JMenuItem();\n ppm_astro = new javax.swing.JPopupMenu();\n mod1 = new javax.swing.JMenuItem();\n elim1 = new javax.swing.JMenuItem();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n tf_nombrep = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n js_temp = new javax.swing.JSpinner();\n jLabel3 = new javax.swing.JLabel();\n jcbox_anillos = new javax.swing.JCheckBox();\n jLabel4 = new javax.swing.JLabel();\n tf_superficie = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n js_dist = new javax.swing.JSpinner();\n bt_crearpla = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n tf_nombrea = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n tf_nacio = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n js_sueldo = new javax.swing.JSpinner();\n jLabel10 = new javax.swing.JLabel();\n tf_exp = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n tf_sexo = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n js_peso = new javax.swing.JSpinner();\n bt_creara = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n tf_num = new javax.swing.JTextField();\n cb_planeta = new javax.swing.JComboBox<>();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n js_velocidad = new javax.swing.JSpinner();\n bt_crearn = new javax.swing.JButton();\n jPanel5 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jt_astro = new javax.swing.JTable();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jt_pla = new javax.swing.JTable();\n jPanel3 = new javax.swing.JPanel();\n cb_nave = new javax.swing.JComboBox<>();\n jLabel19 = new javax.swing.JLabel();\n bt_empezar = new javax.swing.JButton();\n cb_crew = new javax.swing.JComboBox<>();\n jLabel18 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n jLabel20.setText(\"Nombre:\");\n\n jLabel21.setText(\"Temperatura (F):\");\n\n js_temp1.setModel(new javax.swing.SpinnerNumberModel());\n\n jLabel22.setText(\"Tiene Anillos:\");\n\n jcbox_anillos1.setText(\"Si\");\n\n jLabel23.setText(\"Tipo de superficie:\");\n\n jLabel24.setText(\"Distancia de la Tierra:\");\n\n js_dist1.setModel(new javax.swing.SpinnerNumberModel(0, null, null, 100));\n\n bt_crearpla1.setText(\"Modificar\");\n bt_crearpla1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_crearpla1MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout ModPlaLayout = new javax.swing.GroupLayout(ModPla.getContentPane());\n ModPla.getContentPane().setLayout(ModPlaLayout);\n ModPlaLayout.setHorizontalGroup(\n ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addComponent(jLabel22)\n .addGap(18, 18, 18)\n .addComponent(jcbox_anillos1)\n .addGap(159, 159, 159)\n .addComponent(jLabel24)\n .addGap(18, 18, 18)\n .addComponent(js_dist1))\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addComponent(jLabel20)\n .addGap(18, 18, 18)\n .addComponent(tf_nombrep1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(js_temp1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(149, 149, 149)\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_superficie1, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ModPlaLayout.createSequentialGroup()\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40))))))\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGap(256, 256, 256)\n .addComponent(bt_crearpla1)))\n .addContainerGap(57, Short.MAX_VALUE))\n );\n ModPlaLayout.setVerticalGroup(\n ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModPlaLayout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(tf_nombrep1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ModPlaLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel23)\n .addGap(18, 18, 18)))\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(js_temp1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tf_superficie1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(ModPlaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(jcbox_anillos1)\n .addComponent(jLabel24)\n .addComponent(js_dist1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 121, Short.MAX_VALUE)\n .addComponent(bt_crearpla1)\n .addGap(87, 87, 87))\n );\n\n jLabel25.setText(\"Nombre:\");\n\n jLabel26.setText(\"Nacionalidad:\");\n\n jLabel27.setText(\"Sueldo:\");\n\n js_sueldo1.setModel(new javax.swing.SpinnerNumberModel(0.0d, null, null, 100.0d));\n\n jLabel28.setText(\"Experiencia:\");\n\n jLabel29.setText(\"Sexo:\");\n\n jLabel30.setText(\"Peso:\");\n\n js_peso1.setModel(new javax.swing.SpinnerNumberModel());\n\n bt_creara1.setText(\"Modificar\");\n bt_creara1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_creara1MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout ModAstLayout = new javax.swing.GroupLayout(ModAst.getContentPane());\n ModAst.getContentPane().setLayout(ModAstLayout);\n ModAstLayout.setHorizontalGroup(\n ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel25)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tf_nombrea1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ModAstLayout.createSequentialGroup()\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel26)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ModAstLayout.createSequentialGroup()\n .addComponent(jLabel27)\n .addGap(38, 38, 38)))\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_nacio1)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(js_sueldo1, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addGap(112, 112, 112)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel28)\n .addGap(18, 18, 18)\n .addComponent(tf_exp1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel29)\n .addGap(18, 18, 18)\n .addComponent(tf_sexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(ModAstLayout.createSequentialGroup()\n .addComponent(jLabel30)\n .addGap(18, 18, 18)\n .addComponent(js_peso1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(ModAstLayout.createSequentialGroup()\n .addGap(218, 218, 218)\n .addComponent(bt_creara1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n ModAstLayout.setVerticalGroup(\n ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(ModAstLayout.createSequentialGroup()\n .addGap(65, 65, 65)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_nombrea1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28)\n .addComponent(tf_exp1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(31, 31, 31)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(tf_nacio1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29)\n .addComponent(tf_sexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27)\n .addGroup(ModAstLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(js_sueldo1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel30)\n .addComponent(js_peso1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bt_creara1)\n .addGap(75, 75, 75))\n );\n\n mod.setText(\"Modificar\");\n mod.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n modActionPerformed(evt);\n }\n });\n ppm_menu.add(mod);\n\n elim.setText(\"Eliminar\");\n elim.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n elimActionPerformed(evt);\n }\n });\n ppm_menu.add(elim);\n\n mod1.setText(\"Modificar\");\n mod1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mod1ActionPerformed(evt);\n }\n });\n ppm_astro.add(mod1);\n\n elim1.setText(\"Eliminar\");\n elim1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n elim1ActionPerformed(evt);\n }\n });\n ppm_astro.add(elim1);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Nombre:\");\n\n jLabel2.setText(\"Temperatura (F):\");\n\n js_temp.setModel(new javax.swing.SpinnerNumberModel());\n\n jLabel3.setText(\"Tiene Anillos:\");\n\n jcbox_anillos.setText(\"Si\");\n\n jLabel4.setText(\"Tipo de superficie:\");\n\n jLabel5.setText(\"Distancia de la Tierra:\");\n\n js_dist.setModel(new javax.swing.SpinnerNumberModel(0, null, null, 100));\n\n bt_crearpla.setText(\"Crear\");\n bt_crearpla.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_crearplaMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(jcbox_anillos)\n .addGap(159, 159, 159)\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(js_dist))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(tf_nombrep, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(js_temp, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(149, 149, 149)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_superficie, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40))))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(256, 256, 256)\n .addComponent(bt_crearpla)))\n .addContainerGap(57, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(tf_nombrep, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(js_temp, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tf_superficie, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jcbox_anillos)\n .addComponent(jLabel5)\n .addComponent(js_dist, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 121, Short.MAX_VALUE)\n .addComponent(bt_crearpla)\n .addGap(87, 87, 87))\n );\n\n jTabbedPane1.addTab(\"Crear Planetas\", jPanel1);\n\n jLabel7.setText(\"Nombre:\");\n\n jLabel8.setText(\"Nacionalidad:\");\n\n jLabel9.setText(\"Sueldo:\");\n\n js_sueldo.setModel(new javax.swing.SpinnerNumberModel(0.0d, null, null, 100.0d));\n\n jLabel10.setText(\"Experiencia:\");\n\n jLabel11.setText(\"Sexo:\");\n\n jLabel12.setText(\"Peso:\");\n\n js_peso.setModel(new javax.swing.SpinnerNumberModel());\n\n bt_creara.setText(\"Crear\");\n bt_creara.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_crearaMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tf_nombrea, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(38, 38, 38)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_nacio)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(js_sueldo, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addGap(112, 112, 112)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addComponent(tf_exp, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addGap(18, 18, 18)\n .addComponent(tf_sexo, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addGap(18, 18, 18)\n .addComponent(js_peso, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(218, 218, 218)\n .addComponent(bt_creara)))\n .addContainerGap(35, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(65, 65, 65)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_nombrea, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(tf_exp, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(31, 31, 31)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(tf_nacio, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(tf_sexo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(js_sueldo, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12)\n .addComponent(js_peso, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 103, Short.MAX_VALUE)\n .addComponent(bt_creara)\n .addGap(75, 75, 75))\n );\n\n jTabbedPane1.addTab(\"Crear Astronautas\", jPanel2);\n\n jLabel13.setText(\"Numero de Serie:\");\n\n jLabel14.setText(\"Planeta de destino:\");\n\n jLabel15.setText(\"Velocidad:\");\n\n bt_crearn.setText(\"Crear\");\n bt_crearn.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_crearnMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addGap(18, 18, 18)\n .addComponent(js_velocidad, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel14))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tf_num, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(cb_planeta, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(270, 270, 270)\n .addComponent(bt_crearn)))\n .addContainerGap(283, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(tf_num, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(45, 45, 45)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cb_planeta, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14))\n .addGap(40, 40, 40)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(js_velocidad, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 115, Short.MAX_VALUE)\n .addComponent(bt_crearn)\n .addGap(72, 72, 72))\n );\n\n jTabbedPane1.addTab(\"Crear Nave\", jPanel4);\n\n jt_astro.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Nombre\", \"Nacionalidad\", \"Sueldo\", \"Experiencia\", \"Sexo\", \"Peso\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.Double.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jt_astro.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jt_astroMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jt_astro);\n\n jLabel16.setText(\"Astronautas:\");\n\n jLabel17.setText(\"Planetas\");\n\n jt_pla.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Nombre\", \"Temperatura (F)\", \"Tiene anillos\", \"Superficie\", \"Distancia\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.Integer.class, java.lang.Boolean.class, java.lang.String.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jt_pla.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jt_plaMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jt_pla);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jLabel16))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(271, 271, 271)\n .addComponent(jLabel17))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 462, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(93, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(jLabel17)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(61, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Ver\", jPanel5);\n\n jLabel19.setText(\"Nave:\");\n\n bt_empezar.setText(\"Empezar\");\n bt_empezar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bt_empezarMouseClicked(evt);\n }\n });\n\n jLabel18.setText(\"Agregar tripulante:\");\n\n jButton1.setText(\"Agregar\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(236, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel19)\n .addGap(290, 290, 290))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(bt_empezar)\n .addGap(254, 254, 254))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cb_crew, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cb_nave, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(228, 228, 228))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel18)\n .addGap(257, 257, 257))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(267, 267, 267))))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jLabel19)\n .addGap(29, 29, 29)\n .addComponent(cb_nave, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36)\n .addComponent(jLabel18)\n .addGap(18, 18, 18)\n .addComponent(cb_crew, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)\n .addComponent(bt_empezar)\n .addGap(88, 88, 88))\n );\n\n jTabbedPane1.addTab(\"Expedicion\", jPanel3);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n pack();\n }", "private void jBtn_AjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_AjouterActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n Formulaire_Client creaClient = new Formulaire_Client();\n creaClient.setVisible(true);\n this.setVisible(false);\n \n }\n else{\n Formulaire_Prospect creaProspect = new Formulaire_Prospect();\n creaProspect.setVisible(true);\n this.setVisible(false);\n } \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Precio = new javax.swing.JDialog();\n jLabel2 = new javax.swing.JLabel();\n ComboPrecio1 = new javax.swing.JComboBox<>();\n ComboPrecio = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n Camino = new javax.swing.JDialog();\n jLabel8 = new javax.swing.JLabel();\n ComboPrecio2 = new javax.swing.JComboBox<>();\n ComboPrecio3 = new javax.swing.JComboBox<>();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jButton6 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n JB_lectura = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n\n Precio.setBackground(new java.awt.Color(126, 155, 232));\n\n jLabel2.setFont(new java.awt.Font(\"Ubuntu\", 0, 36)); // NOI18N\n jLabel2.setText(\"Elija la ciudades \");\n\n jLabel3.setText(\"From:\");\n\n jLabel4.setText(\"To:\");\n\n jButton1.setText(\"Buscar \");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout PrecioLayout = new javax.swing.GroupLayout(Precio.getContentPane());\n Precio.getContentPane().setLayout(PrecioLayout);\n PrecioLayout.setHorizontalGroup(\n PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PrecioLayout.createSequentialGroup()\n .addGap(162, 162, 162)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PrecioLayout.createSequentialGroup()\n .addContainerGap(106, Short.MAX_VALUE)\n .addGroup(PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PrecioLayout.createSequentialGroup()\n .addGroup(PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(PrecioLayout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ComboPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PrecioLayout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(56, 56, 56)\n .addComponent(ComboPrecio1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(37, 37, 37)))\n .addGap(91, 91, 91))\n );\n PrecioLayout.setVerticalGroup(\n PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PrecioLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ComboPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(33, 33, 33)\n .addGroup(PrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ComboPrecio1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 57, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addGap(56, 56, 56))\n );\n\n Camino.setBackground(new java.awt.Color(126, 155, 232));\n\n jLabel8.setFont(new java.awt.Font(\"Ubuntu\", 0, 36)); // NOI18N\n jLabel8.setText(\"Elija la ciudades \");\n\n ComboPrecio3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboPrecio3ActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"From:\");\n\n jLabel10.setText(\"To:\");\n\n jButton6.setText(\"Buscar \");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout CaminoLayout = new javax.swing.GroupLayout(Camino.getContentPane());\n Camino.getContentPane().setLayout(CaminoLayout);\n CaminoLayout.setHorizontalGroup(\n CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(CaminoLayout.createSequentialGroup()\n .addContainerGap(106, Short.MAX_VALUE)\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CaminoLayout.createSequentialGroup()\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CaminoLayout.createSequentialGroup()\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(CaminoLayout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ComboPrecio3, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(CaminoLayout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(56, 56, 56)\n .addComponent(ComboPrecio2, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(37, 37, 37)))\n .addGap(91, 91, 91))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CaminoLayout.createSequentialGroup()\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(171, 171, 171))))\n );\n CaminoLayout.setVerticalGroup(\n CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(CaminoLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ComboPrecio3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGap(33, 33, 33)\n .addGroup(CaminoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ComboPrecio2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)\n .addComponent(jButton6)\n .addGap(56, 56, 56))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setForeground(java.awt.Color.cyan);\n\n jLabel1.setText(\"Sistema de Gestion de Viajes\");\n\n JB_lectura.setText(\"Leer Archivo\");\n JB_lectura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JB_lecturaActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Ver Mapa Completo\");\n jButton2.setEnabled(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Buscar Camino mas Corto\");\n jButton3.setEnabled(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"Buscar Precio mas Barato\");\n jButton4.setEnabled(false);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(111, 111, 111)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jButton4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGap(61, 61, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addComponent(JB_lectura)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addGap(31, 31, 31))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JB_lectura)\n .addComponent(jButton2))\n .addGap(36, 36, 36)\n .addComponent(jButton3)\n .addGap(27, 27, 27)\n .addComponent(jButton4)\n .addContainerGap(118, Short.MAX_VALUE))\n );\n\n pack();\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Dialog_institucion = new javax.swing.JDialog();\n jPanel10 = new javax.swing.JPanel();\n jPanel11 = new javax.swing.JPanel();\n txt_busqueda_producto = new javax.swing.JTextField();\n cbx_iten = new javax.swing.JComboBox<>();\n jPanel12 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n tabla_insittucion = new javax.swing.JTable();\n jButton2 = new javax.swing.JButton();\n Dialog_venta = new javax.swing.JDialog();\n jPanel21 = new javax.swing.JPanel();\n jPanel22 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n tabla_compra = new javax.swing.JTable();\n jPanel23 = new javax.swing.JPanel();\n txt_busqueda_compra = new javax.swing.JTextField();\n Dialog_carro = new javax.swing.JDialog();\n jPanel18 = new javax.swing.JPanel();\n jPanel20 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tabla_carro = new javax.swing.JTable();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n Dialog_conductor = new javax.swing.JDialog();\n jPanel19 = new javax.swing.JPanel();\n jPanel24 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n tabla_conductor = new javax.swing.JTable();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel29 = new javax.swing.JPanel();\n cbx_entrega = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n txt_busqueda_plan_ruta = new javax.swing.JTextField();\n btn_buscar_cod_compra = new javax.swing.JButton();\n btn_buscar_cod_compra2 = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jPanel9 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabla_plan_ruta = new javax.swing.JTable();\n jPanel5 = new javax.swing.JPanel();\n txt_busqueda = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n cbx_item_ruta = new javax.swing.JComboBox<>();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jPanel14 = new javax.swing.JPanel();\n btn_nuevo = new javax.swing.JButton();\n btn_registrar = new javax.swing.JButton();\n btn_eliminar = new javax.swing.JButton();\n btn_cancelar = new javax.swing.JButton();\n jInternalFrame1 = new javax.swing.JInternalFrame();\n jPanel3 = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n jPanel30 = new javax.swing.JPanel();\n cbx_entrega1 = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n txt_busqueda_anexo1 = new javax.swing.JTextField();\n btn_buscar_cod_compra1 = new javax.swing.JButton();\n jPanel8 = new javax.swing.JPanel();\n jPanel13 = new javax.swing.JPanel();\n jPanel15 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tabla_anexo1 = new javax.swing.JTable();\n btn_agregar_fila1 = new javax.swing.JButton();\n jPanel16 = new javax.swing.JPanel();\n txt_busqueda1 = new javax.swing.JTextField();\n jPanel17 = new javax.swing.JPanel();\n btn_nuevo1 = new javax.swing.JButton();\n btn_registrar1 = new javax.swing.JButton();\n btn_eliminar1 = new javax.swing.JButton();\n btn_cancelar1 = new javax.swing.JButton();\n\n Dialog_institucion.setTitle(\"INSTITUCION\");\n Dialog_institucion.setAutoRequestFocus(false);\n Dialog_institucion.setMinimumSize(new java.awt.Dimension(1191, 340));\n Dialog_institucion.setResizable(false);\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel11.setBackground(new java.awt.Color(255, 255, 255));\n\n txt_busqueda_producto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busqueda_productoKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busqueda_productoKeyReleased(evt);\n }\n });\n\n cbx_iten.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbx_itenItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()\n .addComponent(cbx_iten, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txt_busqueda_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 856, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txt_busqueda_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbx_iten, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n\n jPanel12.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_insittucion.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tabla_insittucion.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_insittucionMouseClicked(evt);\n }\n });\n tabla_insittucion.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tabla_insittucionKeyPressed(evt);\n }\n });\n jScrollPane2.setViewportView(tabla_insittucion);\n\n jButton2.setText(\"ENVIAR\");\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1151, Short.MAX_VALUE)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, 0))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout Dialog_institucionLayout = new javax.swing.GroupLayout(Dialog_institucion.getContentPane());\n Dialog_institucion.getContentPane().setLayout(Dialog_institucionLayout);\n Dialog_institucionLayout.setHorizontalGroup(\n Dialog_institucionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_institucionLayout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n Dialog_institucionLayout.setVerticalGroup(\n Dialog_institucionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_institucionLayout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n Dialog_venta.setTitle(\"VENTA\");\n Dialog_venta.setMinimumSize(new java.awt.Dimension(669, 386));\n Dialog_venta.setModal(true);\n Dialog_venta.setResizable(false);\n\n jPanel21.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_compra.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tabla_compra.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_compraMouseClicked(evt);\n }\n });\n tabla_compra.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tabla_compraKeyPressed(evt);\n }\n });\n jScrollPane4.setViewportView(tabla_compra);\n\n javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);\n jPanel22.setLayout(jPanel22Layout);\n jPanel22Layout.setHorizontalGroup(\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel22Layout.createSequentialGroup()\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 669, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n jPanel22Layout.setVerticalGroup(\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel22Layout.createSequentialGroup()\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n txt_busqueda_compra.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busqueda_compraKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);\n jPanel23.setLayout(jPanel23Layout);\n jPanel23Layout.setHorizontalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txt_busqueda_compra)\n );\n jPanel23Layout.setVerticalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel23Layout.createSequentialGroup()\n .addComponent(txt_busqueda_compra, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\n jPanel21.setLayout(jPanel21Layout);\n jPanel21Layout.setHorizontalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, 0))\n );\n jPanel21Layout.setVerticalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout Dialog_ventaLayout = new javax.swing.GroupLayout(Dialog_venta.getContentPane());\n Dialog_venta.getContentPane().setLayout(Dialog_ventaLayout);\n Dialog_ventaLayout.setHorizontalGroup(\n Dialog_ventaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_ventaLayout.createSequentialGroup()\n .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n Dialog_ventaLayout.setVerticalGroup(\n Dialog_ventaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_ventaLayout.createSequentialGroup()\n .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n Dialog_carro.setTitle(\"INSTITUCION\");\n Dialog_carro.setAutoRequestFocus(false);\n Dialog_carro.setMinimumSize(new java.awt.Dimension(436, 204));\n Dialog_carro.setResizable(false);\n\n jPanel18.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel20.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_carro.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tabla_carro.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_carroMouseClicked(evt);\n }\n });\n tabla_carro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tabla_carroKeyPressed(evt);\n }\n });\n jScrollPane5.setViewportView(tabla_carro);\n\n jTextField1.setText(\"0\");\n\n jTextField2.setText(\"0\");\n\n javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);\n jPanel20.setLayout(jPanel20Layout);\n jPanel20Layout.setHorizontalGroup(\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 436, Short.MAX_VALUE)\n .addGroup(jPanel20Layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel20Layout.setVerticalGroup(\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel20Layout.createSequentialGroup()\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n );\n\n javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);\n jPanel18.setLayout(jPanel18Layout);\n jPanel18Layout.setHorizontalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel18Layout.setVerticalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel18Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout Dialog_carroLayout = new javax.swing.GroupLayout(Dialog_carro.getContentPane());\n Dialog_carro.getContentPane().setLayout(Dialog_carroLayout);\n Dialog_carroLayout.setHorizontalGroup(\n Dialog_carroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_carroLayout.createSequentialGroup()\n .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n Dialog_carroLayout.setVerticalGroup(\n Dialog_carroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_carroLayout.createSequentialGroup()\n .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n Dialog_conductor.setTitle(\"INSTITUCION\");\n Dialog_conductor.setAutoRequestFocus(false);\n Dialog_conductor.setMinimumSize(new java.awt.Dimension(436, 204));\n Dialog_conductor.setResizable(false);\n\n jPanel19.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel24.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_conductor.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tabla_conductor.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_conductorMouseClicked(evt);\n }\n });\n tabla_conductor.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tabla_conductorKeyPressed(evt);\n }\n });\n jScrollPane6.setViewportView(tabla_conductor);\n\n jTextField3.setText(\"0\");\n\n jTextField4.setText(\"0\");\n\n javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);\n jPanel24.setLayout(jPanel24Layout);\n jPanel24Layout.setHorizontalGroup(\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 436, Short.MAX_VALUE)\n .addGroup(jPanel24Layout.createSequentialGroup()\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel24Layout.setVerticalGroup(\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel24Layout.createSequentialGroup()\n .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(19, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);\n jPanel19.setLayout(jPanel19Layout);\n jPanel19Layout.setHorizontalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel19Layout.setVerticalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel19Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout Dialog_conductorLayout = new javax.swing.GroupLayout(Dialog_conductor.getContentPane());\n Dialog_conductor.getContentPane().setLayout(Dialog_conductorLayout);\n Dialog_conductorLayout.setHorizontalGroup(\n Dialog_conductorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_conductorLayout.createSequentialGroup()\n .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n Dialog_conductorLayout.setVerticalGroup(\n Dialog_conductorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Dialog_conductorLayout.createSequentialGroup()\n .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"PLAN DE RUTA\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel29.setBackground(new java.awt.Color(255, 255, 255));\n jPanel29.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Anexo\"));\n\n cbx_entrega.setAlignmentX(39.0F);\n cbx_entrega.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cbx_entregaKeyPressed(evt);\n }\n });\n\n jLabel1.setText(\"Codigo de anexo 9\");\n\n txt_busqueda_plan_ruta.setAlignmentX(39.0F);\n txt_busqueda_plan_ruta.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_busqueda_plan_rutaActionPerformed(evt);\n }\n });\n txt_busqueda_plan_ruta.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busqueda_plan_rutaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busqueda_plan_rutaKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_busqueda_plan_rutaKeyTyped(evt);\n }\n });\n\n btn_buscar_cod_compra.setText(\"BUSCAR\");\n btn_buscar_cod_compra.setAlignmentX(39.0F);\n btn_buscar_cod_compra.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_buscar_cod_compraActionPerformed(evt);\n }\n });\n\n btn_buscar_cod_compra2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icon/icon_pdf.png\"))); // NOI18N\n btn_buscar_cod_compra2.setText(\"PDF\");\n btn_buscar_cod_compra2.setAlignmentX(39.0F);\n btn_buscar_cod_compra2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_buscar_cod_compra2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29);\n jPanel29.setLayout(jPanel29Layout);\n jPanel29Layout.setHorizontalGroup(\n jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel29Layout.createSequentialGroup()\n .addContainerGap(277, Short.MAX_VALUE)\n .addComponent(cbx_entrega, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel29Layout.createSequentialGroup()\n .addComponent(txt_busqueda_plan_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btn_buscar_cod_compra, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn_buscar_cod_compra2, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(277, Short.MAX_VALUE))\n );\n jPanel29Layout.setVerticalGroup(\n jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel29Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbx_entrega, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txt_busqueda_plan_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_buscar_cod_compra, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_buscar_cod_compra2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Tabla productos\"));\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_plan_ruta.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n tabla_plan_ruta.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_plan_rutaMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tabla_plan_ruta);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1226, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n jPanel5.setForeground(new java.awt.Color(255, 255, 255));\n\n txt_busqueda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busquedaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busquedaKeyReleased(evt);\n }\n });\n\n jButton1.setText(\"INSTITUCION\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"GENERAR X ITEM\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"EXPORT\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"IMPORT\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txt_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 442, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbx_item_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbx_item_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txt_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(3, 3, 3))\n );\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 407, Short.MAX_VALUE))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addGap(49, 49, 49)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n );\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n jPanel14.setBackground(new java.awt.Color(255, 255, 255));\n jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n btn_nuevo.setText(\"NUEVO\");\n btn_nuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_nuevoActionPerformed(evt);\n }\n });\n\n btn_registrar.setText(\"REGISTRAR\");\n btn_registrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_registrarActionPerformed(evt);\n }\n });\n\n btn_eliminar.setText(\"ELIMINAR\");\n btn_eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_eliminarActionPerformed(evt);\n }\n });\n\n btn_cancelar.setText(\"CANCELAR\");\n btn_cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_cancelarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()\n .addComponent(btn_registrar, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_eliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addComponent(btn_cancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn_nuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_registrar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btn_nuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_cancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btn_eliminar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n\n jInternalFrame1.setClosable(true);\n jInternalFrame1.setIconifiable(true);\n jInternalFrame1.setMaximizable(true);\n jInternalFrame1.setResizable(true);\n jInternalFrame1.setTitle(\"SALIDA PRODUCTOS\");\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel30.setBackground(new java.awt.Color(255, 255, 255));\n jPanel30.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Anexo\"));\n\n cbx_entrega1.setAlignmentX(39.0F);\n cbx_entrega1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cbx_entrega1KeyPressed(evt);\n }\n });\n\n jLabel2.setText(\"Codigo de anexo 9\");\n\n txt_busqueda_anexo1.setAlignmentX(39.0F);\n txt_busqueda_anexo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_busqueda_anexo1ActionPerformed(evt);\n }\n });\n txt_busqueda_anexo1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busqueda_anexo1KeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txt_busqueda_anexo1KeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_busqueda_anexo1KeyTyped(evt);\n }\n });\n\n btn_buscar_cod_compra1.setText(\"BUSCAR\");\n btn_buscar_cod_compra1.setAlignmentX(39.0F);\n btn_buscar_cod_compra1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_buscar_cod_compra1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel30Layout = new javax.swing.GroupLayout(jPanel30);\n jPanel30.setLayout(jPanel30Layout);\n jPanel30Layout.setHorizontalGroup(\n jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel30Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbx_entrega1, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel30Layout.createSequentialGroup()\n .addComponent(txt_busqueda_anexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btn_buscar_cod_compra1, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel30Layout.setVerticalGroup(\n jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel30Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbx_entrega1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txt_busqueda_anexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_buscar_cod_compra1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addComponent(jPanel30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel13.setBackground(new java.awt.Color(255, 255, 255));\n jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Tabla productos\"));\n\n jPanel15.setBackground(new java.awt.Color(255, 255, 255));\n\n tabla_anexo1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n tabla_anexo1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tabla_anexo1MouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(tabla_anexo1);\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 1176, Short.MAX_VALUE)\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE))\n );\n\n btn_agregar_fila1.setText(\"+\");\n btn_agregar_fila1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_agregar_fila1ActionPerformed(evt);\n }\n });\n\n jPanel16.setBackground(new java.awt.Color(255, 255, 255));\n jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n jPanel16.setForeground(new java.awt.Color(255, 255, 255));\n\n txt_busqueda1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txt_busqueda1KeyPressed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txt_busqueda1, javax.swing.GroupLayout.PREFERRED_SIZE, 442, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(txt_busqueda1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btn_agregar_fila1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(60, 60, 60)))\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btn_agregar_fila1)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\n .addGap(49, 49, 49)\n .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n );\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n jPanel17.setBackground(new java.awt.Color(255, 255, 255));\n jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n btn_nuevo1.setText(\"NUEVO\");\n btn_nuevo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_nuevo1ActionPerformed(evt);\n }\n });\n\n btn_registrar1.setText(\"REGISTRAR\");\n btn_registrar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_registrar1ActionPerformed(evt);\n }\n });\n\n btn_eliminar1.setText(\"ELIMINAR\");\n btn_eliminar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_eliminar1ActionPerformed(evt);\n }\n });\n\n btn_cancelar1.setText(\"CANCELAR\");\n btn_cancelar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_cancelar1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\n jPanel17.setLayout(jPanel17Layout);\n jPanel17Layout.setHorizontalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()\n .addComponent(btn_registrar1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_eliminar1, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addComponent(btn_cancelar1, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn_nuevo1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel17Layout.setVerticalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel17Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_registrar1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btn_nuevo1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_cancelar1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btn_eliminar1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\n jInternalFrame1Layout.setHorizontalGroup(\n jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jInternalFrame1Layout.setVerticalGroup(\n jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jInternalFrame1Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n nuevoLote = new javax.swing.JDialog();\n etiquetaCodigoLote = new javax.swing.JLabel();\n campoCodigoLote = new javax.swing.JTextField();\n etiquetaCantidad = new javax.swing.JLabel();\n campoCantidad = new javax.swing.JFormattedTextField();\n botonGuardarLote = new javax.swing.JButton();\n botonCancelar = new javax.swing.JButton();\n panelCampos = new javax.swing.JPanel();\n etiquetaCodigoEgreso = new javax.swing.JLabel();\n campoCodigoEgreso = new javax.swing.JTextField();\n etiquetaCausaEspecial = new javax.swing.JLabel();\n campoCausaEspecial = new javax.swing.JTextField();\n etiquetaAlmacen = new javax.swing.JLabel();\n campoAlmacen = new javax.swing.JComboBox();\n etiquetaObservaciones = new javax.swing.JLabel();\n jspAreaTexto = new javax.swing.JScrollPane();\n campoObservaciones = new javax.swing.JTextArea();\n jspTabla = new javax.swing.JScrollPane();\n tablaLotesEgresados = new javax.swing.JTable();\n panelBotones = new javax.swing.JPanel();\n botonAgregarLote = new javax.swing.JButton();\n botonQuitarLote = new javax.swing.JButton();\n panelUltimo = new javax.swing.JPanel();\n botonRegistrarEgreso = new javax.swing.JButton();\n botonCancelarEgreso = new javax.swing.JButton();\n\n nuevoLote.setTitle(\"Agregar Lote\");\n nuevoLote.setMinimumSize(new java.awt.Dimension(259, 97));\n nuevoLote.setResizable(false);\n\n etiquetaCodigoLote.setText(\"Código del lote\");\n\n etiquetaCantidad.setText(\"Cantidad\");\n\n campoCantidad.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter()));\n\n botonGuardarLote.setText(\"Agregar\");\n botonGuardarLote.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonGuardarLoteActionPerformed(evt);\n }\n });\n\n botonCancelar.setText(\"Cancelar\");\n\n javax.swing.GroupLayout nuevoLoteLayout = new javax.swing.GroupLayout(nuevoLote.getContentPane());\n nuevoLote.getContentPane().setLayout(nuevoLoteLayout);\n nuevoLoteLayout.setHorizontalGroup(\n nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(nuevoLoteLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(nuevoLoteLayout.createSequentialGroup()\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(etiquetaCantidad, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(etiquetaCodigoLote, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(campoCodigoLote, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)\n .addComponent(campoCantidad)))\n .addGroup(nuevoLoteLayout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addComponent(botonGuardarLote)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonCancelar)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n nuevoLoteLayout.setVerticalGroup(\n nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(nuevoLoteLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigoLote, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigoLote))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(etiquetaCantidad)\n .addComponent(campoCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(nuevoLoteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botonGuardarLote)\n .addComponent(botonCancelar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Egresar Lotes de Productos\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 18))); // NOI18N\n setMaximumSize(new java.awt.Dimension(900, 500));\n setMinimumSize(new java.awt.Dimension(900, 500));\n setLayout(new java.awt.BorderLayout());\n\n panelCampos.setMaximumSize(new java.awt.Dimension(900, 173));\n panelCampos.setMinimumSize(new java.awt.Dimension(900, 173));\n\n etiquetaCodigoEgreso.setText(\"Código\");\n\n etiquetaCausaEspecial.setText(\"Causa Especial\");\n\n etiquetaAlmacen.setText(\"Almacén\");\n\n campoAlmacen.setModel(new vistas.modelos.AlmacenComboBoxModel());\n campoAlmacen.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n campoAlmacenItemStateChanged(evt);\n }\n });\n\n etiquetaObservaciones.setText(\"Observaciones\");\n\n campoObservaciones.setColumns(20);\n campoObservaciones.setRows(5);\n jspAreaTexto.setViewportView(campoObservaciones);\n\n javax.swing.GroupLayout panelCamposLayout = new javax.swing.GroupLayout(panelCampos);\n panelCampos.setLayout(panelCamposLayout);\n panelCamposLayout.setHorizontalGroup(\n panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelCamposLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelCamposLayout.createSequentialGroup()\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(etiquetaCausaEspecial, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(etiquetaAlmacen, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(etiquetaCodigoEgreso, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(campoAlmacen, 0, 181, Short.MAX_VALUE)\n .addComponent(campoCausaEspecial)\n .addComponent(campoCodigoEgreso)))\n .addGroup(panelCamposLayout.createSequentialGroup()\n .addComponent(etiquetaObservaciones)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jspAreaTexto, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(634, Short.MAX_VALUE))\n );\n panelCamposLayout.setVerticalGroup(\n panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelCamposLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigoEgreso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigoEgreso))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCausaEspecial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCausaEspecial))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoAlmacen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaAlmacen))\n .addGap(7, 7, 7)\n .addGroup(panelCamposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaObservaciones)\n .addComponent(jspAreaTexto, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n add(panelCampos, java.awt.BorderLayout.PAGE_START);\n\n tablaLotesEgresados.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tablaLotesEgresados.setEnabled(false);\n tablaLotesEgresados.getTableHeader().setReorderingAllowed(false);\n jspTabla.setViewportView(tablaLotesEgresados);\n\n add(jspTabla, java.awt.BorderLayout.CENTER);\n\n botonAgregarLote.setText(\"Agregar Lote\");\n botonAgregarLote.setEnabled(false);\n botonAgregarLote.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonAgregarLoteActionPerformed(evt);\n }\n });\n\n botonQuitarLote.setText(\"Quitar Lote\");\n botonQuitarLote.setEnabled(false);\n botonQuitarLote.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonQuitarLoteActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelBotonesLayout = new javax.swing.GroupLayout(panelBotones);\n panelBotones.setLayout(panelBotonesLayout);\n panelBotonesLayout.setHorizontalGroup(\n panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelBotonesLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(botonQuitarLote, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonAgregarLote, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n panelBotonesLayout.setVerticalGroup(\n panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelBotonesLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(botonAgregarLote)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonQuitarLote)\n .addContainerGap(199, Short.MAX_VALUE))\n );\n\n add(panelBotones, java.awt.BorderLayout.LINE_START);\n\n panelUltimo.setMaximumSize(new java.awt.Dimension(900, 33));\n panelUltimo.setMinimumSize(new java.awt.Dimension(900, 33));\n panelUltimo.setPreferredSize(new java.awt.Dimension(900, 33));\n\n botonRegistrarEgreso.setText(\"Registrar Egreso\");\n botonRegistrarEgreso.setEnabled(false);\n botonRegistrarEgreso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonRegistrarEgresoActionPerformed(evt);\n }\n });\n panelUltimo.add(botonRegistrarEgreso);\n\n botonCancelarEgreso.setText(\"Cancelar Egreso\");\n panelUltimo.add(botonCancelarEgreso);\n\n add(panelUltimo, java.awt.BorderLayout.PAGE_END);\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public VistaArticulosModif2() {\r\n\t\tsetTitle(\"Modificar_Art\\u00EDculos\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 403, 204);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\t// Definir el Diálogo Confirmar Modificaciones Artículo\r\n\t\tdlgConfModif.setLayout(new FlowLayout());\r\n\t\tdlgConfModif.add(lblConfModif);\r\n\t\tdlgConfModif.add(btnConfModifSi);\r\n\t\tdlgConfModif.add(btnConfModifNo);\r\n\t\tdlgConfModif.setSize(280, 150);\r\n\t\tdlgConfModif.setLocationRelativeTo(null);\r\n\t\tdlgConfModif.addWindowListener(this);\r\n\t\tbtnConfModifSi.addActionListener(this);\r\n\t\tbtnConfModifNo.addActionListener(this);\r\n\r\n\t\tJLabel lblDescripModif2 = new JLabel(\"Descripci\\u00F3n\");\r\n\t\tlblDescripModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblDescripModif2.setBounds(10, 22, 100, 25);\r\n\t\tcontentPane.add(lblDescripModif2);\r\n\r\n\t\tJLabel lblPrecioModif2 = new JLabel(\"Precio\");\r\n\t\tlblPrecioModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrecioModif2.setBounds(10, 54, 100, 19);\r\n\t\tcontentPane.add(lblPrecioModif2);\r\n\r\n\t\tJLabel lblCantModif2 = new JLabel(\"Cantidad\");\r\n\t\tlblCantModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblCantModif2.setBounds(10, 84, 100, 25);\r\n\t\tcontentPane.add(lblCantModif2);\r\n\r\n\t\tsetTxtDescripModif2(new JTextField());\r\n\t\tgetTxtDescripModif2().setColumns(10);\r\n\t\tgetTxtDescripModif2().setBounds(103, 26, 274, 20);\r\n\t\tcontentPane.add(getTxtDescripModif2());\r\n\r\n\t\tsetTxtPrecioModif2(new JTextField());\r\n\t\tgetTxtPrecioModif2().setColumns(10);\r\n\t\tgetTxtPrecioModif2().setBounds(103, 53, 86, 20);\r\n\t\tcontentPane.add(getTxtPrecioModif2());\r\n\r\n\t\tsetTxtCantModif2(new JTextField());\r\n\t\tgetTxtCantModif2().setColumns(10);\r\n\t\tgetTxtCantModif2().setBounds(103, 84, 86, 20);\r\n\t\tcontentPane.add(getTxtCantModif2());\r\n\r\n\t\t// Botón Aceptar. Acción --> abre la ventana Confirmar_Modificaciones\r\n\t\tJButton btnAceptarModif2 = new JButton(\"ACEPTAR\");\r\n\t\tbtnAceptarModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdlgConfModif.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAceptarModif2.setBounds(21, 130, 89, 23);\r\n\t\tcontentPane.add(btnAceptarModif2);\r\n\r\n\t\t// Botón Limpiar. Acción --> limpia los TextField de la ventana VistaArticulosModif2\r\n\t\tJButton btnLimpiarModif2 = new JButton(\"LIMPIAR\");\r\n\t\tbtnLimpiarModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tgetTxtDescripModif2().selectAll();\r\n\t\t\t\tgetTxtDescripModif2().setText(\"\");\r\n\t\t\t\tgetTxtPrecioModif2().selectAll();\r\n\t\t\t\tgetTxtPrecioModif2().setText(\"\");\r\n\t\t\t\tgetTxtCantModif2().selectAll();\r\n\t\t\t\tgetTxtCantModif2().setText(\"\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLimpiarModif2.setBounds(145, 130, 89, 23);\r\n\t\tcontentPane.add(btnLimpiarModif2);\r\n\r\n\t\t// Botón Volver. Acción --> cierra la ventana VistaArticulosModif2\r\n\t\tJButton btnVolverModif2 = new JButton(\"VOLVER\");\r\n\t\tbtnVolverModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVolverModif2.setBounds(275, 130, 89, 23);\r\n\t\tcontentPane.add(btnVolverModif2);\r\n\t\tidArticulosModif1.setVisible(false);\r\n\t\tidArticulosModif1.setEnabled(false);\r\n\t\tidArticulosModif1.setBounds(10, 0, 46, 14);\r\n\t\tcontentPane.add(idArticulosModif1);\r\n\t}", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "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}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n if(serializa.CargarTfg().isEmpty()){\n JOptionPane.showMessageDialog(this, \"TODAVÍA NO HAY TFGS REGISTRADOS\", \"INFORMACION\", JOptionPane.INFORMATION_MESSAGE);\n }else{\n InterfazVisualizarTfg lt = new InterfazVisualizarTfg(this.u, this.serializa){\n @Override\n public void dispose(){\n //Hacemos visible la principal\n getFrame().setVisible(true);\n //Cerramos\n super.dispose();\n }\n };\n this.setVisible(false);\n lt.setVisible(true); \n }\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabelMatricula = new javax.swing.JLabel();\n jTextFieldAtividadesMatricula = new javax.swing.JTextField();\n jLabelNome = new javax.swing.JLabel();\n jTextFieldAtividadesNome = new javax.swing.JTextField();\n jComboBoxAtividadesTipo = new javax.swing.JComboBox<>();\n jLabelData = new javax.swing.JLabel();\n jLabelTipo = new javax.swing.JLabel();\n jTextFieldAtividadesData = new javax.swing.JFormattedTextField();\n jLabelLocal = new javax.swing.JLabel();\n jTextFieldAtividadesLocal = new javax.swing.JTextField();\n jLabelDescricao = new javax.swing.JLabel();\n jButtonAtividadesInserir = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaAtividadesDescricao = new javax.swing.JTextArea();\n jButtonLimpar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Inserir Atividades\");\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameActivated(evt);\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameOpened(evt);\n }\n });\n\n jLabelMatricula.setText(\"Matrícula:*\");\n\n jLabelNome.setText(\"Nome:*\");\n\n jComboBoxAtividadesTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecione\", \"Lazer\", \"Trabalho\", \"Escola\", \"Faculdade\", \"Física\" }));\n jComboBoxAtividadesTipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxAtividadesTipoActionPerformed(evt);\n }\n });\n\n jLabelData.setText(\"Data:*\");\n\n jLabelTipo.setText(\"Tipo: *\");\n\n try {\n jTextFieldAtividadesData.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabelLocal.setText(\"Local:*\");\n\n jLabelDescricao.setText(\"Descrição:\");\n\n jButtonAtividadesInserir.setText(\"Inserir\");\n jButtonAtividadesInserir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAtividadesInserirActionPerformed(evt);\n }\n });\n\n jTextAreaAtividadesDescricao.setColumns(20);\n jTextAreaAtividadesDescricao.setRows(5);\n jScrollPane1.setViewportView(jTextAreaAtividadesDescricao);\n\n jButtonLimpar.setText(\"Limpar\");\n jButtonLimpar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonLimparActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelMatricula)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabelNome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesNome))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonAtividadesInserir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonLimpar))\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelTipo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelData)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelLocal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldAtividadesNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNome))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMatricula)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelData)\n .addComponent(jLabelTipo)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelLocal)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAtividadesInserir)\n .addComponent(jButtonLimpar))\n .addGap(1, 1, 1))\n );\n\n pack();\n }", "public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }", "public JanelaGraficosDialogo(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n super.setTitle(\"Gráficos\");\n super.setResizable(true);\n super.setLocationRelativeTo(null);\n \n //Muda icone da Janela\n URL url = this.getClass().getResource(\"/Imagens/ICONE_DR_3.png\"); \n Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url); \n this.setIconImage(imagemTitulo); \n \n String AAAA = dataAtual.RetornaAnoAtualYYYY();\n campoAno.setSelectedItem(AAAA);\n String AnoAAAA = (String) campoAno.getSelectedItem();\n //geraGrafico.geraGraficoDeVendasMensal(painelGrafico1,AnoAAAA);\n \n //geraGrafico.geraGraficoDeOSMensal(painelGrafico3);\n \n //Desabilita guias de acordo com perfil\n //if (em.getPerfil().equals(\"TICIANO\") || em.getPerfil().equals(\"consultorio\")){\n jTabbedPane1.setEnabledAt(0, true);\n jTabbedPane1.setEnabledAt(1, false);\n jTabbedPane1.setEnabledAt(2, true);\n\n //}\n \n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Inserimento insegnamento\"))\n\t\t{\n\t\t\tInserimentoInsegnamento inserisci =new InserimentoInsegnamento(this);\n\t\t\tinserisci.setVisible(true);\n\t\t\tsetVisible(false);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Elenco insegnamenti\"))\n\t\t{\n\t\t\tVisualizzaElencoInsegnamenti elenco=new VisualizzaElencoInsegnamenti();\n\t\t\telenco.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Associa docente\"))\n\t\t{\n\t\t\tAssociaDocente associa = new AssociaDocente();\n\t\t\tassocia.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Torna al Menu\"))\n\t\t{\n\t\t\tsetVisible(false);\n\t\t\tf1.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Inserimento Corso Laurea\"))\n\t\t{\n\t\t\t\n\t\t\t\tString selection= JOptionPane.showInputDialog(getParent(),\"Inserisci il nome del corso di laurea:\",\"INSERIMENTO CORSO DI LAUREA\",JOptionPane.OK_CANCEL_OPTION);\n\t\t\t\tif(selection != null )\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(\"Errore nel caricamento del Driver\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tConnection conn=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/schedule_dib\",\"root\",\"\");\n\t\t\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\t\t\tStatement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\t\t\t\t\t\tString query;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquery=\"Insert into `corsi` (`Corso_laurea`)values('\"+selection+\"')\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tint righe=stmt.executeUpdate(query);\n\t\t\t\t\t\tif(righe != 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Errore aggiornamento database\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tconn.commit();\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Operazione avvenuta con successo\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch(Exception exc)\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Errore aggiornamento database\"+exc.getMessage());\n\t\t\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Nessun corso di laurea inserito\");\n\t\t\t\t}\n\t\t\n\t\t\n\t}\n\t\t\n\t\t\n\t}", "public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }", "public JDialogZonas(java.awt.Frame parent, boolean modal, Remiseria remiseria, JComboBox cmbZona, Maestro unMaestro, Operario unOperario) {\n super(parent, modal);\n this.remiseria = remiseria;\n this.cmbZona = cmbZona;\n this.unOperario = unOperario;\n this.unMaestro = unMaestro;\n this.utilidades = new Utilidad();\n initComponents();\n this.setModal(true);\n this.setLocationRelativeTo(null);\n this.cargarZonas();\n jXTaskPane1.setCollapsed(true);\n btnGuardarModificaciones.setEnabled(false);\n btnGuardarChofer.setEnabled(false);\n txtNombreZona.setEnabled(false);\n txtDescripcion.setEnabled(false);\n btnModificar.setEnabled(true);\n btnAgregar.setEnabled(true);\n btnEliminar.setEnabled(true); \n try\n {\n tablaZonas.setRowSelectionInterval(0, 0);\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"No hay Zonas registradas aúx\", null, JOptionPane.WARNING_MESSAGE);\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n TECHS = new javax.swing.JDialog();\n jPanel3 = new javax.swing.JPanel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n name_e = new javax.swing.JTextField();\n genero_e = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n edad_e = new javax.swing.JSpinner();\n id_e = new javax.swing.JFormattedTextField();\n VEHI = new javax.swing.JDialog();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n tipvol_int = new javax.swing.JTextField();\n tmal_car = new javax.swing.JTextField();\n mat_bat = new javax.swing.JTextField();\n mate_int = new javax.swing.JTextField();\n spin_bat = new javax.swing.JSpinner();\n spin_mal_car = new javax.swing.JSpinner();\n spin_int = new javax.swing.JSpinner();\n spinbot_int = new javax.swing.JSpinner();\n spin_car = new javax.swing.JSpinner();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n spin_info = new javax.swing.JSpinner();\n spin2_info = new javax.swing.JSpinner();\n spin3_info = new javax.swing.JSpinner();\n si1 = new javax.swing.JRadioButton();\n no1 = new javax.swing.JRadioButton();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n elec = new javax.swing.JRadioButton();\n manu = new javax.swing.JRadioButton();\n si2 = new javax.swing.JRadioButton();\n no2 = new javax.swing.JRadioButton();\n jLabel16 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n spin_cantasien = new javax.swing.JSpinner();\n colorcar = new javax.swing.JTextField();\n marcaudio = new javax.swing.JTextField();\n vincar = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n mate_asien = new javax.swing.JTextField();\n spin_asien = new javax.swing.JSpinner();\n auto_bat = new javax.swing.JSpinner();\n buttonGroup1 = new javax.swing.ButtonGroup();\n buttonGroup2 = new javax.swing.ButtonGroup();\n buttonGroup3 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jLabel26 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n vehi_combo = new javax.swing.JComboBox<>();\n tech_combo = new javax.swing.JComboBox<>();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 204));\n\n jLabel22.setForeground(new java.awt.Color(0, 0, 0));\n jLabel22.setText(\"Nombre:\");\n\n jLabel23.setForeground(new java.awt.Color(0, 0, 0));\n jLabel23.setText(\"ID:\");\n\n jLabel24.setForeground(new java.awt.Color(0, 0, 0));\n jLabel24.setText(\"Genero:\");\n\n jLabel25.setForeground(new java.awt.Color(0, 0, 0));\n jLabel25.setText(\"Edad:\");\n\n name_e.setBackground(new java.awt.Color(255, 255, 255));\n name_e.setForeground(new java.awt.Color(0, 0, 0));\n\n genero_e.setBackground(new java.awt.Color(255, 255, 255));\n genero_e.setForeground(new java.awt.Color(0, 0, 0));\n\n jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/dominic.png\"))); // NOI18N\n\n jButton2.setText(\"Add\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n\n id_e.setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton2)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(genero_e, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n .addComponent(name_e, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n .addComponent(edad_e)\n .addComponent(id_e))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 72, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel23)\n .addComponent(id_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(name_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(13, 13, 13)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(genero_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(edad_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addContainerGap(36, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout TECHSLayout = new javax.swing.GroupLayout(TECHS.getContentPane());\n TECHS.getContentPane().setLayout(TECHSLayout);\n TECHSLayout.setHorizontalGroup(\n TECHSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(TECHSLayout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n TECHSLayout.setVerticalGroup(\n TECHSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel2.setBackground(new java.awt.Color(204, 255, 255));\n\n jLabel1.setForeground(new java.awt.Color(0, 0, 0));\n jLabel1.setText(\"Autonomia (Bateria):\");\n\n jLabel2.setForeground(new java.awt.Color(0, 0, 0));\n jLabel2.setText(\"Material (Bateria):\");\n\n jLabel3.setForeground(new java.awt.Color(0, 0, 0));\n jLabel3.setText(\"Tiempo Ensamblaje (Bateria):\");\n\n jLabel4.setForeground(new java.awt.Color(0, 0, 0));\n jLabel4.setText(\"Tiempo Ensamblaje (Carroceria):\");\n\n jLabel5.setForeground(new java.awt.Color(0, 0, 0));\n jLabel5.setText(\"Tipo Maletero (Carroceria):\");\n\n jLabel6.setForeground(new java.awt.Color(0, 0, 0));\n jLabel6.setText(\"Capacidad Maletero (Carroceria):\");\n\n jLabel7.setForeground(new java.awt.Color(0, 0, 0));\n jLabel7.setText(\"Tipo de Volante (Interior):\");\n\n jLabel8.setForeground(new java.awt.Color(0, 0, 0));\n jLabel8.setText(\"Material mas usado (Interior):\");\n\n jLabel9.setForeground(new java.awt.Color(0, 0, 0));\n jLabel9.setText(\"Tiempo Ensamblaje (Interior):\");\n\n jLabel10.setForeground(new java.awt.Color(0, 0, 0));\n jLabel10.setText(\"Cantidad de botones (Interior):\");\n\n tipvol_int.setBackground(new java.awt.Color(255, 255, 255));\n\n tmal_car.setBackground(new java.awt.Color(255, 255, 255));\n\n mat_bat.setBackground(new java.awt.Color(255, 255, 255));\n\n mate_int.setBackground(new java.awt.Color(255, 255, 255));\n\n spin_bat.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_mal_car.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_int.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spinbot_int.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_car.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n jLabel11.setForeground(new java.awt.Color(0, 0, 0));\n jLabel11.setText(\"Ancho Pantalla (Infoentretenimiento):\");\n\n jLabel12.setForeground(new java.awt.Color(0, 0, 0));\n jLabel12.setText(\"Visor (Infoentretenimiento):\");\n\n jLabel13.setForeground(new java.awt.Color(0, 0, 0));\n jLabel13.setText(\"Cantidad pantallas (Infoentretenimiento):\");\n\n jLabel14.setForeground(new java.awt.Color(0, 0, 0));\n jLabel14.setText(\"Tiempo Ensamblaje (Infoentretenimiento):\");\n\n spin_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin2_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin3_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n buttonGroup1.add(si1);\n si1.setForeground(new java.awt.Color(0, 0, 0));\n si1.setText(\"Si\");\n\n buttonGroup1.add(no1);\n no1.setForeground(new java.awt.Color(0, 0, 0));\n no1.setText(\"No\");\n\n jLabel15.setForeground(new java.awt.Color(0, 0, 0));\n jLabel15.setText(\"Masaje (Asientos):\");\n\n jLabel17.setForeground(new java.awt.Color(0, 0, 0));\n jLabel17.setText(\"Material (Asientos):\");\n\n jLabel18.setForeground(new java.awt.Color(0, 0, 0));\n jLabel18.setText(\"Tiempo Ensamblaje (Asientos):\");\n\n buttonGroup2.add(elec);\n elec.setForeground(new java.awt.Color(0, 0, 0));\n elec.setText(\"Electrico\");\n\n buttonGroup2.add(manu);\n manu.setForeground(new java.awt.Color(0, 0, 0));\n manu.setText(\"Manual\");\n\n buttonGroup3.add(si2);\n si2.setForeground(new java.awt.Color(0, 0, 0));\n si2.setText(\"Si\");\n\n buttonGroup3.add(no2);\n no2.setForeground(new java.awt.Color(0, 0, 0));\n no2.setText(\"No\");\n\n jLabel16.setForeground(new java.awt.Color(0, 0, 0));\n jLabel16.setText(\"Cantidad Asientos:\");\n\n jLabel19.setForeground(new java.awt.Color(0, 0, 0));\n jLabel19.setText(\"Marca Sistema de Audio:\");\n\n jLabel20.setForeground(new java.awt.Color(0, 0, 0));\n jLabel20.setText(\"Color:\");\n\n jLabel21.setForeground(new java.awt.Color(0, 0, 0));\n jLabel21.setText(\"VIN:\");\n\n spin_cantasien.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n colorcar.setBackground(new java.awt.Color(255, 255, 255));\n\n marcaudio.setBackground(new java.awt.Color(255, 255, 255));\n\n vincar.setBackground(new java.awt.Color(255, 255, 255));\n\n jButton1.setText(\"Crear\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n mate_asien.setBackground(new java.awt.Color(255, 255, 255));\n\n spin_asien.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n auto_bat.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(spin_mal_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(72, 72, 72)\n .addComponent(mat_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel8)\n .addComponent(jLabel7))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(spin_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tmal_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spin_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(si2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(elec)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(manu)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(no2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18)\n .addComponent(jLabel17))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(mate_asien, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addComponent(spin_asien)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tipvol_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(mate_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spinbot_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21)\n .addComponent(jLabel20)\n .addComponent(jLabel19))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(vincar, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(marcaudio, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorcar, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)))))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(spin_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(auto_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(spin_info, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(spin3_info, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addComponent(spin2_info, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(si1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(no1))\n .addComponent(spin_cantasien))))))))\n .addContainerGap(68, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(mat_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spin_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(spin_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(auto_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(spin2_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(si1)\n .addComponent(no1))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(spin3_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(10, 10, 10)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(spin_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tmal_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(spin_mal_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(spin_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel18)\n .addGap(18, 18, 18)\n .addComponent(jLabel17)\n .addGap(14, 14, 14)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(elec)\n .addComponent(manu))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(si2)\n .addComponent(no2))))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(mate_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(tipvol_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(spinbot_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(spin_asien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(mate_asien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(80, 80, 80)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(jLabel20)\n .addGap(18, 18, 18)\n .addComponent(jLabel19))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(vincar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12)\n .addComponent(colorcar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(marcaudio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spin_cantasien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout VEHILayout = new javax.swing.GroupLayout(VEHI.getContentPane());\n VEHI.getContentPane().setLayout(VEHILayout);\n VEHILayout.setHorizontalGroup(\n VEHILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(VEHILayout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n VEHILayout.setVerticalGroup(\n VEHILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel26.setForeground(new java.awt.Color(0, 0, 0));\n jLabel26.setText(\"Vehiculo:\");\n\n jLabel28.setForeground(new java.awt.Color(0, 0, 0));\n jLabel28.setText(\"Ensamblador:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tech_combo, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(vehi_combo, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(383, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(vehi_combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel28)\n .addComponent(tech_combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(318, Short.MAX_VALUE))\n );\n\n jMenu1.setText(\"Menu\");\n\n jMenuItem1.setText(\"Crear Vehiculo\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuItem2.setText(\"Crear Ensemblador\");\n jMenuItem2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuItem2MouseClicked(evt);\n }\n });\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n DialogInformacja = new javax.swing.JDialog();\n jButton1 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n ButtonWypelnijToolbar = new javax.swing.JButton();\n ButtonSredniaToolbar = new javax.swing.JButton();\n ButtonSumaToolbar = new javax.swing.JButton();\n ButtonInfoToolBar = new javax.swing.JButton();\n ButtonPomoc = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tabelaDanych = new javax.swing.JTable();\n WprowadzonaLiczba = new javax.swing.JTextField();\n spinerKolumna = new javax.swing.JSpinner();\n spinerWiersz = new javax.swing.JSpinner();\n ButtonWypelnij = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n textAreaRezultat = new javax.swing.JTextArea();\n ButtonZerowanie = new javax.swing.JButton();\n ButtonZapiszDoPliku = new javax.swing.JButton();\n ComboBoxWybor = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n ButtonZapiszDoBazy = new javax.swing.JButton();\n jToggleButton1 = new javax.swing.JToggleButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenuPlik = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuEdycja = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuOperacje = new javax.swing.JMenu();\n jMenuItem5 = new javax.swing.JMenuItem();\n jMenuItem6 = new javax.swing.JMenuItem();\n jMenuItem7 = new javax.swing.JMenuItem();\n jMenuItem8 = new javax.swing.JMenuItem();\n jMenuPomoc = new javax.swing.JMenu();\n jMenuItem10 = new javax.swing.JMenuItem();\n jMenuItem9 = new javax.swing.JMenuItem();\n\n DialogInformacja.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jButton1.setText(\"Zamknij\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setIcon(new javax.swing.ImageIcon(\"C:\\\\Projekty\\\\Java\\\\Zasoby\\\\java-bg400.jpg\")); // NOI18N\n jLabel2.setMaximumSize(new java.awt.Dimension(1250, 768));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe Print\", 1, 14)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Program testowy- moje GUI\");\n\n jLabel6.setText(\"Wykonawca: Adrian. Kontakt adrian@edenland.pl\");\n\n javax.swing.GroupLayout DialogInformacjaLayout = new javax.swing.GroupLayout(DialogInformacja.getContentPane());\n DialogInformacja.getContentPane().setLayout(DialogInformacjaLayout);\n DialogInformacjaLayout.setHorizontalGroup(\n DialogInformacjaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(DialogInformacjaLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(DialogInformacjaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(DialogInformacjaLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(DialogInformacjaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, DialogInformacjaLayout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(82, 82, 82))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, DialogInformacjaLayout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(173, 173, 173))))\n .addGroup(DialogInformacjaLayout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 26, Short.MAX_VALUE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, DialogInformacjaLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6)\n .addGap(91, 91, 91))\n );\n DialogInformacjaLayout.setVerticalGroup(\n DialogInformacjaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(DialogInformacjaLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel6)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(204, 204, 204));\n setResizable(false);\n setSize(new java.awt.Dimension(0, 0));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jToolBar1.setBackground(new java.awt.Color(204, 204, 204));\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n\n ButtonWypelnijToolbar.setBackground(new java.awt.Color(204, 204, 204));\n ButtonWypelnijToolbar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/dodaj.png\"))); // NOI18N\n ButtonWypelnijToolbar.setToolTipText(\"Wypełnij\");\n ButtonWypelnijToolbar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n ButtonWypelnijToolbar.setFocusable(false);\n ButtonWypelnijToolbar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonWypelnijToolbar.setName(\"Wypełnij\"); // NOI18N\n ButtonWypelnijToolbar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonWypelnijToolbarActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonWypelnijToolbar);\n\n ButtonSredniaToolbar.setBackground(new java.awt.Color(204, 204, 204));\n ButtonSredniaToolbar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/srednia.png\"))); // NOI18N\n ButtonSredniaToolbar.setToolTipText(\"Średnia\");\n ButtonSredniaToolbar.setFocusable(false);\n ButtonSredniaToolbar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonSredniaToolbar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n ButtonSredniaToolbar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSredniaToolbarActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonSredniaToolbar);\n\n ButtonSumaToolbar.setBackground(new java.awt.Color(204, 204, 204));\n ButtonSumaToolbar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/suma.png\"))); // NOI18N\n ButtonSumaToolbar.setToolTipText(\"Suma\");\n ButtonSumaToolbar.setFocusable(false);\n ButtonSumaToolbar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonSumaToolbar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n ButtonSumaToolbar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSumaToolbarActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonSumaToolbar);\n\n ButtonInfoToolBar.setBackground(new java.awt.Color(204, 204, 204));\n ButtonInfoToolBar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/info.png\"))); // NOI18N\n ButtonInfoToolBar.setToolTipText(\"Informacja o programie\");\n ButtonInfoToolBar.setFocusable(false);\n ButtonInfoToolBar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonInfoToolBar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n ButtonInfoToolBar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonInfoToolBarActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonInfoToolBar);\n\n ButtonPomoc.setBackground(new java.awt.Color(204, 204, 204));\n ButtonPomoc.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/o_programie.png\"))); // NOI18N\n ButtonPomoc.setToolTipText(\"Pomoc\");\n ButtonPomoc.setFocusable(false);\n ButtonPomoc.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n ButtonPomoc.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n ButtonPomoc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonPomocActionPerformed(evt);\n }\n });\n jToolBar1.add(ButtonPomoc);\n\n tabelaDanych.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tabelaDanych.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},\n { new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)}\n },\n new String [] {\n \"Kolumna 1\", \"Kolumna 2\", \"Kolumna 3\", \"Kolumna 4\", \"Kolumna 5\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n tabelaDanych.setRowHeight(20);\n tabelaDanych.setRowMargin(2);\n tabelaDanych.setRowSelectionAllowed(false);\n tabelaDanych.getTableHeader().setReorderingAllowed(false);\n jScrollPane2.setViewportView(tabelaDanych);\n\n WprowadzonaLiczba.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n WprowadzonaLiczba.setText(\"0\");\n WprowadzonaLiczba.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n WprowadzonaLiczbaActionPerformed(evt);\n }\n });\n WprowadzonaLiczba.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n WprowadzonaLiczbaKeyTyped(evt);\n }\n });\n\n spinerKolumna.setModel(new javax.swing.SpinnerNumberModel(1, 1, 5, 1));\n\n spinerWiersz.setModel(new javax.swing.SpinnerNumberModel(1, 1, 5, 1));\n\n ButtonWypelnij.setText(\"Wypełnij\");\n ButtonWypelnij.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonWypelnijActionPerformed(evt);\n }\n });\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Rezultat operacji\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 14))); // NOI18N\n\n textAreaRezultat.setColumns(20);\n textAreaRezultat.setRows(5);\n jScrollPane1.setViewportView(textAreaRezultat);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 809, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n ButtonZerowanie.setText(\"Zerowanie\");\n ButtonZerowanie.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonZerowanieActionPerformed(evt);\n }\n });\n\n ButtonZapiszDoPliku.setText(\"Zapisz do pliku\");\n ButtonZapiszDoPliku.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonZapiszDoPlikuActionPerformed(evt);\n }\n });\n\n ComboBoxWybor.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Wybierz rodzaj operacji\", \"Suma elementów\", \"Średnia elementów\", \"Wartości min i max\" }));\n ComboBoxWybor.setToolTipText(\"Wybierz właściwą opcję, aby zobaczyć wyniki.\");\n ComboBoxWybor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBoxWyborActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Wiersz\");\n\n jLabel4.setText(\"Kolumna\");\n\n jLabel5.setText(\"Wpisz liczbe\");\n\n jButton2.setText(\"Losowe wypełnienie\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n ButtonZapiszDoBazy.setText(\"Zapisz do bazy\");\n ButtonZapiszDoBazy.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonZapiszDoBazyActionPerformed(evt);\n }\n });\n\n jToggleButton1.setText(\"jToggleButton1\");\n jToggleButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButton1ActionPerformed(evt);\n }\n });\n\n jMenuPlik.setText(\"Plik\");\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setMnemonic('Z');\n jMenuItem1.setText(\"Zapisz\");\n jMenuItem1.setToolTipText(\"\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenuPlik.add(jMenuItem1);\n\n jMenuBar1.add(jMenuPlik);\n jMenuPlik.getAccessibleContext().setAccessibleDescription(\"\");\n\n jMenuEdycja.setText(\"Edycja\");\n\n jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem2.setText(\"Wypełnij\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenuEdycja.add(jMenuItem2);\n\n jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem3.setText(\"Zerowanie\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenuEdycja.add(jMenuItem3);\n\n jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem4.setText(\"Losowo wypełnij\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenuEdycja.add(jMenuItem4);\n\n jMenuBar1.add(jMenuEdycja);\n\n jMenuOperacje.setText(\"Operacje\");\n\n jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem5.setText(\"Zapisz do pliku\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenuOperacje.add(jMenuItem5);\n\n jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem6.setText(\"Suma elementów\");\n jMenuItem6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem6ActionPerformed(evt);\n }\n });\n jMenuOperacje.add(jMenuItem6);\n\n jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem7.setText(\"Średnia elementów\");\n jMenuItem7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem7ActionPerformed(evt);\n }\n });\n jMenuOperacje.add(jMenuItem7);\n\n jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem8.setText(\"Wartości min i max\");\n jMenuOperacje.add(jMenuItem8);\n\n jMenuBar1.add(jMenuOperacje);\n\n jMenuPomoc.setText(\"Pomoc\");\n\n jMenuItem10.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem10.setText(\"O programie\");\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem10ActionPerformed(evt);\n }\n });\n jMenuPomoc.add(jMenuItem10);\n\n jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem9.setText(\"Pomoc\");\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem9ActionPerformed(evt);\n }\n });\n jMenuPomoc.add(jMenuItem9);\n\n jMenuBar1.add(jMenuPomoc);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(121, 121, 121)\n .addComponent(ComboBoxWybor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addGap(18, 18, 18)\n .addComponent(ButtonZapiszDoBazy)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jToggleButton1)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(66, 66, 66)\n .addComponent(WprowadzonaLiczba, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(spinerKolumna, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(spinerWiersz, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(ButtonWypelnij)\n .addGap(18, 18, 18)\n .addComponent(ButtonZerowanie)\n .addGap(18, 18, 18)\n .addComponent(ButtonZapiszDoPliku))))\n .addComponent(jScrollPane2))\n .addGap(29, 29, 29))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jToggleButton1)\n .addGap(23, 23, 23)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(WprowadzonaLiczba, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spinerKolumna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spinerWiersz, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonWypelnij)\n .addComponent(ButtonZerowanie)\n .addComponent(ButtonZapiszDoPliku)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addGap(22, 22, 22)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComboBoxWybor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2)\n .addComponent(ButtonZapiszDoBazy))\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\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 }", "public void MostrarDadosProjeto(ControleProjeto proj, int indice,int menu, ControleTarefas cadTar){\n\n opt = menu;\n p = proj;\n ct = cadTar;\n ind = indice;\n\n //cinfig da janela\n janela.setVisible(true);\n janela.setLayout(null);\n janela.setSize(600, 400);\n\n //titulo da janela\n titulo.setFont(new Font(\"Arial\", Font.BOLD, 18));\n\t\ttitulo.setBounds(200, 10, 200, 30);\n\n if(menu == 2){\n valorNomeProjeto = new JTextField(proj.getArrProjetos(indice).getNome(), 300);\n valorDataInicio = new JTextField(proj.getArrProjetos(indice).getDataInicio());\n valorDataTermino = new JTextField(proj.getArrProjetos(indice).getDataTermino());\n listaTarefas = cadTar.getNomeTarefasProjeto(proj.getArrProjetos(indice));\n listaTarefasCadastradas = new JList<String>(listaTarefas);\n salvarProjeto.setBounds(135, 310, 90, 25);\n excluirProjeto.setBounds(245, 310, 90, 25);\n }\n else{\n valorNomeProjeto = new JTextField();\n valorDataInicio = new JTextField();\n valorDataTermino= new JTextField();\n listaTarefasCadastradas = new JList<String>(listaTarefas);\n addTarefa.setVisible(false);\n labelListaTarefa.setVisible(false);\n listaTarefasCadastradas.setVisible(false);\n atualizarProjeto.setVisible(false);\n //realocar botões qunado não houver botão de atualizar\n salvarProjeto.setBounds(200, 310, 90, 25);\n excluirProjeto.setBounds(310, 310, 90, 25);\n }\n\n labelNomeProjeto.setBounds(80, 70, 60, 25);\n valorNomeProjeto.setBounds(140, 70, 360, 25);\n labelDataInicio.setBounds(80,110,80,25);\n valorDataInicio.setBounds(165,110,100,25);\n labelDataTermino.setBounds(300,110,90,25);\n valorDataTermino.setBounds(400,110,100,25);\n labelListaTarefa.setBounds(80,150,150,25);\n addTarefa.setBounds(80,180,45,20);\n listaTarefasCadastradas.setBounds(80, 210, 420, 90);\n listaTarefasCadastradas.addListSelectionListener(this);\n\n atualizarProjeto.setBounds(355, 310, 90, 25);\n \n janela.add(titulo);\n janela.add(labelNomeProjeto);\n janela.add(valorNomeProjeto);\n janela.add(labelDataInicio);\n janela.add(valorDataInicio);\n janela.add(labelDataTermino);\n janela.add(valorDataTermino);\n janela.add(labelListaTarefa);\n janela.add(addTarefa);\n janela.add(listaTarefasCadastradas);\n janela.add(salvarProjeto);\n janela.add(excluirProjeto);\n janela.add(atualizarProjeto);\n\n salvarProjeto.addActionListener(this);\n excluirProjeto.addActionListener(this);\n atualizarProjeto.addActionListener(this);\n addTarefa.addActionListener(this);\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public EdicaoLista(JFrame parent) {\n initComponents();\n \n dialog = new JDialog(parent, true);\n\n dialog.add(this);\n dialog.pack();\n\n dialog.setLocationRelativeTo(parent);\n dialog.setModal(true);\n }", "public FrmOdabir(String naslov) {\n \n initComponents();\n setTitle(naslov);\n setLocationRelativeTo(null);\n setVisible(true);\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n FormaP = new javax.swing.JDialog();\n jPanel7 = new javax.swing.JPanel();\n jLabel19 = new javax.swing.JLabel();\n jPanel48 = new javax.swing.JPanel();\n txtBuscar = new javax.swing.JTextField();\n btnBuscarPaciente4 = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tb_Grupo = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n Nomenclatura = new javax.swing.JDialog();\n jPanel8 = new javax.swing.JPanel();\n jLabel20 = new javax.swing.JLabel();\n jPanel47 = new javax.swing.JPanel();\n txtBuscar1 = new javax.swing.JTextField();\n btnBuscarPaciente5 = new javax.swing.JButton();\n jScrollPane4 = new javax.swing.JScrollPane();\n tb_Grupo2 = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n jDialog1 = new javax.swing.JDialog();\n jPanel1 = new javax.swing.JPanel();\n btnNuevo = new javax.swing.JButton();\n btneditar = new javax.swing.JButton();\n btnguardar = new javax.swing.JButton();\n btneliminar = new javax.swing.JButton();\n lblusu = new javax.swing.JLabel();\n jLabel57 = new javax.swing.JLabel();\n jPanel23 = new javax.swing.JPanel();\n buscartodo = new javax.swing.JTextField();\n btnBuscarPaciente = new javax.swing.JButton();\n lbldetalle = new javax.swing.JLabel();\n cargareliminar = new javax.swing.JPanel();\n Mensaje = new javax.swing.JLabel();\n eli = new javax.swing.JButton();\n noeli = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtPrecio = new javax.swing.JTextField();\n fp = new javax.swing.JLabel();\n nom = new javax.swing.JLabel();\n txtcodigo = new javax.swing.JTextField();\n panelFormaPago = new javax.swing.JPanel();\n forma = new javax.swing.JTextField();\n b = new javax.swing.JButton();\n panelFormaPago1 = new javax.swing.JPanel();\n Nomen = new javax.swing.JTextField();\n b1 = new javax.swing.JButton();\n jScrollPane3 = new javax.swing.JScrollPane();\n tb_Grupo1 = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n jPanel5 = new javax.swing.JPanel();\n jLabel33 = new javax.swing.JLabel();\n\n FormaP.setMinimumSize(new java.awt.Dimension(310, 441));\n FormaP.setResizable(false);\n\n jPanel7.setBackground(new java.awt.Color(41, 127, 184));\n jPanel7.setMinimumSize(new java.awt.Dimension(310, 441));\n\n jLabel19.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 30)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(255, 255, 255));\n jLabel19.setText(\"Forma de Pago\");\n\n jPanel48.setBackground(new java.awt.Color(255, 255, 255));\n\n txtBuscar.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtBuscar.setBorder(null);\n txtBuscar.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n txtBuscarCaretUpdate(evt);\n }\n });\n txtBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscarActionPerformed(evt);\n }\n });\n txtBuscar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscarKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtBuscarKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel48Layout = new javax.swing.GroupLayout(jPanel48);\n jPanel48.setLayout(jPanel48Layout);\n jPanel48Layout.setHorizontalGroup(\n jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel48Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 5, Short.MAX_VALUE))\n );\n jPanel48Layout.setVerticalGroup(\n jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel48Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n btnBuscarPaciente4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente4.setContentAreaFilled(false);\n btnBuscarPaciente4.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBuscarPaciente4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarPaciente4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jPanel48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente4, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addContainerGap(25, Short.MAX_VALUE)\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnBuscarPaciente4, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel48, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(334, 334, 334))\n );\n\n jScrollPane2.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo.setRowHeight(25);\n tb_Grupo.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_GrupoMouseClicked(evt);\n }\n });\n tb_Grupo.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_GrupoKeyPressed(evt);\n }\n });\n jScrollPane2.setViewportView(tb_Grupo);\n\n javax.swing.GroupLayout FormaPLayout = new javax.swing.GroupLayout(FormaP.getContentPane());\n FormaP.getContentPane().setLayout(FormaPLayout);\n FormaPLayout.setHorizontalGroup(\n FormaPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)\n );\n FormaPLayout.setVerticalGroup(\n FormaPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(FormaPLayout.createSequentialGroup()\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n Nomenclatura.setMinimumSize(new java.awt.Dimension(612, 430));\n Nomenclatura.setResizable(false);\n\n jPanel8.setBackground(new java.awt.Color(41, 127, 184));\n jPanel8.setMinimumSize(new java.awt.Dimension(310, 441));\n\n jLabel20.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 30)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(255, 255, 255));\n jLabel20.setText(\"CPT\");\n\n jPanel47.setBackground(new java.awt.Color(255, 255, 255));\n\n txtBuscar1.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtBuscar1.setBorder(null);\n txtBuscar1.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n txtBuscar1CaretUpdate(evt);\n }\n });\n txtBuscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscar1ActionPerformed(evt);\n }\n });\n txtBuscar1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscar1KeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtBuscar1KeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel47Layout = new javax.swing.GroupLayout(jPanel47);\n jPanel47.setLayout(jPanel47Layout);\n jPanel47Layout.setHorizontalGroup(\n jPanel47Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel47Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(txtBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 5, Short.MAX_VALUE))\n );\n jPanel47Layout.setVerticalGroup(\n jPanel47Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel47Layout.createSequentialGroup()\n .addComponent(txtBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n btnBuscarPaciente5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente5.setContentAreaFilled(false);\n btnBuscarPaciente5.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jPanel47, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente5, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(299, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnBuscarPaciente5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel47, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(348, 348, 348))\n );\n\n jScrollPane4.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo2.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo2.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo2.setRowHeight(25);\n tb_Grupo2.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_Grupo2MouseClicked(evt);\n }\n });\n tb_Grupo2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_Grupo2KeyPressed(evt);\n }\n });\n jScrollPane4.setViewportView(tb_Grupo2);\n\n javax.swing.GroupLayout NomenclaturaLayout = new javax.swing.GroupLayout(Nomenclatura.getContentPane());\n Nomenclatura.getContentPane().setLayout(NomenclaturaLayout);\n NomenclaturaLayout.setHorizontalGroup(\n NomenclaturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE)\n );\n NomenclaturaLayout.setVerticalGroup(\n NomenclaturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(NomenclaturaLayout.createSequentialGroup()\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jDialog1.setAlwaysOnTop(true);\n jDialog1.setResizable(false);\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(41, 127, 184));\n jPanel1.setPreferredSize(new java.awt.Dimension(284, 714));\n\n btnNuevo.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btnNuevo.setForeground(new java.awt.Color(240, 240, 240));\n btnNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Documento-32.png\"))); // NOI18N\n btnNuevo.setText(\"Nuevo\");\n btnNuevo.setContentAreaFilled(false);\n btnNuevo.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnNuevo.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btnNuevo.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btnNuevo.setIconTextGap(30);\n btnNuevo.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btnNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNuevoActionPerformed(evt);\n }\n });\n\n btneditar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btneditar.setForeground(new java.awt.Color(240, 240, 240));\n btneditar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Editar-32.png\"))); // NOI18N\n btneditar.setText(\"Editar\");\n btneditar.setContentAreaFilled(false);\n btneditar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btneditar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btneditar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btneditar.setIconTextGap(30);\n btneditar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btneditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btneditarActionPerformed(evt);\n }\n });\n\n btnguardar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btnguardar.setForeground(new java.awt.Color(240, 240, 240));\n btnguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Guardar-32.png\"))); // NOI18N\n btnguardar.setText(\"Guardar\");\n btnguardar.setContentAreaFilled(false);\n btnguardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnguardar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btnguardar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btnguardar.setIconTextGap(30);\n btnguardar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btnguardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnguardarActionPerformed(evt);\n }\n });\n\n btneliminar.setFont(new java.awt.Font(\"Segoe UI\", 0, 18)); // NOI18N\n btneliminar.setForeground(new java.awt.Color(240, 240, 240));\n btneliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Icon/Basura-32.png\"))); // NOI18N\n btneliminar.setText(\"Eliminar\");\n btneliminar.setContentAreaFilled(false);\n btneliminar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btneliminar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n btneliminar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btneliminar.setIconTextGap(30);\n btneliminar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btneliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btneliminarActionPerformed(evt);\n }\n });\n\n lblusu.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblusu.setForeground(new java.awt.Color(255, 255, 255));\n lblusu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Usuario-40.png\"))); // NOI18N\n lblusu.setText(\"Silvana\");\n lblusu.setFocusable(false);\n lblusu.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n\n jLabel57.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 36)); // NOI18N\n jLabel57.setForeground(new java.awt.Color(255, 255, 255));\n jLabel57.setText(\"<html>Precios<span style=\\\"font-size:'14px'\\\"><br>Nomenclaturas</br></span></html>\");\n\n jPanel23.setBackground(new java.awt.Color(255, 255, 255));\n\n buscartodo.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n buscartodo.setForeground(new java.awt.Color(51, 51, 51));\n buscartodo.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n buscartodo.setBorder(null);\n buscartodo.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n buscartodoCaretUpdate(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);\n jPanel23.setLayout(jPanel23Layout);\n jPanel23Layout.setHorizontalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(buscartodo, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42))\n );\n jPanel23Layout.setVerticalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel23Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(buscartodo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnBuscarPaciente.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-27.png\"))); // NOI18N\n btnBuscarPaciente.setContentAreaFilled(false);\n btnBuscarPaciente.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBuscarPaciente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarPacienteActionPerformed(evt);\n }\n });\n\n lbldetalle.setForeground(new java.awt.Color(255, 255, 255));\n lbldetalle.setText(\"CPT, Descripción\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lbldetalle)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscarPaciente, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel57, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblusu, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnguardar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btneditar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btneliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel57, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscarPaciente, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lbldetalle)\n .addGap(21, 21, 21)\n .addComponent(btnNuevo)\n .addGap(18, 18, 18)\n .addComponent(btnguardar)\n .addGap(18, 18, 18)\n .addComponent(btneditar)\n .addGap(18, 18, 18)\n .addComponent(btneliminar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 184, Short.MAX_VALUE)\n .addComponent(lblusu, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n cargareliminar.setBackground(new java.awt.Color(255, 153, 51));\n\n Mensaje.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n Mensaje.setForeground(new java.awt.Color(255, 255, 255));\n Mensaje.setText(\"Mensaje\");\n\n eli.setForeground(new java.awt.Color(240, 240, 240));\n eli.setText(\"Si\");\n eli.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));\n eli.setContentAreaFilled(false);\n eli.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n eli.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n eli.setIconTextGap(30);\n eli.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n eliActionPerformed(evt);\n }\n });\n\n noeli.setForeground(new java.awt.Color(240, 240, 240));\n noeli.setText(\"No\");\n noeli.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));\n noeli.setContentAreaFilled(false);\n noeli.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n noeli.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n noeli.setIconTextGap(30);\n noeli.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n noeliActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout cargareliminarLayout = new javax.swing.GroupLayout(cargareliminar);\n cargareliminar.setLayout(cargareliminarLayout);\n cargareliminarLayout.setHorizontalGroup(\n cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cargareliminarLayout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(Mensaje)\n .addGap(46, 46, 46)\n .addComponent(eli, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(noeli, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n cargareliminarLayout.setVerticalGroup(\n cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cargareliminarLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(cargareliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Mensaje)\n .addComponent(eli, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(noeli, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setMinimumSize(new java.awt.Dimension(543, 156));\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(51, 51, 51));\n jLabel3.setText(\"Forma de Pago\");\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(51, 51, 51));\n jLabel4.setText(\"Nomenclatura\");\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(51, 51, 51));\n jLabel5.setText(\"Precio\");\n\n txtPrecio.setEditable(false);\n txtPrecio.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtPrecio.setForeground(new java.awt.Color(51, 51, 51));\n txtPrecio.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPrecioKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtPrecioKeyTyped(evt);\n }\n });\n\n fp.setBackground(new java.awt.Color(255, 255, 255));\n fp.setForeground(new java.awt.Color(255, 255, 255));\n fp.setText(\"jLabel8\");\n\n nom.setBackground(new java.awt.Color(255, 255, 255));\n nom.setForeground(new java.awt.Color(255, 255, 255));\n nom.setText(\"jLabel8\");\n\n txtcodigo.setEditable(false);\n txtcodigo.setForeground(new java.awt.Color(255, 255, 255));\n txtcodigo.setBorder(null);\n\n panelFormaPago.setBackground(new java.awt.Color(255, 255, 255));\n panelFormaPago.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));\n\n forma.setEditable(false);\n forma.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n forma.setForeground(new java.awt.Color(51, 51, 51));\n forma.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n forma.setBorder(null);\n forma.setSelectedTextColor(new java.awt.Color(51, 51, 51));\n forma.setSelectionColor(new java.awt.Color(255, 255, 255));\n forma.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n formaCaretUpdate(evt);\n }\n });\n\n b.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-25.png\"))); // NOI18N\n b.setContentAreaFilled(false);\n b.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n b.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelFormaPagoLayout = new javax.swing.GroupLayout(panelFormaPago);\n panelFormaPago.setLayout(panelFormaPagoLayout);\n panelFormaPagoLayout.setHorizontalGroup(\n panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPagoLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(forma, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(b, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n panelFormaPagoLayout.setVerticalGroup(\n panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPagoLayout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(panelFormaPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(forma, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)\n .addComponent(b, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n panelFormaPago1.setBackground(new java.awt.Color(255, 255, 255));\n panelFormaPago1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));\n\n Nomen.setEditable(false);\n Nomen.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n Nomen.setForeground(new java.awt.Color(51, 51, 51));\n Nomen.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n Nomen.setBorder(null);\n Nomen.setSelectedTextColor(new java.awt.Color(51, 51, 51));\n Nomen.setSelectionColor(new java.awt.Color(255, 255, 255));\n Nomen.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n NomenCaretUpdate(evt);\n }\n });\n\n b1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Búsqueda-25.png\"))); // NOI18N\n b1.setContentAreaFilled(false);\n b1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n b1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n b1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelFormaPago1Layout = new javax.swing.GroupLayout(panelFormaPago1);\n panelFormaPago1.setLayout(panelFormaPago1Layout);\n panelFormaPago1Layout.setHorizontalGroup(\n panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPago1Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(Nomen)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n panelFormaPago1Layout.setVerticalGroup(\n panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelFormaPago1Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(panelFormaPago1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Nomen, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)\n .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel3))\n .addGap(61, 61, 61)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(panelFormaPago, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panelFormaPago1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(fp)\n .addGap(5, 5, 5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(txtPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(338, 338, 338)\n .addComponent(nom))\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(121, 121, 121))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(fp)\n .addComponent(nom)))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(panelFormaPago, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addComponent(txtPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(panelFormaPago1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jScrollPane3.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n\n tb_Grupo1.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n tb_Grupo1.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n tb_Grupo1.setForeground(new java.awt.Color(51, 51, 51));\n tb_Grupo1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Grupo1.setGridColor(new java.awt.Color(255, 255, 255));\n tb_Grupo1.setRowHeight(25);\n tb_Grupo1.setSelectionBackground(new java.awt.Color(102, 102, 102));\n tb_Grupo1.getTableHeader().setReorderingAllowed(false);\n tb_Grupo1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_Grupo1MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n tb_Grupo1MousePressed(evt);\n }\n });\n tb_Grupo1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_Grupo1KeyPressed(evt);\n }\n });\n jScrollPane3.setViewportView(tb_Grupo1);\n\n jPanel5.setBackground(new java.awt.Color(43, 43, 43));\n jPanel5.setPreferredSize(new java.awt.Dimension(929, 115));\n\n jLabel33.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 24)); // NOI18N\n jLabel33.setForeground(new java.awt.Color(255, 255, 255));\n jLabel33.setText(\"Edición\");\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 335, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(67, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cargareliminar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1223, Short.MAX_VALUE)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(cargareliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialogFinal = new javax.swing.JDialog();\n jLabelCajero3 = new javax.swing.JLabel();\n jLabelCajero1 = new javax.swing.JLabel();\n jLabelCajero4 = new javax.swing.JLabel();\n jLabelCajero5 = new javax.swing.JLabel();\n jLabelCajero2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextArea3 = new javax.swing.JTextArea();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextArea4 = new javax.swing.JTextArea();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextArea5 = new javax.swing.JTextArea();\n jLabel1Fondo3 = new javax.swing.JLabel();\n jLabelLogo = new javax.swing.JLabel();\n jButtonOpcion1 = new javax.swing.JButton();\n jButtonOpcion2 = new javax.swing.JButton();\n jSpinner1 = new javax.swing.JSpinner();\n jLabelCajeros = new javax.swing.JLabel();\n jButton1Start = new javax.swing.JButton();\n jLabel1Fondo = new javax.swing.JLabel();\n\n jDialogFinal.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabelCajero3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero3.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero3, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 60, -1, -1));\n\n jLabelCajero1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero1.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 60, -1, -1));\n\n jLabelCajero4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero4.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero4, new org.netbeans.lib.awtextra.AbsoluteConstraints(560, 60, -1, -1));\n\n jLabelCajero5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero5.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero5, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 60, -1, -1));\n\n jLabelCajero2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/atm.png\"))); // NOI18N\n jLabelCajero2.setToolTipText(\"\");\n jDialogFinal.getContentPane().add(jLabelCajero2, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 60, -1, -1));\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n jDialogFinal.getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 210, 150, 270));\n\n jTextArea2.setColumns(20);\n jTextArea2.setRows(5);\n jScrollPane2.setViewportView(jTextArea2);\n\n jDialogFinal.getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 210, 150, 270));\n\n jTextArea3.setColumns(20);\n jTextArea3.setRows(5);\n jScrollPane3.setViewportView(jTextArea3);\n\n jDialogFinal.getContentPane().add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 210, 150, 270));\n\n jTextArea4.setColumns(20);\n jTextArea4.setRows(5);\n jScrollPane4.setViewportView(jTextArea4);\n\n jDialogFinal.getContentPane().add(jScrollPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 210, 150, 270));\n\n jTextArea5.setColumns(20);\n jTextArea5.setRows(5);\n jScrollPane5.setViewportView(jTextArea5);\n\n jDialogFinal.getContentPane().add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 210, 150, 270));\n\n jLabel1Fondo3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/background1.jpg\"))); // NOI18N\n jDialogFinal.getContentPane().add(jLabel1Fondo3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 990, 560));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabelLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/logo transparente.png\"))); // NOI18N\n getContentPane().add(jLabelLogo, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 30, -1, -1));\n\n jButtonOpcion1.setBackground(new java.awt.Color(255, 204, 153));\n jButtonOpcion1.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n jButtonOpcion1.setForeground(new java.awt.Color(153, 0, 0));\n jButtonOpcion1.setText(\"Opción 1\");\n jButtonOpcion1.setActionCommand(\"Opción 1\");\n jButtonOpcion1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOpcion1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButtonOpcion1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 310, 240, 80));\n\n jButtonOpcion2.setBackground(new java.awt.Color(255, 204, 153));\n jButtonOpcion2.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n jButtonOpcion2.setForeground(new java.awt.Color(153, 0, 0));\n jButtonOpcion2.setText(\"Opción 2\");\n jButtonOpcion2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOpcion2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButtonOpcion2, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 310, 240, 80));\n\n jSpinner1.setModel(new javax.swing.SpinnerNumberModel(1, 1, 5, 1));\n getContentPane().add(jSpinner1, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 430, 70, 30));\n\n jLabelCajeros.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabelCajeros.setForeground(new java.awt.Color(153, 0, 0));\n jLabelCajeros.setText(\"Número de Cajeros:\");\n getContentPane().add(jLabelCajeros, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 410, -1, -1));\n\n jButton1Start.setText(\"Start\");\n jButton1Start.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1StartActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1Start, new org.netbeans.lib.awtextra.AbsoluteConstraints(640, 440, -1, -1));\n\n jLabel1Fondo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/background1.jpg\"))); // NOI18N\n getContentPane().add(jLabel1Fondo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 804, 488));\n\n pack();\n }", "public JDialogParticleAnalysisNew() { }", "private void srediFormu() {\n List<PoslovniPartner> lpp = new ArrayList<>();\n try {\n lpp = Kontroler.vratiInstancu().vratiPoslovnePartnere();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<NačinPlaćanja> lnp = new ArrayList<>();\n try {\n lnp = Kontroler.vratiInstancu().vratiNačinePlaćanja();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<Proizvod> lp = new ArrayList<>();\n try {\n lp = Kontroler.vratiInstancu().vratiProizvode();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n jcbPartner.setModel(new DefaultComboBoxModel(lpp.toArray()));\n jcbNačinPlaćanja.setModel(new DefaultComboBoxModel(lnp.toArray()));\n\n Faktura izabranaFaktura = (Faktura) Util.vratiInstancu().vrati(\"izabrana_faktura\");\n if (izabranaFaktura != null) {\n jcbPartner.setSelectedItem(izabranaFaktura.getPoslovniPartner());\n jcbNačinPlaćanja.setSelectedItem(izabranaFaktura.getNačinPlaćanja());\n jtxtNapomena.setText(izabranaFaktura.getNapomena());\n if (izabranaFaktura.getDatumFakturisanja() != null) {\n jtxtDatumFakturisanja.setText(df.format(izabranaFaktura.getDatumFakturisanja()));\n }\n if (izabranaFaktura.getRok() != null) {\n jtxtRok.setText(df.format(izabranaFaktura.getRok()));\n }\n jlbKompletirana.setText(izabranaFaktura.getKompletirana() ? \"(KOMPLETIRANA)\" : \"(DRAFT)\");\n jlblBrojFakture1.setText(izabranaFaktura.getBrojFakture());\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel((izabranaFaktura)));\n Double netoIznos = 0d;\n for (StavkaFakture stavkaFakture : izabranaFaktura.getStavke()) {\n netoIznos += stavkaFakture.getJediničnaCena() * stavkaFakture.getKoličina();\n }\n jtxtNetoVrednost.setText(String.valueOf(Math.round(netoIznos * 1000.0) / 1000.0));\n jbtnKreirajNovuFakturu.setVisible(false);\n jbtnSačuvajFakturu.setText(\"Izmeni fakturu\");\n if (izabranaFaktura.getKompletirana()) {\n enableAllComponents(false);\n jtxtUkupnaVrednost.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanIznos() * 1000) / 1000));\n jtxtPDV.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanPorez() * 1000) / 1000));\n jtxtFakturisao.setText(slavko.baze2.procesnabavke.gui.util.Util.vratiInstancu().vrati(\"prijavljeni_korisnik\").toString());\n }\n Util.vratiInstancu().obriši(\"izabrana_faktura\");\n\n } else {\n jlblBrojFakture1.setText(\"\");\n jlbKompletirana.setVisible(false);\n jcbPartner.setSelectedItem(null);\n jcbNačinPlaćanja.setSelectedItem(null);\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel(new Faktura()));\n jtxtNetoVrednost.setText(\"0.0\");\n enableAllComponents(false);\n }\n\n }", "public Producto_Insertar() {\n initComponents();\n this.setLocationRelativeTo(null);\n setResizable(false);\n actualizarJTabale();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n add1 = new javax.swing.JDialog();\n jPanel2 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jButton6 = new javax.swing.JButton();\n p = new javax.swing.JDialog();\n jPanel3 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jButton7 = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jButton8 = new javax.swing.JButton();\n a = new javax.swing.JDialog();\n jPanel4 = new javax.swing.JPanel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jButton9 = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n jButton10 = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n jButton11 = new javax.swing.JButton();\n Gerente = new javax.swing.JDialog();\n jPanel5 = new javax.swing.JPanel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n nombre = new javax.swing.JTextField();\n usuario = new javax.swing.JTextField();\n id = new javax.swing.JFormattedTextField();\n altura = new javax.swing.JFormattedTextField();\n peso = new javax.swing.JFormattedTextField();\n edad = new javax.swing.JSpinner();\n sexo = new javax.swing.JComboBox<>();\n civil = new javax.swing.JComboBox<>();\n cargo = new javax.swing.JComboBox<>();\n contra = new javax.swing.JPasswordField();\n jButton12 = new javax.swing.JButton();\n Personal = new javax.swing.JDialog();\n jPanel6 = new javax.swing.JPanel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n jLabel32 = new javax.swing.JLabel();\n jLabel33 = new javax.swing.JLabel();\n jLabel34 = new javax.swing.JLabel();\n nombre1 = new javax.swing.JTextField();\n id1 = new javax.swing.JFormattedTextField();\n altura1 = new javax.swing.JFormattedTextField();\n peso1 = new javax.swing.JFormattedTextField();\n edad1 = new javax.swing.JSpinner();\n sexo1 = new javax.swing.JComboBox<>();\n civil1 = new javax.swing.JComboBox<>();\n jButton13 = new javax.swing.JButton();\n jLabel35 = new javax.swing.JLabel();\n ocupacion = new javax.swing.JTextField();\n jLabel36 = new javax.swing.JLabel();\n horario = new javax.swing.JTextField();\n jLabel37 = new javax.swing.JLabel();\n semanas = new javax.swing.JTextField();\n jLabel38 = new javax.swing.JLabel();\n sueldo = new javax.swing.JFormattedTextField();\n Comic = new javax.swing.JDialog();\n jPanel7 = new javax.swing.JPanel();\n jLabel39 = new javax.swing.JLabel();\n jLabel40 = new javax.swing.JLabel();\n titulo = new javax.swing.JTextField();\n jLabel41 = new javax.swing.JLabel();\n desc = new javax.swing.JTextField();\n jLabel42 = new javax.swing.JLabel();\n jLabel43 = new javax.swing.JLabel();\n jLabel44 = new javax.swing.JLabel();\n jLabel45 = new javax.swing.JLabel();\n jLabel46 = new javax.swing.JLabel();\n jLabel47 = new javax.swing.JLabel();\n color = new javax.swing.JTextField();\n size = new javax.swing.JComboBox<>();\n punt = new javax.swing.JSpinner();\n ingreso = new javax.swing.JComboBox<>();\n escala = new javax.swing.JSpinner();\n volumen = new javax.swing.JSpinner();\n jButton14 = new javax.swing.JButton();\n Juego = new javax.swing.JDialog();\n jPanel8 = new javax.swing.JPanel();\n jLabel48 = new javax.swing.JLabel();\n jLabel49 = new javax.swing.JLabel();\n titulo1 = new javax.swing.JTextField();\n jLabel50 = new javax.swing.JLabel();\n desc1 = new javax.swing.JTextField();\n jLabel51 = new javax.swing.JLabel();\n jLabel52 = new javax.swing.JLabel();\n jLabel53 = new javax.swing.JLabel();\n jLabel54 = new javax.swing.JLabel();\n jLabel55 = new javax.swing.JLabel();\n jLabel56 = new javax.swing.JLabel();\n color1 = new javax.swing.JTextField();\n size1 = new javax.swing.JComboBox<>();\n punt1 = new javax.swing.JSpinner();\n ingreso1 = new javax.swing.JComboBox<>();\n edicion = new javax.swing.JSpinner();\n jButton15 = new javax.swing.JButton();\n casa = new javax.swing.JTextField();\n pais = new javax.swing.JTextField();\n jLabel57 = new javax.swing.JLabel();\n Figura = new javax.swing.JDialog();\n jPanel9 = new javax.swing.JPanel();\n jLabel58 = new javax.swing.JLabel();\n jLabel59 = new javax.swing.JLabel();\n titulo2 = new javax.swing.JTextField();\n jLabel60 = new javax.swing.JLabel();\n desc2 = new javax.swing.JTextField();\n jLabel61 = new javax.swing.JLabel();\n jLabel62 = new javax.swing.JLabel();\n jLabel63 = new javax.swing.JLabel();\n jLabel64 = new javax.swing.JLabel();\n jLabel65 = new javax.swing.JLabel();\n jLabel66 = new javax.swing.JLabel();\n color2 = new javax.swing.JTextField();\n size2 = new javax.swing.JComboBox<>();\n punt2 = new javax.swing.JSpinner();\n ingreso2 = new javax.swing.JComboBox<>();\n jButton16 = new javax.swing.JButton();\n ins = new javax.swing.JTextField();\n garantia = new com.toedter.calendar.JDateChooser();\n mod1 = new javax.swing.JDialog();\n jPanel10 = new javax.swing.JPanel();\n jLabel67 = new javax.swing.JLabel();\n jLabel68 = new javax.swing.JLabel();\n jButton17 = new javax.swing.JButton();\n jLabel69 = new javax.swing.JLabel();\n jButton18 = new javax.swing.JButton();\n modPersona = new javax.swing.JDialog();\n jPanel11 = new javax.swing.JPanel();\n mod = new javax.swing.JComboBox<>();\n jLabel70 = new javax.swing.JLabel();\n jLabel71 = new javax.swing.JLabel();\n jLabel72 = new javax.swing.JLabel();\n jLabel73 = new javax.swing.JLabel();\n nombre2 = new javax.swing.JTextField();\n id2 = new javax.swing.JFormattedTextField();\n jButton19 = new javax.swing.JButton();\n jButton20 = new javax.swing.JButton();\n jButton21 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n t1 = new javax.swing.JTable();\n modArticulo = new javax.swing.JDialog();\n jPanel12 = new javax.swing.JPanel();\n modA = new javax.swing.JComboBox<>();\n jLabel74 = new javax.swing.JLabel();\n jLabel75 = new javax.swing.JLabel();\n jLabel77 = new javax.swing.JLabel();\n descr = new javax.swing.JTextField();\n jButton22 = new javax.swing.JButton();\n jButton23 = new javax.swing.JButton();\n jButton24 = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n t2 = new javax.swing.JTable();\n jLabel78 = new javax.swing.JLabel();\n tit1 = new javax.swing.JTextField();\n Chat = new javax.swing.JDialog();\n jPanel13 = new javax.swing.JPanel();\n jLabel76 = new javax.swing.JLabel();\n jLabel79 = new javax.swing.JLabel();\n jLabel80 = new javax.swing.JLabel();\n emisor = new javax.swing.JComboBox<>();\n receptor = new javax.swing.JComboBox<>();\n jLabel81 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jScrollPane3 = new javax.swing.JScrollPane();\n ta1 = new javax.swing.JTextArea();\n jButton25 = new javax.swing.JButton();\n Archivos = new javax.swing.JDialog();\n jPanel14 = new javax.swing.JPanel();\n jLabel82 = new javax.swing.JLabel();\n jScrollPane4 = new javax.swing.JScrollPane();\n ta2 = new javax.swing.JTextArea();\n jButton26 = new javax.swing.JButton();\n jButton27 = new javax.swing.JButton();\n jButton28 = new javax.swing.JButton();\n jButton29 = new javax.swing.JButton();\n jButton30 = new javax.swing.JButton();\n view = new javax.swing.JDialog();\n jPanel15 = new javax.swing.JPanel();\n jLabel83 = new javax.swing.JLabel();\n jLabel84 = new javax.swing.JLabel();\n jButton31 = new javax.swing.JButton();\n jLabel85 = new javax.swing.JLabel();\n jButton32 = new javax.swing.JButton();\n Contactos = new javax.swing.JDialog();\n jPanel16 = new javax.swing.JPanel();\n jLabel86 = new javax.swing.JLabel();\n jScrollPane5 = new javax.swing.JScrollPane();\n t3 = new javax.swing.JTable();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 0, 204));\n jLabel6.setText(\"¿Qué desea Agregar?\");\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/p.png\"))); // NOI18N\n\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton5.setText(\"Persona\");\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton5MouseClicked(evt);\n }\n });\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/product.png\"))); // NOI18N\n\n jButton6.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton6.setText(\"Artículo\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addComponent(jLabel6))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(148, 148, 148)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(129, 129, 129)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(132, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel6)\n .addGap(61, 61, 61)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(138, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout add1Layout = new javax.swing.GroupLayout(add1.getContentPane());\n add1.getContentPane().setLayout(add1Layout);\n add1Layout.setHorizontalGroup(\n add1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n add1Layout.setVerticalGroup(\n add1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel9.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(0, 0, 204));\n jLabel9.setText(\"¿Qué desea Agregar?\");\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/p.png\"))); // NOI18N\n\n jButton7.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton7.setText(\"Personal General\");\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton7MouseClicked(evt);\n }\n });\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/gerente.png\"))); // NOI18N\n\n jButton8.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton8.setText(\"Gerente\");\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton8MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton7))\n .addGap(118, 118, 118)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel9))\n .addContainerGap(92, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addGap(61, 61, 61)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(120, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout pLayout = new javax.swing.GroupLayout(p.getContentPane());\n p.getContentPane().setLayout(pLayout);\n pLayout.setHorizontalGroup(\n pLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n pLayout.setVerticalGroup(\n pLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel12.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(0, 0, 204));\n jLabel12.setText(\"¿Qué desea Agregar?\");\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/comic.png\"))); // NOI18N\n\n jButton9.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton9.setText(\"Comic\");\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton9MouseClicked(evt);\n }\n });\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/game.png\"))); // NOI18N\n\n jButton10.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton10.setText(\"Juego\");\n jButton10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton10MouseClicked(evt);\n }\n });\n\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/figura.png\"))); // NOI18N\n\n jButton11.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton11.setText(\"Figura\");\n jButton11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton11MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(118, 118, 118)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 110, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12)\n .addGap(136, 136, 136))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel12)\n .addGap(60, 60, 60)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(71, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout aLayout = new javax.swing.GroupLayout(a.getContentPane());\n a.getContentPane().setLayout(aLayout);\n aLayout.setHorizontalGroup(\n aLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(aLayout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n aLayout.setVerticalGroup(\n aLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel16.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(51, 0, 204));\n jLabel16.setText(\"Gerente\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(51, 0, 204));\n jLabel17.setText(\"Identificación\");\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(51, 0, 204));\n jLabel18.setText(\"Nombre\");\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(51, 0, 204));\n jLabel19.setText(\"Edad\");\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(51, 0, 204));\n jLabel20.setText(\"Sexo\");\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(51, 0, 204));\n jLabel21.setText(\"Estado Civil\");\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(51, 0, 204));\n jLabel22.setText(\"Altura\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(51, 0, 204));\n jLabel23.setText(\"Peso\");\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(51, 0, 204));\n jLabel24.setText(\"Usuario\");\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel25.setForeground(new java.awt.Color(51, 0, 204));\n jLabel25.setText(\"Contraseña\");\n\n jLabel26.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel26.setForeground(new java.awt.Color(51, 0, 204));\n jLabel26.setText(\"Cargo\");\n\n nombre.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n usuario.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n id.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0\"))));\n id.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n altura.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n altura.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n peso.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n peso.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n edad.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n edad.setModel(new javax.swing.SpinnerNumberModel(18, 18, 99, 1));\n\n sexo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n sexo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Femenino\", \"Masculino\" }));\n\n civil.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n civil.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Casad@\", \"Solter@\", \"Viud@\" }));\n\n cargo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n cargo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Gerente de Planta\", \"Gerente de Sucursal\" }));\n\n contra.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jButton12.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton12.setForeground(new java.awt.Color(51, 0, 204));\n jButton12.setText(\"AGREGAR\");\n jButton12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton12MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(85, 85, 85)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(sexo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nombre)\n .addComponent(id, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)\n .addComponent(edad, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(altura)\n .addComponent(peso)\n .addComponent(civil, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(usuario)\n .addComponent(contra)\n .addComponent(cargo, 0, 278, Short.MAX_VALUE))))\n .addGap(269, 269, 269))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(254, 254, 254)\n .addComponent(jLabel16))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(290, 290, 290)\n .addComponent(jButton12)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel16)\n .addGap(29, 29, 29)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel17)\n .addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel19))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(edad, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(33, 33, 33)\n .addComponent(jLabel20))\n .addComponent(sexo, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel21)\n .addComponent(civil, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(altura, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel23)\n .addComponent(peso, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel25)\n .addComponent(contra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(cargo, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 57, Short.MAX_VALUE)\n .addComponent(jButton12)\n .addGap(30, 30, 30))\n );\n\n javax.swing.GroupLayout GerenteLayout = new javax.swing.GroupLayout(Gerente.getContentPane());\n Gerente.getContentPane().setLayout(GerenteLayout);\n GerenteLayout.setHorizontalGroup(\n GerenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 704, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n GerenteLayout.setVerticalGroup(\n GerenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel27.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel27.setForeground(new java.awt.Color(51, 0, 204));\n jLabel27.setText(\"Personal General\");\n\n jLabel28.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(51, 0, 204));\n jLabel28.setText(\"Identificación\");\n\n jLabel29.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(51, 0, 204));\n jLabel29.setText(\"Nombre\");\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(51, 0, 204));\n jLabel30.setText(\"Edad\");\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel31.setForeground(new java.awt.Color(51, 0, 204));\n jLabel31.setText(\"Sexo\");\n\n jLabel32.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel32.setForeground(new java.awt.Color(51, 0, 204));\n jLabel32.setText(\"Estado Civil\");\n\n jLabel33.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel33.setForeground(new java.awt.Color(51, 0, 204));\n jLabel33.setText(\"Altura\");\n\n jLabel34.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel34.setForeground(new java.awt.Color(51, 0, 204));\n jLabel34.setText(\"Peso\");\n\n nombre1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n id1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0\"))));\n id1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n altura1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n altura1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n peso1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n peso1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n edad1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n edad1.setModel(new javax.swing.SpinnerNumberModel(18, 18, 99, 1));\n\n sexo1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n sexo1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Femenino\", \"Masculino\" }));\n\n civil1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n civil1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Casad@\", \"Solter@\", \"Viud@\" }));\n\n jButton13.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton13.setForeground(new java.awt.Color(51, 0, 204));\n jButton13.setText(\"AGREGAR\");\n jButton13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton13MouseClicked(evt);\n }\n });\n\n jLabel35.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel35.setForeground(new java.awt.Color(51, 0, 204));\n jLabel35.setText(\"Ocupación\");\n\n ocupacion.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel36.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel36.setForeground(new java.awt.Color(51, 0, 204));\n jLabel36.setText(\"Horario\");\n\n horario.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel37.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel37.setForeground(new java.awt.Color(51, 0, 204));\n jLabel37.setText(\"Semanas Trabajadas\");\n\n semanas.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel38.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel38.setForeground(new java.awt.Color(51, 0, 204));\n jLabel38.setText(\"Sueldo\");\n\n sueldo.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0.00\"))));\n sueldo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(153, 153, 153)\n .addComponent(jLabel27))\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(288, 288, 288)\n .addComponent(jButton13)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(85, 85, 85)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(semanas)\n .addComponent(horario)\n .addComponent(ocupacion)\n .addComponent(sexo1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nombre1)\n .addComponent(id1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)\n .addComponent(edad1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(altura1, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(peso1, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(civil1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(sueldo))\n .addGap(269, 269, 269))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel27)\n .addGap(35, 35, 35)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel28)\n .addComponent(id1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel29)\n .addComponent(nombre1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel30))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(edad1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(33, 33, 33)\n .addComponent(jLabel31))\n .addComponent(sexo1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel32)\n .addComponent(civil1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel33)\n .addComponent(altura1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel34)\n .addComponent(peso1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel35)\n .addComponent(ocupacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel36)\n .addComponent(horario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel37)\n .addComponent(semanas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel38)\n .addComponent(sueldo, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, Short.MAX_VALUE)\n .addComponent(jButton13)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout PersonalLayout = new javax.swing.GroupLayout(Personal.getContentPane());\n Personal.getContentPane().setLayout(PersonalLayout);\n PersonalLayout.setHorizontalGroup(\n PersonalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 704, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n PersonalLayout.setVerticalGroup(\n PersonalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PersonalLayout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel39.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel39.setForeground(new java.awt.Color(51, 0, 204));\n jLabel39.setText(\"Comic\");\n\n jLabel40.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel40.setForeground(new java.awt.Color(51, 0, 204));\n jLabel40.setText(\"Titulo\");\n\n titulo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel41.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel41.setForeground(new java.awt.Color(51, 0, 204));\n jLabel41.setText(\"Descripcion\");\n\n desc.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel42.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel42.setForeground(new java.awt.Color(51, 0, 204));\n jLabel42.setText(\"Color\");\n\n jLabel43.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel43.setForeground(new java.awt.Color(51, 0, 204));\n jLabel43.setText(\"Tamaño\");\n\n jLabel44.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel44.setForeground(new java.awt.Color(51, 0, 204));\n jLabel44.setText(\"Puntuacion\");\n\n jLabel45.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel45.setForeground(new java.awt.Color(51, 0, 204));\n jLabel45.setText(\"Ingresado por\");\n\n jLabel46.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel46.setForeground(new java.awt.Color(51, 0, 204));\n jLabel46.setText(\"Volumen\");\n\n jLabel47.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel47.setForeground(new java.awt.Color(51, 0, 204));\n jLabel47.setText(\"Escala\");\n\n color.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n colorMouseClicked(evt);\n }\n });\n\n size.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pequeño\", \"Mediano\", \"Grande\" }));\n\n punt.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n punt.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n ingreso.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n escala.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n escala.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n volumen.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n volumen.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n jButton14.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton14.setForeground(new java.awt.Color(51, 0, 204));\n jButton14.setText(\"AGREGAR\");\n jButton14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton14MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap(88, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel41, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel42, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel43)\n .addComponent(jLabel44)\n .addComponent(jLabel45)\n .addComponent(jLabel46)\n .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(86, 86, 86)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ingreso, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(punt, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(volumen, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(escala, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(desc, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)\n .addComponent(color)\n .addComponent(size, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addComponent(titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2))))\n .addGap(112, 112, 112))\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(269, 269, 269)\n .addComponent(jLabel39, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(320, 320, 320)\n .addComponent(jButton14)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(jLabel39)\n .addGap(41, 41, 41)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(titulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(desc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel41))\n .addGap(18, 18, 18)\n .addComponent(color, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jLabel40)\n .addGap(77, 77, 77)\n .addComponent(jLabel42)))\n .addGap(31, 31, 31)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(size, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(punt, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel44))\n .addGap(23, 23, 23)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ingreso, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel45)))\n .addComponent(jLabel43))\n .addGap(40, 40, 40)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(volumen, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel46))\n .addGap(40, 40, 40)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel47)\n .addComponent(escala, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 53, Short.MAX_VALUE)\n .addComponent(jButton14)\n .addGap(31, 31, 31))\n );\n\n javax.swing.GroupLayout ComicLayout = new javax.swing.GroupLayout(Comic.getContentPane());\n Comic.getContentPane().setLayout(ComicLayout);\n ComicLayout.setHorizontalGroup(\n ComicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n ComicLayout.setVerticalGroup(\n ComicLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel48.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel48.setForeground(new java.awt.Color(51, 0, 204));\n jLabel48.setText(\"Juego\");\n\n jLabel49.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel49.setForeground(new java.awt.Color(51, 0, 204));\n jLabel49.setText(\"Titulo\");\n\n titulo1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel50.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel50.setForeground(new java.awt.Color(51, 0, 204));\n jLabel50.setText(\"Descripcion\");\n\n desc1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel51.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel51.setForeground(new java.awt.Color(51, 0, 204));\n jLabel51.setText(\"Color\");\n\n jLabel52.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel52.setForeground(new java.awt.Color(51, 0, 204));\n jLabel52.setText(\"Tamaño\");\n\n jLabel53.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel53.setForeground(new java.awt.Color(51, 0, 204));\n jLabel53.setText(\"Puntuacion\");\n\n jLabel54.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel54.setForeground(new java.awt.Color(51, 0, 204));\n jLabel54.setText(\"Ingresado por\");\n\n jLabel55.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel55.setForeground(new java.awt.Color(51, 0, 204));\n jLabel55.setText(\"Edicion\");\n\n jLabel56.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel56.setForeground(new java.awt.Color(51, 0, 204));\n jLabel56.setText(\"Casa de Elaboracion\");\n\n color1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n color1MouseClicked(evt);\n }\n });\n\n size1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n size1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pequeño\", \"Mediano\", \"Grande\" }));\n\n punt1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n punt1.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n ingreso1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n edicion.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n edicion.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n jButton15.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton15.setForeground(new java.awt.Color(51, 0, 204));\n jButton15.setText(\"AGREGAR\");\n jButton15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton15MouseClicked(evt);\n }\n });\n\n casa.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n pais.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel57.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel57.setForeground(new java.awt.Color(51, 0, 204));\n jLabel57.setText(\"Pais\");\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel52)\n .addComponent(jLabel53)\n .addComponent(jLabel54)\n .addComponent(jLabel55)\n .addComponent(jLabel56)\n .addComponent(jLabel57))\n .addGap(77, 77, 77)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ingreso1, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(punt1, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(edicion, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(casa, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(desc1)\n .addComponent(color1)\n .addComponent(size1, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addComponent(titulo1, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)))))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(251, 251, 251)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel48, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton15))))\n .addContainerGap(28, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(jLabel48)\n .addGap(40, 40, 40)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(titulo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(desc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel50))\n .addGap(18, 18, 18)\n .addComponent(color1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jLabel49)\n .addGap(77, 77, 77)\n .addComponent(jLabel51)))\n .addGap(31, 31, 31)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(size1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(punt1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel53))\n .addGap(23, 23, 23)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ingreso1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel54)))\n .addComponent(jLabel52))\n .addGap(40, 40, 40)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(edicion, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel55))\n .addGap(37, 37, 37)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel56)\n .addComponent(casa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel57))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)\n .addComponent(jButton15)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout JuegoLayout = new javax.swing.GroupLayout(Juego.getContentPane());\n Juego.getContentPane().setLayout(JuegoLayout);\n JuegoLayout.setHorizontalGroup(\n JuegoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n JuegoLayout.setVerticalGroup(\n JuegoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel58.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel58.setForeground(new java.awt.Color(51, 0, 204));\n jLabel58.setText(\"Figura\");\n\n jLabel59.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel59.setForeground(new java.awt.Color(51, 0, 204));\n jLabel59.setText(\"Titulo\");\n\n titulo2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel60.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel60.setForeground(new java.awt.Color(51, 0, 204));\n jLabel60.setText(\"Descripcion\");\n\n desc2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel61.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel61.setForeground(new java.awt.Color(51, 0, 204));\n jLabel61.setText(\"Color\");\n\n jLabel62.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel62.setForeground(new java.awt.Color(51, 0, 204));\n jLabel62.setText(\"Tamaño\");\n\n jLabel63.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel63.setForeground(new java.awt.Color(51, 0, 204));\n jLabel63.setText(\"Puntuacion\");\n\n jLabel64.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel64.setForeground(new java.awt.Color(51, 0, 204));\n jLabel64.setText(\"Ingresado por\");\n\n jLabel65.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel65.setForeground(new java.awt.Color(51, 0, 204));\n jLabel65.setText(\"Instrucciones\");\n\n jLabel66.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel66.setForeground(new java.awt.Color(51, 0, 204));\n jLabel66.setText(\"Garantía\");\n\n color2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n color2MouseClicked(evt);\n }\n });\n\n size2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n size2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pequeño\", \"Mediano\", \"Grande\" }));\n\n punt2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n punt2.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));\n\n ingreso2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jButton16.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton16.setForeground(new java.awt.Color(51, 0, 204));\n jButton16.setText(\"AGREGAR\");\n jButton16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton16MouseClicked(evt);\n }\n });\n\n ins.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel60, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel59, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel61, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel62)\n .addComponent(jLabel63)\n .addComponent(jLabel64)\n .addComponent(jLabel65)\n .addComponent(jLabel66, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(86, 86, 86)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(desc2, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)\n .addComponent(color2)\n .addComponent(size2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addComponent(titulo2, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(garantia, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ingreso2, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(punt2, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ins, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(112, 112, 112))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(269, 269, 269)\n .addComponent(jLabel58, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(250, 250, 250)\n .addComponent(jButton16)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(jLabel58)\n .addGap(41, 41, 41)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(titulo2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(desc2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel60))\n .addGap(18, 18, 18)\n .addComponent(color2, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel59)\n .addGap(77, 77, 77)\n .addComponent(jLabel61)))\n .addGap(31, 31, 31)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(size2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(punt2, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel63))\n .addGap(23, 23, 23)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ingreso2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel64)))\n .addComponent(jLabel62))\n .addGap(37, 37, 37)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel65)\n .addComponent(ins, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel66)\n .addComponent(garantia, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 65, Short.MAX_VALUE)\n .addComponent(jButton16)\n .addGap(27, 27, 27))\n );\n\n javax.swing.GroupLayout FiguraLayout = new javax.swing.GroupLayout(Figura.getContentPane());\n Figura.getContentPane().setLayout(FiguraLayout);\n FiguraLayout.setHorizontalGroup(\n FiguraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n FiguraLayout.setVerticalGroup(\n FiguraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel67.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel67.setForeground(new java.awt.Color(0, 0, 204));\n jLabel67.setText(\"¿Qué desea Modificar?\");\n\n jLabel68.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/p.png\"))); // NOI18N\n\n jButton17.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton17.setText(\"Persona\");\n jButton17.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton17MouseClicked(evt);\n }\n });\n\n jLabel69.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/product.png\"))); // NOI18N\n\n jButton18.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton18.setText(\"Artículo\");\n jButton18.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton18MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addComponent(jLabel67))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(148, 148, 148)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel68, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(129, 129, 129)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel69, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(126, Short.MAX_VALUE))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel67)\n .addGap(61, 61, 61)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel68, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel69, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(55, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout mod1Layout = new javax.swing.GroupLayout(mod1.getContentPane());\n mod1.getContentPane().setLayout(mod1Layout);\n mod1Layout.setHorizontalGroup(\n mod1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mod1Layout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n mod1Layout.setVerticalGroup(\n mod1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mod1Layout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel11.setBackground(new java.awt.Color(255, 255, 255));\n\n mod.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n mod.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n modItemStateChanged(evt);\n }\n });\n\n jLabel70.setFont(new java.awt.Font(\"Segoe UI\", 3, 36)); // NOI18N\n jLabel70.setForeground(new java.awt.Color(51, 0, 204));\n jLabel70.setText(\"Seleccione una Persona\");\n\n jLabel71.setFont(new java.awt.Font(\"Segoe UI\", 3, 36)); // NOI18N\n jLabel71.setForeground(new java.awt.Color(51, 0, 204));\n jLabel71.setText(\"Persona Seleccionada\");\n\n jLabel72.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel72.setForeground(new java.awt.Color(51, 0, 204));\n jLabel72.setText(\"Identificación\");\n\n jLabel73.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel73.setForeground(new java.awt.Color(51, 0, 204));\n jLabel73.setText(\"Nombre\");\n\n nombre2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n id2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0\"))));\n id2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jButton19.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton19.setForeground(new java.awt.Color(51, 0, 204));\n jButton19.setText(\"Listar\");\n jButton19.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton19MouseClicked(evt);\n }\n });\n\n jButton20.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton20.setForeground(new java.awt.Color(51, 0, 204));\n jButton20.setText(\"Modificar\");\n jButton20.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton20MouseClicked(evt);\n }\n });\n\n jButton21.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton21.setForeground(new java.awt.Color(51, 0, 204));\n jButton21.setText(\"Eliminar\");\n jButton21.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton21MouseClicked(evt);\n }\n });\n\n t1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Nombre\", \"Edad\", \"Sexo\", \"EstadoCivil\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(t1);\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel70)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel71)\n .addGap(135, 135, 135))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton20)\n .addGap(67, 67, 67)\n .addComponent(jButton21))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(83, 83, 83)\n .addComponent(mod, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel72, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel73, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton19))\n .addGap(85, 85, 85)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nombre2)\n .addComponent(id2, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(54, 54, 54))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1099, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(26, Short.MAX_VALUE))\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel70)\n .addComponent(jLabel71))\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(mod, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel72)\n .addComponent(id2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel73)\n .addComponent(nombre2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(47, 47, 47)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton19)\n .addComponent(jButton20)\n .addComponent(jButton21))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(59, 59, 59))\n );\n\n javax.swing.GroupLayout modPersonaLayout = new javax.swing.GroupLayout(modPersona.getContentPane());\n modPersona.getContentPane().setLayout(modPersonaLayout);\n modPersonaLayout.setHorizontalGroup(\n modPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n modPersonaLayout.setVerticalGroup(\n modPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel12.setBackground(new java.awt.Color(255, 255, 255));\n\n modA.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n modA.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n modAItemStateChanged(evt);\n }\n });\n\n jLabel74.setFont(new java.awt.Font(\"Segoe UI\", 3, 36)); // NOI18N\n jLabel74.setForeground(new java.awt.Color(51, 0, 204));\n jLabel74.setText(\"Seleccione un Artículo\");\n\n jLabel75.setFont(new java.awt.Font(\"Segoe UI\", 3, 36)); // NOI18N\n jLabel75.setForeground(new java.awt.Color(51, 0, 204));\n jLabel75.setText(\"Artículo Seleccionado\");\n\n jLabel77.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel77.setForeground(new java.awt.Color(51, 0, 204));\n jLabel77.setText(\"Descripcion\");\n\n descr.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jButton22.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton22.setForeground(new java.awt.Color(51, 0, 204));\n jButton22.setText(\"Listar\");\n jButton22.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton22MouseClicked(evt);\n }\n });\n\n jButton23.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton23.setForeground(new java.awt.Color(51, 0, 204));\n jButton23.setText(\"Modificar\");\n jButton23.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton23MouseClicked(evt);\n }\n });\n\n jButton24.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton24.setForeground(new java.awt.Color(51, 0, 204));\n jButton24.setText(\"Eliminar\");\n jButton24.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton24MouseClicked(evt);\n }\n });\n\n t2.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Titulo\", \"Descripcion\", \"Tamaño\", \"Puntuacion\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane2.setViewportView(t2);\n\n jLabel78.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel78.setForeground(new java.awt.Color(51, 0, 204));\n jLabel78.setText(\"Titulo\");\n\n tit1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel74)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel75)\n .addGap(135, 135, 135))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton23)\n .addGap(67, 67, 67)\n .addComponent(jButton24))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(83, 83, 83)\n .addComponent(modA, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel77)\n .addComponent(jButton22))\n .addGap(111, 111, 111)\n .addComponent(descr, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel78, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(111, 111, 111)\n .addComponent(tit1, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(54, 54, 54))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 1099, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel74)\n .addComponent(jLabel75))\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(modA, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel78)\n .addComponent(tit1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel77)\n .addComponent(descr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(47, 47, 47)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton22)\n .addComponent(jButton23)\n .addComponent(jButton24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(59, 59, 59))\n );\n\n javax.swing.GroupLayout modArticuloLayout = new javax.swing.GroupLayout(modArticulo.getContentPane());\n modArticulo.getContentPane().setLayout(modArticuloLayout);\n modArticuloLayout.setHorizontalGroup(\n modArticuloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n modArticuloLayout.setVerticalGroup(\n modArticuloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel13.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel76.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel76.setForeground(new java.awt.Color(51, 0, 204));\n jLabel76.setText(\"Chats\");\n\n jLabel79.setFont(new java.awt.Font(\"Tahoma\", 3, 24)); // NOI18N\n jLabel79.setForeground(new java.awt.Color(51, 0, 204));\n jLabel79.setText(\"Seleccionar Emisor\");\n\n jLabel80.setFont(new java.awt.Font(\"Tahoma\", 3, 24)); // NOI18N\n jLabel80.setForeground(new java.awt.Color(51, 0, 204));\n jLabel80.setText(\"Seleccionar Receptor\");\n\n emisor.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n receptor.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n\n jLabel81.setFont(new java.awt.Font(\"Tahoma\", 3, 24)); // NOI18N\n jLabel81.setForeground(new java.awt.Color(51, 0, 204));\n jLabel81.setText(\"Mensaje\");\n\n jSeparator1.setForeground(new java.awt.Color(51, 0, 204));\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n jSeparator1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(51, 0, 204), 5));\n\n ta1.setColumns(20);\n ta1.setFont(new java.awt.Font(\"Segoe UI\", 1, 18)); // NOI18N\n ta1.setRows(5);\n jScrollPane3.setViewportView(ta1);\n\n jButton25.setFont(new java.awt.Font(\"Tahoma\", 1, 22)); // NOI18N\n jButton25.setForeground(new java.awt.Color(51, 0, 204));\n jButton25.setText(\"Enviar Mensaje\");\n jButton25.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton25MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton25)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel76)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel80, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel79, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(45, 45, 45)\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(receptor, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(emisor, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(31, 31, 31)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel81, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(135, 135, 135))))\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel76)\n .addGap(53, 53, 53)\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel79)\n .addComponent(emisor, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(106, 106, 106)\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel80)\n .addComponent(receptor, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 267, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(jLabel81)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)\n .addGap(17, 17, 17)))\n .addGap(39, 39, 39)))\n .addComponent(jButton25, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27))\n );\n\n javax.swing.GroupLayout ChatLayout = new javax.swing.GroupLayout(Chat.getContentPane());\n Chat.getContentPane().setLayout(ChatLayout);\n ChatLayout.setHorizontalGroup(\n ChatLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n ChatLayout.setVerticalGroup(\n ChatLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel14.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel82.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel82.setForeground(new java.awt.Color(51, 0, 204));\n jLabel82.setText(\"Historial de Mensajes\");\n\n ta2.setColumns(20);\n ta2.setFont(new java.awt.Font(\"Rockwell\", 0, 18)); // NOI18N\n ta2.setRows(5);\n jScrollPane4.setViewportView(ta2);\n\n jButton26.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton26.setText(\"Mostrar Mensajes anteriores\");\n jButton26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton26MouseClicked(evt);\n }\n });\n\n jButton27.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton27.setText(\"Mostrar Mensajes Nuevos\");\n jButton27.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton27MouseClicked(evt);\n }\n });\n\n jButton28.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton28.setText(\"Limpiar Área\");\n jButton28.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton28MouseClicked(evt);\n }\n });\n\n jButton29.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton29.setText(\"Eliminar Mensaje \");\n jButton29.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton29MouseClicked(evt);\n }\n });\n\n jButton30.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton30.setText(\"Guardar Nuevos Mensajes\");\n jButton30.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton30MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel82)\n .addGap(237, 237, 237))\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addGap(158, 158, 158)\n .addComponent(jButton27)\n .addGap(142, 142, 142)\n .addComponent(jButton29))\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addComponent(jButton26)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton28)\n .addGap(90, 90, 90)\n .addComponent(jButton30))\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 915, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(31, Short.MAX_VALUE))\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel82)\n .addGap(30, 30, 30)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 416, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton26)\n .addComponent(jButton28)\n .addComponent(jButton30))\n .addGap(43, 43, 43)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton27)\n .addComponent(jButton29))\n .addContainerGap(54, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout ArchivosLayout = new javax.swing.GroupLayout(Archivos.getContentPane());\n Archivos.getContentPane().setLayout(ArchivosLayout);\n ArchivosLayout.setHorizontalGroup(\n ArchivosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n ArchivosLayout.setVerticalGroup(\n ArchivosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel15.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel83.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel83.setForeground(new java.awt.Color(0, 0, 204));\n jLabel83.setText(\"¿Qué desea Visualizar?\");\n\n jLabel84.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/p.png\"))); // NOI18N\n\n jButton31.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton31.setText(\"Contactos\");\n jButton31.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton31MouseClicked(evt);\n }\n });\n\n jLabel85.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/chat.png\"))); // NOI18N\n\n jButton32.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton32.setText(\"Mensajes Guardados en Archivos\");\n jButton32.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton32MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(125, 125, 125)\n .addComponent(jLabel83)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(148, 148, 148)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel84, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton31, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 86, Short.MAX_VALUE)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()\n .addComponent(jButton32, javax.swing.GroupLayout.PREFERRED_SIZE, 343, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(76, 76, 76))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()\n .addComponent(jLabel85, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(160, 160, 160))))\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel83)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(61, 61, 61)\n .addComponent(jLabel84, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel85, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton31, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton32, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(80, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout viewLayout = new javax.swing.GroupLayout(view.getContentPane());\n view.getContentPane().setLayout(viewLayout);\n viewLayout.setHorizontalGroup(\n viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(viewLayout.createSequentialGroup()\n .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n viewLayout.setVerticalGroup(\n viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jPanel16.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel86.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel86.setForeground(new java.awt.Color(0, 0, 204));\n jLabel86.setText(\"Lista de Contactos\");\n\n t3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n t3.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Identificacion\", \"Nombre\", \"Cargo\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane5.setViewportView(t3);\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGap(170, 170, 170)\n .addComponent(jLabel86)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()\n .addContainerGap(81, Short.MAX_VALUE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 602, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(72, 72, 72))\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel86)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 395, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(49, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout ContactosLayout = new javax.swing.GroupLayout(Contactos.getContentPane());\n Contactos.getContentPane().setLayout(ContactosLayout);\n ContactosLayout.setHorizontalGroup(\n ContactosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n ContactosLayout.setVerticalGroup(\n ContactosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 3, 48)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 0, 204));\n jLabel1.setText(\"GeekLandia\");\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/add11.png\"))); // NOI18N\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton1.setText(\"Agregar\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton2.setText(\"Modificar\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/edit.png\"))); // NOI18N\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton3.setText(\"Visualizar\");\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton3MouseClicked(evt);\n }\n });\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/list11.png\"))); // NOI18N\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jButton4.setText(\"Chats\");\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton4MouseClicked(evt);\n }\n });\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/examen1_ronalzuniga/chat.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(212, 212, 212))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(134, 134, 134)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 133, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(117, 117, 117))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel1)\n .addGap(45, 45, 45)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(119, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public FrmImprimirEtiqueta(java.awt.Frame parent, boolean modal, Produto produto) {\n super(parent, modal);\n initComponents();\n \n BufferedImage image = null;\n try {\n image = ImageIO.read(this.getClass().getResource(\"/images/printer.png\"));\n } catch (IOException e) {\n \n }\n this.setIconImage(image); \n \n try {\n Horus.atualizarComboBox(cbProdutos, ManterProdutoController.getInstance().getProdutos());\n } catch (Exception e){\n JOptionPane.showMessageDialog(null, \"Erro ao carregar Produtos!\");\n } \n \n spQtd.setValue(1);\n \n if (produto!=null){\n int achou = 0;\n for (int i=1;i<cbProdutos.getItemCount();i++){\n if (((Produto)(cbProdutos.getItemAt(i))).getId().equals(produto.getId())){\n cbProdutos.setSelectedIndex(i);\n achou =1;\n break;\n }\n }\n \n if (achou==1){\n txtDescricao.setText(produto.getNome());\n txtPreco.setText(NumberFormat.getCurrencyInstance().format(produto.getValorSaida()));\n }\n }\n }", "public frmTaquilla() {\n initComponents();\n \n objSalaSecundaria.setCapacidad(250);\n objSalaSecundaria.setPrecioEntrada(180.0);//esto equivale a asignar los valores a través de de los metodos set\n libres1.setText(\"LIBRES \" + objSalaCentral.getCapacidad());\n }", "protected abstract JDialog createDialog();", "private FenetreCreation() {\n\t\tsuper(\"Machine de Turing - Creation\");\n\t\tsetSize(1000, 450);\n\t\tsetLocation(100, 100);\n\t\tsetResizable(false);\n\t\t//Pas possible de fermer par le bouton fermer de fenetre\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\t\n\t\t//Initialisation de toutes les composantes\n\t\tlabelEtat = new JLabel(\"Etats :\");\n\t\tlabelSym = new JLabel(\"Symboles :\");\n\t\tlabelConsigne = new JLabel(\"<html>Le premier etat ajoute sera l'etat initial.<br>\"\n\t\t\t\t+ \"# signifie des cases vides.<br>\"\n\t\t\t\t+ \"Pas d'espace pour des symboles et etats.</html>\");\n\n\t\tok = new JButton(\"OK\");\n\t\tannuler = new JButton(\"Annuler\");\n\t\tajoutEtat = new JButton(\"+\");\n\t\tsuppEtat = new JButton(\"-\");\n\t\tajoutSym = new JButton(\"+\");\n\t\tsuppSym = new JButton(\"-\");\n\n\t\ttextEtat = new JTextField();\n\t\ttextSym = new JTextField();\n\n\t\tmodelEtat = new DefaultListModel<String>();\n\t\tetats = new JList<String>(modelEtat);\n\t\tetats.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tetats.setVisibleRowCount(10);\n\t\tscrollEtat = new JScrollPane(etats);\n\n\t\tmodelSym = new DefaultListModel<String>();\n\t\tsymboles = new JList<String>(modelSym);\n\t\tsymboles.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tsymboles.setVisibleRowCount(10);\n\t\tscrollSym = new JScrollPane(symboles);\n\n\t\tselSym = new JComboBox<String>();\n\t\tselEtat = new JComboBox<String>();\n\t\tselDeplace = new JComboBox<String>();\n\t\t//ajouter l'etat finale et symbole speciale pour simuler ruban infini\n\t\tselEtat.addItem(\"eFinale\");\n\t\tselSym.addItem(\"#\");\n\t\t//etiquettes de deplacement\n\t\tselDeplace.addItem(\"Gauche\");\n\t\tselDeplace.addItem(\"Droite\");\n\t\tselDeplace.addItem(\"Statique\");\n\n\t\ttabModel = new HashMap<String, DefaultTableModel>();\n\t\tString[] colId = {\"Etat\", \"Vue\", \"Changer à\", \"Prochain Etat\", \"Deplacement\"};\n\t\temptyMod = new DefaultTableModel(0, 5);\n\t\temptyMod.setColumnIdentifiers(colId);\n\t\ttab = new JTable(emptyMod);\n\t\tscrollTab = new JScrollPane(tab);\n\n\t\ttabSym = new ArrayList<String>();\n\t\ttabEtat = new ArrayList<String>();\n\t\t\n\t\t//rendre visible symbole speciale a l'initialisation\n\t\ttabSym.add(\"#\");\n\t\tmodelSym.addElement(\"#\");\n\t\t\n\t\t//ajout de fonctionnement des boutons\n\t\tajoutEtat.addActionListener(e -> {\n\t\t\tString data = textEtat.getText();\n\t\t\tif (!modelEtat.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"eFinale\")) {\n\t\t\t\tmodelEtat.addElement(data);\n\t\t\t\ttabEtat.add(data);\n\t\t\t\ttabModel.put(data, new DefaultTableModel(0, 4) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\treturn !(column == 0 || column == 1);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\ttabModel.get(data).setColumnIdentifiers(colId);\n\t\t\t\ttabModel.get(data).addRow(new Object[]{data, \"\", \"\", \"\", \"\"});\n\t\t\t\tfor (int i = 0; i < modelSym.size(); i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\ttabModel.get(data).setValueAt(modelSym.get(i), i, 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttabModel.get(data).addRow(new Object[]{\"\", modelSym.get(i), \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselEtat.addItem(data);\n\t\t\t}\n\t\t\ttextEtat.setText(null);\n\t\t});\n\n\t\tsuppEtat.addActionListener(e -> {\n\t\t\tint index = etats.getSelectedIndex();\n\t\t\tif (index != -1) {\n\t\t\t\tString data = etats.getSelectedValue();\n\t\t\t\tmodelEtat.remove(index);\n\t\t\t\ttabEtat.remove(index);\n\t\t\t\ttabModel.remove(data);\n\t\t\t\tselEtat.removeItem(data);\n\t\t\t}\n\t\t});\n\n\t\tajoutSym.addActionListener(e -> {\n\t\t\tString data = textSym.getText();\n\t\t\tif (!modelSym.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"#\")) {\n\t\t\t\tmodelSym.addElement(data);\n\t\t\t\ttabSym.add(data);\n\t\t\t\tif (modelSym.size() == 1) {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).setValueAt(data, 0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).addRow(new Object[]{\"\", data, \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselSym.addItem(data);\n\t\t\t}\n\t\t\ttextSym.setText(null);\n\t\t});\n\n\t\tsuppSym.addActionListener(e -> {\n\t\t\tint index = symboles.getSelectedIndex();\n\t\t\tif (index != -1 && !modelSym.getElementAt(index).equals(\"#\")) {\n\t\t\t\tselSym.removeItem(modelSym.getElementAt(index));\n\t\t\t\ttabSym.remove(index);\n\t\t\t\tmodelSym.remove(index);\n\t\t\t\tfor (DefaultTableModel d : tabModel.values()) {\n\t\t\t\t\td.removeRow(index);\n\t\t\t\t\tif (index == 0 && d.getRowCount() == 0) {\n\t\t\t\t\t\td.addRow(new Object[]{etats.getSelectedValue(), \"\", \"\", \"\", \"\"});\n\t\t\t\t\t} else if (index == 0) {\n\t\t\t\t\t\td.setValueAt(etats.getSelectedValue(), 0, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//seul moyen de fermer la fenetre\n\t\tannuler.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tbarrier.await();\n\t\t\t} catch (Exception ex) {\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t});\n\t\t\n\t\t//finaliser les parametres d'entree pour la creation\n\t\t//verification qu'aucun champ n'est null, sinon erreur\n\t\tok.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tif (tabEtat.isEmpty() || tabSym.isEmpty()) {\n\t\t\t\t\tthrow new Exception();\n\t\t\t\t} else {\n\t\t\t\t\ttabAct = new int[tabEtat.size()][tabSym.size()][3];\n\t\t\t\t\tfor (int i = 0; i < tabAct.length; i++) {\n\t\t\t\t\t\tString etat = tabEtat.get(i);\n\t\t\t\t\t\tfor (int j = 0; j < tabAct[i].length; j++) {\n\t\t\t\t\t\t\tString newSym = (String) tabModel.get(etat).getValueAt(j, 2);\n\t\t\t\t\t\t\tString newEtat = (String) tabModel.get(etat).getValueAt(j, 3);\n\t\t\t\t\t\t\tString dep = (String) tabModel.get(etat).getValueAt(j, 4);\n\n\t\t\t\t\t\t\tif (newSym == \"\" || newEtat == \"\" || dep == \"\") {\n\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\ttabAct[i][j][0] = tabSym.indexOf(newSym);\n\n\t\t\t\t\t\t\tif (newEtat.equals(\"eFinale\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = tabEtat.indexOf(newEtat);\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif (dep.equals(\"Gauche\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.GAUCHE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Droite\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.DROITE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Statique\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.RESTER;\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\tthis.dispose();\n\t\t\t\t\tmachine = new Turing_Machine(tabAct, tabEtat, tabSym);\n\t\t\t\t\tbarrier.await();\n\t\t\t\t}\n\t\t\t} catch (Exception n) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Veuillez remplir tous les champs de saisie!\", \"\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//changement de tableau par selection d'etat\n\t\tetats.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent evt) {\n\t\t\t\tif (!evt.getValueIsAdjusting()) {\n\t\t\t\t\tif (!modelEtat.isEmpty() && etats.getSelectedIndex() != -1) {\n\t\t\t\t\t\ttab.setModel(tabModel.get(etats.getSelectedValue()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttab.setModel(emptyMod);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttab.getColumnModel().getColumn(2).setCellEditor(new DefaultCellEditor(selSym));\n\t\t\t\ttab.getColumnModel().getColumn(3).setCellEditor(new DefaultCellEditor(selEtat));\n\t\t\t\ttab.getColumnModel().getColumn(4).setCellEditor(new DefaultCellEditor(selDeplace));\n\t\t\t}\n\t\t});\n\t\t\n\t\t//positionnement des composantes\n\t\tentryPanel = new JPanel(new GridBagLayout());\n\t\tmainPanel = new JPanel(new BorderLayout());\n\t\tboutonVal = new JPanel(new GridLayout(1, 2, 0, 0));\n\t\tboutonEtat = new JPanel(new GridLayout(1, 2, 10, 0));\n\t\tboutonSym = new JPanel(new GridLayout(1, 2, 10, 0));\n\n\t\tboutonEtat.add(ajoutEtat);\n\t\tboutonEtat.add(suppEtat);\n\t\tboutonSym.add(ajoutSym);\n\t\tboutonSym.add(suppSym);\n\n\t\tc = new GridBagConstraints();\n\t\tc.gridheight = 1;\n\t\tc.gridwidth = 1;\n\t\tc.insets = new Insets(5, 10, 5, 10);\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\t\n\t\tentryPanel.add(labelConsigne, c);\n\t\t\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.gridwidth = 1;\n\t\tentryPanel.add(labelEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(labelSym, c);\n\n\t\tc.gridy = 3;\n\t\tc.gridx = 0;\n\t\tc.gridwidth = 2;\n\t\tentryPanel.add(boutonEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(boutonSym, c);\n\n\t\tc.gridy = 4;\n\t\tc.gridx = 0;\n\t\tentryPanel.add(textEtat, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollEtat, c);\n\n\t\tc.gridx = 2;\n\t\tc.gridy = 4;\n\t\tentryPanel.add(textSym, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollSym, c);\n\n\t\tboutonVal.add(ok);\n\t\tboutonVal.add(annuler);\n\t\tmainPanel.add(entryPanel, BorderLayout.WEST);\n\t\tmainPanel.add(scrollTab, BorderLayout.EAST);\n\t\tmainPanel.add(boutonVal, BorderLayout.SOUTH);\n\t\tsetContentPane(mainPanel);\n\t\tpack();\n\t\tsetVisible(true);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n harganya = new javax.swing.JTextField();\n judulnya = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jamnya = new javax.swing.JTextField();\n idm = new javax.swing.JTextField();\n stdnya = new javax.swing.JComboBox<>();\n gennya = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(600, 500));\n setPreferredSize(new java.awt.Dimension(600, 500));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel3.setText(\"Studio :\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 130, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel7.setText(\"Harga :\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 210, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel5.setText(\"Genre :\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, -1, -1));\n getContentPane().add(harganya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 210, 406, -1));\n\n judulnya.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n judulnyaActionPerformed(evt);\n }\n });\n getContentPane().add(judulnya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 50, 406, -1));\n\n jLabel8.setText(\"ID Movie :\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n getContentPane().add(jamnya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 90, 406, -1));\n\n idm.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n idmActionPerformed(evt);\n }\n });\n getContentPane().add(idm, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 20, 406, -1));\n\n stdnya.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n stdnya.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"\", \"1\", \"2\", \"3\", \"4\" }));\n getContentPane().add(stdnya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 130, 406, -1));\n getContentPane().add(gennya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 170, 406, -1));\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel1.setText(\"Judul :\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 72, 20));\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel2.setText(\"Jam Tayang :\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 90, -1, -1));\n\n jButton1.setText(\"Kembali\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 310, 90, 30));\n\n jButton2.setText(\"Simpan\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 250, 78, 32));\n\n jButton3.setText(\"Batal\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 310, 70, 30));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/pbogui/3.jpg\"))); // NOI18N\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 600, 500));\n\n pack();\n }", "public TelaSecundaria() {\n initComponents();\n ArrayTexto();\n btpara.setVisible(false);\n btresposta.setVisible(false);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n BotonCancelar = new javax.swing.JButton();\n BotonAceptar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n CampoNombre = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Crear Tema\");\n setIconImage(null);\n setModal(true);\n setResizable(false);\n\n BotonCancelar.setText(\"Cancelar\");\n BotonCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotonCancelarActionPerformed(evt);\n }\n });\n\n BotonAceptar.setText(\"Aceptar\");\n BotonAceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotonAceptarActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Introduce el nombre del tema:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(BotonCancelar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addComponent(BotonAceptar))\n .addComponent(CampoNombre, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE))\n .addGap(32, 32, 32))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(CampoNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 53, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BotonAceptar)\n .addComponent(BotonCancelar))\n .addGap(24, 24, 24))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n dialogComissaoMensal = new javax.swing.JDialog();\n jPanel2 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n comboFuncionario = new javax.swing.JComboBox<>();\n jLabel7 = new javax.swing.JLabel();\n btnImprimir = new javax.swing.JButton();\n comboMes = new javax.swing.JComboBox<>();\n comboAno = new javax.swing.JComboBox<>();\n jPanel1 = new javax.swing.JPanel();\n jButton2 = new javax.swing.JButton();\n\n dialogComissaoMensal.setTitle(\"Relatório de Comissão Mensal\");\n dialogComissaoMensal.setBackground(new java.awt.Color(255, 204, 255));\n dialogComissaoMensal.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);\n\n jPanel2.setBackground(new java.awt.Color(255, 204, 255));\n\n jLabel6.setBackground(new java.awt.Color(231, 32, 83));\n jLabel6.setFont(new java.awt.Font(\"Microsoft JhengHei UI\", 1, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\" Funcionário\");\n jLabel6.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));\n jLabel6.setOpaque(true);\n\n jLabel7.setBackground(new java.awt.Color(231, 32, 83));\n jLabel7.setFont(new java.awt.Font(\"Microsoft JhengHei UI\", 1, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\" Mês/Ano\");\n jLabel7.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));\n jLabel7.setOpaque(true);\n\n btnImprimir.setFont(new java.awt.Font(\"Microsoft JhengHei UI\", 0, 18)); // NOI18N\n btnImprimir.setText(\"Gerar\");\n btnImprimir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnImprimirActionPerformed(evt);\n }\n });\n\n comboMes.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"SELECIONE\", \"JANEIRO\", \"FEVEREIRO\", \"MARÇO\", \"ABRIL\", \"MAIO\", \"JUNHO\", \"JULHO\", \"AGOSTO\", \"SETEMBRO\", \"OUTUBRO\", \"NOVEMBRO\", \"DEZEMBRO\" }));\n\n comboAno.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"SELECIONE\", \"2018\", \"2019\", \"2020\" }));\n comboAno.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboAnoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(comboFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboMes, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(comboAno, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(comboFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboMes, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboAno, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)\n .addComponent(btnImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(52, 52, 52))\n );\n\n javax.swing.GroupLayout dialogComissaoMensalLayout = new javax.swing.GroupLayout(dialogComissaoMensal.getContentPane());\n dialogComissaoMensal.getContentPane().setLayout(dialogComissaoMensalLayout);\n dialogComissaoMensalLayout.setHorizontalGroup(\n dialogComissaoMensalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n dialogComissaoMensalLayout.setVerticalGroup(\n dialogComissaoMensalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Relatórios\");\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 204, 255));\n\n jButton2.setBackground(new java.awt.Color(231, 32, 83));\n jButton2.setFont(new java.awt.Font(\"Calibri\", 1, 20)); // NOI18N\n jButton2.setForeground(new java.awt.Color(255, 255, 255));\n jButton2.setText(\"<html><center>Relatório de<br>Comissão Mensal</center></html>\");\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(563, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(333, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setSize(new java.awt.Dimension(750, 555));\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btgSel = new javax.swing.ButtonGroup();\n stampa = new javax.swing.JButton();\n annulla = new javax.swing.JButton();\n listini = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n ordine = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n noteTesta = new javax.swing.JTextArea();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n notePiede = new javax.swing.JTextArea();\n jLabel5 = new javax.swing.JLabel();\n formato = new javax.swing.JComboBox();\n rbtEnt = new javax.swing.JRadioButton();\n rbtVen = new javax.swing.JRadioButton();\n rbtAcq = new javax.swing.JRadioButton();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n lingua = new javax.swing.JComboBox();\n jLabel8 = new javax.swing.JLabel();\n sorgente = new javax.swing.JComboBox();\n\n FormListener formListener = new FormListener();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Stampa Elenco Articoli\");\n\n stampa.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/tnx/invoicex/res/Checkmark-16.png\"))); // NOI18N\n stampa.setText(\"Stampa\");\n stampa.addActionListener(formListener);\n\n annulla.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/tnx/invoicex/res/Delete Sign-16.png\"))); // NOI18N\n annulla.setText(\"Annulla\");\n annulla.addActionListener(formListener);\n\n listini.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"Includi i prezzi del listino\");\n jLabel1.setPreferredSize(new java.awt.Dimension(80, 14));\n\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"Ordina per\");\n jLabel2.setPreferredSize(new java.awt.Dimension(80, 14));\n\n ordine.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n noteTesta.setColumns(20);\n noteTesta.setRows(5);\n jScrollPane1.setViewportView(noteTesta);\n\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel3.setText(\"Note Testata\");\n jLabel3.setPreferredSize(new java.awt.Dimension(80, 14));\n\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel4.setText(\"Note Piede\");\n jLabel4.setPreferredSize(new java.awt.Dimension(80, 14));\n\n notePiede.setColumns(20);\n notePiede.setRows(5);\n jScrollPane2.setViewportView(notePiede);\n\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel5.setText(\"Formato Stampa\");\n jLabel5.setPreferredSize(new java.awt.Dimension(80, 14));\n\n formato.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n btgSel.add(rbtEnt);\n rbtEnt.setSelected(true);\n rbtEnt.setText(\"Entrambi\");\n rbtEnt.addActionListener(formListener);\n\n btgSel.add(rbtVen);\n rbtVen.setText(\"Vendita\");\n rbtVen.addActionListener(formListener);\n\n btgSel.add(rbtAcq);\n rbtAcq.setText(\"Acquisto\");\n rbtAcq.addActionListener(formListener);\n\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel6.setText(\"Tipo Articolo\");\n\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel7.setText(\"Lingua\");\n\n lingua.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Italiano\", \"Inglese\" }));\n lingua.addActionListener(formListener);\n\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel8.setText(\"Sorgente dati\");\n jLabel8.setPreferredSize(new java.awt.Dimension(80, 14));\n\n sorgente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Elenco finestra articoli\", \"Tutti gli articoli\" }));\n sorgente.addItemListener(formListener);\n sorgente.addInputMethodListener(formListener);\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane2))\n .add(layout.createSequentialGroup()\n .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane1))\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(0, 0, Short.MAX_VALUE)\n .add(annulla)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(stampa))\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel6)\n .add(jLabel7))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(lingua, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(rbtVen)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(rbtAcq)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(rbtEnt))\n .add(formato, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 221, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(layout.createSequentialGroup()\n .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(sorgente, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 114, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(listini, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 191, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(ordine, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 325, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\n .add(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n\n layout.linkSize(new java.awt.Component[] {jLabel1, jLabel2, jLabel3, jLabel4, jLabel5, jLabel6, jLabel7, jLabel8}, org.jdesktop.layout.GroupLayout.HORIZONTAL);\n\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(sorgente, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(listini, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(ordine, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jScrollPane1)\n .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jScrollPane2)\n .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(formato, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(5, 5, 5)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(rbtVen)\n .add(rbtAcq)\n .add(rbtEnt)\n .add(jLabel6))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel7)\n .add(lingua, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(18, 18, 18)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(stampa)\n .add(annulla))\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ventanaReset = new javax.swing.JDialog();\n botonReiniciar = new javax.swing.JButton();\n labelGanador = new javax.swing.JLabel();\n labelPerdedor = new javax.swing.JLabel();\n\n ventanaReset.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n botonReiniciar.setText(\"Reiniciar\");\n botonReiniciar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n botonReiniciarMousePressed(evt);\n }\n });\n ventanaReset.getContentPane().add(botonReiniciar, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 120, -1, -1));\n\n labelGanador.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n labelGanador.setText(\"HAS GANADO, FELICIDADES\");\n labelGanador.setPreferredSize(new java.awt.Dimension(400, 20));\n ventanaReset.getContentPane().add(labelGanador, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, -1));\n\n labelPerdedor.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n labelPerdedor.setText(\"HAS PERDIDO POR IMBECIL\");\n labelPerdedor.setPreferredSize(new java.awt.Dimension(400, 20));\n labelPerdedor.setRequestFocusEnabled(false);\n ventanaReset.getContentPane().add(labelPerdedor, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, -1));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 780, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 364, Short.MAX_VALUE)\n );\n\n pack();\n }", "public NewProjectDialog(String pt) {\n\t\t\t\n\t\t\tsuper(frame, \"Add new project\");\n\t\t\tresetFields();\n\t\t\tpType = pt;\n\t\t\t\n\t\t\tfinal JDialog npd = this;\n\t\t\t\n\t\t\tpSDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpDeadline.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpEndDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpBudget.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpTotalCost.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpCompletion.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\t\n\t\t\tint x = frame.getLocation().x;\n\t\t\tint y = frame.getLocation().y;\n\t\t\t\n\t\t\tint pWidth = frame.getSize().width;\n\t\t\tint pHeight = frame.getSize().height;\n\t\t\t\n\t\t\tgetContentPane().setLayout(new BorderLayout());\n\t\t\t\n\t\t\tfinal JPanel fieldPanel = new JPanel();\n\t\t\t\n\t\t\tpCode.setText(portfolio.getNewCode());\n\t\t\tpCode.setEditable(false);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(7,3));\n\t\t\t\tSystem.out.println(\"ongoing\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,230));\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(6,3));\n\t\t\t\tSystem.out.println(\"finished\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,200));\n\t\t\t}\n\t\t\tfieldPanel.add(new JLabel(\"Project Code :\"));\n\t\t\tfieldPanel.add(pCode);\n\t\t\tfieldPanel.add(msgCode);\t\t\n\t\t\tfieldPanel.add(new JLabel(\"Project Name :\"));\n\t\t\tfieldPanel.add(pName);\n\t\t\tfieldPanel.add(msgName);\n\t\t\tfieldPanel.add(new JLabel(\"Client :\"));\n\t\t\tfieldPanel.add(pClient);\n\t\t\tfieldPanel.add(msgClient);\n\t\t\tfieldPanel.add(new JLabel(\"Start date: \"));\n\t\t\tfieldPanel.add(pSDate);\n\t\t\tfieldPanel.add(msgSDate);\n\t\t\tmsgSDate.setText(DATE_FORMAT);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"Deadline :\"));\n\t\t\t\tfieldPanel.add(pDeadline);\n\t\t\t\tfieldPanel.add(msgDeadline);\n\t\t\t\tmsgDeadline.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Budget :\"));\n\t\t\t\tfieldPanel.add(pBudget);\n\t\t\t\tfieldPanel.add(msgBudget);\n\t\t\t\tfieldPanel.add(new JLabel(\"Completion :\"));\n\t\t\t\tfieldPanel.add(pCompletion);\t\t\t\n\t\t\t\tfieldPanel.add(msgCompletion);\n\t\t\t\t\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"End Date :\"));\n\t\t\t\tfieldPanel.add(pEndDate);\n\t\t\t\tfieldPanel.add(msgEndDate);\n\t\t\t\tmsgEndDate.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Total Cost :\"));\n\t\t\t\tfieldPanel.add(pTotalCost);\n\t\t\t\tfieldPanel.add(msgTotalCost);\n\t\t\t}\n\t\t\t\n\t\t\tJPanel optionButtons = new JPanel();\n\t\t\toptionButtons.setLayout(new FlowLayout());\n\t\t\t\n\t\t\tJButton btnAdd = new JButton(\"Add\");\n\t\t\tbtnAdd.addActionListener(new ActionListener() {\n\n\t\t\t\t/**\n\t\t\t\t * Validates the information entered by the user and adds the project to the\n\t\t\t\t * Portfolio object if data is valid.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\tif(validateForm()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tProject prj = compileProject();\n\t\t\t\t\t\tportfolio.add(prj,config.isUpdateDB());\n\t\t\t\t\t\tif(prj instanceof OngoingProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) opTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\topTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t} else if (prj instanceof FinishedProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) fpTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\tfpTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnpd.dispose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\toptionButtons.add(btnAdd);\n\t\t\t\n\t\t\tJButton btnClose = new JButton(\"Close\");\n\t\t\tbtnClose.addActionListener(new ActionListener() {\n\n\t\t\t\t/* Closes the NewProjectDialog window. */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnpd.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\toptionButtons.add(btnClose);\n\t\t\tgetContentPane().add(new JLabel(\"Enter the data for your new \" + getPType(pType) + \" project:\"), BorderLayout.PAGE_START);\n\t\t\tthis.add(fieldPanel, BorderLayout.CENTER);\n\t\t\tthis.add(optionButtons, BorderLayout.PAGE_END);\n\n\t\t\tthis.pack();\n\t\t\t\t\t\n\t\t\tint width = this.getSize().width;\n\t\t\tint height = this.getSize().height;\n\t\t\t\n\t\t\tthis.setLocation(new Point((x+pWidth/2-width/2),(y+pHeight/2-height/2)));\n\t\t\tthis.setVisible(true);\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n TelaInvestimentos telaInvestimentos = new TelaInvestimentos(cliente, telaQueChamou);\n telaInvestimentos.pack();\n telaInvestimentos.setLocation(920, 250); // Posição inicial da TelaConta no monitor do pc\n telaInvestimentos.setVisible(true);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jpeso = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jtalla = new javax.swing.JTextField();\n jSeparator2 = new javax.swing.JSeparator();\n jpresion = new javax.swing.JTextField();\n jSeparator3 = new javax.swing.JSeparator();\n jScrollPane2 = new javax.swing.JScrollPane();\n area = new javax.swing.JTextArea();\n jLabel12 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jnombre = new javax.swing.JTextField();\n jSeparator4 = new javax.swing.JSeparator();\n enfer = new javax.swing.JComboBox<>();\n tatuajes = new javax.swing.JComboBox<>();\n transfusi = new javax.swing.JComboBox<>();\n jLabel16 = new javax.swing.JLabel();\n jbutonguardar = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/ecuato.png\"))); // NOI18N\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(820, 180, -1, 110));\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icons8_Multiply_32px.png\"))); // NOI18N\n jLabel8.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(1200, 10, -1, -1));\n\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icons8_Expand_Arrow_32px.png\"))); // NOI18N\n jLabel15.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel15MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(1130, 10, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel6.setText(\"Nuevo Registro\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 10, -1, -1));\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/cruz 1.png\"))); // NOI18N\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, -20, 1220, 300));\n\n jLabel3.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel3.setText(\"Talla\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 120, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel4.setText(\"Peso\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 80, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel5.setText(\"Presion Arterial\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 160, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel7.setText(\"Tatuajes\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 200, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel9.setText(\"Transfusion de Sangre\");\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 240, -1, -1));\n\n jLabel10.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel10.setText(\"Enfermedad Trasmision Sexual\");\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 290, -1, -1));\n\n jpeso.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n jpeso.setBorder(null);\n jpeso.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jpesoMouseExited(evt);\n }\n });\n jpeso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jpesoActionPerformed(evt);\n }\n });\n jPanel1.add(jpeso, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 80, 190, 30));\n\n jSeparator1.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 70, 210, 10));\n\n jtalla.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n jtalla.setBorder(null);\n jtalla.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtallaActionPerformed(evt);\n }\n });\n jPanel1.add(jtalla, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 120, 200, 30));\n\n jSeparator2.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 150, 210, 10));\n\n jpresion.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n jpresion.setBorder(null);\n jpresion.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jpresionMouseExited(evt);\n }\n });\n jpresion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jpresionActionPerformed(evt);\n }\n });\n jPanel1.add(jpresion, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 160, 190, 30));\n\n jSeparator3.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 190, 210, 10));\n\n area.setColumns(20);\n area.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n area.setRows(5);\n jScrollPane2.setViewportView(area);\n\n jPanel1.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 290, 650, 200));\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/delete.png\"))); // NOI18N\n jLabel12.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel12MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 370, -1, -1));\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/new-user.png\"))); // NOI18N\n jLabel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel11MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 370, -1, -1));\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/list-button.png\"))); // NOI18N\n jLabel13.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel13MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 400, -1, 60));\n\n jLabel14.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel14.setText(\"Nombre\");\n jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 40, -1, -1));\n\n jnombre.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n jnombre.setBorder(null);\n jnombre.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jnombreMouseExited(evt);\n }\n });\n jnombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jnombreActionPerformed(evt);\n }\n });\n jPanel1.add(jnombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 40, 190, 30));\n\n jSeparator4.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 110, 210, 10));\n\n enfer.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Si\", \"No\" }));\n enfer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n enferActionPerformed(evt);\n }\n });\n jPanel1.add(enfer, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 280, -1, -1));\n\n tatuajes.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Si\", \"No\" }));\n tatuajes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tatuajesActionPerformed(evt);\n }\n });\n jPanel1.add(tatuajes, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 200, -1, -1));\n\n transfusi.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Si\", \"No\" }));\n transfusi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n transfusiActionPerformed(evt);\n }\n });\n jPanel1.add(transfusi, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 240, -1, -1));\n\n jLabel16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/male.png\"))); // NOI18N\n jLabel16.setText(\"jLabel16\");\n jLabel16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel16MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 360, 70, 80));\n\n jbutonguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/save.png\"))); // NOI18N\n jbutonguardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jbutonguardar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jbutonguardarMouseClicked(evt);\n }\n });\n jPanel1.add(jbutonguardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 260, -1, -1));\n\n jLabel17.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel17.setText(\"Guardar\");\n jPanel1.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 340, -1, -1));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1270, 500));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "public Consultar_Cita() {\n initComponents();\n this.setLocationRelativeTo(null);\n mostrartabla(\"\");\n //Llenar();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buscar_HC = new javax.swing.JDialog();\n btnBuscar1 = new javax.swing.JButton();\n txtbuscarHC = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n tb_HC = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n jpanel3 = new javax.swing.JPanel();\n titulo8 = new javax.swing.JLabel();\n jLabel40 = new javax.swing.JLabel();\n personal = new javax.swing.JDialog();\n txtBuscarPersonal = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n btnBuscarPersonal = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tbPersonal = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false; //Disallow the editing of any cell\n }};\n cbxBuscarPersonal = new javax.swing.JComboBox();\n jpanel2 = new javax.swing.JPanel();\n titulo7 = new javax.swing.JLabel();\n analisis = new javax.swing.JDialog();\n jScrollPane3 = new javax.swing.JScrollPane();\n tb_Analisis = new javax.swing.JTable();\n jpanel1 = new javax.swing.JPanel();\n titulo6 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n cbxBuscarAnalisis = new javax.swing.JComboBox();\n txtBuscarAnalisis = new javax.swing.JTextField();\n btnBuscarAnalisis = new javax.swing.JButton();\n jPopupMenu1 = new javax.swing.JPopupMenu();\n muestras = new javax.swing.JMenuItem();\n VerTomaM = new javax.swing.JDialog();\n panelTM = new javax.swing.JPanel();\n jLabel25 = new javax.swing.JLabel();\n txtActoMedico = new javax.swing.JTextField();\n txtFormaPago = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n txtNToma = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n txtPersonalTomaMuestra = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n txtFechaTM = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n txtHoraTM = new javax.swing.JTextField();\n jLabel31 = new javax.swing.JLabel();\n txtPersonalSolicita = new javax.swing.JTextField();\n jLabel32 = new javax.swing.JLabel();\n txtPiso = new javax.swing.JTextField();\n jLabel33 = new javax.swing.JLabel();\n txtCama = new javax.swing.JTextField();\n jLabel34 = new javax.swing.JLabel();\n jLabel37 = new javax.swing.JLabel();\n txtFechaOrden = new javax.swing.JTextField();\n txtHoraOrden = new javax.swing.JTextField();\n txthospiServ = new javax.swing.JTextField();\n jLabel36 = new javax.swing.JLabel();\n jpanel4 = new javax.swing.JPanel();\n titulo9 = new javax.swing.JLabel();\n jScrollPane4 = new javax.swing.JScrollPane();\n tb_muestras = new javax.swing.JTable();\n panelPaciente = new javax.swing.JPanel();\n jLabel23 = new javax.swing.JLabel();\n txtDni = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n txtHc = new javax.swing.JTextField();\n txtPacientes2 = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n txtFecha = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n txtSexo = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n txtEdad = new javax.swing.JTextField();\n panelAnalisis = new javax.swing.JPanel();\n txtNomenclatura = new javax.swing.JTextField();\n jLabel35 = new javax.swing.JLabel();\n jLabel38 = new javax.swing.JLabel();\n txtCPT = new javax.swing.JTextField();\n jLabel39 = new javax.swing.JLabel();\n txtServArea = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jpanel = new javax.swing.JPanel();\n titulo5 = new javax.swing.JLabel();\n lblUsu = new javax.swing.JLabel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tb_TomasRealizadas = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n if(colIndex==0){\n return true;\n }else{\n return false; //Disallow the editing of any cell\n }}};\n lblServicio = new javax.swing.JLabel();\n lblArea = new javax.swing.JLabel();\n panelPacientes = new javax.swing.JPanel();\n chPacientes = new javax.swing.JCheckBox();\n txtPacientes = new javax.swing.JTextField();\n btnPacientes = new javax.swing.JButton();\n chAnalisis = new javax.swing.JCheckBox();\n txtAnalisis = new javax.swing.JTextField();\n btnAnalisis = new javax.swing.JButton();\n chPersonal = new javax.swing.JCheckBox();\n txtPersonal = new javax.swing.JTextField();\n btnPersonal = new javax.swing.JButton();\n btnBuscar = new javax.swing.JButton();\n chActoMedico = new javax.swing.JCheckBox();\n txtActoM = new javax.swing.JTextField();\n dateDesde = new com.toedter.calendar.JDateChooser();\n dateHasta = new com.toedter.calendar.JDateChooser();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n cbx = new javax.swing.JComboBox();\n jLabel19 = new javax.swing.JLabel();\n lbldia = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n\n buscar_HC.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n buscar_HC.setAlwaysOnTop(true);\n buscar_HC.setMinimumSize(new java.awt.Dimension(876, 692));\n\n btnBuscar1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/view.gif\"))); // NOI18N\n btnBuscar1.setBorder(null);\n btnBuscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscar1ActionPerformed(evt);\n }\n });\n\n txtbuscarHC.setForeground(new java.awt.Color(0, 51, 51));\n txtbuscarHC.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtbuscarHCActionPerformed(evt);\n }\n });\n txtbuscarHC.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtbuscarHCKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtbuscarHCKeyTyped(evt);\n }\n });\n\n tb_HC.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_HC.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tb_HC.setRowHeight(25);\n tb_HC.getTableHeader().setReorderingAllowed(false);\n tb_HC.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_HCMouseClicked(evt);\n }\n });\n tb_HC.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_HCKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(tb_HC);\n\n jpanel3.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo8.setBackground(new java.awt.Color(0, 102, 102));\n titulo8.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo8.setForeground(new java.awt.Color(255, 255, 255));\n titulo8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo8.setText(\"Historia Clínica\");\n titulo8.setToolTipText(\"\");\n titulo8.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jpanel3Layout = new javax.swing.GroupLayout(jpanel3);\n jpanel3.setLayout(jpanel3Layout);\n jpanel3Layout.setHorizontalGroup(\n jpanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 876, Short.MAX_VALUE)\n );\n jpanel3Layout.setVerticalGroup(\n jpanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jLabel40.setFont(new java.awt.Font(\"Tahoma\", 2, 10)); // NOI18N\n jLabel40.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel40.setText(\"Búsqueda por H.C / Paciente / DNI\");\n\n javax.swing.GroupLayout buscar_HCLayout = new javax.swing.GroupLayout(buscar_HC.getContentPane());\n buscar_HC.getContentPane().setLayout(buscar_HCLayout);\n buscar_HCLayout.setHorizontalGroup(\n buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(buscar_HCLayout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jScrollPane1)\n .addGap(19, 19, 19))\n .addGroup(buscar_HCLayout.createSequentialGroup()\n .addGap(300, 300, 300)\n .addGroup(buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel40, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtbuscarHC, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(258, Short.MAX_VALUE))\n .addGroup(buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n buscar_HCLayout.setVerticalGroup(\n buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buscar_HCLayout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addGroup(buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtbuscarHC, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscar1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addComponent(jLabel40)\n .addGap(2, 2, 2)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 549, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(41, Short.MAX_VALUE))\n .addGroup(buscar_HCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(buscar_HCLayout.createSequentialGroup()\n .addComponent(jpanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 644, Short.MAX_VALUE)))\n );\n\n personal.setAlwaysOnTop(true);\n personal.setMinimumSize(new java.awt.Dimension(846, 504));\n\n txtBuscarPersonal.setForeground(new java.awt.Color(0, 51, 51));\n txtBuscarPersonal.setEnabled(false);\n txtBuscarPersonal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscarPersonalActionPerformed(evt);\n }\n });\n txtBuscarPersonal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscarPersonalKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtBuscarPersonalKeyTyped(evt);\n }\n });\n\n jLabel2.setText(\"Búsqueda por:\");\n\n btnBuscarPersonal.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/view.gif\"))); // NOI18N\n btnBuscarPersonal.setBorder(null);\n btnBuscarPersonal.setEnabled(false);\n btnBuscarPersonal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarPersonalActionPerformed(evt);\n }\n });\n\n tbPersonal.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tbPersonal.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tbPersonal.setRowHeight(25);\n tbPersonal.getTableHeader().setReorderingAllowed(false);\n tbPersonal.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tbPersonalMouseClicked(evt);\n }\n });\n tbPersonal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tbPersonalKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tbPersonalKeyTyped(evt);\n }\n });\n jScrollPane2.setViewportView(tbPersonal);\n\n cbxBuscarPersonal.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccionar...\", \"Cargo\", \"Apellidos y Nombres\" }));\n cbxBuscarPersonal.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbxBuscarPersonalItemStateChanged(evt);\n }\n });\n\n jpanel2.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo7.setBackground(new java.awt.Color(0, 102, 102));\n titulo7.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo7.setForeground(new java.awt.Color(255, 255, 255));\n titulo7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo7.setText(\"Personal\");\n titulo7.setToolTipText(\"\");\n titulo7.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jpanel2Layout = new javax.swing.GroupLayout(jpanel2);\n jpanel2.setLayout(jpanel2Layout);\n jpanel2Layout.setHorizontalGroup(\n jpanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jpanel2Layout.setVerticalGroup(\n jpanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout personalLayout = new javax.swing.GroupLayout(personal.getContentPane());\n personal.getContentPane().setLayout(personalLayout);\n personalLayout.setHorizontalGroup(\n personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(personalLayout.createSequentialGroup()\n .addGroup(personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(personalLayout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 801, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(personalLayout.createSequentialGroup()\n .addGap(97, 97, 97)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbxBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(158, 158, 158)\n .addComponent(txtBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(26, Short.MAX_VALUE))\n .addComponent(jpanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n personalLayout.setVerticalGroup(\n personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, personalLayout.createSequentialGroup()\n .addComponent(jpanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, personalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbxBuscarPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(47, Short.MAX_VALUE))\n );\n\n analisis.setAlwaysOnTop(true);\n analisis.setMinimumSize(new java.awt.Dimension(710, 435));\n\n tb_Analisis.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tb_Analisis.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tb_Analisis.setRowHeight(21);\n tb_Analisis.getTableHeader().setReorderingAllowed(false);\n tb_Analisis.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_AnalisisKeyPressed(evt);\n }\n });\n jScrollPane3.setViewportView(tb_Analisis);\n\n jpanel1.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo6.setBackground(new java.awt.Color(0, 102, 102));\n titulo6.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo6.setForeground(new java.awt.Color(255, 255, 255));\n titulo6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo6.setText(\"Análisis\");\n titulo6.setToolTipText(\"\");\n titulo6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jpanel1Layout = new javax.swing.GroupLayout(jpanel1);\n jpanel1.setLayout(jpanel1Layout);\n jpanel1Layout.setHorizontalGroup(\n jpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titulo6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jpanel1Layout.setVerticalGroup(\n jpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpanel1Layout.createSequentialGroup()\n .addComponent(titulo6)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jLabel6.setText(\"Búsqueda por:\");\n\n cbxBuscarAnalisis.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccionar...\", \"Código CPT\", \"Análisis\" }));\n cbxBuscarAnalisis.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbxBuscarAnalisisItemStateChanged(evt);\n }\n });\n\n txtBuscarAnalisis.setForeground(new java.awt.Color(0, 51, 51));\n txtBuscarAnalisis.setEnabled(false);\n txtBuscarAnalisis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBuscarAnalisisActionPerformed(evt);\n }\n });\n txtBuscarAnalisis.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscarAnalisisKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtBuscarAnalisisKeyTyped(evt);\n }\n });\n\n btnBuscarAnalisis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/view.gif\"))); // NOI18N\n btnBuscarAnalisis.setBorder(null);\n btnBuscarAnalisis.setEnabled(false);\n btnBuscarAnalisis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarAnalisisActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout analisisLayout = new javax.swing.GroupLayout(analisis.getContentPane());\n analisis.getContentPane().setLayout(analisisLayout);\n analisisLayout.setHorizontalGroup(\n analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(analisisLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(analisisLayout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbxBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(131, 131, 131)\n .addComponent(txtBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 666, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n analisisLayout.setVerticalGroup(\n analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, analisisLayout.createSequentialGroup()\n .addComponent(jpanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, analisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbxBuscarAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 294, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46))\n );\n\n muestras.setText(\"Ver Toma de Muestra\");\n muestras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n muestrasActionPerformed(evt);\n }\n });\n jPopupMenu1.add(muestras);\n\n VerTomaM.setAlwaysOnTop(true);\n VerTomaM.setMinimumSize(new java.awt.Dimension(890, 572));\n VerTomaM.setResizable(false);\n\n panelTM.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Toma de Muestra\"));\n\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Acto Médico\");\n\n txtActoMedico.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtActoMedico.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtActoMedico.setEnabled(false);\n\n txtFormaPago.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtFormaPago.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFormaPago.setEnabled(false);\n txtFormaPago.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtFormaPagoActionPerformed(evt);\n }\n });\n txtFormaPago.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtFormaPagoKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFormaPagoKeyReleased(evt);\n }\n });\n\n jLabel30.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel30.setText(\"Forma de Pago\");\n\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"N° de Toma de Muestra\");\n\n txtNToma.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtNToma.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtNToma.setEnabled(false);\n txtNToma.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtNTomaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtNTomaKeyReleased(evt);\n }\n });\n\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Personal - Toma de Muestra\");\n\n txtPersonalTomaMuestra.setFont(new java.awt.Font(\"Segoe UI\", 1, 10)); // NOI18N\n txtPersonalTomaMuestra.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPersonalTomaMuestra.setEnabled(false);\n txtPersonalTomaMuestra.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPersonalTomaMuestraActionPerformed(evt);\n }\n });\n txtPersonalTomaMuestra.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPersonalTomaMuestraKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtPersonalTomaMuestraKeyReleased(evt);\n }\n });\n\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"Fecha Toma Muestra\");\n\n txtFechaTM.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtFechaTM.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFechaTM.setEnabled(false);\n txtFechaTM.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtFechaTMActionPerformed(evt);\n }\n });\n txtFechaTM.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtFechaTMKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaTMKeyReleased(evt);\n }\n });\n\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"Hora Toma Muestra\");\n\n txtHoraTM.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtHoraTM.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtHoraTM.setEnabled(false);\n txtHoraTM.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtHoraTMActionPerformed(evt);\n }\n });\n txtHoraTM.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtHoraTMKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtHoraTMKeyReleased(evt);\n }\n });\n\n jLabel31.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel31.setText(\"Personal - Solicita Muestra\");\n\n txtPersonalSolicita.setFont(new java.awt.Font(\"Segoe UI\", 1, 10)); // NOI18N\n txtPersonalSolicita.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPersonalSolicita.setEnabled(false);\n txtPersonalSolicita.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPersonalSolicitaActionPerformed(evt);\n }\n });\n txtPersonalSolicita.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPersonalSolicitaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtPersonalSolicitaKeyReleased(evt);\n }\n });\n\n jLabel32.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel32.setText(\"Piso\");\n\n txtPiso.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtPiso.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPiso.setEnabled(false);\n txtPiso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPisoActionPerformed(evt);\n }\n });\n txtPiso.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPisoKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtPisoKeyReleased(evt);\n }\n });\n\n jLabel33.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel33.setText(\"Cama\");\n\n txtCama.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtCama.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtCama.setEnabled(false);\n txtCama.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCamaActionPerformed(evt);\n }\n });\n txtCama.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtCamaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtCamaKeyReleased(evt);\n }\n });\n\n jLabel34.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel34.setText(\"Fecha Orden\");\n\n jLabel37.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel37.setText(\"Hora Orden\");\n\n txtFechaOrden.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtFechaOrden.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFechaOrden.setEnabled(false);\n txtFechaOrden.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtFechaOrdenActionPerformed(evt);\n }\n });\n txtFechaOrden.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtFechaOrdenKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtFechaOrdenKeyReleased(evt);\n }\n });\n\n txtHoraOrden.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtHoraOrden.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtHoraOrden.setEnabled(false);\n txtHoraOrden.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtHoraOrdenActionPerformed(evt);\n }\n });\n txtHoraOrden.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtHoraOrdenKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtHoraOrdenKeyReleased(evt);\n }\n });\n\n txthospiServ.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txthospiServ.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txthospiServ.setEnabled(false);\n txthospiServ.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txthospiServActionPerformed(evt);\n }\n });\n txthospiServ.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txthospiServKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txthospiServKeyReleased(evt);\n }\n });\n\n jLabel36.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel36.setText(\"Hospitalización-Servicio\");\n\n javax.swing.GroupLayout panelTMLayout = new javax.swing.GroupLayout(panelTM);\n panelTM.setLayout(panelTMLayout);\n panelTMLayout.setHorizontalGroup(\n panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addComponent(txtActoMedico, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelTMLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel31, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPersonalSolicita, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(panelTMLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPersonalTomaMuestra, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(28, 28, 28)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtFechaTM, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel29, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n .addComponent(txtNToma, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel34, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(txtFechaOrden, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtHoraOrden)\n .addComponent(txtFormaPago, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel30, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)\n .addComponent(jLabel37, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(txtHoraTM)))\n .addGap(24, 24, 24)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txthospiServ)\n .addComponent(jLabel36, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtPiso)\n .addComponent(txtCama))\n .addContainerGap())\n );\n panelTMLayout.setVerticalGroup(\n panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelTMLayout.createSequentialGroup()\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel29)\n .addComponent(jLabel30)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel36))\n .addGap(0, 0, 0)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNToma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFormaPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtActoMedico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txthospiServ, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28)\n .addComponent(jLabel32))\n .addGap(0, 0, 0)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPersonalTomaMuestra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFechaTM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtHoraTM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPiso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel37)))\n .addGap(0, 0, 0)\n .addGroup(panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelTMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPersonalSolicita, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFechaOrden, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtHoraOrden, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(txtCama, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n\n jpanel4.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo9.setBackground(new java.awt.Color(0, 102, 102));\n titulo9.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo9.setForeground(new java.awt.Color(255, 255, 255));\n titulo9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo9.setText(\"Toma de Muestra\");\n titulo9.setToolTipText(\"\");\n titulo9.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jpanel4Layout = new javax.swing.GroupLayout(jpanel4);\n jpanel4.setLayout(jpanel4Layout);\n jpanel4Layout.setHorizontalGroup(\n jpanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpanel4Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(titulo9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jpanel4Layout.setVerticalGroup(\n jpanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpanel4Layout.createSequentialGroup()\n .addComponent(titulo9, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n tb_muestras.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"cod_det_toma_mu_ana\", \"codMuestra\", \"codContenedor\", \"codArea\", \"Muestra\", \"Contenedor\", \"Area\", \"Cantidad\", \"Codigo_Barras\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, true, false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tb_muestras.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tb_muestras.setRowHeight(28);\n tb_muestras.getTableHeader().setReorderingAllowed(false);\n jScrollPane4.setViewportView(tb_muestras);\n\n panelPaciente.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Datos del Paciente\"));\n\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"DNI\");\n\n txtDni.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtDni.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtDni.setEnabled(false);\n\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Nº de H.C.\");\n\n txtHc.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtHc.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtHc.setEnabled(false);\n\n txtPacientes2.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtPacientes2.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPacientes2.setEnabled(false);\n\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Paciente\");\n\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\"Fecha de Nac.\");\n\n txtFecha.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtFecha.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFecha.setEnabled(false);\n\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Sexo\");\n\n txtSexo.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtSexo.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtSexo.setEnabled(false);\n\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"Edad\");\n\n txtEdad.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtEdad.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtEdad.setEnabled(false);\n\n javax.swing.GroupLayout panelPacienteLayout = new javax.swing.GroupLayout(panelPaciente);\n panelPaciente.setLayout(panelPacienteLayout);\n panelPacienteLayout.setHorizontalGroup(\n panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtDni)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)\n .addComponent(txtHc, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPacientes2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtFecha, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE)\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtEdad)\n .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtSexo)\n .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE))))))\n .addContainerGap())\n );\n panelPacienteLayout.setVerticalGroup(\n panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(jLabel7))\n .addGap(0, 0, 0)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtHc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPacientes2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23)\n .addGroup(panelPacienteLayout.createSequentialGroup()\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18))\n .addGap(0, 0, 0)\n .addGroup(panelPacienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDni, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEdad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtSexo))))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n panelAnalisis.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Análisis\"));\n\n txtNomenclatura.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtNomenclatura.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtNomenclatura.setEnabled(false);\n txtNomenclatura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomenclaturaActionPerformed(evt);\n }\n });\n txtNomenclatura.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtNomenclaturaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtNomenclaturaKeyReleased(evt);\n }\n });\n\n jLabel35.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel35.setText(\"Nomenclatura\");\n\n jLabel38.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel38.setText(\"Código CPT\");\n\n txtCPT.setFont(new java.awt.Font(\"Segoe UI\", 1, 11)); // NOI18N\n txtCPT.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtCPT.setEnabled(false);\n txtCPT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCPTActionPerformed(evt);\n }\n });\n txtCPT.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtCPTKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtCPTKeyReleased(evt);\n }\n });\n\n jLabel39.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel39.setText(\"Servicio/Área\");\n\n txtServArea.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n txtServArea.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtServArea.setEnabled(false);\n txtServArea.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtServAreaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtServAreaKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout panelAnalisisLayout = new javax.swing.GroupLayout(panelAnalisis);\n panelAnalisis.setLayout(panelAnalisisLayout);\n panelAnalisisLayout.setHorizontalGroup(\n panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCPT, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel35, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)\n .addComponent(txtNomenclatura)))\n .addComponent(txtServArea)\n .addComponent(jLabel39, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n panelAnalisisLayout.setVerticalGroup(\n panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jLabel39)\n .addGap(0, 0, 0)\n .addComponent(txtServArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel38)\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addGroup(panelAnalisisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNomenclatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCPT))))\n .addGroup(panelAnalisisLayout.createSequentialGroup()\n .addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))))\n );\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 14)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Muestra(s)\");\n\n javax.swing.GroupLayout VerTomaMLayout = new javax.swing.GroupLayout(VerTomaM.getContentPane());\n VerTomaM.getContentPane().setLayout(VerTomaMLayout);\n VerTomaMLayout.setHorizontalGroup(\n VerTomaMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VerTomaMLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(VerTomaMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panelTM, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, VerTomaMLayout.createSequentialGroup()\n .addComponent(panelPaciente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16)\n .addComponent(panelAnalisis, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.LEADING))\n .addGap(32, 32, 32))\n );\n VerTomaMLayout.setVerticalGroup(\n VerTomaMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VerTomaMLayout.createSequentialGroup()\n .addComponent(jpanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(VerTomaMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(panelPaciente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panelAnalisis, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(2, 2, 2)\n .addComponent(panelTM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jLabel1)\n .addGap(1, 1, 1)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(122, 122, 122))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(1067, 665));\n setPreferredSize(new java.awt.Dimension(1067, 665));\n\n jpanel.setBackground(new java.awt.Color(2, 67, 115));\n\n titulo5.setBackground(new java.awt.Color(0, 102, 102));\n titulo5.setFont(new java.awt.Font(\"Segoe UI\", 0, 36)); // NOI18N\n titulo5.setForeground(new java.awt.Color(255, 255, 255));\n titulo5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n titulo5.setText(\"Tomas de Muestras Realizadas\");\n titulo5.setToolTipText(\"\");\n titulo5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n lblUsu.setFont(new java.awt.Font(\"Palatino Linotype\", 1, 12)); // NOI18N\n lblUsu.setForeground(new java.awt.Color(255, 255, 255));\n lblUsu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/User-32.png\"))); // NOI18N\n lblUsu.setText(\"Usuario\");\n\n javax.swing.GroupLayout jpanelLayout = new javax.swing.GroupLayout(jpanel);\n jpanel.setLayout(jpanelLayout);\n jpanelLayout.setHorizontalGroup(\n jpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpanelLayout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(titulo5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblUsu, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27))\n );\n jpanelLayout.setVerticalGroup(\n jpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpanelLayout.createSequentialGroup()\n .addGroup(jpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(titulo5)\n .addComponent(lblUsu, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 29, Short.MAX_VALUE))\n );\n\n tb_TomasRealizadas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"cod_cab_toma_mu_exa\", \"cod_det_toma_mu_ana\", \"cod_exa_ana\", \"id_hc\", \"Servicio/Área\", \"Código CPT\", \"Nomenclatura\", \"Analisis Examen\", \"N° de Toma de Muestra\", \"N° de H.C\", \"Datos del Paciente\", \"DNI\", \"Fecha de Nacimiento\", \"Edad\", \"Sexo\", \"Forma de Pago\", \"Acto Medico\", \"Nombre Per Toma Muestra\", \"fecha_toma_mu_de\", \"hora_toma_mu_de\", \"nom_per_solicita\", \"hab_nom\", \"cama\", \"fecha_orden\", \"hora_orden\", \"id_cod_doc_det\", \"Años\", \"Meses\", \"Dias\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n true, false, true, true, false, true, true, false, true, false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, true, false, true, true, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tb_TomasRealizadas.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tb_TomasRealizadas.setComponentPopupMenu(jPopupMenu1);\n tb_TomasRealizadas.setRowHeight(24);\n tb_TomasRealizadas.setSelectionBackground(new java.awt.Color(2, 67, 115));\n tb_TomasRealizadas.getTableHeader().setReorderingAllowed(false);\n tb_TomasRealizadas.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tb_TomasRealizadasMouseClicked(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n tb_TomasRealizadasMouseReleased(evt);\n }\n });\n tb_TomasRealizadas.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n tb_TomasRealizadasPropertyChange(evt);\n }\n });\n tb_TomasRealizadas.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tb_TomasRealizadasKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tb_TomasRealizadasKeyTyped(evt);\n }\n });\n jScrollPane5.setViewportView(tb_TomasRealizadas);\n if (tb_TomasRealizadas.getColumnModel().getColumnCount() > 0) {\n tb_TomasRealizadas.getColumnModel().getColumn(13).setResizable(false);\n tb_TomasRealizadas.getColumnModel().getColumn(14).setResizable(false);\n }\n\n lblServicio.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblServicio.setText(\"servicio\");\n\n lblArea.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblArea.setText(\"area\");\n\n chPacientes.setText(\"Todos los Pacientes\");\n chPacientes.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n chPacientes.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chPacientesItemStateChanged(evt);\n }\n });\n\n txtPacientes.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n txtPacientes.setForeground(new java.awt.Color(0, 51, 51));\n txtPacientes.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPacientes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPacientesActionPerformed(evt);\n }\n });\n txtPacientes.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPacientesKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtPacientesKeyTyped(evt);\n }\n });\n\n btnPacientes.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Search-16.png\"))); // NOI18N\n btnPacientes.setBorder(null);\n btnPacientes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPacientesActionPerformed(evt);\n }\n });\n\n chAnalisis.setText(\"Todos los Análisis\");\n chAnalisis.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n chAnalisis.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chAnalisisItemStateChanged(evt);\n }\n });\n\n txtAnalisis.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n txtAnalisis.setForeground(new java.awt.Color(0, 51, 51));\n txtAnalisis.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtAnalisis.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtAnalisisKeyPressed(evt);\n }\n });\n\n btnAnalisis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Search-16.png\"))); // NOI18N\n btnAnalisis.setBorder(null);\n btnAnalisis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAnalisisActionPerformed(evt);\n }\n });\n\n chPersonal.setText(\"Todo el Personal\");\n chPersonal.setHideActionText(true);\n chPersonal.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n chPersonal.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chPersonalItemStateChanged(evt);\n }\n });\n\n txtPersonal.setFont(new java.awt.Font(\"Segoe UI\", 0, 11)); // NOI18N\n txtPersonal.setForeground(new java.awt.Color(0, 51, 51));\n txtPersonal.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtPersonal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtPersonalKeyPressed(evt);\n }\n });\n\n btnPersonal.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Search-16.png\"))); // NOI18N\n btnPersonal.setBorder(null);\n btnPersonal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPersonalActionPerformed(evt);\n }\n });\n\n btnBuscar.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 11)); // NOI18N\n btnBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/buscar16x16.png\"))); // NOI18N\n btnBuscar.setMnemonic('B');\n btnBuscar.setText(\"Buscar\");\n btnBuscar.setToolTipText(\"Buscar (Alt-B)\");\n btnBuscar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarActionPerformed(evt);\n }\n });\n\n chActoMedico.setText(\"Todos los Actos Médicos\");\n chActoMedico.setHideActionText(true);\n chActoMedico.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n chActoMedico.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chActoMedicoItemStateChanged(evt);\n }\n });\n\n txtActoM.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n txtActoM.setForeground(new java.awt.Color(0, 51, 51));\n txtActoM.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtActoM.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtActoMKeyPressed(evt);\n }\n });\n\n javax.swing.GroupLayout panelPacientesLayout = new javax.swing.GroupLayout(panelPacientes);\n panelPacientes.setLayout(panelPacientesLayout);\n panelPacientesLayout.setHorizontalGroup(\n panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacientesLayout.createSequentialGroup()\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(chAnalisis, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)\n .addComponent(chPacientes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)\n .addComponent(chPersonal, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)\n .addComponent(chActoMedico, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtAnalisis, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)\n .addComponent(txtPacientes, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)\n .addComponent(txtPersonal, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)\n .addComponent(txtActoM, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnPacientes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAnalisis, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnPersonal, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(btnBuscar)\n .addGap(15, 15, 15))\n );\n panelPacientesLayout.setVerticalGroup(\n panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacientesLayout.createSequentialGroup()\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(panelPacientesLayout.createSequentialGroup()\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btnPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAnalisis, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chAnalisis, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, 0)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnPersonal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0)\n .addGroup(panelPacientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(chActoMedico, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtActoM, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(btnBuscar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, 0))\n );\n\n dateDesde.setDateFormatString(\"dd-MM-yyyy\");\n\n dateHasta.setDateFormatString(\"dd-MM-yyyy\");\n\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Hasta\");\n\n jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel21.setText(\"Búsqueda por:\");\n\n cbx.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccionar...\", \"N° de H.C / DNI\", \"Análisis \", \"Personal - Toma de Muestra\", \"Acto Médico\" }));\n cbx.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbxItemStateChanged(evt);\n }\n });\n cbx.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cbxKeyPressed(evt);\n }\n });\n\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Desde\");\n\n lbldia.setFont(new java.awt.Font(\"Segoe UI\", 1, 13)); // NOI18N\n lbldia.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbldia.setText(\"Exámenes con Toma de Muestras del Día\");\n\n jPanel1.setBackground(new java.awt.Color(204, 204, 204));\n jPanel1.setPreferredSize(new java.awt.Dimension(721, 25));\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/salir16x16.png\"))); // NOI18N\n jLabel3.setText(\"Salir (Esc)\");\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/iconos/Search-16.png\"))); // NOI18N\n jLabel10.setText(\"Buscar (Alt+B)\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(850, 850, 850)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(8, 8, 8))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(dateDesde, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dateHasta, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(405, 405, 405))\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1026, Short.MAX_VALUE)\n .addComponent(lbldia, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(101, 101, 101)\n .addComponent(lblServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblArea, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbx, 0, 173, Short.MAX_VALUE))\n .addGap(84, 84, 84)\n .addComponent(panelPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane5))\n .addGap(28, 28, 28))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jpanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(11, 11, 11)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dateDesde, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(dateHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbx, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblArea)\n .addComponent(lblServicio))\n .addComponent(panelPacientes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(lbldia)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 345, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n grabar = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n idplatillo = new javax.swing.JTextField();\n nombre = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n\n jPanel1.setBackground(new java.awt.Color(204, 0, 204));\n jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, new java.awt.Color(255, 0, 255), new java.awt.Color(255, 0, 255), new java.awt.Color(255, 0, 255), new java.awt.Color(255, 0, 255)));\n\n jButton1.setBackground(new java.awt.Color(204, 0, 204));\n jButton1.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Alimentacion/nuevo.png\"))); // NOI18N\n jButton1.setText(\"Nuevo\\n\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n grabar.setBackground(new java.awt.Color(204, 0, 204));\n grabar.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n grabar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Alimentacion/grabar.png\"))); // NOI18N\n grabar.setText(\"Grabar\\n\");\n grabar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n grabarActionPerformed(evt);\n }\n });\n\n jButton3.setBackground(new java.awt.Color(204, 0, 204));\n jButton3.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Alimentacion/modificar.png\"))); // NOI18N\n jButton3.setText(\"Modificar\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setBackground(new java.awt.Color(204, 0, 204));\n jButton4.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Alimentacion/consultar.png\"))); // NOI18N\n jButton4.setText(\"Consultar\\n\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setBackground(new java.awt.Color(204, 0, 204));\n jButton5.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Alimentacion/salir.png\"))); // NOI18N\n jButton5.setText(\"Salir\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Century\", 0, 18)); // NOI18N\n jLabel1.setText(\"id_platillo\");\n\n jLabel2.setFont(new java.awt.Font(\"Century\", 0, 18)); // NOI18N\n jLabel2.setText(\"Nombre\");\n\n idplatillo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n idplatilloActionPerformed(evt);\n }\n });\n\n nombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreActionPerformed(evt);\n }\n });\n\n jButton2.setBackground(new java.awt.Color(204, 0, 204));\n jButton2.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Alimentacion/Folder.png\"))); // NOI18N\n jButton2.setText(\"DetallePlatillo\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(58, 58, 58)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(idplatillo, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(43, 43, 43)\n .addComponent(jButton4)\n .addGap(64, 64, 64)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(30, 30, 30)\n .addComponent(grabar, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(jButton3))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addComponent(jButton2)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(idplatillo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(grabar)\n .addComponent(jButton3))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton4)\n .addComponent(jButton5))\n .addGap(18, 27, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public FrmLeerCodigoBarras(java.awt.Frame parent, boolean modal,String accion) {\n super(parent,\"Codigo de barras\", modal);\n this.parent = parent;\n initComponents();\n this.turno = Main.getInstance().getTurnoActual();\n this.accion = accion;\n this.estacionamiento = Main.getInstance().getEstacionamiento();\n this.getContentPane().setBackground(Color.white);\n pack();\n id =\"\";\n if(accion.equals(\"COBRO\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"CANCELAR\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"RECIBO\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"PERDIDO\")){\n lblMensaje.setText(\"Coloca la contra en el sensor\");\n }else if(accion.equals(\"CONTRA\")){\n lblMensaje.setText(\"Coloca la contra en el sensor\");\n }else if(accion.equals(\"ENTRADA\")){\n lblMensaje.setText(\"Coloca tu gafet contra en el sensor\");\n }else{\n lblMensaje.setText(\"Coloca el codigo\");\n }\n \n\n if(!Configuracion.getInstancia().getTerminal().equals(Configuracion.CLIENTE)){\n this.lblBienvenido.setVisible(false);\n }\n setLocationRelativeTo(parent);\n setVisible(true);\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ventana_cobrador = new javax.swing.JDialog();\n jPanel5 = new javax.swing.JPanel();\n txt_bnombre_cobrador = new javax.swing.JTextField();\n jScrollPane4 = new javax.swing.JScrollPane();\n tbl_bcobrador = new javax.swing.JTable();\n jLabel10 = new javax.swing.JLabel();\n btn_agreg_cob = new javax.swing.JButton();\n ventana_moneda = new javax.swing.JDialog();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane7 = new javax.swing.JScrollPane();\n tbl_bmoneda = new javax.swing.JTable();\n btn_agreg_moneda = new javax.swing.JButton();\n ventana_transaccion = new javax.swing.JDialog();\n jPanel8 = new javax.swing.JPanel();\n txt_busq_transaccion = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n tbl_transaccion = new javax.swing.JTable();\n jLabel13 = new javax.swing.JLabel();\n btn_agreg_trans = new javax.swing.JButton();\n ventana_saldo_proveedor = new javax.swing.JDialog();\n jPanel9 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tbl_saldo_prov = new javax.swing.JTable();\n jLabel9 = new javax.swing.JLabel();\n btn_agreg_sal = new javax.swing.JButton();\n ventana_proveedor = new javax.swing.JDialog();\n jPanel7 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tbl_busq_prov = new javax.swing.JTable();\n txt_bcod_prov = new javax.swing.JTextField();\n btn_agreg_busq = new javax.swing.JButton();\n txt_bnomb_prov = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n btn_nuevo = new javax.swing.JButton();\n btnguardar = new javax.swing.JButton();\n btnactualizar = new javax.swing.JButton();\n btneliminar = new javax.swing.JButton();\n btncancelar = new javax.swing.JButton();\n btn_busqueda = new javax.swing.JButton();\n btn_ejecutar = new javax.swing.JButton();\n btn_imprimir = new javax.swing.JButton();\n btn_salir = new javax.swing.JButton();\n btn_ant = new javax.swing.JButton();\n btn_sig = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txt_cod_sucursal = new javax.swing.JTextField();\n txt_cod_tipo_comp = new javax.swing.JTextField();\n txt_nro_comp = new javax.swing.JTextField();\n txt_fecha_comp = new com.toedter.calendar.JDateChooser();\n txt_cod_prov = new javax.swing.JTextField();\n txt_desc_prov = new javax.swing.JTextField();\n txt_cod_moneda = new javax.swing.JTextField();\n txt_desc_moneda = new javax.swing.JTextField();\n txt_desc_sucursal = new javax.swing.JTextField();\n lbl_serie_nro = new javax.swing.JLabel();\n campo_obligatorio = new javax.swing.JLabel();\n lbl_fec_comp = new javax.swing.JLabel();\n lbl_cod_cliente = new javax.swing.JLabel();\n lbl_cod_moneda = new javax.swing.JLabel();\n txt_ser_comp = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n txt_sub_tipo_transaccion = new javax.swing.JTextField();\n txt_desc_tipo_transac = new javax.swing.JTextField();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tbl_comprobante = new javax.swing.JTable();\n btn_limpiar = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n txt_total_comprobante = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n txt_cod_usuario = new javax.swing.JTextField();\n txt_desc_usuario = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n\n ventana_cobrador.setTitle(\"COBRADORES\");\n ventana_cobrador.setResizable(false);\n ventana_cobrador.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel5.setBackground(new java.awt.Color(0, 102, 102));\n jPanel5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel5.add(txt_bnombre_cobrador, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, 150, -1));\n\n tbl_bcobrador = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_bcobrador.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane4.setViewportView(tbl_bcobrador);\n\n jPanel5.add(jScrollPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 60, 360, 260));\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(204, 204, 0));\n jLabel10.setText(\"Codigo Cobrador\");\n jPanel5.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(53, 35, -1, -1));\n\n btn_agreg_cob.setText(\"Agregar\");\n btn_agreg_cob.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_agreg_cobActionPerformed(evt);\n }\n });\n jPanel5.add(btn_agreg_cob, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 330, -1, -1));\n\n ventana_cobrador.getContentPane().add(jPanel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 380));\n\n ventana_moneda.setTitle(\"MONEDAS\");\n ventana_moneda.setResizable(false);\n ventana_moneda.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel6.setBackground(new java.awt.Color(0, 102, 102));\n jPanel6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbl_bmoneda = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_bmoneda.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane7.setViewportView(tbl_bmoneda);\n\n jPanel6.add(jScrollPane7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 370, 90));\n\n btn_agreg_moneda.setText(\"Agregar\");\n jPanel6.add(btn_agreg_moneda, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 120, -1, -1));\n\n ventana_moneda.getContentPane().add(jPanel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 150));\n\n ventana_transaccion.setTitle(\"VENTANA TRANSACCION\");\n ventana_transaccion.setResizable(false);\n ventana_transaccion.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel8.setBackground(new java.awt.Color(0, 102, 102));\n jPanel8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel8.add(txt_busq_transaccion, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 150, -1));\n\n tbl_transaccion.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane2.setViewportView(tbl_transaccion);\n\n jPanel8.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 380, 200));\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(204, 204, 0));\n jLabel13.setText(\"Codigo\");\n jPanel8.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(65, 35, -1, -1));\n\n btn_agreg_trans.setText(\"Agregar\");\n jPanel8.add(btn_agreg_trans, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 270, -1, -1));\n\n ventana_transaccion.getContentPane().add(jPanel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 300));\n\n ventana_saldo_proveedor.setTitle(\"SALDOS CLIENTES\");\n ventana_saldo_proveedor.setResizable(false);\n ventana_saldo_proveedor.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel9.setBackground(new java.awt.Color(0, 102, 102));\n jPanel9.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbl_saldo_prov = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_saldo_prov.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane5.setViewportView(tbl_saldo_prov);\n\n jPanel9.add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 680, 220));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(204, 204, 0));\n jLabel9.setText(\"PARA SELECCIONAR MAS DE UNA FILA PULSE LA TECLA SHIFT\");\n jPanel9.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 10, 430, -1));\n\n btn_agreg_sal.setText(\"Agregar\");\n btn_agreg_sal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_agreg_salActionPerformed(evt);\n }\n });\n jPanel9.add(btn_agreg_sal, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 265, -1, -1));\n\n ventana_saldo_proveedor.getContentPane().add(jPanel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 700, 300));\n\n ventana_proveedor.setTitle(\"BUSQUEDA PROVEEDOR\");\n ventana_proveedor.setResizable(false);\n ventana_proveedor.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel7.setBackground(new java.awt.Color(51, 51, 51));\n jPanel7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbl_busq_prov = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_busq_prov.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane3.setViewportView(tbl_busq_prov);\n\n jPanel7.add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 360, 190));\n jPanel7.add(txt_bcod_prov, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, 150, -1));\n\n btn_agreg_busq.setText(\"Agregar\");\n jPanel7.add(btn_agreg_busq, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 260, -1, -1));\n jPanel7.add(txt_bnomb_prov, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 20, 150, -1));\n\n ventana_proveedor.getContentPane().add(jPanel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 390, 300));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"RECIBOS DE COMPRAS(FORMRECOMP)\");\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel4.setBackground(new java.awt.Color(51, 51, 51));\n jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jToolBar1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jToolBar1.setFloatable(false);\n\n btn_nuevo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_nuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/nuevo.png\"))); // NOI18N\n btn_nuevo.setToolTipText(\"Nuevo\");\n btn_nuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_nuevoActionPerformed(evt);\n }\n });\n btn_nuevo.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n btn_nuevoKeyPressed(evt);\n }\n });\n jToolBar1.add(btn_nuevo);\n\n btnguardar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btnguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/guardar.png\"))); // NOI18N\n btnguardar.setToolTipText(\"GRABAR\");\n btnguardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnguardarActionPerformed(evt);\n }\n });\n jToolBar1.add(btnguardar);\n\n btnactualizar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btnactualizar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/actualizar.png\"))); // NOI18N\n btnactualizar.setToolTipText(\"Modificar\");\n jToolBar1.add(btnactualizar);\n\n btneliminar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btneliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/borrar.png\"))); // NOI18N\n btneliminar.setToolTipText(\"Eliminar\");\n btneliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btneliminarActionPerformed(evt);\n }\n });\n jToolBar1.add(btneliminar);\n\n btncancelar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btncancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/cancelar.png\"))); // NOI18N\n btncancelar.setToolTipText(\"Cancelar\");\n btncancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btncancelarActionPerformed(evt);\n }\n });\n jToolBar1.add(btncancelar);\n\n btn_busqueda.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_busqueda.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/busqueda.png\"))); // NOI18N\n btn_busqueda.setToolTipText(\"Buscar\");\n btn_busqueda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_busquedaActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_busqueda);\n\n btn_ejecutar.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_ejecutar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/6.png\"))); // NOI18N\n btn_ejecutar.setToolTipText(\"Buscar\");\n btn_ejecutar.setFocusable(false);\n btn_ejecutar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btn_ejecutar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btn_ejecutar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_ejecutarActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_ejecutar);\n\n btn_imprimir.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_imprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/imprimir.png\"))); // NOI18N\n btn_imprimir.setToolTipText(\"Imprimir\");\n btn_imprimir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_imprimirActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_imprimir);\n\n btn_salir.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_salir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/salir2.png\"))); // NOI18N\n btn_salir.setToolTipText(\"Salir\");\n btn_salir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_salirActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_salir);\n\n btn_ant.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_ant.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/siguiente.png\"))); // NOI18N\n btn_ant.setToolTipText(\"Anterior reg\");\n btn_ant.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_antActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_ant);\n\n btn_sig.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btn_sig.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/next.png\"))); // NOI18N\n btn_sig.setToolTipText(\"Sigiente reg\");\n btn_sig.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_sigActionPerformed(evt);\n }\n });\n jToolBar1.add(btn_sig);\n\n jPanel4.add(jToolBar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 450, 54));\n\n jPanel1.setBackground(new java.awt.Color(0, 102, 102));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)), \"DATOS PROVEEDOR\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(255, 255, 255))); // NOI18N\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 204, 0));\n jLabel1.setText(\"Sucursal:\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(204, 204, 0));\n jLabel2.setText(\"Tipo Comp:\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(204, 204, 0));\n jLabel3.setText(\"Fecha:\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(204, 204, 0));\n jLabel4.setText(\"Proveedor:(F9)\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(204, 204, 0));\n jLabel6.setText(\"Moneda:\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 145, -1, -1));\n jPanel1.add(txt_cod_sucursal, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 20, 50, -1));\n jPanel1.add(txt_cod_tipo_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 50, 50, -1));\n\n txt_nro_comp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_nro_compActionPerformed(evt);\n }\n });\n jPanel1.add(txt_nro_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(225, 50, 50, -1));\n jPanel1.add(txt_fecha_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 80, 130, -1));\n jPanel1.add(txt_cod_prov, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 110, 50, -1));\n jPanel1.add(txt_desc_prov, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 110, 250, -1));\n\n txt_cod_moneda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_cod_monedaActionPerformed(evt);\n }\n });\n jPanel1.add(txt_cod_moneda, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 145, 50, -1));\n\n txt_desc_moneda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_desc_monedaActionPerformed(evt);\n }\n });\n jPanel1.add(txt_desc_moneda, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 145, 250, -1));\n jPanel1.add(txt_desc_sucursal, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, 250, -1));\n\n lbl_serie_nro.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n lbl_serie_nro.setForeground(new java.awt.Color(204, 204, 0));\n lbl_serie_nro.setText(\"*\");\n jPanel1.add(lbl_serie_nro, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 50, 10, -1));\n\n campo_obligatorio.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n campo_obligatorio.setForeground(new java.awt.Color(204, 204, 0));\n campo_obligatorio.setText(\"CAMPOS OBLIGATORIOS *\");\n jPanel1.add(campo_obligatorio, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 145, -1, -1));\n\n lbl_fec_comp.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n lbl_fec_comp.setForeground(new java.awt.Color(204, 204, 0));\n lbl_fec_comp.setText(\"*\");\n jPanel1.add(lbl_fec_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 80, -1, -1));\n\n lbl_cod_cliente.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n lbl_cod_cliente.setForeground(new java.awt.Color(204, 204, 0));\n lbl_cod_cliente.setText(\"*\");\n jPanel1.add(lbl_cod_cliente, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 110, -1, -1));\n\n lbl_cod_moneda.setFont(new java.awt.Font(\"Noto Sans\", 1, 14)); // NOI18N\n lbl_cod_moneda.setForeground(new java.awt.Color(204, 204, 0));\n lbl_cod_moneda.setText(\"*\");\n jPanel1.add(lbl_cod_moneda, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 145, -1, -1));\n\n txt_ser_comp.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_ser_compKeyTyped(evt);\n }\n });\n jPanel1.add(txt_ser_comp, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 50, 50, -1));\n\n jPanel4.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 760, 180));\n\n jPanel2.setBackground(new java.awt.Color(0, 102, 102));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)), \"TIPO TRANSACCION\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(255, 255, 255))); // NOI18N\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(204, 204, 0));\n jLabel7.setText(\"Transaccion:\");\n jPanel2.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n jPanel2.add(txt_sub_tipo_transaccion, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 20, 50, -1));\n jPanel2.add(txt_desc_tipo_transac, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, 230, -1));\n\n jPanel3.setBackground(new java.awt.Color(51, 51, 51));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)), \"DETALLE RECIBO\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12), new java.awt.Color(0, 153, 255))); // NOI18N\n jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbl_comprobante = new javax.swing.JTable(){\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tbl_comprobante.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tbl_comprobante);\n\n jPanel3.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 710, 120));\n\n btn_limpiar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/17_2.png\"))); // NOI18N\n btn_limpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_limpiarActionPerformed(evt);\n }\n });\n jPanel3.add(btn_limpiar, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 20, 40, 25));\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 51, 51));\n jLabel15.setText(\"Limpar Detalle\");\n jPanel3.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(585, 20, -1, -1));\n\n jPanel2.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 730, 180));\n\n txt_total_comprobante.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n txt_total_comprobante.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_total_comprobanteActionPerformed(evt);\n }\n });\n jPanel2.add(txt_total_comprobante, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 240, 150, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(153, 153, 153));\n jLabel8.setText(\"Total Recibo:\");\n jPanel2.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 245, -1, -1));\n\n jPanel4.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 250, 760, 280));\n jPanel4.add(txt_cod_usuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 25, 70, 25));\n jPanel4.add(txt_desc_usuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(545, 25, 220, 25));\n\n jLabel14.setFont(new java.awt.Font(\"Noto Sans\", 1, 12)); // NOI18N\n jLabel14.setForeground(new java.awt.Color(204, 204, 0));\n jLabel14.setText(\"USUARIO\");\n jPanel4.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 6, -1, -1));\n\n getContentPane().add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 780, 570));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n utama = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n kembali = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n Pesan = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator6 = new javax.swing.JSeparator();\n jenis = new javax.swing.JComboBox<>();\n jLabel12 = new javax.swing.JLabel();\n jSeparator7 = new javax.swing.JSeparator();\n jLabel13 = new javax.swing.JLabel();\n warna = new javax.swing.JComboBox<>();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jSeparator8 = new javax.swing.JSeparator();\n jTextField6 = new javax.swing.JTextField();\n jSeparator4 = new javax.swing.JSeparator();\n jLabel10 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n close = new javax.swing.JLabel();\n minimize = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n utama.setBackground(new java.awt.Color(149, 165, 166));\n\n kembali.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n kembali.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Previous.png\")); // NOI18N\n kembali.setText(\"Back\");\n kembali.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n kembali.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n kembaliMouseClicked(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel2.setText(\"Nama Pemesan\");\n\n jLabel6.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n jLabel6.setText(\"Panjang\");\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n Pesan.setText(\"Order\");\n Pesan.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Pesan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n PesanActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel4.setText(\"No.Hp/Email\");\n\n jLabel5.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel5.setText(\"Ukuran\");\n\n jLabel9.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel9.setText(\"Alamat\");\n\n jLabel7.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n jLabel7.setText(\"Lebar\");\n\n jLabel8.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n jLabel8.setText(\"Tinggi\");\n\n jenis.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel12.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel12.setText(\"Jenis Box\");\n\n jLabel13.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel13.setText(\"Warna\");\n\n warna.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel14.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel14.setText(\"Email\");\n\n jLabel15.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel15.setText(\"Jumlah\");\n\n jLabel10.setFont(new java.awt.Font(\"Caprica Script Personal Use\", 2, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(0, 76, 144));\n jLabel10.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Instagram.png\")); // NOI18N\n jLabel10.setText(\"@fagiftbox\");\n\n javax.swing.GroupLayout utamaLayout = new javax.swing.GroupLayout(utama);\n utama.setLayout(utamaLayout);\n utamaLayout.setHorizontalGroup(\n utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(kembali))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(utamaLayout.createSequentialGroup()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jSeparator6)\n .addComponent(jLabel12)\n .addComponent(jSeparator7)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator4)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15)\n .addComponent(jLabel9))\n .addGap(51, 51, 51)\n .addComponent(jLabel3)))))\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Pesan)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jenis, javax.swing.GroupLayout.Alignment.LEADING, 0, 132, Short.MAX_VALUE)\n .addComponent(warna, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(utamaLayout.createSequentialGroup()\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel14)\n .addGap(18, 18, 18)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(utamaLayout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel7)\n .addGap(18, 18, 18)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(utamaLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(0, 38, Short.MAX_VALUE))))\n );\n utamaLayout.setVerticalGroup(\n utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(utamaLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jLabel14))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jenis, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(10, 10, 10)\n .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(warna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(utamaLayout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Pesan)\n .addGap(21, 21, 21)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kembali)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n getContentPane().add(utama, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 70, 610, 510));\n\n jPanel1.setBackground(new java.awt.Color(44, 62, 80));\n\n jLabel1.setFont(new java.awt.Font(\"Caprica Script Personal Use\", 1, 28)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 202, 176));\n jLabel1.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Gift - 01.png\")); // NOI18N\n jLabel1.setText(\"FaGiftbox\");\n\n close.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Close.png\")); // NOI18N\n close.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n close.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n closeMouseClicked(evt);\n }\n });\n\n minimize.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Minimize-WF.png\")); // NOI18N\n minimize.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n minimize.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n minimizeMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 325, Short.MAX_VALUE)\n .addComponent(minimize)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(close)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(close)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(minimize))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 610, 70));\n\n pack();\n setLocationRelativeTo(null);\n }", "public ConsultarProd(javax.swing.JDialog parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jLabel66 = new javax.swing.JLabel();\r\n jPanel1 = new javax.swing.JPanel();\r\n cursosjTabbedPane = new javax.swing.JTabbedPane();\r\n jPanel2 = new javax.swing.JPanel();\r\n jPanel18 = new javax.swing.JPanel();\r\n nomeClientejTextField = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jButton1 = new javax.swing.JButton();\r\n jLabel5 = new javax.swing.JLabel();\r\n cidadejTextField = new javax.swing.JTextField();\r\n jLabel4 = new javax.swing.JLabel();\r\n quandoreprovoujTextField2 = new javax.swing.JTextField();\r\n jLabel8 = new javax.swing.JLabel();\r\n jLabel9 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n nomeIrmao02jTextField = new javax.swing.JTextField();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel30 = new javax.swing.JLabel();\r\n jLabel31 = new javax.swing.JLabel();\r\n seriejTextField = new javax.swing.JTextField();\r\n jLabel32 = new javax.swing.JLabel();\r\n estadojComboBox = new javax.swing.JComboBox();\r\n jLabel51 = new javax.swing.JLabel();\r\n reprovadojComboBox = new javax.swing.JComboBox();\r\n jLabel69 = new javax.swing.JLabel();\r\n nomeIrmao03jTextField = new javax.swing.JTextField();\r\n escolajTextField = new javax.swing.JTextField();\r\n dnIrmao02jDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\n dnIrmao03jDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\njLabel12 = new javax.swing.JLabel();\r\ndnIrmao01jDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\n nomeIrmao01jTextField = new javax.swing.JTextField();\r\n jLabel13 = new javax.swing.JLabel();\r\n jLabel14 = new javax.swing.JLabel();\r\n jLabel15 = new javax.swing.JLabel();\r\n cpfPaijFormattedTextField = new javax.swing.JFormattedTextField();\r\n rgPaijTextField = new javax.swing.JTextField();\r\n dataNascimentoPaijDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\njLabel16 = new javax.swing.JLabel();\r\ncpfMaejFormattedTextField = new javax.swing.JFormattedTextField();\r\nrgMaejTextField = new javax.swing.JTextField();\r\njLabel17 = new javax.swing.JLabel();\r\ndataNascimentoMaejDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\n jLabel18 = new javax.swing.JLabel();\r\n jPanel3 = new javax.swing.JPanel();\r\n jPanel20 = new javax.swing.JPanel();\r\n jLabel71 = new javax.swing.JLabel();\r\n idioma01jTextField = new javax.swing.JTextField();\r\n jLabel84 = new javax.swing.JLabel();\r\n idioma02jTextField = new javax.swing.JTextField();\r\n jLabel85 = new javax.swing.JLabel();\r\n idioma03jTextField = new javax.swing.JTextField();\r\n escolaidioma03jTextField = new javax.swing.JTextField();\r\n jLabel86 = new javax.swing.JLabel();\r\n escolaidioma02jTextField = new javax.swing.JTextField();\r\n jLabel87 = new javax.swing.JLabel();\r\n escolaidioma01jTextField = new javax.swing.JTextField();\r\n jLabel88 = new javax.swing.JLabel();\r\n jLabel89 = new javax.swing.JLabel();\r\n tempoidioma01jTextField = new javax.swing.JTextField();\r\n jLabel90 = new javax.swing.JLabel();\r\n tempoidioma02jTextField = new javax.swing.JTextField();\r\n jLabel91 = new javax.swing.JLabel();\r\n tempoidioma03jTextField = new javax.swing.JTextField();\r\n nivelidioma03jComboBox = new javax.swing.JComboBox();\r\n jLabel92 = new javax.swing.JLabel();\r\n nivelidioma02jComboBox = new javax.swing.JComboBox();\r\n jLabel93 = new javax.swing.JLabel();\r\n nivelidioma01jComboBox = new javax.swing.JComboBox();\r\n jLabel94 = new javax.swing.JLabel();\r\n jPanel21 = new javax.swing.JPanel();\r\n jLabel2 = new javax.swing.JLabel();\r\n paisjTextField = new javax.swing.JTextField();\r\n jLabel3 = new javax.swing.JLabel();\r\n programaescolajTextField = new javax.swing.JTextField();\r\n jLabel6 = new javax.swing.JLabel();\r\n duracaojTextField = new javax.swing.JTextField();\r\n iniciojTextField = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jButton7 = new javax.swing.JButton();\r\n selecionarValorHighSchooljButton = new javax.swing.JButton();\r\n jPanel23 = new javax.swing.JPanel();\r\n jLabel75 = new javax.swing.JLabel();\r\n nomeContatoEmergenciajTextField2 = new javax.swing.JTextField();\r\n jLabel76 = new javax.swing.JLabel();\r\n emailConatoEmergenciajTextField2 = new javax.swing.JTextField();\r\n jLabel78 = new javax.swing.JLabel();\r\n relacaoEmergenciajTextField2 = new javax.swing.JTextField();\r\n telefoneEmergenciajCheckBox = new javax.swing.JCheckBox();\r\n telefoneEmergenciajTextField = new javax.swing.JTextField();\r\n jPanel12 = new javax.swing.JPanel();\r\n jLabel46 = new javax.swing.JLabel();\r\n produtoOrcaemntojComboBox = new javax.swing.JComboBox();\r\n jLabel47 = new javax.swing.JLabel();\r\n valorProdutosMoedaEstrangeirajTextField = new javax.swing.JTextField();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n produtoOrcamentojTable = new javax.swing.JTable();\r\n jPanel13 = new javax.swing.JPanel();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jPanel14 = new javax.swing.JPanel();\r\n jLabel48 = new javax.swing.JLabel();\r\n jLabel49 = new javax.swing.JLabel();\r\n valorCambiojTextField = new javax.swing.JTextField();\r\n valorTotalOrcamentojTextField = new javax.swing.JTextField();\r\n jLabel52 = new javax.swing.JLabel();\r\n buscaBancojButton3 = new javax.swing.JButton();\r\n moedaCambiojComboBox = new javax.swing.JComboBox();\r\n valorProdutosMoedaRealjTextField = new javax.swing.JTextField();\r\n jLabel55 = new javax.swing.JLabel();\r\n jPanel15 = new javax.swing.JPanel();\r\n jPanel22 = new javax.swing.JPanel();\r\n condicaoPagamentojComboBox = new javax.swing.JComboBox();\r\n jLabel53 = new javax.swing.JLabel();\r\n valorOrcamentoFormajTextField = new javax.swing.JTextField();\r\n jLabel54 = new javax.swing.JLabel();\r\n possuiJurosjComboBox = new javax.swing.JComboBox();\r\n jLabel64 = new javax.swing.JLabel();\r\n valorJurosjTextField = new javax.swing.JTextField();\r\n jLabel56 = new javax.swing.JLabel();\r\n totalPagarjTextField = new javax.swing.JTextField();\r\n jLabel68 = new javax.swing.JLabel();\r\n jLabel33 = new javax.swing.JLabel();\r\n saldoReceberjTextField = new javax.swing.JTextField();\r\n jLabel34 = new javax.swing.JLabel();\r\n saldoParcelarjTextField = new javax.swing.JTextField();\r\n buscaBancojButton4 = new javax.swing.JButton();\r\n jPanel16 = new javax.swing.JPanel();\r\n jLabel61 = new javax.swing.JLabel();\r\n tipoParcelamentojComboBox = new javax.swing.JComboBox();\r\n jLabel62 = new javax.swing.JLabel();\r\n meioPagamentojComboBox = new javax.swing.JComboBox();\r\n jLabel63 = new javax.swing.JLabel();\r\n valorParcelamentojTextField = new javax.swing.JTextField();\r\n jLabel58 = new javax.swing.JLabel();\r\n jLabel59 = new javax.swing.JLabel();\r\n numeroParcelasjComboBox = new javax.swing.JComboBox();\r\n valorParcelajTextField = new javax.swing.JTextField();\r\n jLabel60 = new javax.swing.JLabel();\r\n dataVencimentojDateChooser = new com.toedter.calendar.JDateChooser(null, null, datePattern, new JTextFieldDateEditor(datePattern,\r\n maskPattern, placeHolder));\r\njPanel24 = new javax.swing.JPanel();\r\njButton8 = new javax.swing.JButton();\r\njButton9 = new javax.swing.JButton();\r\njScrollPane2 = new javax.swing.JScrollPane();\r\nparcelamentojTable = new javax.swing.JTable();\r\njPanel4 = new javax.swing.JPanel();\r\njScrollPane3 = new javax.swing.JScrollPane();\r\nobservacoesjTextArea = new javax.swing.JTextArea();\r\njPanel19 = new javax.swing.JPanel();\r\njScrollPane4 = new javax.swing.JScrollPane();\r\nobsTMjTextArea = new javax.swing.JTextArea();\r\njLabel35 = new javax.swing.JLabel();\r\njPanel17 = new javax.swing.JPanel();\r\njButton5 = new javax.swing.JButton();\r\njButton6 = new javax.swing.JButton();\r\n\r\njLabel66.setText(\"jLabel66\");\r\n\r\nsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\nsetTitle(\"Ficha de High School\");\r\n\r\njPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\ncursosjTabbedPane.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n cursosjTabbedPaneMouseClicked(evt);\r\n }\r\n });\r\n cursosjTabbedPane.addChangeListener(new javax.swing.event.ChangeListener() {\r\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\r\n cursosjTabbedPaneStateChanged(evt);\r\n }\r\n });\r\n\r\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n nomeClientejTextField.setEditable(false);\r\n\r\n jLabel1.setText(\"Selecionar Cliente\");\r\n\r\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/selecionar.png\"))); // NOI18N\r\n jButton1.setText(\"Selecionar\");\r\n jButton1.setToolTipText(\"Selecionar Cliente\");\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel5.setText(\"Cidade\");\r\n\r\n jLabel4.setText(\"Reprovado?\");\r\n\r\n quandoreprovoujTextField2.setEnabled(false);\r\n\r\n jLabel8.setText(\"Nome do Irmão\");\r\n\r\n jLabel9.setText(\"Data Nascimento\");\r\n\r\n jLabel10.setText(\"Nome do Irmão\");\r\n\r\n jLabel11.setText(\"Data Nascimento\");\r\n\r\n jLabel30.setText(\"Nome do Irmão\");\r\n\r\n jLabel31.setText(\"Escola onde estuda\");\r\n\r\n jLabel32.setText(\"Série / Grau\");\r\n\r\n estadojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"AL\", \"AM\", \"AP\", \"BA\", \"CE\", \"DF\", \"ES\", \"GO\", \"MA\", \"MG\", \"MS\", \"MT\", \"PA\", \"PB\", \"PE\", \"PI\", \"PR\", \"RJ\", \"RN\", \"RO\", \"RR\", \"RS\", \"SC\", \"SE\", \"SP\", \"TO\" }));\r\n\r\n jLabel51.setText(\"Estado\");\r\n\r\n reprovadojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Não\", \"Sim\" }));\r\n reprovadojComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n reprovadojComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel69.setText(\"Se \\\"Sim\\\", quando ?\");\r\n\r\n dnIrmao02jDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dnIrmao02jDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n dnIrmao03jDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dnIrmao03jDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n jLabel12.setText(\"Data Nascimento\");\r\n\r\n dnIrmao01jDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dnIrmao01jDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n jLabel13.setText(\"Nº CPF Pai\");\r\n\r\n jLabel14.setText(\"Nº RG Pai\");\r\n\r\n jLabel15.setText(\"Data Nascimento Pai\");\r\n\r\n dataNascimentoPaijDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dataNascimentoPaijDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n jLabel16.setText(\"Nº CPF Mãe\");\r\n\r\n jLabel17.setText(\"Nº RG Mãe\");\r\n\r\n dataNascimentoMaejDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dataNascimentoMaejDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n jLabel18.setText(\"Data Nascimento Mãe\");\r\n\r\n javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);\r\n jPanel18.setLayout(jPanel18Layout);\r\n jPanel18Layout.setHorizontalGroup(\r\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel18Layout.createSequentialGroup()\r\n .addGap(10, 10, 10)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel1)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(nomeClientejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(28, 28, 28)\r\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel18Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(nomeIrmao01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(28, 28, 28)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel9)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(dnIrmao01jDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(escolajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(nomeIrmao02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(nomeIrmao03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(26, 26, 26)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel32, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(1, 17, Short.MAX_VALUE))\r\n .addComponent(dnIrmao02jDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(dnIrmao03jDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(seriejTextField)))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel31)\r\n .addGap(372, 372, 372))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(cidadejTextField)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel51)\r\n .addComponent(estadojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(reprovadojComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(4, 4, 4)\r\n .addComponent(jLabel4)))\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(56, 56, 56)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel69, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel14)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(6, 6, 6)\r\n .addComponent(jLabel17))\r\n .addComponent(rgPaijTextField)\r\n .addComponent(rgMaejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(60, 60, 60)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel18)\r\n .addComponent(dataNascimentoMaejDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel15)\r\n .addComponent(dataNascimentoPaijDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))))))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(quandoreprovoujTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 363, javax.swing.GroupLayout.PREFERRED_SIZE)))))))\r\n .addContainerGap())\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel16)\r\n .addComponent(jLabel13)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(cpfMaejFormattedTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)\r\n .addComponent(cpfPaijFormattedTextField, javax.swing.GroupLayout.Alignment.LEADING)))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel18Layout.setVerticalGroup(\r\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(11, 11, 11)\r\n .addComponent(jLabel1)\r\n .addGap(5, 5, 5)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGap(3, 3, 3)\r\n .addComponent(nomeClientejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jButton1))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel8)\r\n .addComponent(jLabel9))\r\n .addGap(1, 1, 1)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(dnIrmao01jDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(nomeIrmao01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel10)\r\n .addComponent(jLabel11))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(nomeIrmao02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel30)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(nomeIrmao03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(dnIrmao02jDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel12)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(dnIrmao03jDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel32)\r\n .addComponent(jLabel31))\r\n .addGap(6, 6, 6)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(seriejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(escolajTextField))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel51)\r\n .addComponent(jLabel5))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(cidadejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(estadojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel13)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(cpfPaijFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel15)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(dataNascimentoPaijDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel16)\r\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(cpfMaejFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(dataNascimentoMaejDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel4))\r\n .addGroup(jPanel18Layout.createSequentialGroup()\r\n .addComponent(jLabel14)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(rgPaijTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel17)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(rgMaejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel69)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(reprovadojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(quandoreprovoujTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(44, 44, 44))\r\n );\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Informações Estudante\", jPanel2);\r\n\r\n jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Idioma\"));\r\n\r\n jLabel71.setText(\"Idioma\");\r\n\r\n jLabel84.setText(\"Idioma\");\r\n\r\n jLabel85.setText(\"Idioma\");\r\n\r\n jLabel86.setText(\"Escola\");\r\n\r\n jLabel87.setText(\"Escola\");\r\n\r\n jLabel88.setText(\"Escola\");\r\n\r\n jLabel89.setText(\"Tempo\");\r\n\r\n jLabel90.setText(\"Tempo\");\r\n\r\n jLabel91.setText(\"Tempo\");\r\n\r\n nivelidioma03jComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ótimo\", \"Bom\", \"Regular\", \"Ruim\" }));\r\n\r\n jLabel92.setText(\"Nível\");\r\n\r\n nivelidioma02jComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ótimo\", \"Bom\", \"Regular\", \"Ruim\" }));\r\n\r\n jLabel93.setText(\"Nível\");\r\n\r\n nivelidioma01jComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ótimo\", \"Bom\", \"Regular\", \"Ruim\" }));\r\n\r\n jLabel94.setText(\"Nível\");\r\n\r\n javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);\r\n jPanel20.setLayout(jPanel20Layout);\r\n jPanel20Layout.setHorizontalGroup(\r\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(idioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel84, javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jLabel85)))\r\n .addComponent(jLabel71)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(idioma02jTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)\r\n .addComponent(idioma01jTextField, javax.swing.GroupLayout.Alignment.LEADING)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel87)\r\n .addComponent(escolaidioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jLabel88)\r\n .addComponent(escolaidioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel86)\r\n .addComponent(escolaidioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel90)\r\n .addComponent(tempoidioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jLabel89)\r\n .addComponent(tempoidioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel91)\r\n .addComponent(tempoidioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel94)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel93, javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jLabel92, javax.swing.GroupLayout.Alignment.TRAILING))\r\n .addGap(97, 97, 97))\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(nivelidioma03jComboBox, javax.swing.GroupLayout.Alignment.LEADING, 0, 110, Short.MAX_VALUE)\r\n .addComponent(nivelidioma02jComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(nivelidioma01jComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel20Layout.setVerticalGroup(\r\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(nivelidioma01jComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel94)\r\n .addGap(26, 26, 26)))\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel93)\r\n .addGap(26, 26, 26))\r\n .addComponent(nivelidioma02jComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel92)\r\n .addGap(26, 26, 26))\r\n .addComponent(nivelidioma03jComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(tempoidioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel89)\r\n .addGap(26, 26, 26)))\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel90)\r\n .addGap(26, 26, 26))\r\n .addComponent(tempoidioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel91)\r\n .addGap(26, 26, 26))\r\n .addComponent(tempoidioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel84)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(idioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel85))\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(escolaidioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(idioma01jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel88)\r\n .addComponent(jLabel71))\r\n .addGap(26, 26, 26)))\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel20Layout.createSequentialGroup()\r\n .addComponent(jLabel87)\r\n .addGap(26, 26, 26))\r\n .addComponent(escolaidioma02jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel86)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(escolaidioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(idioma03jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Programa\"));\r\n\r\n jLabel2.setText(\"País\");\r\n\r\n paisjTextField.setEditable(false);\r\n\r\n jLabel3.setText(\"Programa/Escola\");\r\n\r\n programaescolajTextField.setEditable(false);\r\n\r\n jLabel6.setText(\"Duração\");\r\n\r\n duracaojTextField.setEditable(false);\r\n\r\n iniciojTextField.setEditable(false);\r\n\r\n jLabel7.setText(\"Início\");\r\n\r\n jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/selecionar.png\"))); // NOI18N\r\n jButton7.setText(\"Selecionar\");\r\n jButton7.setToolTipText(\"Selecionar Escola\");\r\n jButton7.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton7ActionPerformed(evt);\r\n }\r\n });\r\n\r\n selecionarValorHighSchooljButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/selecionar.png\"))); // NOI18N\r\n selecionarValorHighSchooljButton.setText(\"Selecionar\");\r\n selecionarValorHighSchooljButton.setToolTipText(\"Selecionar Valores\");\r\n selecionarValorHighSchooljButton.setEnabled(false);\r\n selecionarValorHighSchooljButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n selecionarValorHighSchooljButtonActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\r\n jPanel21.setLayout(jPanel21Layout);\r\n jPanel21Layout.setHorizontalGroup(\r\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel6)\r\n .addComponent(duracaojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createSequentialGroup()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(paisjTextField)\r\n .addComponent(iniciojTextField))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(selecionarValorHighSchooljButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)))))\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addComponent(jLabel3)\r\n .addGap(172, 172, 172)\r\n .addComponent(jLabel2))\r\n .addComponent(programaescolajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addContainerGap())\r\n );\r\n jPanel21Layout.setVerticalGroup(\r\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel21Layout.createSequentialGroup()\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel3)\r\n .addComponent(jLabel2))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(programaescolajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton7)\r\n .addComponent(paisjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel6)\r\n .addComponent(jLabel7))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(duracaojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(iniciojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(selecionarValorHighSchooljButton))\r\n .addGap(23, 23, 23))\r\n );\r\n\r\n jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Contato de Emergência no Brasil\"));\r\n\r\n jLabel75.setText(\"Nome\");\r\n\r\n jLabel76.setText(\"E-mail\");\r\n\r\n jLabel78.setText(\"Relação\");\r\n\r\n telefoneEmergenciajCheckBox.setText(\"9-Telefone\");\r\n telefoneEmergenciajCheckBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n telefoneEmergenciajCheckBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n telefoneEmergenciajTextField.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n telefoneEmergenciajTextFieldFocusLost(evt);\r\n }\r\n });\r\n telefoneEmergenciajTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n telefoneEmergenciajTextFieldKeyPressed(evt);\r\n }\r\n public void keyReleased(java.awt.event.KeyEvent evt) {\r\n telefoneEmergenciajTextFieldKeyReleased(evt);\r\n }\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n telefoneEmergenciajTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);\r\n jPanel23.setLayout(jPanel23Layout);\r\n jPanel23Layout.setHorizontalGroup(\r\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addComponent(emailConatoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 323, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(relacaoEmergenciajTextField2))\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(nomeContatoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 323, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel76)\r\n .addComponent(jLabel75))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(telefoneEmergenciajTextField)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel78)\r\n .addComponent(telefoneEmergenciajCheckBox))\r\n .addGap(0, 104, Short.MAX_VALUE)))))\r\n .addContainerGap())\r\n );\r\n jPanel23Layout.setVerticalGroup(\r\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addComponent(jLabel75)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(nomeContatoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel23Layout.createSequentialGroup()\r\n .addComponent(telefoneEmergenciajCheckBox)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(telefoneEmergenciajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel76)\r\n .addComponent(jLabel78))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(emailConatoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(relacaoEmergenciajTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(38, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\r\n jPanel3.setLayout(jPanel3Layout);\r\n jPanel3Layout.setHorizontalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel21, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel3Layout.setVerticalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Informações Complentares\", jPanel3);\r\n\r\n jLabel46.setText(\"Produtos\");\r\n\r\n jLabel47.setText(\"Valor (Moeda Estrangeira)\");\r\n\r\n valorProdutosMoedaEstrangeirajTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorProdutosMoedaEstrangeirajTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorProdutosMoedaEstrangeirajTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n produtoOrcamentojTable.setModel(new javax.swing.table.DefaultTableModel(\r\n new Object [][] {\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null},\r\n {null, null, null}\r\n },\r\n new String [] {\r\n \"Produtos Orçamento\", \"Moeda Estrangeira\", \"Valor R$\"\r\n }\r\n ) {\r\n boolean[] canEdit = new boolean [] {\r\n false, false, false\r\n };\r\n\r\n public boolean isCellEditable(int rowIndex, int columnIndex) {\r\n return canEdit [columnIndex];\r\n }\r\n });\r\n jScrollPane1.setViewportView(produtoOrcamentojTable);\r\n if (produtoOrcamentojTable.getColumnModel().getColumnCount() > 0) {\r\n produtoOrcamentojTable.getColumnModel().getColumn(0).setResizable(false);\r\n produtoOrcamentojTable.getColumnModel().getColumn(0).setPreferredWidth(290);\r\n produtoOrcamentojTable.getColumnModel().getColumn(1).setResizable(false);\r\n produtoOrcamentojTable.getColumnModel().getColumn(1).setPreferredWidth(80);\r\n produtoOrcamentojTable.getColumnModel().getColumn(2).setResizable(false);\r\n produtoOrcamentojTable.getColumnModel().getColumn(2).setPreferredWidth(50);\r\n }\r\n\r\n jPanel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/adicionar.png\"))); // NOI18N\r\n jButton2.setText(\"Adicionar\");\r\n jButton2.setToolTipText(\"Adicionar novo produtos no orçamento\");\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/excluir.png\"))); // NOI18N\r\n jButton3.setText(\"Excluir\");\r\n jButton3.setToolTipText(\"Excluir produto no orçamento\");\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\r\n jPanel13.setLayout(jPanel13Layout);\r\n jPanel13Layout.setHorizontalGroup(\r\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(127, 127, 127))\r\n );\r\n jPanel13Layout.setVerticalGroup(\r\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel13Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton2)\r\n .addComponent(jButton3))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jLabel48.setText(\"Moeda\");\r\n\r\n jLabel49.setText(\"Valor Câmbio\");\r\n\r\n valorCambiojTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorCambiojTextField.setEnabled(false);\r\n\r\n valorTotalOrcamentojTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorTotalOrcamentojTextField.setEnabled(false);\r\n\r\n jLabel52.setText(\"Valor Total R$\");\r\n\r\n buscaBancojButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/icones/cambio.png\"))); // NOI18N\r\n buscaBancojButton3.setToolTipText(\"Alterar Câmbio\");\r\n buscaBancojButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n buscaBancojButton3ActionPerformed(evt);\r\n }\r\n });\r\n\r\n moedaCambiojComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n moedaCambiojComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\r\n jPanel14.setLayout(jPanel14Layout);\r\n jPanel14Layout.setHorizontalGroup(\r\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel14Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel48)\r\n .addComponent(moedaCambiojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel49)\r\n .addGroup(jPanel14Layout.createSequentialGroup()\r\n .addComponent(valorCambiojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(buscaBancojButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorTotalOrcamentojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel52))\r\n .addContainerGap())\r\n );\r\n jPanel14Layout.setVerticalGroup(\r\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel14Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel48)\r\n .addComponent(jLabel49)\r\n .addComponent(jLabel52))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(valorTotalOrcamentojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorCambiojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(moedaCambiojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(buscaBancojButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap())\r\n );\r\n\r\n valorProdutosMoedaRealjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorProdutosMoedaRealjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorProdutosMoedaRealjTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel55.setText(\"Valor R$\");\r\n\r\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\r\n jPanel12.setLayout(jPanel12Layout);\r\n jPanel12Layout.setHorizontalGroup(\r\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel12Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 573, Short.MAX_VALUE)\r\n .addGroup(jPanel12Layout.createSequentialGroup()\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel12Layout.createSequentialGroup()\r\n .addComponent(jLabel46)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(produtoOrcaemntojComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorProdutosMoedaEstrangeirajTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel47, javax.swing.GroupLayout.Alignment.TRAILING))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel55)\r\n .addComponent(valorProdutosMoedaRealjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addContainerGap())\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(170, 170, 170))\r\n );\r\n jPanel12Layout.setVerticalGroup(\r\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel12Layout.createSequentialGroup()\r\n .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel46)\r\n .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel55))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(produtoOrcaemntojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorProdutosMoedaEstrangeirajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorProdutosMoedaRealjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Produtos\", jPanel12);\r\n\r\n jPanel22.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n condicaoPagamentojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"À Vista\", \"Parcelado\" }));\r\n condicaoPagamentojComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n condicaoPagamentojComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel53.setText(\"Forma de Pagamento\");\r\n\r\n valorOrcamentoFormajTextField.setEditable(false);\r\n valorOrcamentoFormajTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorOrcamentoFormajTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorOrcamentoFormajTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel54.setText(\"Valor Orçamento\");\r\n\r\n possuiJurosjComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Não\", \"Sim\" }));\r\n possuiJurosjComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n possuiJurosjComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel64.setText(\"Acrescentar Juros\");\r\n\r\n valorJurosjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorJurosjTextField.setEnabled(false);\r\n valorJurosjTextField.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n valorJurosjTextFieldFocusLost(evt);\r\n }\r\n });\r\n valorJurosjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyReleased(java.awt.event.KeyEvent evt) {\r\n valorJurosjTextFieldKeyReleased(evt);\r\n }\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorJurosjTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel56.setText(\"Valor Juros\");\r\n\r\n totalPagarjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n totalPagarjTextField.setEnabled(false);\r\n\r\n jLabel68.setText(\"Total a Pagar\");\r\n\r\n jLabel33.setText(\"Saldo a Receber\");\r\n\r\n saldoReceberjTextField.setEditable(false);\r\n saldoReceberjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n saldoReceberjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n saldoReceberjTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel34.setText(\"Saldo a Parcelar\");\r\n\r\n saldoParcelarjTextField.setEditable(false);\r\n saldoParcelarjTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n saldoParcelarjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n saldoParcelarjTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n buscaBancojButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/icones/cambio.png\"))); // NOI18N\r\n buscaBancojButton4.setToolTipText(\"Calculo de Juros\");\r\n buscaBancojButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n buscaBancojButton4ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);\r\n jPanel22.setLayout(jPanel22Layout);\r\n jPanel22Layout.setHorizontalGroup(\r\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(condicaoPagamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel53))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorOrcamentoFormajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel54))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(possuiJurosjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel64))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addComponent(valorJurosjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(buscaBancojButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jLabel56))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(totalPagarjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel68)))\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel33)\r\n .addComponent(saldoReceberjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(saldoParcelarjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel34))))\r\n .addContainerGap())\r\n );\r\n jPanel22Layout.setVerticalGroup(\r\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel53)\r\n .addComponent(jLabel54)\r\n .addComponent(jLabel56)\r\n .addComponent(jLabel64)\r\n .addComponent(jLabel68))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(condicaoPagamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorOrcamentoFormajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(possuiJurosjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorJurosjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(totalPagarjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(buscaBancojButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addComponent(jLabel34)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(saldoParcelarjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel22Layout.createSequentialGroup()\r\n .addComponent(jLabel33)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(saldoReceberjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jLabel61.setText(\"Tipo de Parcelamento\");\r\n\r\n tipoParcelamentojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Matriz\", \"Loja\", \"Fornecedor\" }));\r\n\r\n jLabel62.setText(\"Forma de Pagamento\");\r\n\r\n meioPagamentojComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Selecione\", \"Dinheiro\", \"Boleto\", \"Cartão de crédito\", \"Cartão de crédito autorizado\", \"Cartão débito\", \"Cheque\", \"Déposito\", \"Financiamento banco\" }));\r\n meioPagamentojComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n meioPagamentojComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel63.setText(\"Data Primeiro Vencimento\");\r\n\r\n valorParcelamentojTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorParcelamentojTextField.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n valorParcelamentojTextFieldFocusLost(evt);\r\n }\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n valorParcelamentojTextFieldFocusGained(evt);\r\n }\r\n });\r\n valorParcelamentojTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorParcelamentojTextFieldKeyTyped(evt);\r\n }\r\n });\r\n\r\n jLabel58.setText(\"Valor a Parcelar \");\r\n\r\n jLabel59.setText(\"Nº Parcelas\");\r\n\r\n numeroParcelasjComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\", \"24\" }));\r\n numeroParcelasjComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n numeroParcelasjComboBoxItemStateChanged(evt);\r\n }\r\n });\r\n\r\n valorParcelajTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n valorParcelajTextField.setEnabled(false);\r\n valorParcelajTextField.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n valorParcelajTextFieldFocusGained(evt);\r\n }\r\n });\r\n valorParcelajTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n valorParcelajTextFieldKeyPressed(evt);\r\n }\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n valorParcelajTextFieldKeyTyped(evt);\r\n }\r\n public void keyReleased(java.awt.event.KeyEvent evt) {\r\n valorParcelajTextFieldKeyReleased(evt);\r\n }\r\n });\r\n\r\n jLabel60.setText(\"Valor Parcela\");\r\n\r\n dataVencimentojDateChooser.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n dataVencimentojDateChooserFocusGained(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\r\n jPanel16.setLayout(jPanel16Layout);\r\n jPanel16Layout.setHorizontalGroup(\r\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel62)\r\n .addComponent(meioPagamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGap(52, 52, 52)\r\n .addComponent(jLabel61)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(tipoParcelamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel63, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(dataVencimentojDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel58)\r\n .addComponent(valorParcelamentojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(109, 109, 109)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel59)\r\n .addComponent(numeroParcelasjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorParcelajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel60, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n jPanel16Layout.setVerticalGroup(\r\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel62)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(meioPagamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(tipoParcelamentojComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel63)\r\n .addComponent(jLabel61))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(dataVencimentojDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addComponent(jLabel59)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(numeroParcelasjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel16Layout.createSequentialGroup()\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel58)\r\n .addComponent(jLabel60))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(valorParcelajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(valorParcelamentojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n\r\n jPanel24.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/adicionar.png\"))); // NOI18N\r\n jButton8.setText(\"Adicionar\");\r\n jButton8.setToolTipText(\"Adicionar forma de pagamento\");\r\n jButton8.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton8ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/excluir.png\"))); // NOI18N\r\n jButton9.setText(\"Excluir\");\r\n jButton9.setToolTipText(\"Excluir forma de pagamento\");\r\n jButton9.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton9ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);\r\n jPanel24.setLayout(jPanel24Layout);\r\n jPanel24Layout.setHorizontalGroup(\r\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup()\r\n .addGap(24, 24, 24)\r\n .addComponent(jButton8)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)\r\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(22, 22, 22))\r\n );\r\n jPanel24Layout.setVerticalGroup(\r\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton8)\r\n .addComponent(jButton9))\r\n .addContainerGap())\r\n );\r\n\r\n parcelamentojTable.setModel(new javax.swing.table.DefaultTableModel(\r\n new Object [][] {\r\n {null, null, null, null, null},\r\n {null, null, null, null, null},\r\n {null, null, null, null, null},\r\n {null, null, null, null, null}\r\n },\r\n new String [] {\r\n \"Forma Pagamento\", \"Tipo Parcelmaneto\", \"Valor a Parcelar\", \"Nº Parcelas\", \"Valor Parcela\"\r\n }\r\n ) {\r\n boolean[] canEdit = new boolean [] {\r\n false, false, false, false, false\r\n };\r\n\r\n public boolean isCellEditable(int rowIndex, int columnIndex) {\r\n return canEdit [columnIndex];\r\n }\r\n });\r\n jScrollPane2.setViewportView(parcelamentojTable);\r\n\r\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\r\n jPanel15.setLayout(jPanel15Layout);\r\n jPanel15Layout.setHorizontalGroup(\r\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel15Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jPanel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel15Layout.createSequentialGroup()\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 551, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addContainerGap())\r\n .addGroup(jPanel15Layout.createSequentialGroup()\r\n .addGap(140, 140, 140)\r\n .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel15Layout.setVerticalGroup(\r\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel15Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(306, 306, 306))\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Forma Pagto\", jPanel15);\r\n\r\n observacoesjTextArea.setColumns(20);\r\n observacoesjTextArea.setRows(5);\r\n jScrollPane3.setViewportView(observacoesjTextArea);\r\n\r\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\r\n jPanel4.setLayout(jPanel4Layout);\r\n jPanel4Layout.setHorizontalGroup(\r\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 573, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n jPanel4Layout.setVerticalGroup(\r\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 460, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Obs\", jPanel4);\r\n\r\n obsTMjTextArea.setColumns(20);\r\n obsTMjTextArea.setRows(5);\r\n jScrollPane4.setViewportView(obsTMjTextArea);\r\n\r\n jLabel35.setText(\"Observações que serão enviadas ao Departamento Responsável e ao Departamento Financeiro da TravelMate\");\r\n\r\n javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);\r\n jPanel19.setLayout(jPanel19Layout);\r\n jPanel19Layout.setHorizontalGroup(\r\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel19Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jScrollPane4)\r\n .addGroup(jPanel19Layout.createSequentialGroup()\r\n .addComponent(jLabel35)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addContainerGap())\r\n );\r\n jPanel19Layout.setVerticalGroup(\r\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel35)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 440, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n cursosjTabbedPane.addTab(\"Obs TM\", jPanel19);\r\n\r\n jPanel17.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n\r\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/confirmar.png\"))); // NOI18N\r\n jButton5.setText(\"Confirmar\");\r\n jButton5.setToolTipText(\"Confirma Cadastro da Ficha de High School\");\r\n jButton5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton5ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/botozinhos/cancel.png\"))); // NOI18N\r\n jButton6.setText(\"Cancelar\");\r\n jButton6.setToolTipText(\"Cancela Ficha de Curso\");\r\n jButton6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton6ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\r\n jPanel17.setLayout(jPanel17Layout);\r\n jPanel17Layout.setHorizontalGroup(\r\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel17Layout.createSequentialGroup()\r\n .addContainerGap(85, Short.MAX_VALUE)\r\n .addComponent(jButton5)\r\n .addGap(37, 37, 37)\r\n .addComponent(jButton6)\r\n .addGap(86, 86, 86))\r\n );\r\n jPanel17Layout.setVerticalGroup(\r\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel17Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton5)\r\n .addComponent(jButton6))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(99, 99, 99))\r\n .addComponent(cursosjTabbedPane)\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(cursosjTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 510, Short.MAX_VALUE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n pack();\r\n }", "public frmCalendario(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n esquema = new GridLayout(0,1); // espacios libres de 5 píxeles \n esquema1 = new GridLayout(0,1);\n PACreditos.setLayout(esquema1);\n CREDITO= new credito();\n EMPLEADO= new empleado();\n Container contenedor = getContentPane();\n this.getContentPane().setLayout(esquema);\n this.getContentPane().add(PDTrabajador);\n this.getContentPane().add(PDCredito);\n contenedor.setLayout( esquema1 );\n JScrollPane scrollpane = new JScrollPane(PACreditos);\n contenedor.add( scrollpane, BorderLayout.CENTER ); \n this.getContentPane().add(scrollpane);\n setSize( 1000, 500 );\n setVisible( true ); \n }", "private void initialize() {\n frmInfoCursa = new JFrame();\n frmInfoCursa.setTitle(\"informatii cursa\");\n frmInfoCursa.getContentPane().setBackground(new Color(127, 255, 212));\n frmInfoCursa.setBounds(100, 100, 450, 300);\n frmInfoCursa.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frmInfoCursa.getContentPane().setLayout(null);\n frmInfoCursa.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n int result = JOptionPane.showConfirmDialog(frmInfoCursa,\"Leave\" +\n \" ?\",\"Confirmare iesire :\", JOptionPane.YES_NO_OPTION);\n if (result == JOptionPane.YES_OPTION)\n frmInfoCursa.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n else\n frmInfoCursa.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n }\n });\n\n btnNewButton = new JButton(\"Inapoi\");\n btnNewButton.setBounds(152, 184, 115, 29);\n btnNewButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n flag = true;\n DriverPage.afiseaza();\n frmInfoCursa.setVisible(false);\n }\n });\n frmInfoCursa.getContentPane().add(btnNewButton);\n\n JLabel lblNewLabel = new JLabel(\"Durata cursa:\");\n lblNewLabel.setFont(new Font(\"Showcard Gothic\", Font.BOLD, 16));\n lblNewLabel.setBounds(82, 48, 136, 26);\n frmInfoCursa.getContentPane().add(lblNewLabel);\n\n JLabel lblNewLabel_1 = new JLabel(\"\\tPret cursa:\");\n lblNewLabel_1.setFont(new Font(\"Showcard Gothic\", Font.PLAIN, 16));\n lblNewLabel_1.setBounds(82, 132, 136, 26);\n frmInfoCursa.getContentPane().add(lblNewLabel_1);\n\n JLabel lblNewLabel_2 = new JLabel(\"\" + distanta * 3 + \" lei\");\n lblNewLabel_2.setBounds(261, 50, 69, 20);\n frmInfoCursa.getContentPane().add(lblNewLabel_2);\n\n JLabel lblNewLabel_3 = new JLabel(distanta * 2 + \" minute\");\n lblNewLabel_3.setBounds(261, 134, 69, 20);\n frmInfoCursa.getContentPane().add(lblNewLabel_3);\n }", "public UTL_JFrame_VentanaGraficas() {\n \n initComponents();\n }", "public VentanaReglas() {\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tsetBounds(100, 100, 498, 338);\n\t\t_contentPane = new JPanel();\n\t\t_contentPane.setBackground(SystemColor.menu);\n\t\t_contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(_contentPane);\n\t\t_contentPane.setLayout(null);\n\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n\t\t\t\t| UnsupportedLookAndFeelException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t_btnNewButton = new JButton(\"Entendido\");\n\t\t_btnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\n\t\t\t}\n\t\t});\n\t\t_btnNewButton.setBounds(196, 271, 89, 23);\n\t\t_contentPane.add(_btnNewButton);\n\n\t\tJLabel lblcmoJugar = new JLabel(\"\\u00BFC\\u00F3mo jugar 2048?\");\n\t\tlblcmoJugar.setForeground(new Color(255, 51, 0));\n\t\tlblcmoJugar.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblcmoJugar.setBounds(152, 0, 155, 20);\n\t\t_contentPane.add(lblcmoJugar);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(10, 23, 462, 247);\n\t\t_contentPane.add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tTextArea textArea = new TextArea();\n\t\ttextArea.setBounds(0, 0, 462, 247);\n\t\ttextArea.setText(\"El juego es simple, este consiste en desplazar la matriz en cuatro direcciones \\r\\ncos las flechas del cursor (arriba, abajo, derecha e izquierda) la matriz se \\r\\ndesplaza de forma integra sobre los espacios vac\\u00EDos.\\r\\nEn cuanto las baldosas se muevan si hay dos iguales las mismas se suman, \\r\\nel objetivo principal es que producto de la suma una baldosa llegue al valor \\r\\n2048.\\r\\n\\r\\n* Los controles son: Arriba \\u2191 , Abajo \\u2193, Izquierda \\u2190 y Derecha \\u2192.\\r\\n* Para deshacer una jugada presionar la letra (d).\\r\\n* Para reiniciar el juego presionar la tecla escape (Esc) respondiendo a la \\r\\n consulta.\\r\\n* En caso de querer abandonar el juego solamente presiona con el click \\r\\n izquierdo del mouse la caracter\\u00EDstica X que se encuentra en la parte \\r\\n superior derecha de la ventana principal.\\r\\n BUENA SUERTE Y QUE LO DISFRUTES!!!!!!!! {O u O}\\r\\n\");\n\t\ttextArea.setMaximumSize(new Dimension(42767, 42767));\n\t\ttextArea.setEditable(false);\n\t\tpanel.add(textArea);\n\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialog1 = new javax.swing.JDialog();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n Calculeaza = new javax.swing.JButton();\n Exit = new javax.swing.JButton();\n CAS25 = new javax.swing.JLabel();\n CAS10 = new javax.swing.JLabel();\n Deducere = new javax.swing.JLabel();\n venitImpozabil = new javax.swing.JLabel();\n cam2_5 = new javax.swing.JLabel();\n impozitVenit = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n salariuNet = new javax.swing.JLabel();\n sumeColectate = new javax.swing.JLabel();\n SalariuBrutLei = new javax.swing.JTextField();\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n });\n\n jLabel1.setBackground(new java.awt.Color(255, 204, 51));\n jLabel1.setFont(new java.awt.Font(\"Viner Hand ITC\", 3, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(153, 0, 153));\n jLabel1.setText(\" Calculator Salariu Net 2018\");\n jLabel1.setName(\"\"); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 204, 153));\n jLabel2.setText(\"Salariu brut in lei\");\n\n jLabel3.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel3.setText(\"CAS - 25%\");\n\n jLabel4.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel4.setText(\"Deducere personala\");\n\n jLabel5.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel5.setText(\"CASS - 10%\");\n\n jLabel7.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel7.setText(\"Venit Impozabil\");\n\n jLabel9.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel9.setText(\"Contributia asiguratorie pentru munca - 2.25%\\t\");\n\n jLabel11.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel11.setText(\"Impozit pe venit - 10%\");\n\n jLabel13.setFont(new java.awt.Font(\"Tempus Sans ITC\", 1, 18)); // NOI18N\n jLabel13.setText(\"Giustonel Edition Copyright 2018\");\n\n Calculeaza.setText(\"Calculeaza\");\n Calculeaza.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CalculeazaActionPerformed(evt);\n }\n });\n\n Exit.setText(\"Exit\");\n Exit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ExitActionPerformed(evt);\n }\n });\n\n CAS25.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n CAS10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n Deducere.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n venitImpozabil.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n cam2_5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n impozitVenit.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n jLabel17.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel17.setText(\"Salariu Net\");\n\n jLabel18.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 18)); // NOI18N\n jLabel18.setText(\"Sume colectate de stat\");\n\n salariuNet.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n sumeColectate.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n SalariuBrutLei.addInputMethodListener(new java.awt.event.InputMethodListener() {\n public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {\n }\n public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {\n SalariuBrutLeiInputMethodTextChanged(evt);\n }\n });\n SalariuBrutLei.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SalariuBrutLeiActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Deducere, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cam2_5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)\n .addComponent(impozitVenit, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)\n .addComponent(venitImpozabil, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(CAS10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(112, 112, 112)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel7)\n .addComponent(jLabel11)\n .addComponent(jLabel9)\n .addComponent(jLabel2)\n .addComponent(jLabel17)\n .addComponent(jLabel18))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(CAS25, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)\n .addComponent(salariuNet, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(sumeColectate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(SalariuBrutLei)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(139, 139, 139)\n .addComponent(jLabel13))\n .addGroup(layout.createSequentialGroup()\n .addComponent(Calculeaza)\n .addGap(61, 61, 61)\n .addComponent(Exit, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(200, 200, 200)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(128, 128, 128))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(SalariuBrutLei, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(CAS25, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel5))\n .addComponent(CAS10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Deducere, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(venitImpozabil, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel11))\n .addComponent(impozitVenit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cam2_5, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel17)\n .addComponent(salariuNet, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(sumeColectate, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Calculeaza)\n .addComponent(Exit))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }", "public VentanaRegistroLocal() {\n\t\t\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowOpened(WindowEvent e){\n\t\t\t\ttxtNroLocal.requestFocus();\n\t\t\t}\n\t\t});\n\t\t\n\n\t\tbotonGuardar = new JButton();\n\t\tbotonGuardar.setToolTipText(\"Guardar\");\n\t\tbotonGuardar.setIcon(new ImageIcon(VentanaRegistroLocal.class\n\t\t\t\t.getResource(\"/imgs/save.png\")));\n\t\tbotonGuardar.setBounds(298, 52, 32, 32);\n\t\tbotonGuardar.setOpaque(false);\n\t\tbotonGuardar.setContentAreaFilled(false);\n\t\tbotonGuardar.setBorderPainted(false);\n\t\tImage img3 = ((ImageIcon) botonGuardar.getIcon()).getImage();\n\t\tImage newimg3 = img3.getScaledInstance(32, 32,\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH);\n\t\tbotonGuardar.setIcon(new ImageIcon(newimg3));\n\n\t\tbotonCancelar = new JButton();\n\t\tbotonCancelar.setBackground(Color.WHITE);\n\t\tbotonCancelar.setToolTipText(\"Atrás\");\n\t\tbotonCancelar.setIcon(new ImageIcon(VentanaRegistroLocal.class\n\t\t\t\t.getResource(\"/imgs/back2.png\")));\n\t\tbotonCancelar.setBounds(589, 150, 32, 32);\n\t\tbotonCancelar.setOpaque(false);\n\t\tbotonCancelar.setContentAreaFilled(false);\n\t\tbotonCancelar.setBorderPainted(false);\n\t\tImage img2 = ((ImageIcon) botonCancelar.getIcon()).getImage();\n\t\tImage newimg2 = img2.getScaledInstance(32, 32,\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH);\n\t\tbotonCancelar.setIcon(new ImageIcon(newimg2));\n\t\t\n\n\t\tlabelTitulo = new JLabel();\n\t\tlabelTitulo.setText(\"NUEVO LOCAL\");\n\t\tlabelTitulo.setBounds(269, 11, 380, 30);\n\t\tlabelTitulo.setFont(new java.awt.Font(\"Verdana\", 1, 18));\n\n\t\tbotonGuardar.addActionListener(this);\n\t\tbotonCancelar.addActionListener(this);\n\t\tgetContentPane().add(botonCancelar);\n\t\tgetContentPane().add(botonGuardar);\n\t\tgetContentPane().add(labelTitulo);\n\t\tlimpiar();\n\t\tsetSize(624, 208);\n\t\tsetTitle(\"Sistema E-vote: Paraguay Elecciones 2015\");\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(null);\n\n\t\tbtnHome = new JButton(\"\");\n\t\tbtnHome.setToolTipText(\"Inicio\");\n\t\tbtnHome.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDefinicionesGenerales menuprincipal = new DefinicionesGenerales();\n\t\t\t\tmenuprincipal.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnHome.setIcon(new ImageIcon(VentanaRegistroLocal.class\n\t\t\t\t.getResource(\"/imgs/home.png\")));\n\t\tbtnHome.setBounds(0, 0, 32, 32);\n\t\tImage img = ((ImageIcon) btnHome.getIcon()).getImage();\n\t\tImage newimg = img.getScaledInstance(32, 32,\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH);\n\t\tbtnHome.setIcon(new ImageIcon(newimg));\n\t\tgetContentPane().add(btnHome);\n\n\t\tlblNroLocal = new JLabel();\n\t\tlblNroLocal.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNroLocal.setText(\"Nro:\");\n\t\tlblNroLocal.setBounds(142, 59, 61, 25);\n\t\tgetContentPane().add(lblNroLocal);\n\n\t\ttxtNroLocal = new JTextField();\n\t\ttxtNroLocal.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tchar car = e.getKeyChar();\n\t\t\t\tif((car<'0' || car>'9')) e.consume();\n\t\t\t}\n\t\t});\n\t\ttxtNroLocal.addFocusListener(new FocusAdapter() {\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\tif (txtNroLocal.getText().length() == 1)\n\t\t\t\t{\n\t\t\t\t\ttxtNroLocal.setText(0 + txtNroLocal.getText() );\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtNroLocal.setBounds(213, 54, 75, 26);\n\t\tgetContentPane().add(txtNroLocal);\n\t\ttxtNroLocal.setColumns(10);\n\n\t\tlblMensaje = new JLabel(\"\");\n\t\tlblMensaje.setForeground(Color.RED);\n\t\tlblMensaje.setBounds(213, 122, 363, 14);\n\t\tgetContentPane().add(lblMensaje);\n\t\t\n\t\tJLabel lblDescripcionLocal = new JLabel();\n\t\tlblDescripcionLocal.setText(\"Descripcion:\");\n\t\tlblDescripcionLocal.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblDescripcionLocal.setBounds(114, 86, 89, 25);\n\t\tgetContentPane().add(lblDescripcionLocal);\n\t\t\n\t\ttxtDescripcionLocal = new JTextField();\n\t\ttxtDescripcionLocal.setColumns(10);\n\t\ttxtDescripcionLocal.setBounds(213, 85, 298, 26);\n\t\tgetContentPane().add(txtDescripcionLocal);\n\t\t//recuperarDatos();\n\t\t\n\t\tgetRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),\"clickButton\");\n\n\t\tgetRootPane().getActionMap().put(\"clickButton\",new AbstractAction(){\n\t\t\t public void actionPerformed(ActionEvent ae)\n\t\t\t {\n\t\t\t botonGuardar.doClick();\n\t\t\t System.out.println(\"button clicked\");\n\t\t\t }\n\t\t\t });\n\t\t\n\t\t\n\t\tgetRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0),\"clickButtonescape\");\n\n\t\tgetRootPane().getActionMap().put(\"clickButtonescape\",new AbstractAction(){\n\t\t\t public void actionPerformed(ActionEvent ae)\n\t\t\t {\n\t\t\t botonCancelar.doClick();\n\t\t\t System.out.println(\"button esc clicked\");\n\t\t\t }\n\t\t\t });\n\n\t}", "public void sauvegardeActionPerformed(java.awt.event.ActionEvent evt) throws IOException{ \n Games.get(0).saveGame();\n JOptionPane.showMessageDialog(this,\"Partie sauvegardée !\");\n this.requestFocusInWindow();\n }", "private void jMenuItemEliminarAlumnoActionPerformed(java.awt.event.ActionEvent evt) {\n JFrameSistemaDeMenu frame= new JFrameSistemaDeMenu();\ndialogo=new JDialogEliminarEmpleado(frame,true);\ndialogo.setSize(400, 380);\ndialogo.setLocationRelativeTo(frame);\ndialogo.setVisible(true);\n\n}", "public VistaCrearTema(java.awt.Frame parent, boolean modal) {\n /*Inicializa la vista y lo situa centrado respecto a su padre*/\n super(parent, modal);\n controladorcreartema = new CtrlCrearTema();\n initComponents();\n this.setLocationRelativeTo(parent);\n }", "public ComprarJuego() {\n initComponents();\n setLocationRelativeTo(null);\n try {\n cargarNickJuegos();\n precio.setVisible(false);\n \n } catch (SQLException ex) {\n Logger.getLogger(ComprarJuego.class.getName()).log(Level.SEVERE, null, ex);\n }\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 jLabel2 = new javax.swing.JLabel();\n jTextFieldOro = new javax.swing.JTextField();\n jTextFieldElixir = new javax.swing.JTextField();\n jButtonCrearEdificio = new javax.swing.JButton();\n jButtonCrearTropa = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButtonMejorarEdificio = new javax.swing.JButton();\n jButtonRecogerRecursos = new javax.swing.JButton();\n jButton9 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextFieldChoza = new javax.swing.JTextField();\n jTextFieldMina = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jTextFieldRecolector = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jTextFieldCampamento = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jTextFieldCañon = new javax.swing.JTextField();\n jTextFieldMortero = new javax.swing.JTextField();\n jTextFieldTorre = new javax.swing.JTextField();\n jTextFieldCuartel = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextFieldBarbaro = new javax.swing.JTextField();\n jTextFieldArquera = new javax.swing.JTextField();\n jTextFieldGigante = new javax.swing.JTextField();\n jTextFieldDuende = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jTextField15 = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jTextFieldAyuntamiento = new javax.swing.JTextField();\n jTextFieldOroMina = new javax.swing.JTextField();\n jTextFieldElixRec = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Oro\");\n\n jLabel2.setText(\"Elixir\");\n\n jTextFieldOro.setEnabled(false);\n\n jTextFieldElixir.setToolTipText(\"\");\n jTextFieldElixir.setEnabled(false);\n\n jButtonCrearEdificio.setText(\"Crear Edificio\");\n jButtonCrearEdificio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearEdificioActionPerformed(evt);\n }\n });\n\n jButtonCrearTropa.setText(\"Crear Tropa\");\n jButtonCrearTropa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearTropaActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Realizar Ataque\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButtonMejorarEdificio.setText(\"Mejorar Edificio\");\n jButtonMejorarEdificio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMejorarEdificioActionPerformed(evt);\n }\n });\n\n jButtonRecogerRecursos.setText(\"Recoger Recursos\");\n jButtonRecogerRecursos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRecogerRecursosActionPerformed(evt);\n }\n });\n\n jButton9.setText(\"Recibir Ataque\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jLabel4.setForeground(new java.awt.Color(0, 0, 102));\n jLabel4.setText(\"Mi Aldea\");\n\n jTextFieldChoza.setEnabled(false);\n\n jTextFieldMina.setEnabled(false);\n\n jTextFieldRecolector.setEnabled(false);\n\n jTextFieldCampamento.setEnabled(false);\n\n jTextFieldCañon.setEnabled(false);\n\n jTextFieldMortero.setEnabled(false);\n\n jTextFieldTorre.setEnabled(false);\n\n jTextFieldCuartel.setEnabled(false);\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel13.setText(\"Tropas\");\n\n jTextFieldBarbaro.setEnabled(false);\n\n jTextFieldArquera.setEnabled(false);\n\n jTextFieldGigante.setEnabled(false);\n\n jTextFieldDuende.setEnabled(false);\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel18.setText(\"Tropas\");\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel19.setText(\"Tiempo\");\n\n jTextField15.setEnabled(false);\n\n jLabel21.setText(\"jLabel21\");\n\n jLabel22.setText(\"jLabel22\");\n\n jLabel23.setText(\"jLabel23\");\n\n jLabel24.setText(\"AYUNTAMIENTO\");\n\n jTextFieldAyuntamiento.setEnabled(false);\n\n jTextFieldOroMina.setEnabled(false);\n jTextFieldOroMina.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldOroMinaActionPerformed(evt);\n }\n });\n\n jTextFieldElixRec.setEnabled(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(69, 69, 69)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldElixRec, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldOroMina, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldRecolector, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldMina, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldChoza, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldCampamento, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(65, 65, 65)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextFieldMortero, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextFieldCuartel)\n .addComponent(jTextFieldTorre, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(34, 34, 34)\n .addComponent(jTextFieldCañon, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(73, 73, 73)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextFieldBarbaro)\n .addComponent(jTextFieldGigante)\n .addComponent(jTextFieldDuende)\n .addComponent(jTextFieldArquera, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 251, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 319, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addGap(44, 44, 44))\n .addGroup(layout.createSequentialGroup()\n .addGap(122, 122, 122)\n .addComponent(jLabel24)\n .addGap(18, 18, 18)\n .addComponent(jTextFieldAyuntamiento, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 173, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldOro, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldElixir, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(143, 143, 143)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButtonCrearEdificio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonCrearTropa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonMejorarEdificio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonRecogerRecursos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23))\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 821, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(80, 80, 80)\n .addComponent(jLabel18)\n .addGap(229, 229, 229)\n .addComponent(jLabel19)\n .addGap(18, 18, 18)\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel22)\n .addComponent(jLabel21)\n .addComponent(jLabel23))))\n .addContainerGap(320, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(62, 62, 62)\n .addComponent(jButtonCrearEdificio)\n .addGap(4, 4, 4)\n .addComponent(jButtonCrearTropa)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonMejorarEdificio)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonRecogerRecursos)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton9))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextFieldOro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldElixir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addComponent(jLabel13))\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(jTextFieldAyuntamiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextFieldChoza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jTextFieldCañon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(jTextFieldBarbaro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextFieldMina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jTextFieldMortero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15)\n .addComponent(jTextFieldArquera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldOroMina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jTextFieldRecolector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(jTextFieldTorre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16)\n .addComponent(jTextFieldGigante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldElixRec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextFieldCampamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12)\n .addComponent(jTextFieldCuartel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17)\n .addComponent(jTextFieldDuende, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jLabel19)\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addComponent(jLabel21)\n .addGap(32, 32, 32)\n .addComponent(jLabel22)\n .addGap(35, 35, 35)\n .addComponent(jLabel23)\n .addContainerGap(224, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n btnPausar = new javax.swing.JButton();\n btnParar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n lblms = new javax.swing.JLabel();\n lblh = new javax.swing.JLabel();\n lblm = new javax.swing.JLabel();\n lbls = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n lbltitulo = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n btnIniciar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setAlwaysOnTop(true);\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setLocationByPlatform(true);\n setModalExclusionType(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE);\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(91, 37, 37));\n jPanel1.setForeground(new java.awt.Color(71, 75, 77));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n btnPausar.setBackground(new java.awt.Color(153, 153, 153));\n btnPausar.setText(\"Pausar\");\n btnPausar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPausarActionPerformed(evt);\n }\n });\n jPanel1.add(btnPausar, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 99, -1));\n\n btnParar.setBackground(new java.awt.Color(153, 153, 153));\n btnParar.setText(\"Detener\");\n btnParar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPararActionPerformed(evt);\n }\n });\n jPanel1.add(btnParar, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, 99, -1));\n\n jLabel1.setForeground(new java.awt.Color(204, 204, 204));\n jLabel1.setText(\"M\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 90, 20, 20));\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 80, 210, 10));\n\n jLabel4.setForeground(new java.awt.Color(204, 204, 204));\n jLabel4.setText(\"H\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 90, 20, 20));\n\n jLabel5.setForeground(new java.awt.Color(204, 204, 204));\n jLabel5.setText(\"S\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 90, 20, 20));\n\n lblms.setFont(new java.awt.Font(\"Arial\", 0, 36)); // NOI18N\n lblms.setForeground(new java.awt.Color(0, 255, 102));\n lblms.setText(\"00\");\n jPanel1.add(lblms, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 40, 60, 40));\n\n lblh.setFont(new java.awt.Font(\"Arial\", 0, 36)); // NOI18N\n lblh.setForeground(new java.awt.Color(0, 255, 102));\n lblh.setText(\"00:\");\n jPanel1.add(lblh, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 40, 60, 40));\n\n lblm.setFont(new java.awt.Font(\"Arial\", 0, 36)); // NOI18N\n lblm.setForeground(new java.awt.Color(0, 255, 102));\n lblm.setText(\"00:\");\n jPanel1.add(lblm, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 40, 60, 40));\n\n lbls.setFont(new java.awt.Font(\"Arial\", 0, 36)); // NOI18N\n lbls.setForeground(new java.awt.Color(0, 255, 102));\n lbls.setText(\"00:\");\n jPanel1.add(lbls, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 40, 60, 40));\n\n jPanel2.setBackground(new java.awt.Color(108, 101, 113));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n lbltitulo.setFont(new java.awt.Font(\"Courier New\", 1, 24)); // NOI18N\n lbltitulo.setText(\"Cronómetro\");\n jPanel2.add(lbltitulo, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 0, -1, -1));\n\n jLabel3.setForeground(new java.awt.Color(204, 204, 204));\n jLabel3.setText(\"MS\");\n jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 90, 30, 20));\n\n jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 0, 230, 120));\n\n btnIniciar.setBackground(new java.awt.Color(153, 153, 153));\n btnIniciar.setText(\"Iniciar\");\n btnIniciar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnIniciarActionPerformed(evt);\n }\n });\n jPanel1.add(btnIniciar, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 99, -1));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 350, 120));\n\n pack();\n }", "public CrearPedidos() {\n initComponents();\n }", "private void init (){\n ///compoennetes\n // cuadros de texto\n txCodigo = new JTextField(10);\n txNombre = new JTextField(10);\n // etiquetas\n lbCodigo = new JLabel(\"codigo: \");\n lbNombre = new JLabel(\"nombre: \");\n // boton \n btAcpetar = new JButton(\"aceptar\");\n btAcpetar.setToolTipText(\"realizar insert\");\n btAcpetar.addActionListener(this);\n // paneles contenedores\n JPanel pCodigo = new JPanel();\n JPanel pNombre = new JPanel();\n // cambio de layout\n BoxLayout bx = new BoxLayout(this.getContentPane(), BoxLayout.PAGE_AXIS);\n this.setLayout(bx);\n // annadir a los paneles\n pCodigo.add(lbCodigo);\n pCodigo.add(txCodigo);\n pNombre.add(lbNombre);\n pNombre.add(txNombre);\n // annadir al dialogo\n add(pCodigo);\n add(pNombre);\n add(btAcpetar);\n }", "public AcervoCtrl(JPanel frmAcervo, JLabel imagem, JLabel lblStatus, JLabel lblValor, JComboBox<String> cbSetor,\r\n\t\t\tJComboBox<String> cbSetorT, JComboBox<String> cbStatus, JComboBox<String> cbStatusT,\r\n\t\t\tJComboBox<String> cbCategoria, JComboBox<String> cbObras, JComboBox<String> cbMaterial,\r\n\t\t\tJTextField nomeArtista, JTextField nomeObra, JTextField txtNovaObra, JFormattedTextField dataAquisicao,\r\n\t\t\tJEditorPane descricaoObra, JLabel msgGravar, JLabel msgVazio, JFormattedTextField txtValor,\r\n\t\t\tJButton btnPesqArtist, JButton btnNovoArtista, JButton btnEditarArtista, JButton btnNovaCategoria,\r\n\t\t\tJButton btnEditarCategoria, JButton btnNovoMaterial, JButton btnEditarMaterial, JButton btnNovoSetor,\r\n\t\t\tJButton btnEditarSetor, JButton btnNovoSetorT, JButton btnEditarSetorT, JTextField idObra,\r\n\t\t\tJButton btnGravar) {\r\n\r\n\t\tthis.frmAcervo = frmAcervo;\r\n\t\tthis.btnGravar = btnGravar;\r\n\t\tthis.idObra = idObra;\r\n\t\tthis.obras = new ArrayList<ObraMdl>();\r\n\t\tthis.imagem = imagem;\r\n\t\tthis.lblValor = lblValor;\r\n\t\tthis.nomeArtista = nomeArtista;\r\n\t\tthis.txtNovaObra = txtNovaObra;\r\n\t\tthis.lblStatus = lblStatus;\r\n\t\tthis.nomeObra = nomeObra;\r\n\t\tthis.dataAquisicao = dataAquisicao;\r\n\t\tthis.edtDescricao = descricaoObra;\r\n\t\tthis.cbMaterial = cbMaterial;\r\n\t\tthis.cbObras = cbObras;\r\n\t\tthis.cbCategoria = cbCategoria;\r\n\t\tthis.cbSetor = cbSetor;\r\n\t\tthis.cbSetorT = cbSetorT;\r\n\t\tthis.cbStatus = cbStatus;\r\n\t\tthis.cbStatusT = cbStatusT;\r\n\t\tthis.btnPesqArtist = btnPesqArtist;\r\n\t\tthis.btnNovoArtista = btnNovoArtista;\r\n\t\tthis.btnEditarArtista = btnEditarArtista;\r\n\t\tthis.btnNovaCategoria = btnNovaCategoria;\r\n\t\tthis.btnEditarCategoria = btnEditarCategoria;\r\n\t\tthis.btnNovoMaterial = btnNovoMaterial;\r\n\t\tthis.btnEditarMaterial = btnEditarMaterial;\r\n\t\tthis.btnNovoSetor = btnNovoSetor;\r\n\t\tthis.btnEditarSetor = btnEditarSetor;\r\n\t\tthis.btnNovoSetorT = btnNovoSetorT;\r\n\t\tthis.btnEditarSetorT = btnEditarSetorT;\r\n\t\tthis.txtValor = txtValor;\r\n\t\tthis.msgGravar = msgGravar;\r\n\t\tthis.msgVazio = msgVazio;\r\n\t\tthis.caminhoImagem = \"\";\r\n\r\n\t\tlerAcervo();\r\n\t}", "public VistaTrabaja() {\n initComponents();\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 }", "public FacturarPrincipal() {\n initComponents();\n\n dlgLogin.setSize(692, 345);\n dlgLogin.setLocationRelativeTo(this);\n dlgLogin.setVisible(true);\n dlgCrearProducto.setSize(300, 400);\n dlgCrearProducto.setLocationRelativeTo(this);\n\n //Se inicializan todos los modelos y los objetos.\n modeloClientes = new DefaultListModel<>();\n modeloProductos = new DefaultListModel<>();\n modeloHistorialVentas = new DefaultListModel<>();\n gestionarArchivos = new GestionA();\n //Se asignan a las listas los modelos que les corresponden, además,\n //se cargan los archivos .txt en cada lista.\n lstClientesVentas.setModel(modeloClientes);\n lstClientes.setModel(modeloClientes);\n lstClientes.setModel(gestionarArchivos.lista(\"Archivos/clientes.txt\"));\n lstProductos.setModel(gestionarArchivos.lista(\"Archivos/productos.txt\"));\n lstHistorialVentas.setModel(gestionarArchivos.lista(\"Archivos/facturas.txt\"));\n lstClientesVentas.setModel(gestionarArchivos.lista(\"Archivos/clientes.txt\"));\n lstProductosVentas.setModel(gestionarArchivos.lista(\"Archivos/productos.txt\"));\n modeloClientes = (DefaultListModel) lstClientes.getModel();\n modeloProductos = (DefaultListModel) lstProductos.getModel();\n modeloHistorialVentas = (DefaultListModel) lstHistorialVentas.getModel();\n\n }", "public ArticulosAdd() {\n initComponents();\n Sistema.lblNotificacion.setText(\"Ingreso Artítuclos\");\n this.setLocationRelativeTo(null);\n\n Date date = new Date();\n\n dtDesde.setDate(date);\n dtHasta.setDate(date);\n\n articulos.searchArticulo(cboArticulos, \"\", 0, 1000, 0);\n }", "public PapegaaiDialoog(JFrame frame, boolean isModal) {\n super(frame, true);\n this.setLayout(new GridLayout(4, 2));\n setTitle(\"Voeg papegaai toe\");\n setSize(400, 120);\n //standaard invulling velden\n naamVogel = \"\";\n ringnummer = 0;\n kooinummer = 0;\n //buttons and fields\n Naam = new JLabel(\"Naam: \");\n this.add(Naam);\n RingNummer = new JLabel(\"Ringnummer: \");\n nV = new JTextField();\n this.add(nV);\n this.add(RingNummer);\n rnV = new JTextField();\n this.add(rnV);\n KooiNummer = new JLabel(\"Kooinummer (1 tot 10): \");\n this.add(KooiNummer);\n knV = new JTextField();\n this.add(knV);\n cancel = new JButton(\"Cancel\");\n this.add(cancel);\n cancel.addActionListener(this);\n ok = new JButton(\"OK\");\n this.add(ok);\n ok.addActionListener(this);\n\n }", "public FiltroGirosDialog() {\n \n }", "public frmCliente() {\r\n \r\n initComponents();\r\n // Botao do Note_ON brusco que foi retirado ...\r\n //jButton9.setVisible(false);\r\n \r\n // Inicializa o display de desenho\r\n //ImageIcon image=new ImageIcon(\"Hapax4.PNG\");\r\n //setIconImage(image.getImage());\r\n \r\n iniciaDesenho();\r\n // Lista de Dispositivos MIDI\r\n PegaMIDI();\r\n \r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cod = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n Sact = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n desc = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n Smax = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n agregar = new javax.swing.JButton();\n Smin = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n unitario = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n tipo = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Articulo Nuevo\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n cod.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n codActionPerformed(evt);\n }\n });\n getContentPane().add(cod, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, 105, 30));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Ingrese el Codigo\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setText(\"Stock Minimo\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, -1, -1));\n\n Sact.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SactActionPerformed(evt);\n }\n });\n getContentPane().add(Sact, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 260, 105, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Stock Actual\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 270, -1, -1));\n\n desc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n descActionPerformed(evt);\n }\n });\n getContentPane().add(desc, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 60, 260, 30));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Descripcion\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, -1, -1));\n\n Smax.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SmaxActionPerformed(evt);\n }\n });\n getContentPane().add(Smax, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 180, 105, 30));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setText(\"Tipo\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, -1, -1));\n\n agregar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/ico_carro.png\"))); // NOI18N\n agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n agregarActionPerformed(evt);\n }\n });\n getContentPane().add(agregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 330, 80, -1));\n\n Smin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SminActionPerformed(evt);\n }\n });\n getContentPane().add(Smin, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 220, 105, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel6.setText(\"Precio Unitario\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));\n\n unitario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n unitarioActionPerformed(evt);\n }\n });\n getContentPane().add(unitario, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 100, 105, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"AGREGAR\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 350, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel8.setText(\"Stock Maximo\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, -1, -1));\n\n tipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccione el Tipo\" }));\n tipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoActionPerformed(evt);\n }\n });\n getContentPane().add(tipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 150, 190, -1));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n encabezado = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n tabla = new javax.swing.JTable();\n jLabel3 = new javax.swing.JLabel();\n nombre = new javax.swing.JTextField();\n jButton7 = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n barraBaja = new javax.swing.JPanel();\n guardar = new javax.swing.JPanel();\n saveE = new javax.swing.JLabel();\n buscarn = new javax.swing.JTextField();\n jButton3 = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n encabezado.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n encabezado.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n encabezado.setText(\"Nuevo Empleado\");\n encabezado.setToolTipText(\"\");\n encabezado.setCursor(new java.awt.Cursor(java.awt.Cursor.MOVE_CURSOR));\n encabezado.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n encabezadoMouseDragged(evt);\n }\n });\n encabezado.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n encabezadoMousePressed(evt);\n }\n });\n getContentPane().add(encabezado, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 32, 790, 30));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n tabla.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\", \"Título 5\", \"Título 6\", \"Título 7\", \"Título 8\", \"Título 9\", \"Título 10\"\n }\n ));\n tabla.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tablaMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(tabla);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 122, 790, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel3.setText(\"Nombre\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 80, 150, -1));\n\n nombre.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n nombre.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(236, 138, 32), 1, true));\n nombre.setEnabled(false);\n getContentPane().add(nombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 80, 277, 24));\n\n jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IMAGENES/icons8-close-window-20 (1).png\"))); // NOI18N\n jButton7.setBorder(null);\n jButton7.setBorderPainted(false);\n jButton7.setContentAreaFilled(false);\n jButton7.setFocusPainted(false);\n jButton7.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IMAGENES/icons8-close-window-20.png\"))); // NOI18N\n jButton7.setRolloverSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IMAGENES/icons8-close-window-20.png\"))); // NOI18N\n jButton7.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IMAGENES/icons8-close-window-20.png\"))); // NOI18N\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 0, -1, 30));\n\n jLabel14.setBackground(new java.awt.Color(255, 255, 255));\n jLabel14.setOpaque(true);\n getContentPane().add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 790, 30));\n\n barraBaja.setBackground(new java.awt.Color(236, 138, 32));\n\n guardar.setBackground(new java.awt.Color(238, 238, 238));\n guardar.setForeground(new java.awt.Color(238, 238, 238));\n\n saveE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n saveE.setForeground(new java.awt.Color(236, 138, 32));\n saveE.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n saveE.setText(\"Seleccionar\");\n saveE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n saveE.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n saveEMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout guardarLayout = new javax.swing.GroupLayout(guardar);\n guardar.setLayout(guardarLayout);\n guardarLayout.setHorizontalGroup(\n guardarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(saveE, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n guardarLayout.setVerticalGroup(\n guardarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(saveE, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n buscarn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscarnActionPerformed(evt);\n }\n });\n buscarn.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n buscarnKeyReleased(evt);\n }\n });\n\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/lupa.png\"))); // NOI18N\n jButton3.setText(\"Buscar\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout barraBajaLayout = new javax.swing.GroupLayout(barraBaja);\n barraBaja.setLayout(barraBajaLayout);\n barraBajaLayout.setHorizontalGroup(\n barraBajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, barraBajaLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(buscarn, javax.swing.GroupLayout.PREFERRED_SIZE, 299, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 253, Short.MAX_VALUE)\n .addComponent(guardar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29))\n );\n barraBajaLayout.setVerticalGroup(\n barraBajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, barraBajaLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(barraBajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(guardar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(barraBajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(buscarn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3)))\n .addContainerGap())\n );\n\n getContentPane().add(barraBaja, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 370, 790, -1));\n getContentPane().add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 60, 170, 10));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n DialogoImportar = new javax.swing.JDialog();\n jButton11 = new javax.swing.JButton();\n jButton12 = new javax.swing.JButton();\n campoRuta = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jButton7 = new javax.swing.JButton();\n jLabel12 = new javax.swing.JLabel();\n DialogoAbrirArchivo = new javax.swing.JFileChooser();\n jLabel3 = new javax.swing.JLabel();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel2 = new javax.swing.JPanel();\n jTabbedPane3 = new javax.swing.JTabbedPane();\n jPanel22 = new javax.swing.JPanel();\n jPanel16 = new javax.swing.JPanel();\n scroll1 = new javax.swing.JScrollPane();\n tablaNoSin = new javax.swing.JTable();\n capas = new javax.swing.JLayeredPane();\n PastelNosin = new javax.swing.JPanel();\n jLabel22 = new javax.swing.JLabel();\n jPanel23 = new javax.swing.JPanel();\n jPanel26 = new javax.swing.JPanel();\n jScrollPane12 = new javax.swing.JScrollPane();\n tablaSin = new javax.swing.JTable();\n jLabel21 = new javax.swing.JLabel();\n jPanel24 = new javax.swing.JPanel();\n jPanel29 = new javax.swing.JPanel();\n jScrollPane15 = new javax.swing.JScrollPane();\n tablaControladores = new javax.swing.JTable();\n jLabel20 = new javax.swing.JLabel();\n jPanel25 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jScrollPane3 = new javax.swing.JScrollPane();\n tablaDistri = new javax.swing.JTable();\n jLabel19 = new javax.swing.JLabel();\n jSeparator3 = new javax.swing.JSeparator();\n jPanel7 = new javax.swing.JPanel();\n jPanel9 = new javax.swing.JPanel();\n tablaBaja = new javax.swing.JScrollPane();\n tablaBajas = new javax.swing.JTable();\n jLabel24 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n salario = new javax.swing.JTable();\n jLabel8 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jTabbedPane4 = new javax.swing.JTabbedPane();\n jPanel14 = new javax.swing.JPanel();\n jPanel21 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n antiguedad = new javax.swing.JTable();\n jLabel4 = new javax.swing.JLabel();\n jPanel20 = new javax.swing.JPanel();\n jPanel8 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n edad = new javax.swing.JTable();\n jButton10 = new javax.swing.JButton();\n jLabel23 = new javax.swing.JLabel();\n jPanel5 = new javax.swing.JPanel();\n jPanel18 = new javax.swing.JPanel();\n jScrollPane8 = new javax.swing.JScrollPane();\n turnoCont = new javax.swing.JTable();\n jPanel19 = new javax.swing.JPanel();\n jScrollPane9 = new javax.swing.JScrollPane();\n turnosin = new javax.swing.JTable();\n jLabel6 = new javax.swing.JLabel();\n jToolBar1 = new javax.swing.JToolBar();\n jLabel1 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n jComboBox2 = new javax.swing.JComboBox<>();\n jButton8 = new javax.swing.JButton();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n\n DialogoImportar.getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jButton11.setText(\"Cancelar\");\n jButton11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton11ActionPerformed(evt);\n }\n });\n DialogoImportar.getContentPane().add(jButton11, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 130, 90, -1));\n\n jButton12.setText(\"Importar\");\n jButton12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton12ActionPerformed(evt);\n }\n });\n DialogoImportar.getContentPane().add(jButton12, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, 90, -1));\n DialogoImportar.getContentPane().add(campoRuta, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 70, 150, -1));\n\n jLabel15.setBackground(new java.awt.Color(255, 255, 255));\n jLabel15.setFont(new java.awt.Font(\"Narkisim\", 1, 18)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(204, 0, 0));\n jLabel15.setText(\"Importar Archivo\");\n jLabel15.setBorder(javax.swing.BorderFactory.createCompoundBorder());\n DialogoImportar.getContentPane().add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 20, -1, -1));\n\n jButton7.setText(\"Buscar Archivo\");\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n DialogoImportar.getContentPane().add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, -1, -1));\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondoAzul.jpg\"))); // NOI18N\n DialogoImportar.getContentPane().add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 290, -1));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel3.setBackground(new java.awt.Color(0, 0, 0));\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/Logo.png\"))); // NOI18N\n jLabel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 153)));\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(730, 10, 160, 60));\n\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel22.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"NO SINDICALIZADOS\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(153, 0, 0))); // NOI18N\n\n tablaNoSin.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null}\n },\n new String [] {\n \"Genero\", \"Cantidad\", \"Porcentaje\"\n }\n ));\n scroll1.setViewportView(tablaNoSin);\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(scroll1, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(scroll1, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)\n );\n\n jPanel22.add(jPanel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, -1, -1));\n\n javax.swing.GroupLayout PastelNosinLayout = new javax.swing.GroupLayout(PastelNosin);\n PastelNosin.setLayout(PastelNosinLayout);\n PastelNosinLayout.setHorizontalGroup(\n PastelNosinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 362, Short.MAX_VALUE)\n );\n PastelNosinLayout.setVerticalGroup(\n PastelNosinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 306, Short.MAX_VALUE)\n );\n\n capas.setLayer(PastelNosin, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n javax.swing.GroupLayout capasLayout = new javax.swing.GroupLayout(capas);\n capas.setLayout(capasLayout);\n capasLayout.setHorizontalGroup(\n capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 450, Short.MAX_VALUE)\n .addGroup(capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, capasLayout.createSequentialGroup()\n .addContainerGap(78, Short.MAX_VALUE)\n .addComponent(PastelNosin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap()))\n );\n capasLayout.setVerticalGroup(\n capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 390, Short.MAX_VALUE)\n .addGroup(capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, capasLayout.createSequentialGroup()\n .addContainerGap(41, Short.MAX_VALUE)\n .addComponent(PastelNosin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(43, Short.MAX_VALUE)))\n );\n\n jPanel22.add(capas, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 30, 450, 390));\n\n jLabel22.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jLabel22.setText(\"jLabel4\");\n jPanel22.add(jLabel22, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n jTabbedPane3.addTab(\"No Sindicalizados\", jPanel22);\n\n jPanel23.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel26.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"SINDICALIZADOS\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(0, 51, 153))); // NOI18N\n\n tablaSin.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null}\n },\n new String [] {\n \"Genero\", \"Cantidad\", \"Porcentaje\"\n }\n ));\n jScrollPane12.setViewportView(tablaSin);\n\n javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26);\n jPanel26.setLayout(jPanel26Layout);\n jPanel26Layout.setHorizontalGroup(\n jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)\n );\n jPanel26Layout.setVerticalGroup(\n jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)\n );\n\n jPanel23.add(jPanel26, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, 340, 140));\n\n jLabel21.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jLabel21.setText(\"jLabel4\");\n jPanel23.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 490));\n\n jTabbedPane3.addTab(\"Sindicalizados\", jPanel23);\n\n jPanel24.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel29.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"CONTROLADORES\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(0, 102, 51))); // NOI18N\n\n tablaControladores.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null}\n },\n new String [] {\n \"Genero\", \"Cantidad\", \"Porcentaje\"\n }\n ));\n jScrollPane15.setViewportView(tablaControladores);\n\n javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29);\n jPanel29.setLayout(jPanel29Layout);\n jPanel29Layout.setHorizontalGroup(\n jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane15, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)\n );\n jPanel29Layout.setVerticalGroup(\n jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel29Layout.createSequentialGroup()\n .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jPanel24.add(jPanel29, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, 340, 140));\n\n jLabel20.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jLabel20.setText(\"jLabel4\");\n jPanel24.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 490));\n\n jTabbedPane3.addTab(\"Controladores\", jPanel24);\n\n jPanel25.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Distribución de trabajadores\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(102, 0, 102))); // NOI18N\n jPanel6.setForeground(new java.awt.Color(102, 0, 102));\n jPanel6.setToolTipText(\"\");\n jPanel6.setName(\"\"); // NOI18N\n\n tablaDistri.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null}\n },\n new String [] {\n \"Bu_Home\", \"Cantidad\", \"Porcentaje\"\n }\n ));\n jScrollPane3.setViewportView(tablaDistri);\n\n jScrollPane1.setViewportView(jScrollPane3);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel25.add(jPanel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, 260));\n\n jLabel19.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jLabel19.setText(\"jLabel4\");\n jPanel25.add(jLabel19, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 490));\n jPanel25.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 430, 880, 10));\n\n jTabbedPane3.addTab(\"Distribucion de trabajadores por Bu_home\", jPanel25);\n\n jPanel7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tablaBaja.setToolTipText(\"\");\n tablaBaja.setAutoscrolls(true);\n\n tablaBajas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tablaBaja.setViewportView(tablaBajas);\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(tablaBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 829, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 1, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tablaBaja, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)\n );\n\n jPanel7.add(jPanel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 27, 830, -1));\n\n jLabel24.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jLabel24.setText(\"jLabel4\");\n jPanel7.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 490));\n\n jTabbedPane3.addTab(\"Bajas Trabajadores\", jPanel7);\n\n jPanel2.add(jTabbedPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 500));\n\n jLabel18.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jLabel18.setText(\"jLabel18\");\n jPanel2.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 490));\n\n jTabbedPane1.addTab(\"D. Trabajadores\", jPanel2);\n\n jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Salario Mensual\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(255, 0, 51))); // NOI18N\n\n salario.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null},\n {null, null}\n },\n new String [] {\n \"Puesto\", \"Salario Total\"\n }\n ));\n jScrollPane5.setViewportView(salario);\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE)\n );\n\n jPanel3.add(jPanel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 340, 420));\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jLabel8.setText(\"jLabel8\");\n jPanel3.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 500));\n\n jTabbedPane1.addTab(\"Salarios\", jPanel3);\n\n jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel14.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Antiguedad Promedio\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(153, 51, 0))); // NOI18N\n jPanel21.setToolTipText(\"\");\n\n antiguedad.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null},\n {null, null},\n {null, null},\n {null, null}\n },\n new String [] {\n \"Bu_Home\", \"Antiguedad de trabajador\"\n }\n ));\n jScrollPane4.setViewportView(antiguedad);\n\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\n jPanel21.setLayout(jPanel21Layout);\n jPanel21Layout.setHorizontalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE)\n );\n jPanel21Layout.setVerticalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)\n );\n\n jPanel14.add(jPanel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, -1, -1));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jPanel14.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 490));\n\n jTabbedPane4.addTab(\"Antiguedad Trabajador\", jPanel14);\n\n jPanel20.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Edad Promedio\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(153, 153, 0))); // NOI18N\n\n edad.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null},\n {null, null},\n {null, null},\n {null, null}\n },\n new String [] {\n \"Bu_Home\", \"Edad Promedio Trabajador\"\n }\n ));\n jScrollPane6.setViewportView(edad);\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE)\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)\n );\n\n jPanel20.add(jPanel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, 360, 140));\n\n jButton10.setText(\"Ver Grafica\");\n jPanel20.add(jButton10, new org.netbeans.lib.awtextra.AbsoluteConstraints(750, 360, -1, -1));\n\n jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jPanel20.add(jLabel23, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 890, 480));\n\n jTabbedPane4.addTab(\"Edad Promedio\", jPanel20);\n\n jPanel4.add(jTabbedPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 880, 490));\n\n jTabbedPane1.addTab(\"Promedio Antigüedad\", jPanel4);\n\n jPanel5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Controladores\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(0, 51, 102))); // NOI18N\n\n turnoCont.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Bu_Home\", \"Turno 1\", \"Turno 2\", \"Turno 3\"\n }\n ));\n jScrollPane8.setViewportView(turnoCont);\n\n javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);\n jPanel18.setLayout(jPanel18Layout);\n jPanel18Layout.setHorizontalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel18Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel18Layout.setVerticalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel18Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel5.add(jPanel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 180, 360, 130));\n\n jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Sindicalizados\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), new java.awt.Color(0, 51, 102))); // NOI18N\n\n turnosin.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Bu_Home\", \"Turno 1\", \"Turno 2\", \"Turno 3\"\n }\n ));\n jScrollPane9.setViewportView(turnosin);\n\n javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);\n jPanel19.setLayout(jPanel19Layout);\n jPanel19Layout.setHorizontalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel19Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel19Layout.setVerticalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel19Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel5.add(jPanel19, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, 360, 130));\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondo.jpg\"))); // NOI18N\n jPanel5.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(-10, 0, 890, 490));\n\n jTabbedPane1.addTab(\"Turnos\", jPanel5);\n\n getContentPane().add(jTabbedPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 890, 520));\n\n jToolBar1.setBackground(new java.awt.Color(153, 153, 153));\n jToolBar1.setRollover(true);\n jToolBar1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n jLabel1.setText(\"Fecha de Reporte Actual\");\n jToolBar1.add(jLabel1);\n jToolBar1.add(jSeparator1);\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"11/11/2016\" }));\n jToolBar1.add(jComboBox2);\n\n jButton8.setText(\"Cargar Datos\");\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n jToolBar1.add(jButton8);\n\n getContentPane().add(jToolBar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 540, 30));\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(204, 204, 204));\n jLabel10.setText(\"DIRECCIÓN DE FINANZAS Y ADMINITRACIÓN\");\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 40, -1, 10));\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(204, 204, 204));\n jLabel11.setText(\"GERENCIA SENIOR DE RECURSOS HUMANOS\");\n getContentPane().add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 60, -1, 10));\n\n jButton2.setText(\"Salir\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(850, 590, -1, -1));\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/ImagTrabajadores/fondoNegro.jpg\"))); // NOI18N\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, -1, 50));\n\n jMenu1.setText(\"Opciones\");\n\n jMenuItem2.setText(\"Importar\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Reporte\");\n\n jMenuItem1.setText(\"Ver Reporte\");\n jMenu2.add(jMenuItem1);\n\n jMenuItem3.setText(\"Generar Reporte \");\n jMenu2.add(jMenuItem3);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n painelFundo = new javax.swing.JPanel();\r\n painel6 = new javax.swing.JPanel();\r\n jLabel28 = new javax.swing.JLabel();\r\n labelcone4 = new javax.swing.JLabel();\r\n jLabel35 = new javax.swing.JLabel();\r\n cilindro_respArea = new javax.swing.JTextField();\r\n cilindro_areaTxtRaio = new javax.swing.JTextField();\r\n cilindro_areaTxtArea = new javax.swing.JTextField();\r\n cilindro_btnArea = new javax.swing.JButton();\r\n cilindro_eixoX = new javax.swing.JTextField();\r\n labelcone5 = new javax.swing.JLabel();\r\n cilindro_eixoY = new javax.swing.JTextField();\r\n labelcone6 = new javax.swing.JLabel();\r\n jLabel45 = new javax.swing.JLabel();\r\n cilindro_respVol = new javax.swing.JTextField();\r\n jLabel58 = new javax.swing.JLabel();\r\n jLabel59 = new javax.swing.JLabel();\r\n jLabel62 = new javax.swing.JLabel();\r\n jLabel63 = new javax.swing.JLabel();\r\n labelcone7 = new javax.swing.JLabel();\r\n labelcone13 = new javax.swing.JLabel();\r\n labelcone14 = new javax.swing.JLabel();\r\n labelcone15 = new javax.swing.JLabel();\r\n PainelBotoes = new javax.swing.JPanel();\r\n linhaHorizontalPainel = new javax.swing.JPanel();\r\n botao1 = new javax.swing.JPanel();\r\n textoBotao1 = new javax.swing.JLabel();\r\n abaBotao1 = new javax.swing.JPanel();\r\n botao1Select = new javax.swing.JPanel();\r\n txtBotaoSelect1 = new javax.swing.JLabel();\r\n titulo1 = new javax.swing.JLabel();\r\n titulo2 = new javax.swing.JLabel();\r\n titulo3 = new javax.swing.JLabel();\r\n titulo5 = new javax.swing.JLabel();\r\n titulo6 = new javax.swing.JLabel();\r\n botao2 = new javax.swing.JPanel();\r\n textoBotao2 = new javax.swing.JLabel();\r\n abaBotao2 = new javax.swing.JPanel();\r\n botao_aba_Triangulo = new javax.swing.JPanel();\r\n txtBotaoSelect2 = new javax.swing.JLabel();\r\n botao3 = new javax.swing.JPanel();\r\n abaBotao3 = new javax.swing.JPanel();\r\n botao3Select = new javax.swing.JPanel();\r\n txtBotaoSelect3 = new javax.swing.JLabel();\r\n textoBotao3 = new javax.swing.JLabel();\r\n botao4 = new javax.swing.JPanel();\r\n abaBotao4 = new javax.swing.JPanel();\r\n botao4Select = new javax.swing.JPanel();\r\n txtBotaoSelect4 = new javax.swing.JLabel();\r\n textoBotao4 = new javax.swing.JLabel();\r\n botao5 = new javax.swing.JPanel();\r\n abaBotao5 = new javax.swing.JPanel();\r\n botao5Select = new javax.swing.JPanel();\r\n txtBotaoSelect5 = new javax.swing.JLabel();\r\n textoBotao5 = new javax.swing.JLabel();\r\n botao6 = new javax.swing.JPanel();\r\n abaBotao6 = new javax.swing.JPanel();\r\n botao6Select = new javax.swing.JPanel();\r\n txtBotaoSelect6 = new javax.swing.JLabel();\r\n textoBotao6 = new javax.swing.JLabel();\r\n botao7 = new javax.swing.JPanel();\r\n abaBotao7 = new javax.swing.JPanel();\r\n botao7Select = new javax.swing.JPanel();\r\n txtBotaoSelect7 = new javax.swing.JLabel();\r\n textoBotao7 = new javax.swing.JLabel();\r\n botao8 = new javax.swing.JPanel();\r\n abaBotao8 = new javax.swing.JPanel();\r\n botao8Select = new javax.swing.JPanel();\r\n txtBotaoSelect8 = new javax.swing.JLabel();\r\n textoBotao8 = new javax.swing.JLabel();\r\n painel1 = new javax.swing.JPanel();\r\n caminhoObjetos = new javax.swing.JTextField();\r\n jLabel2 = new javax.swing.JLabel();\r\n jScrollPane2 = new javax.swing.JScrollPane();\r\n telaObjetos = new javax.swing.JTextArea();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel15 = new javax.swing.JLabel();\r\n btnCarregarObjetos = new javax.swing.JButton();\r\n limparCampo = new javax.swing.JButton();\r\n salvar_objetos = new javax.swing.JButton();\r\n painel2 = new javax.swing.JPanel();\r\n jLabel8 = new javax.swing.JLabel();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n jLabel13 = new javax.swing.JLabel();\r\n triangulo_ladoAtxt = new javax.swing.JTextField();\r\n triangulo_ladoBtxt = new javax.swing.JTextField();\r\n triangulo_ladoCtxt = new javax.swing.JTextField();\r\n jLabel9 = new javax.swing.JLabel();\r\n triangulo_resp_perimetro = new javax.swing.JTextField();\r\n triangulo_btn_calcPerimetro = new javax.swing.JButton();\r\n triangulo_alturaTxt = new javax.swing.JTextField();\r\n jLabel14 = new javax.swing.JLabel();\r\n jLabel16 = new javax.swing.JLabel();\r\n triangulo_baseTxt = new javax.swing.JTextField();\r\n triangulo_respAreaTxt = new javax.swing.JTextField();\r\n jLabel10 = new javax.swing.JLabel();\r\n jLabel17 = new javax.swing.JLabel();\r\n triangulo_eixoX = new javax.swing.JTextField();\r\n jLabel18 = new javax.swing.JLabel();\r\n jLabel19 = new javax.swing.JLabel();\r\n triangulo_eixoY = new javax.swing.JTextField();\r\n jLabel50 = new javax.swing.JLabel();\r\n jLabel53 = new javax.swing.JLabel();\r\n labelcone21 = new javax.swing.JLabel();\r\n labelcone22 = new javax.swing.JLabel();\r\n labelcone23 = new javax.swing.JLabel();\r\n labelcone24 = new javax.swing.JLabel();\r\n labelcone25 = new javax.swing.JLabel();\r\n labelcone26 = new javax.swing.JLabel();\r\n labelcone27 = new javax.swing.JLabel();\r\n painel3 = new javax.swing.JPanel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n cone_respVol = new javax.swing.JTextField();\r\n cone_alturaVol = new javax.swing.JTextField();\r\n jLabel31 = new javax.swing.JLabel();\r\n jLabel33 = new javax.swing.JLabel();\r\n cone_areaTotal = new javax.swing.JTextField();\r\n cone_areaRaio = new javax.swing.JTextField();\r\n cone_areaGeratriz = new javax.swing.JTextField();\r\n cone_btnAreaTot = new javax.swing.JButton();\r\n jLabel34 = new javax.swing.JLabel();\r\n cone_eixoY = new javax.swing.JTextField();\r\n cone_eixoX = new javax.swing.JTextField();\r\n jLabel36 = new javax.swing.JLabel();\r\n jLabel32 = new javax.swing.JLabel();\r\n jLabel47 = new javax.swing.JLabel();\r\n jLabel52 = new javax.swing.JLabel();\r\n jLabel37 = new javax.swing.JLabel();\r\n jLabel42 = new javax.swing.JLabel();\r\n jLabel44 = new javax.swing.JLabel();\r\n jLabel68 = new javax.swing.JLabel();\r\n jLabel69 = new javax.swing.JLabel();\r\n painel4 = new javax.swing.JPanel();\r\n paralelepipedo_btnCalcArea = new javax.swing.JButton();\r\n paralelepipedo_alturaArea = new javax.swing.JTextField();\r\n jLabel20 = new javax.swing.JLabel();\r\n paralelepipedo_largArea = new javax.swing.JTextField();\r\n jLabel21 = new javax.swing.JLabel();\r\n paralelepipedo_compArea = new javax.swing.JTextField();\r\n jLabel22 = new javax.swing.JLabel();\r\n jLabel23 = new javax.swing.JLabel();\r\n paralelepipedo_respArea = new javax.swing.JTextField();\r\n jLabel27 = new javax.swing.JLabel();\r\n paralelepipedo_volResp = new javax.swing.JTextField();\r\n jLabel29 = new javax.swing.JLabel();\r\n paralelepipedo_EixoX = new javax.swing.JTextField();\r\n paralelepipedo_EixoY = new javax.swing.JTextField();\r\n jLabel30 = new javax.swing.JLabel();\r\n jLabel54 = new javax.swing.JLabel();\r\n jLabel55 = new javax.swing.JLabel();\r\n jLabel56 = new javax.swing.JLabel();\r\n jLabel57 = new javax.swing.JLabel();\r\n jLabel60 = new javax.swing.JLabel();\r\n jLabel61 = new javax.swing.JLabel();\r\n labelcone16 = new javax.swing.JLabel();\r\n labelcone17 = new javax.swing.JLabel();\r\n labelcone18 = new javax.swing.JLabel();\r\n labelcone19 = new javax.swing.JLabel();\r\n labelcone20 = new javax.swing.JLabel();\r\n painel5 = new javax.swing.JPanel();\r\n jLabel46 = new javax.swing.JLabel();\r\n jLabel48 = new javax.swing.JLabel();\r\n quad_respPer = new javax.swing.JTextField();\r\n labelcone9 = new javax.swing.JLabel();\r\n quad_eixoX = new javax.swing.JTextField();\r\n labelcone10 = new javax.swing.JLabel();\r\n quad_eixoY = new javax.swing.JTextField();\r\n quad_btnArea = new javax.swing.JButton();\r\n jLabel49 = new javax.swing.JLabel();\r\n jLabel51 = new javax.swing.JLabel();\r\n labelcone12 = new javax.swing.JLabel();\r\n quad_respArea = new javax.swing.JTextField();\r\n quad_areaLadoA = new javax.swing.JTextField();\r\n jLabel66 = new javax.swing.JLabel();\r\n jLabel67 = new javax.swing.JLabel();\r\n labelcone28 = new javax.swing.JLabel();\r\n labelcone29 = new javax.swing.JLabel();\r\n labelcone30 = new javax.swing.JLabel();\r\n painel7 = new javax.swing.JPanel();\r\n jLabel6 = new javax.swing.JLabel();\r\n labelcone1 = new javax.swing.JLabel();\r\n jLabel38 = new javax.swing.JLabel();\r\n equacao_x1 = new javax.swing.JTextField();\r\n equacao_A = new javax.swing.JTextField();\r\n equacao_calcular = new javax.swing.JButton();\r\n jLabel39 = new javax.swing.JLabel();\r\n labelcone2 = new javax.swing.JLabel();\r\n equacao_B = new javax.swing.JTextField();\r\n equacao_C = new javax.swing.JTextField();\r\n labelcone3 = new javax.swing.JLabel();\r\n jLabel40 = new javax.swing.JLabel();\r\n equacao_x2 = new javax.swing.JTextField();\r\n jLabel41 = new javax.swing.JLabel();\r\n equacao_Delta = new javax.swing.JTextField();\r\n jLabel64 = new javax.swing.JLabel();\r\n jLabel65 = new javax.swing.JLabel();\r\n painel8 = new javax.swing.JPanel();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"Programa de Calculo\");\r\n setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n setLocation(new java.awt.Point(400, 90));\r\n setMaximumSize(new java.awt.Dimension(720, 560));\r\n setMinimumSize(new java.awt.Dimension(820, 560));\r\n setName(\"janelaPrincipal\"); // NOI18N\r\n setPreferredSize(new java.awt.Dimension(710, 550));\r\n setResizable(false);\r\n setSize(new java.awt.Dimension(710, 550));\r\n\r\n painelFundo.setBackground(new java.awt.Color(255, 255, 255));\r\n painelFundo.setMinimumSize(new java.awt.Dimension(820, 550));\r\n painelFundo.setPreferredSize(new java.awt.Dimension(820, 550));\r\n painelFundo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n painel6.setBackground(new java.awt.Color(220, 123, 103));\r\n painel6.setLayout(null);\r\n\r\n jLabel28.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel28.setText(\"Altura:\");\r\n painel6.add(jLabel28);\r\n jLabel28.setBounds(50, 160, 49, 34);\r\n\r\n labelcone4.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone4.setText(\"Raio:\");\r\n painel6.add(labelcone4);\r\n labelcone4.setBounds(61, 124, 38, 39);\r\n\r\n jLabel35.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel35.setText(\"Area Total:\");\r\n painel6.add(jLabel35);\r\n jLabel35.setBounds(10, 287, 81, 39);\r\n\r\n cilindro_respArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_respAreaActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_respArea);\r\n cilindro_respArea.setBounds(101, 295, 74, 20);\r\n\r\n cilindro_areaTxtRaio.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_areaTxtRaioActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_areaTxtRaio);\r\n cilindro_areaTxtRaio.setBounds(110, 130, 72, 20);\r\n\r\n cilindro_areaTxtArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_areaTxtAreaActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_areaTxtArea);\r\n cilindro_areaTxtArea.setBounds(110, 160, 72, 20);\r\n\r\n cilindro_btnArea.setText(\"Calcular\");\r\n cilindro_btnArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_btnAreaActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_btnArea);\r\n cilindro_btnArea.setBounds(237, 346, 90, 23);\r\n\r\n cilindro_eixoX.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_eixoXActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_eixoX);\r\n cilindro_eixoX.setBounds(113, 30, 72, 20);\r\n\r\n labelcone5.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone5.setText(\"m²\");\r\n painel6.add(labelcone5);\r\n labelcone5.setBounds(190, 120, 41, 39);\r\n\r\n cilindro_eixoY.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_eixoYActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_eixoY);\r\n cilindro_eixoY.setBounds(278, 30, 72, 20);\r\n\r\n labelcone6.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone6.setText(\"Eixo Y: \");\r\n painel6.add(labelcone6);\r\n labelcone6.setBounds(211, 22, 63, 39);\r\n\r\n jLabel45.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel45.setText(\"Volume:\");\r\n painel6.add(jLabel45);\r\n jLabel45.setBounds(32, 339, 61, 39);\r\n\r\n cilindro_respVol.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_respVolActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_respVol);\r\n cilindro_respVol.setBounds(103, 347, 74, 20);\r\n\r\n jLabel58.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel58.setText(\"Formula Área\");\r\n painel6.add(jLabel58);\r\n jLabel58.setBounds(275, 104, 199, 23);\r\n\r\n jLabel59.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel59.setText(\"Formula Volume\");\r\n painel6.add(jLabel59);\r\n jLabel59.setBounds(257, 235, 199, 23);\r\n\r\n jLabel62.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel62.setText(\" A = 2 . pi . r ( r + h )\");\r\n painel6.add(jLabel62);\r\n jLabel62.setBounds(244, 145, 223, 35);\r\n\r\n jLabel63.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel63.setText(\"V = pi . r² . h\");\r\n painel6.add(jLabel63);\r\n jLabel63.setBounds(277, 264, 179, 55);\r\n\r\n labelcone7.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone7.setText(\"Eixo X: \");\r\n painel6.add(labelcone7);\r\n labelcone7.setBounds(50, 22, 59, 39);\r\n\r\n labelcone13.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone13.setText(\"m³\");\r\n painel6.add(labelcone13);\r\n labelcone13.setBounds(181, 340, 41, 39);\r\n\r\n labelcone14.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone14.setText(\"m²\");\r\n painel6.add(labelcone14);\r\n labelcone14.setBounds(190, 150, 41, 39);\r\n\r\n labelcone15.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone15.setText(\"m²\");\r\n painel6.add(labelcone15);\r\n labelcone15.setBounds(185, 288, 41, 39);\r\n\r\n painelFundo.add(painel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n PainelBotoes.setBackground(new java.awt.Color(56, 55, 55));\r\n\r\n linhaHorizontalPainel.setBackground(new java.awt.Color(153, 153, 153));\r\n linhaHorizontalPainel.setPreferredSize(new java.awt.Dimension(240, 2));\r\n linhaHorizontalPainel.setRequestFocusEnabled(false);\r\n\r\n javax.swing.GroupLayout linhaHorizontalPainelLayout = new javax.swing.GroupLayout(linhaHorizontalPainel);\r\n linhaHorizontalPainel.setLayout(linhaHorizontalPainelLayout);\r\n linhaHorizontalPainelLayout.setHorizontalGroup(\r\n linhaHorizontalPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 248, Short.MAX_VALUE)\r\n );\r\n linhaHorizontalPainelLayout.setVerticalGroup(\r\n linhaHorizontalPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 2, Short.MAX_VALUE)\r\n );\r\n\r\n botao1.setBackground(new java.awt.Color(56, 55, 55));\r\n botao1.setPreferredSize(new java.awt.Dimension(150, 76));\r\n botao1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao1MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao1MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao1MouseExited(evt);\r\n }\r\n });\r\n botao1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n textoBotao1.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao1.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao1.setText(\"Objetos Salvos\");\r\n botao1.add(textoBotao1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 7, -1, -1));\r\n\r\n abaBotao1.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao1.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao1.add(abaBotao1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao1Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao1Select.setPreferredSize(new java.awt.Dimension(150, 55));\r\n botao1Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao1SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao1SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao1SelectMouseExited(evt);\r\n }\r\n });\r\n botao1Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect1.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect1.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect1.setText(\"Objetos Salvos\");\r\n botao1Select.add(txtBotaoSelect1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 7, -1, -1));\r\n\r\n botao1.add(botao1Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n titulo1.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n titulo1.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo1.setText(\"v0.05\");\r\n\r\n titulo2.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n titulo2.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo2.setText(\"Funções Matemáticas \");\r\n\r\n titulo3.setFont(new java.awt.Font(\"Calibri\", 1, 36)); // NOI18N\r\n titulo3.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo3.setText(\"Cálculos \");\r\n\r\n titulo5.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n titulo5.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo5.setText(\"&\");\r\n\r\n titulo6.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n titulo6.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo6.setText(\"Geometria\");\r\n\r\n botao2.setBackground(new java.awt.Color(56, 55, 55));\r\n botao2.setPreferredSize(new java.awt.Dimension(300, 76));\r\n botao2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao2MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao2MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao2MouseExited(evt);\r\n }\r\n });\r\n botao2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n textoBotao2.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao2.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao2.setText(\"Triangulo\");\r\n botao2.add(textoBotao2, new org.netbeans.lib.awtextra.AbsoluteConstraints(85, 7, -1, -1));\r\n\r\n abaBotao2.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao2.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao2.add(abaBotao2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao_aba_Triangulo.setBackground(new java.awt.Color(83, 83, 83));\r\n botao_aba_Triangulo.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao_aba_TrianguloMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao_aba_TrianguloMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao_aba_TrianguloMouseExited(evt);\r\n }\r\n });\r\n botao_aba_Triangulo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect2.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect2.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect2.setText(\"Triangulo\");\r\n botao_aba_Triangulo.add(txtBotaoSelect2, new org.netbeans.lib.awtextra.AbsoluteConstraints(85, 7, -1, -1));\r\n\r\n botao2.add(botao_aba_Triangulo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n botao3.setBackground(new java.awt.Color(56, 55, 55));\r\n botao3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao3MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao3MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao3MouseExited(evt);\r\n }\r\n });\r\n botao3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao3.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao3.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao3.add(abaBotao3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao3Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao3Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao3SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao3SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao3SelectMouseExited(evt);\r\n }\r\n });\r\n botao3Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect3.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect3.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect3.setText(\"Cone\");\r\n botao3Select.add(txtBotaoSelect3, new org.netbeans.lib.awtextra.AbsoluteConstraints(105, 7, -1, -1));\r\n\r\n botao3.add(botao3Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao3.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao3.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao3.setText(\"Cone\");\r\n botao3.add(textoBotao3, new org.netbeans.lib.awtextra.AbsoluteConstraints(105, 7, -1, -1));\r\n\r\n botao4.setBackground(new java.awt.Color(56, 55, 55));\r\n botao4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao4MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao4MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao4MouseExited(evt);\r\n }\r\n });\r\n botao4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao4.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao4.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao4.add(abaBotao4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao4Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao4Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao4SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao4SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao4SelectMouseExited(evt);\r\n }\r\n });\r\n botao4Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect4.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect4.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect4.setText(\"Paralelepípedo\");\r\n botao4Select.add(txtBotaoSelect4, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 7, -1, -1));\r\n\r\n botao4.add(botao4Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao4.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao4.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao4.setText(\"Paralelepípedo\");\r\n botao4.add(textoBotao4, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 7, -1, -1));\r\n\r\n botao5.setBackground(new java.awt.Color(56, 55, 55));\r\n botao5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao5MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao5MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao5MouseExited(evt);\r\n }\r\n });\r\n botao5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao5.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao5.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao5.add(abaBotao5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao5Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao5Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao5SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao5SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao5SelectMouseExited(evt);\r\n }\r\n });\r\n botao5Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect5.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect5.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect5.setText(\"Quadrado\");\r\n botao5Select.add(txtBotaoSelect5, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 7, -1, -1));\r\n\r\n botao5.add(botao5Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao5.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao5.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao5.setText(\"Quadrado\");\r\n botao5.add(textoBotao5, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 7, -1, -1));\r\n\r\n botao6.setBackground(new java.awt.Color(56, 55, 55));\r\n botao6.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao6MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao6MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao6MouseExited(evt);\r\n }\r\n });\r\n botao6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao6.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao6.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao6.add(abaBotao6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao6Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao6Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao6SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao6SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao6SelectMouseExited(evt);\r\n }\r\n });\r\n botao6Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect6.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect6.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect6.setText(\"Cilindro\");\r\n botao6Select.add(txtBotaoSelect6, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 7, -1, -1));\r\n\r\n botao6.add(botao6Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao6.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao6.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao6.setText(\"Cilindro\");\r\n botao6.add(textoBotao6, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 7, -1, -1));\r\n\r\n botao7.setBackground(new java.awt.Color(56, 55, 55));\r\n botao7.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao7MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao7MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao7MouseExited(evt);\r\n }\r\n });\r\n botao7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao7.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao7.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao7.add(abaBotao7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao7Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao7Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao7SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao7SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao7SelectMouseExited(evt);\r\n }\r\n });\r\n botao7Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect7.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect7.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect7.setText(\"Equação (Bhaskara)\");\r\n botao7Select.add(txtBotaoSelect7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 7, -1, -1));\r\n\r\n botao7.add(botao7Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao7.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao7.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao7.setText(\"Equação (Bhaskara)\");\r\n botao7.add(textoBotao7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 7, -1, -1));\r\n\r\n botao8.setBackground(new java.awt.Color(56, 55, 55));\r\n botao8.setPreferredSize(new java.awt.Dimension(260, 40));\r\n botao8.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao8MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao8MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao8MouseExited(evt);\r\n }\r\n });\r\n botao8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao8.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao8.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao8.add(abaBotao8, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao8Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao8Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao8SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao8SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao8SelectMouseExited(evt);\r\n }\r\n });\r\n botao8Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect8.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect8.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect8.setText(\"Sobre\");\r\n botao8Select.add(txtBotaoSelect8, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 7, -1, -1));\r\n\r\n botao8.add(botao8Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao8.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao8.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao8.setText(\"Sobre\");\r\n botao8.add(textoBotao8, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 7, -1, -1));\r\n\r\n javax.swing.GroupLayout PainelBotoesLayout = new javax.swing.GroupLayout(PainelBotoes);\r\n PainelBotoes.setLayout(PainelBotoesLayout);\r\n PainelBotoesLayout.setHorizontalGroup(\r\n PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGap(53, 53, 53)\r\n .addComponent(titulo5)\r\n .addGap(18, 18, 18)\r\n .addComponent(titulo6))\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGap(18, 18, 18)\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(titulo2)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addComponent(titulo3)\r\n .addGap(50, 50, 50)\r\n .addComponent(titulo1)))))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(linhaHorizontalPainel, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(botao1, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao7, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao6, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao5, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao4, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(botao2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\r\n .addComponent(botao3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n );\r\n PainelBotoesLayout.setVerticalGroup(\r\n PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGap(27, 27, 27)\r\n .addComponent(titulo3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(titulo1)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(titulo2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(11, 11, 11)\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(titulo6)\r\n .addComponent(titulo5))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(linhaHorizontalPainel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(botao1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao4, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao6, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao7, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(30, Short.MAX_VALUE))\r\n );\r\n\r\n painelFundo.add(PainelBotoes, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 550));\r\n\r\n painel1.setBackground(new java.awt.Color(220, 123, 103));\r\n painel1.setPreferredSize(new java.awt.Dimension(710, 810));\r\n\r\n caminhoObjetos.setText(\"C:/Users/denis/Desktop/objetosGeometricos.dat\");\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 1, 24)); // NOI18N\r\n jLabel2.setForeground(new java.awt.Color(70, 70, 70));\r\n jLabel2.setText(\"Objetos Salvos \");\r\n\r\n telaObjetos.setColumns(20);\r\n telaObjetos.setRows(5);\r\n jScrollPane2.setViewportView(telaObjetos);\r\n\r\n jLabel1.setText(\"Caminho: \");\r\n\r\n jLabel15.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\r\n jLabel15.setText(\"Utilize por exemplo: (\\\"C:/Users/Desktop/arquivo.dat\\\")\");\r\n\r\n btnCarregarObjetos.setText(\"Carregar Arquivo\");\r\n btnCarregarObjetos.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnCarregarObjetosActionPerformed(evt);\r\n }\r\n });\r\n\r\n limparCampo.setText(\"Apagar Objetos\");\r\n limparCampo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n limparCampoActionPerformed(evt);\r\n }\r\n });\r\n\r\n salvar_objetos.setText(\"Salvar Objeto\");\r\n salvar_objetos.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n salvar_objetosActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout painel1Layout = new javax.swing.GroupLayout(painel1);\r\n painel1.setLayout(painel1Layout);\r\n painel1Layout.setHorizontalGroup(\r\n painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addComponent(jLabel1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(caminhoObjetos, javax.swing.GroupLayout.PREFERRED_SIZE, 427, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addComponent(jLabel15)\r\n .addGap(0, 0, Short.MAX_VALUE))))\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addComponent(btnCarregarObjetos)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(limparCampo))\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 481, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(salvar_objetos))))\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addGap(112, 112, 112)\r\n .addComponent(jLabel2)))\r\n .addContainerGap(67, Short.MAX_VALUE))\r\n );\r\n painel1Layout.setVerticalGroup(\r\n painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addGap(73, 73, 73)\r\n .addComponent(jLabel15)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(caminhoObjetos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(salvar_objetos)\r\n .addGap(52, 52, 52)\r\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(limparCampo)\r\n .addComponent(btnCarregarObjetos))\r\n .addContainerGap())\r\n );\r\n\r\n painelFundo.add(painel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n painel2.setBackground(new java.awt.Color(220, 123, 103));\r\n painel2.setMaximumSize(new java.awt.Dimension(820, 560));\r\n painel2.setMinimumSize(new java.awt.Dimension(820, 560));\r\n painel2.setPreferredSize(new java.awt.Dimension(820, 550));\r\n painel2.setLayout(null);\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel8.setText(\"Formula Perimetro\");\r\n painel2.add(jLabel8);\r\n jLabel8.setBounds(310, 130, 162, 28);\r\n\r\n jLabel11.setText(\"Lado A:\");\r\n painel2.add(jLabel11);\r\n jLabel11.setBounds(57, 141, 60, 40);\r\n\r\n jLabel12.setText(\"Lado C:\");\r\n painel2.add(jLabel12);\r\n jLabel12.setBounds(57, 206, 60, 40);\r\n\r\n jLabel13.setText(\"Lado B:\");\r\n painel2.add(jLabel13);\r\n jLabel13.setBounds(57, 172, 60, 40);\r\n painel2.add(triangulo_ladoAtxt);\r\n triangulo_ladoAtxt.setBounds(120, 150, 77, 20);\r\n painel2.add(triangulo_ladoBtxt);\r\n triangulo_ladoBtxt.setBounds(120, 180, 77, 20);\r\n painel2.add(triangulo_ladoCtxt);\r\n triangulo_ladoCtxt.setBounds(120, 210, 77, 20);\r\n\r\n jLabel9.setText(\"Perimetro:\");\r\n painel2.add(jLabel9);\r\n jLabel9.setBounds(40, 370, 70, 20);\r\n painel2.add(triangulo_resp_perimetro);\r\n triangulo_resp_perimetro.setBounds(120, 360, 77, 20);\r\n\r\n triangulo_btn_calcPerimetro.setText(\"Calcular\");\r\n triangulo_btn_calcPerimetro.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n triangulo_btn_calcPerimetroActionPerformed(evt);\r\n }\r\n });\r\n painel2.add(triangulo_btn_calcPerimetro);\r\n triangulo_btn_calcPerimetro.setBounds(120, 310, 90, 23);\r\n painel2.add(triangulo_alturaTxt);\r\n triangulo_alturaTxt.setBounds(120, 240, 77, 20);\r\n\r\n jLabel14.setText(\"Altura:\");\r\n painel2.add(jLabel14);\r\n jLabel14.setBounds(60, 240, 50, 40);\r\n\r\n jLabel16.setText(\"Base:\");\r\n painel2.add(jLabel16);\r\n jLabel16.setBounds(60, 270, 50, 40);\r\n painel2.add(triangulo_baseTxt);\r\n triangulo_baseTxt.setBounds(120, 270, 77, 20);\r\n painel2.add(triangulo_respAreaTxt);\r\n triangulo_respAreaTxt.setBounds(120, 390, 77, 20);\r\n\r\n jLabel10.setText(\"Area:\");\r\n painel2.add(jLabel10);\r\n jLabel10.setBounds(70, 390, 50, 20);\r\n\r\n jLabel17.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel17.setText(\"Formula Area\");\r\n painel2.add(jLabel17);\r\n jLabel17.setBounds(340, 250, 154, 28);\r\n painel2.add(triangulo_eixoX);\r\n triangulo_eixoX.setBounds(80, 60, 77, 20);\r\n\r\n jLabel18.setText(\"Eixo X: \");\r\n painel2.add(jLabel18);\r\n jLabel18.setBounds(30, 50, 50, 40);\r\n\r\n jLabel19.setText(\"Eixo Y: \");\r\n painel2.add(jLabel19);\r\n jLabel19.setBounds(170, 54, 60, 30);\r\n\r\n triangulo_eixoY.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n triangulo_eixoYActionPerformed(evt);\r\n }\r\n });\r\n painel2.add(triangulo_eixoY);\r\n triangulo_eixoY.setBounds(230, 60, 77, 20);\r\n\r\n jLabel50.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/formula_area-triangulo.png\"))); // NOI18N\r\n painel2.add(jLabel50);\r\n jLabel50.setBounds(290, 270, 183, 78);\r\n\r\n jLabel53.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel53.setText(\"P = ( a + b + c )\");\r\n painel2.add(jLabel53);\r\n jLabel53.setBounds(310, 150, 163, 52);\r\n\r\n labelcone21.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone21.setText(\"m²\");\r\n painel2.add(labelcone21);\r\n labelcone21.setBounds(200, 380, 20, 40);\r\n\r\n labelcone22.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone22.setText(\"m²\");\r\n painel2.add(labelcone22);\r\n labelcone22.setBounds(200, 140, 20, 40);\r\n\r\n labelcone23.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone23.setText(\"m²\");\r\n painel2.add(labelcone23);\r\n labelcone23.setBounds(200, 170, 20, 40);\r\n\r\n labelcone24.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone24.setText(\"m²\");\r\n painel2.add(labelcone24);\r\n labelcone24.setBounds(200, 200, 20, 40);\r\n\r\n labelcone25.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone25.setText(\"m²\");\r\n painel2.add(labelcone25);\r\n labelcone25.setBounds(200, 230, 20, 40);\r\n\r\n labelcone26.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone26.setText(\"m²\");\r\n painel2.add(labelcone26);\r\n labelcone26.setBounds(200, 260, 20, 40);\r\n\r\n labelcone27.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone27.setText(\"m²\");\r\n painel2.add(labelcone27);\r\n labelcone27.setBounds(200, 350, 20, 40);\r\n\r\n painelFundo.add(painel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 820, 550));\r\n\r\n painel3.setBackground(new java.awt.Color(220, 123, 103));\r\n painel3.setLayout(null);\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel3.setText(\"Formula Volume\");\r\n painel3.add(jLabel3);\r\n jLabel3.setBounds(300, 280, 170, 23);\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel4.setText(\"Formula Area\");\r\n painel3.add(jLabel4);\r\n jLabel4.setBounds(330, 150, 160, 23);\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel5.setText(\"Altura:\");\r\n painel3.add(jLabel5);\r\n jLabel5.setBounds(40, 220, 49, 34);\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel7.setText(\"Volume:\");\r\n painel3.add(jLabel7);\r\n jLabel7.setBounds(40, 350, 70, 39);\r\n\r\n cone_respVol.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_respVolActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_respVol);\r\n cone_respVol.setBounds(110, 360, 74, 20);\r\n\r\n cone_alturaVol.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_alturaVolActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_alturaVol);\r\n cone_alturaVol.setBounds(100, 220, 72, 20);\r\n\r\n jLabel31.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel31.setText(\"Geratriz: \");\r\n painel3.add(jLabel31);\r\n jLabel31.setBounds(26, 183, 77, 34);\r\n\r\n jLabel33.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel33.setText(\"Area Total: \");\r\n painel3.add(jLabel33);\r\n jLabel33.setBounds(20, 320, 100, 39);\r\n\r\n cone_areaTotal.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_areaTotalActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_areaTotal);\r\n cone_areaTotal.setBounds(110, 330, 74, 20);\r\n\r\n cone_areaRaio.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_areaRaioActionPerformed(evt);\r\n }\r\n });\r\n cone_areaRaio.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\r\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\r\n cone_areaRaioPropertyChange(evt);\r\n }\r\n });\r\n painel3.add(cone_areaRaio);\r\n cone_areaRaio.setBounds(100, 160, 72, 20);\r\n\r\n cone_areaGeratriz.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_areaGeratrizActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_areaGeratriz);\r\n cone_areaGeratriz.setBounds(100, 190, 72, 20);\r\n\r\n cone_btnAreaTot.setText(\"Calcular\");\r\n cone_btnAreaTot.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_btnAreaTotActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_btnAreaTot);\r\n cone_btnAreaTot.setBounds(100, 260, 90, 23);\r\n\r\n jLabel34.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel34.setText(\"Raio:\");\r\n painel3.add(jLabel34);\r\n jLabel34.setBounds(50, 160, 38, 23);\r\n\r\n cone_eixoY.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_eixoYActionPerformed(evt);\r\n }\r\n });\r\n cone_eixoY.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\r\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\r\n cone_eixoYPropertyChange(evt);\r\n }\r\n });\r\n painel3.add(cone_eixoY);\r\n cone_eixoY.setBounds(250, 40, 72, 20);\r\n\r\n cone_eixoX.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_eixoXActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_eixoX);\r\n cone_eixoX.setBounds(110, 40, 72, 20);\r\n\r\n jLabel36.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel36.setText(\"Eixo Y:\");\r\n painel3.add(jLabel36);\r\n jLabel36.setBounds(190, 30, 70, 39);\r\n\r\n jLabel32.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel32.setText(\"m²\");\r\n painel3.add(jLabel32);\r\n jLabel32.setBounds(190, 220, 30, 18);\r\n\r\n jLabel47.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/formula_volumeCone.png\"))); // NOI18N\r\n painel3.add(jLabel47);\r\n jLabel47.setBounds(290, 310, 190, 60);\r\n\r\n jLabel52.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/formula_areaCone.png\"))); // NOI18N\r\n jLabel52.setText(\"jLabel47\");\r\n painel3.add(jLabel52);\r\n jLabel52.setBounds(300, 170, 190, 40);\r\n\r\n jLabel37.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel37.setText(\"Eixo X:\");\r\n painel3.add(jLabel37);\r\n jLabel37.setBounds(50, 40, 60, 23);\r\n\r\n jLabel42.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel42.setText(\"m³\");\r\n painel3.add(jLabel42);\r\n jLabel42.setBounds(190, 360, 30, 18);\r\n\r\n jLabel44.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel44.setText(\"m²\");\r\n painel3.add(jLabel44);\r\n jLabel44.setBounds(190, 190, 30, 18);\r\n\r\n jLabel68.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel68.setText(\"m²\");\r\n painel3.add(jLabel68);\r\n jLabel68.setBounds(190, 160, 30, 18);\r\n\r\n jLabel69.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel69.setText(\"m²\");\r\n painel3.add(jLabel69);\r\n jLabel69.setBounds(190, 330, 30, 18);\r\n\r\n painelFundo.add(painel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n painel4.setBackground(new java.awt.Color(220, 123, 103));\r\n painel4.setPreferredSize(new java.awt.Dimension(710, 810));\r\n painel4.setLayout(null);\r\n\r\n paralelepipedo_btnCalcArea.setText(\" Calcular\");\r\n paralelepipedo_btnCalcArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n paralelepipedo_btnCalcAreaActionPerformed(evt);\r\n }\r\n });\r\n painel4.add(paralelepipedo_btnCalcArea);\r\n paralelepipedo_btnCalcArea.setBounds(110, 250, 90, 23);\r\n painel4.add(paralelepipedo_alturaArea);\r\n paralelepipedo_alturaArea.setBounds(120, 140, 77, 20);\r\n\r\n jLabel20.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel20.setText(\"Altura:\");\r\n painel4.add(jLabel20);\r\n jLabel20.setBounds(60, 140, 90, 28);\r\n painel4.add(paralelepipedo_largArea);\r\n paralelepipedo_largArea.setBounds(120, 210, 77, 20);\r\n\r\n jLabel21.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel21.setText(\"Largura:\");\r\n painel4.add(jLabel21);\r\n jLabel21.setBounds(50, 210, 100, 28);\r\n painel4.add(paralelepipedo_compArea);\r\n paralelepipedo_compArea.setBounds(120, 180, 77, 20);\r\n\r\n jLabel22.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel22.setText(\"Cumprimento:\");\r\n painel4.add(jLabel22);\r\n jLabel22.setBounds(10, 174, 120, 28);\r\n\r\n jLabel23.setFont(new java.awt.Font(\"Calibri Light\", 1, 18)); // NOI18N\r\n jLabel23.setText(\"Formula Volume\");\r\n painel4.add(jLabel23);\r\n jLabel23.setBounds(250, 260, 170, 23);\r\n\r\n paralelepipedo_respArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n paralelepipedo_respAreaActionPerformed(evt);\r\n }\r\n });\r\n painel4.add(paralelepipedo_respArea);\r\n paralelepipedo_respArea.setBounds(120, 310, 77, 20);\r\n\r\n jLabel27.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel27.setText(\"Volume:\");\r\n painel4.add(jLabel27);\r\n jLabel27.setBounds(50, 340, 90, 28);\r\n painel4.add(paralelepipedo_volResp);\r\n paralelepipedo_volResp.setBounds(120, 340, 77, 20);\r\n\r\n jLabel29.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel29.setText(\"Eixo X: \");\r\n painel4.add(jLabel29);\r\n jLabel29.setBounds(60, 50, 100, 28);\r\n painel4.add(paralelepipedo_EixoX);\r\n paralelepipedo_EixoX.setBounds(120, 50, 77, 20);\r\n painel4.add(paralelepipedo_EixoY);\r\n paralelepipedo_EixoY.setBounds(270, 50, 77, 20);\r\n\r\n jLabel30.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel30.setText(\"Eixo Y: \");\r\n painel4.add(jLabel30);\r\n jLabel30.setBounds(200, 50, 70, 28);\r\n\r\n jLabel54.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel54.setText(\"Area:\");\r\n painel4.add(jLabel54);\r\n jLabel54.setBounds(60, 310, 80, 28);\r\n\r\n jLabel55.setFont(new java.awt.Font(\"Calibri Light\", 1, 18)); // NOI18N\r\n jLabel55.setText(\"Formula Area\");\r\n painel4.add(jLabel55);\r\n jLabel55.setBounds(290, 120, 170, 23);\r\n\r\n jLabel56.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel56.setText(\" .\");\r\n painel4.add(jLabel56);\r\n jLabel56.setBounds(360, 290, 60, 30);\r\n\r\n jLabel57.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel57.setText(\"V = ( a b c )\");\r\n painel4.add(jLabel57);\r\n jLabel57.setBounds(250, 280, 180, 50);\r\n\r\n jLabel60.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel60.setText(\"AT = 2 (ab +ac + bc)\");\r\n painel4.add(jLabel60);\r\n jLabel60.setBounds(260, 140, 270, 50);\r\n\r\n jLabel61.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel61.setText(\" .\");\r\n painel4.add(jLabel61);\r\n jLabel61.setBounds(320, 290, 60, 30);\r\n\r\n labelcone16.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone16.setText(\"m³\");\r\n painel4.add(labelcone16);\r\n labelcone16.setBounds(200, 330, 20, 40);\r\n\r\n labelcone17.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone17.setText(\"m²\");\r\n painel4.add(labelcone17);\r\n labelcone17.setBounds(200, 140, 20, 30);\r\n\r\n labelcone18.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone18.setText(\"m²\");\r\n painel4.add(labelcone18);\r\n labelcone18.setBounds(200, 170, 20, 30);\r\n\r\n labelcone19.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone19.setText(\"m²\");\r\n painel4.add(labelcone19);\r\n labelcone19.setBounds(200, 210, 20, 30);\r\n\r\n labelcone20.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone20.setText(\"m²\");\r\n painel4.add(labelcone20);\r\n labelcone20.setBounds(200, 300, 20, 40);\r\n\r\n painelFundo.add(painel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n painel5.setBackground(new java.awt.Color(220, 123, 103));\r\n painel5.setLayout(null);\r\n\r\n jLabel46.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel46.setText(\"Formula Perimetro\");\r\n painel5.add(jLabel46);\r\n jLabel46.setBounds(250, 230, 141, 23);\r\n\r\n jLabel48.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel48.setText(\"Perimetro:\");\r\n painel5.add(jLabel48);\r\n jLabel48.setBounds(20, 260, 78, 39);\r\n\r\n quad_respPer.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_respPerActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_respPer);\r\n quad_respPer.setBounds(110, 270, 74, 20);\r\n\r\n labelcone9.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone9.setText(\"Eixo X:\");\r\n painel5.add(labelcone9);\r\n labelcone9.setBounds(50, 60, 49, 39);\r\n\r\n quad_eixoX.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_eixoXActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_eixoX);\r\n quad_eixoX.setBounds(100, 70, 72, 20);\r\n\r\n labelcone10.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone10.setText(\"Eixo Y:\");\r\n painel5.add(labelcone10);\r\n labelcone10.setBounds(180, 60, 49, 39);\r\n\r\n quad_eixoY.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_eixoYActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_eixoY);\r\n quad_eixoY.setBounds(240, 70, 72, 20);\r\n\r\n quad_btnArea.setText(\"Calcular\");\r\n quad_btnArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_btnAreaActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_btnArea);\r\n quad_btnArea.setBounds(90, 190, 90, 23);\r\n\r\n jLabel49.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel49.setText(\"Formula Area\");\r\n painel5.add(jLabel49);\r\n jLabel49.setBounds(250, 130, 140, 29);\r\n\r\n jLabel51.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel51.setText(\"Area Total:\");\r\n painel5.add(jLabel51);\r\n jLabel51.setBounds(20, 230, 81, 39);\r\n\r\n labelcone12.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone12.setText(\"Lado A:\");\r\n painel5.add(labelcone12);\r\n labelcone12.setBounds(30, 140, 55, 39);\r\n\r\n quad_respArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_respAreaActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_respArea);\r\n quad_respArea.setBounds(110, 240, 74, 20);\r\n\r\n quad_areaLadoA.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_areaLadoAActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_areaLadoA);\r\n quad_areaLadoA.setBounds(90, 150, 72, 20);\r\n\r\n jLabel66.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel66.setText(\"A = ( L . L . L . L)\");\r\n painel5.add(jLabel66);\r\n jLabel66.setBounds(250, 260, 210, 50);\r\n\r\n jLabel67.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel67.setText(\"P = ( L . L )\");\r\n painel5.add(jLabel67);\r\n jLabel67.setBounds(260, 160, 120, 50);\r\n\r\n labelcone28.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone28.setText(\"m²\");\r\n painel5.add(labelcone28);\r\n labelcone28.setBounds(190, 260, 20, 40);\r\n\r\n labelcone29.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone29.setText(\"m²\");\r\n painel5.add(labelcone29);\r\n labelcone29.setBounds(170, 140, 20, 40);\r\n\r\n labelcone30.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone30.setText(\"m²\");\r\n painel5.add(labelcone30);\r\n labelcone30.setBounds(190, 230, 20, 40);\r\n\r\n painelFundo.add(painel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n painel7.setBackground(new java.awt.Color(220, 123, 103));\r\n painel7.setPreferredSize(new java.awt.Dimension(710, 560));\r\n painel7.setLayout(null);\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Calibri\", 0, 36)); // NOI18N\r\n jLabel6.setText(\"(Bhaskara)\");\r\n painel7.add(jLabel6);\r\n jLabel6.setBounds(120, 70, 155, 54);\r\n\r\n labelcone1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone1.setText(\"A: \");\r\n painel7.add(labelcone1);\r\n labelcone1.setBounds(60, 170, 19, 20);\r\n\r\n jLabel38.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel38.setText(\"X1:\");\r\n painel7.add(jLabel38);\r\n jLabel38.setBounds(60, 390, 23, 23);\r\n\r\n equacao_x1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_x1ActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_x1);\r\n equacao_x1.setBounds(100, 390, 74, 20);\r\n\r\n equacao_A.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_AActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_A);\r\n equacao_A.setBounds(100, 170, 72, 20);\r\n\r\n equacao_calcular.setText(\"Calcular\");\r\n equacao_calcular.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_calcularActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_calcular);\r\n equacao_calcular.setBounds(100, 260, 100, 23);\r\n\r\n jLabel39.setFont(new java.awt.Font(\"Calibri\", 0, 36)); // NOI18N\r\n jLabel39.setText(\"Equação de Segundo Grau\");\r\n painel7.add(jLabel39);\r\n jLabel39.setBounds(80, 10, 385, 54);\r\n\r\n labelcone2.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone2.setText(\"B: \");\r\n painel7.add(labelcone2);\r\n labelcone2.setBounds(60, 200, 19, 20);\r\n\r\n equacao_B.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_BActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_B);\r\n equacao_B.setBounds(100, 200, 72, 20);\r\n\r\n equacao_C.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_CActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_C);\r\n equacao_C.setBounds(100, 230, 72, 20);\r\n\r\n labelcone3.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone3.setText(\"C: \");\r\n painel7.add(labelcone3);\r\n labelcone3.setBounds(60, 230, 19, 20);\r\n\r\n jLabel40.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel40.setText(\"X2:\");\r\n painel7.add(jLabel40);\r\n jLabel40.setBounds(60, 420, 23, 20);\r\n\r\n equacao_x2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_x2ActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_x2);\r\n equacao_x2.setBounds(100, 420, 74, 20);\r\n\r\n jLabel41.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel41.setText(\"Delta:\");\r\n painel7.add(jLabel41);\r\n jLabel41.setBounds(40, 350, 44, 20);\r\n\r\n equacao_Delta.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_DeltaActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_Delta);\r\n equacao_Delta.setBounds(100, 350, 74, 20);\r\n\r\n jLabel64.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/bhaskara.png\"))); // NOI18N\r\n painel7.add(jLabel64);\r\n jLabel64.setBounds(190, 170, 360, 98);\r\n\r\n jLabel65.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/delta.png\"))); // NOI18N\r\n painel7.add(jLabel65);\r\n jLabel65.setBounds(260, 280, 280, 60);\r\n\r\n painelFundo.add(painel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 820, 550));\r\n\r\n painel8.setBackground(new java.awt.Color(220, 123, 103));\r\n\r\n javax.swing.GroupLayout painel8Layout = new javax.swing.GroupLayout(painel8);\r\n painel8.setLayout(painel8Layout);\r\n painel8Layout.setHorizontalGroup(\r\n painel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 560, Short.MAX_VALUE)\r\n );\r\n painel8Layout.setVerticalGroup(\r\n painel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 550, Short.MAX_VALUE)\r\n );\r\n\r\n painelFundo.add(painel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(painelFundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(painelFundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n\r\n pack();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton2 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Crear programa maestro de asignación\");\n setLocationByPlatform(true);\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jButton2.setText(\"ok\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextField1.setText(\"jTextField1\");\n\n jLabel1.setText(\"Seleccionar archivo de Topcon\");\n\n jButton1.setText(\"Browse\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setLabelFor(jComboBox1);\n jLabel2.setText(\"Número de grabación\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 329, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(6, 6, 6)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addContainerGap())\n );\n\n pack();\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource()==btnBusqueda) {\r\n\t\t\t//Guardamos en una variable lo introducido en el campo\r\n\t\t\tString busqueda=tfBusqueda.getText();\r\n\t\t\t//Guardamos la eleccion del fltro\r\n\t\t\tString filtro = (String) ComBoxFiltro.getSelectedItem();\r\n\t\t\t//Si el filtro de busqueda esta vacio, mostrara un mensaje diciendo que \r\n\t\t\t//introduzca algo en el campo\r\n\t\t\tif (busqueda==null||busqueda.equals(\"\")) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Introduce una matricula o un dni en el campo.\");\r\n\t\t\t\t//si no hara la comprobacion del filtro\r\n\t\t\t}else {\r\n\t\t\t\t//Si la eleccion es de DNI\r\n\t\t\t\tif (filtro.equals(\"DNI\")) {\r\n\t\t\t\t\t//\tString empleado=\"SELECT * FROM EMPLEADO WHERE NIF='\"+busqueda+\"'\";\r\n\t\t\t\t\tString cliente=\"SELECT * FROM CLIENTE WHERE NIF='\"+busqueda+\"'\";\r\n\t\t\t\t\t//\tString proveedor=\"SELECT * FROM PROVEEDOR WHERE NIF='\"+busqueda+\"'\";\r\n\t\t\t\t\t//Se buscara si existe \r\n\t\t\t\t\tif (existente(busqueda, cliente)) {\r\n\t\t\t\t\t\t//Si existe\r\n\t\t\t\t\t\t//se oculta la ventana y se cierra\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t//Se hace la llamada a la ventana para mostrar los clientes\r\n\t\t\t\t\t\tvisualizarCliente nVenCli=new visualizarCliente();\r\n\t\t\t\t\t\t//Se definiran en los campos los datos del cliente existente\r\n\t\t\t\t\t\tnVenCli.tfDni.setText(p1.getNif());\r\n\t\t\t\t\t\tnVenCli.tfApe1.setText(p1.getApellido1());\r\n\t\t\t\t\t\tnVenCli.tfApe2.setText(p1.getApellido2());\r\n\t\t\t\t\t\tnVenCli.tfTelefono.setText(String.valueOf(p1.getTelefono()));\r\n\t\t\t\t\t\tnVenCli.tfDireccion.setText(p1.getDireccion());\r\n\t\t\t\t\t\tnVenCli.tfNombre.setText(p1.getNombre());\r\n\t\t\t\t\t\tnVenCli.tfNumCuenta.setText(p1.getNumCuenta());\r\n\t\t\t\t\t\tnVenCli.tfCorreo.setText(p1.getCorreo());\r\n\t\t\t\t\t\t//Se muestra la ventana y la colocamos en el centro\r\n\t\t\t\t\t\tnVenCli.setVisible(true);\r\n\t\t\t\t\t\tnVenCli.setLocationRelativeTo(null);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\t//Si el cliente no existe\r\n\t\t\t\t\t\t//Se preguntara si se deasea añadir el cliente o no\r\n\t\t\t\t\t\tString create=JOptionPane.showInputDialog(\"El cliente no esta registrado.\\nDesea crearlo?\");\r\n\t\t\t\t\t\t//Si es que si o s\r\n\t\t\t\t\t\tif (create.equalsIgnoreCase(\"si\")||create.equalsIgnoreCase(\"s\")) {\r\n\t\t\t\t\t\t\t//esta ventana se ocultara y se cerrara\r\n\t\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t//Se hace la llamada a la ventana para mostrar los clientes\r\n\t\t\t\t\t\t\tnuevoCliente nVenCli=new nuevoCliente();\r\n\t\t\t\t\t\t\t//se pondra el DNI buscado en el campo de DNi y los demas espacios\r\n\t\t\t\t\t\t\t//apareceran en blanco para poder rellenarlo\r\n\t\t\t\t\t\t\tnVenCli.tfDni.setText(tfBusqueda.getText());\r\n\t\t\t\t\t\t\t//Se muestra la ventana y la colocamos en el centro\r\n\t\t\t\t\t\t\tnVenCli.setVisible(true);\r\n\t\t\t\t\t\t\tnVenCli.setLocationRelativeTo(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if (filtro.equals(\"MATRICULA\")) {\r\n\t\t\t\t\tString vehiculo= \"SELECT * FROM VEHICULO WHERE MATRICULA='\"+busqueda+\"'\";\r\n\t\t\t\t\tif (existente(busqueda, vehiculo)) {\r\n\t\t\t\t\t\t//Si existe\r\n\t\t\t\t\t\t//se oculta la ventana y se cierra\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t//Se hace la llamada a la ventana para mostrar los vehiculos\r\n\t\t\t\t\t\tvisualizarVehiculo nVenVehi=new visualizarVehiculo();\r\n\t\t\t\t\t\t//Se definiran en los campos los datos del vehiculo existente\r\n\t\t\t\t\t\tnVenVehi.tfDni.setText(v1.getDniCli());\r\n\t\t\t\t\t\tnVenVehi.tfMatricula.setText(v1.getMatricula());\r\n\t\t\t\t\t\t//No se podra modificar este campo\r\n\t\t\t\t\t\tnVenVehi.tfMatricula.setEditable(false);\t\t\t\t\t\t\r\n\t\t\t\t\t\tnVenVehi.tfMarca.setText(v1.getMarca());\r\n\t\t\t\t\t\tnVenVehi.tfAño.setText(String.valueOf(v1.getAño()));\r\n\t\t\t\t\t\tnVenVehi.tfModelo.setText(v1.getModelo());\r\n\t\t\t\t\t\t//Se muestra la ventana y la colocamos en el centro\r\n\t\t\t\t\t\tnVenVehi.setVisible(true);\r\n\t\t\t\t\t\tnVenVehi.setLocationRelativeTo(null);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\t//Si el vehiculo no existe\r\n\t\t\t\t\t\t//Se preguntara si se deasea añadir el vehiculo o no\r\n\t\t\t\t\t\tString create=JOptionPane.showInputDialog(\"El vehiculo no esta registrado.\\nDesea crearlo?\");\r\n\t\t\t\t\t\t//Si es que si o s\r\n\t\t\t\t\t\tif (create.equalsIgnoreCase(\"si\")||create.equalsIgnoreCase(\"s\")) {\r\n\t\t\t\t\t\t\t//esta ventana se ocultara y se cerrara\r\n\t\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t//Se hace la llamada a la ventana para mostrar los vehiculos\r\n\t\t\t\t\t\t\tnuevoCliente nVenCli=new nuevoCliente();\r\n\t\t\t\t\t\t\t//se pondra el matricula buscado en el campo de matricula y los demas \r\n\t\t\t\t\t\t\t//espacios apareceran en blanco para poder rellenarlo\r\n\t\t\t\t\t\t\tnVenCli.tfDni.setText(tfBusqueda.getText());\r\n\t\t\t\t\t\t\tnVenCli.tfDni.setEditable(false);\r\n\t\t\t\t\t\t\t//Se muestra la ventana y la colocamos en el centro\r\n\t\t\t\t\t\t\tnVenCli.setVisible(true);\r\n\t\t\t\t\t\t\tnVenCli.setLocationRelativeTo(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Selecciona un filtro: DNI o Matricula.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (e.getSource() == mi1) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tnuevoCliente nC=new nuevoCliente();\r\n\t\t\tnC.setVisible(true);\r\n\t\t\tnC.setLocationRelativeTo(null);\r\n\t\t}\r\n\t\tif (e.getSource() == mi2) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tListaCliente lC=new ListaCliente();\r\n\t\t\tlC.setVisible(true);\r\n\t\t\tlC.setLocationRelativeTo(null);\r\n\t\t}\r\n\t\tif (e.getSource() == mi3) {\r\n\t\t\t// Facturas\t\t\t\r\n\r\n\t\t}\r\n\t\tif (e.getSource() == mi4) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tnuevoVehiculo nV=new nuevoVehiculo();\r\n\t\t\tnV.setVisible(true);\r\n\t\t\tnV.setLocationRelativeTo(null);\r\n\t\t}\r\n\t\tif (e.getSource() == mi5) {\r\n\t\t\t// Listar vehículos\r\n\r\n\t\t}\r\n\t\tif (e.getSource() == mi6) {\r\n\r\n\t\t\t// Listar reparaciones\r\n\r\n\t\t}\r\n\t\tif (e.getSource() == mi7) {\r\n\r\n\t\t\t// Realizar pedido\r\n\t\t}\r\n\r\n\t\tif (e.getSource() == mi8) {\r\n\t\t\t// Listar pedidos\r\n\r\n\t\t}\r\n\t\tif (e.getSource() == mi9) {\r\n\t\t\t// Listar stock piezas\t\r\n\t\t}\r\n\r\n\t\tif (e.getSource() == mi10) {\r\n\t\t\t// Nuevo proveedor\r\n\t\t}\r\n\r\n\t\tif (e.getSource() == mi11) {\r\n\t\t\t// Listar proveedores\r\n\t\t}\r\n\r\n\t\tif (e.getSource() == mi12) {\r\n\t\t\t// Nuevo empleado\r\n\t\t}\r\n\r\n\t\tif (e.getSource() == mi13) {\r\n\t\t\t// Listar empleado\r\n\t\t}\r\n\r\n\t\tif (e.getSource() == mi14) {\r\n\r\n\t\t\t// Salida del programa\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n envio = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n nombreEmpleado = new javax.swing.JTextField();\n jLabel19 = new javax.swing.JLabel();\n cedulaEmpleado = new javax.swing.JTextField();\n nombre1 = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n tipoBusquedaCliente = new javax.swing.JComboBox();\n txtIngresoDatoCliente = new javax.swing.JTextField();\n buscar = new javax.swing.JButton();\n newCliente = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n nombreCliente = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n cedulaCliente = new javax.swing.JTextField();\n jLabel17 = new javax.swing.JLabel();\n telefonoCliente = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n apellidoCliente = new javax.swing.JTextField();\n celularCliente = new javax.swing.JTextField();\n jPanel5 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n txtIngresoDatosPro = new javax.swing.JTextField();\n buscar1 = new javax.swing.JButton();\n tipoBusquedaProducto = new javax.swing.JComboBox();\n jLabel10 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n cantidadCompraPro = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n nombrePro = new javax.swing.JTextField();\n jLabel23 = new javax.swing.JLabel();\n precioUnitarioPro = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n ivaPro = new javax.swing.JTextField();\n jLabel25 = new javax.swing.JLabel();\n stockPro = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n codBarrasPro = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n pct_descuentoPro = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n uniCompraPro = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n uniVentaPro = new javax.swing.JTextField();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tablaDetalles = new javax.swing.JTable();\n jPanel7 = new javax.swing.JPanel();\n btnQuitar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n subtotalTotal = new javax.swing.JTextField();\n descuentoTotal = new javax.swing.JTextField();\n totalFac = new javax.swing.JTextField();\n jPanel9 = new javax.swing.JPanel();\n rbtnSi = new javax.swing.JRadioButton();\n jLabel14 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n direccionEnvio = new javax.swing.JButton();\n rtbnNo = new javax.swing.JRadioButton();\n jPanel8 = new javax.swing.JPanel();\n jLabel15 = new javax.swing.JLabel();\n txttotalPagar = new javax.swing.JTextField();\n btnRecetaMedica = new javax.swing.JButton();\n jPanel10 = new javax.swing.JPanel();\n jButton6 = new javax.swing.JButton();\n\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de la Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de Factura\"));\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Número de Factura\");\n\n jTextField2.setEditable(false);\n jTextField2.setBackground(new java.awt.Color(255, 255, 255));\n jTextField2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jTextField2.setForeground(new java.awt.Color(51, 51, 51));\n jTextField2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jTextField2.setEnabled(false);\n\n jLabel3.setBackground(new java.awt.Color(255, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Fecha de Venta\");\n\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Nombre del Empleado: \");\n\n nombreEmpleado.setEditable(false);\n nombreEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreEmpleado.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreEmpleadoActionPerformed(evt);\n }\n });\n\n jLabel19.setBackground(new java.awt.Color(0, 102, 204));\n jLabel19.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Cedula del Empleado:\");\n\n cedulaEmpleado.setEditable(false);\n cedulaEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n nombre1.setEditable(false);\n nombre1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombre1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombre1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombre1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombre1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(37, 37, 37)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2)\n .addComponent(nombreEmpleado)\n .addComponent(cedulaEmpleado)\n .addComponent(nombre1))\n .addGap(18, 18, 18))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nombre1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cedulaEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Cliente\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 255));\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Buscar por: \");\n\n tipoBusquedaCliente.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Cedula\", \"Nombre\" }));\n tipoBusquedaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n tipoBusquedaCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaClienteActionPerformed(evt);\n }\n });\n\n txtIngresoDatoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar.setBackground(new java.awt.Color(255, 255, 255));\n buscar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar.setForeground(new java.awt.Color(0, 102, 204));\n buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar.setText(\"Buscar\");\n buscar.setBorder(null);\n buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscarActionPerformed(evt);\n }\n });\n\n newCliente.setBackground(new java.awt.Color(255, 255, 255));\n newCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n newCliente.setForeground(new java.awt.Color(0, 102, 204));\n newCliente.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n newCliente.setText(\"¿Desea almacenar un nuevo cliente? click aqui\");\n newCliente.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n newCliente.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n newClienteMouseClicked(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Nombre: \");\n\n nombreCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreClienteActionPerformed(evt);\n }\n });\n\n jLabel16.setBackground(new java.awt.Color(0, 102, 204));\n jLabel16.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"Cedula:\");\n\n cedulaCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel17.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\" Telefono \");\n\n telefonoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n telefonoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n telefonoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel18.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Apellido:\");\n\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Celular:\");\n\n apellidoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n apellidoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n apellidoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n celularCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n celularCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n celularCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n celularCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n celularClienteActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombreCliente, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(newCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(109, 109, 109))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)\n .addComponent(celularCliente))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGap(0, 1, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(celularCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Buscar Producto\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(102, 102, 102))); // NOI18N\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 0, 16)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Buscar\");\n\n txtIngresoDatosPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatosPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatosPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar1.setBackground(new java.awt.Color(255, 255, 255));\n buscar1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar1.setForeground(new java.awt.Color(0, 102, 204));\n buscar1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar1.setText(\"Buscar\");\n buscar1.setBorder(null);\n buscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscar1ActionPerformed(evt);\n }\n });\n\n tipoBusquedaProducto.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tipoBusquedaProducto.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaProducto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Codigo de Barras\", \"Nombre\" }));\n tipoBusquedaProducto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));\n tipoBusquedaProducto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaProductoActionPerformed(evt);\n }\n });\n\n jLabel10.setBackground(new java.awt.Color(255, 255, 255));\n jLabel10.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(0, 102, 204));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Ingresar Cantidad a Comprar\");\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 102, 204));\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/compra.png\"))); // NOI18N\n jButton1.setText(\"Añadir\");\n jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n cantidadCompraPro.setEditable(false);\n cantidadCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 12)); // NOI18N\n cantidadCompraPro.setForeground(new java.awt.Color(0, 102, 204));\n cantidadCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cantidadCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(102, 102, 102)));\n\n jLabel22.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Nombre: \");\n\n nombrePro.setEditable(false);\n nombrePro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombrePro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombrePro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel23.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"Código de Barras:\");\n\n precioUnitarioPro.setEditable(false);\n precioUnitarioPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n precioUnitarioPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n precioUnitarioPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel24.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"IVA: \");\n\n ivaPro.setEditable(false);\n ivaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n ivaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel25.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Stock:\");\n\n stockPro.setEditable(false);\n stockPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n stockPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n stockPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel26.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Precio Unitario:\");\n\n codBarrasPro.setEditable(false);\n codBarrasPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n codBarrasPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n codBarrasPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel27.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"Porcentaje de Descuento\");\n\n pct_descuentoPro.setEditable(false);\n pct_descuentoPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n pct_descuentoPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pct_descuentoPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n pct_descuentoPro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pct_descuentoProActionPerformed(evt);\n }\n });\n\n jLabel28.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"Unidad de Compra\");\n\n uniCompraPro.setEditable(false);\n uniCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel29.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"Unidad de Venta\");\n\n uniVentaPro.setEditable(false);\n uniVentaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniVentaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniVentaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(7, 7, 7)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ivaPro, javax.swing.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)\n .addComponent(precioUnitarioPro)\n .addComponent(stockPro))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(buscar1, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(codBarrasPro)\n .addComponent(pct_descuentoPro)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE))))\n .addGap(22, 22, 22))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(precioUnitarioPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ivaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stockPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar1)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(codBarrasPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pct_descuentoPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Detalle de la Factura\"));\n\n jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));\n jScrollPane3.setBorder(null);\n\n tablaDetalles.setBackground(new java.awt.Color(0, 102, 204));\n tablaDetalles.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tablaDetalles.setForeground(new java.awt.Color(255, 255, 255));\n tablaDetalles.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Cantidad\", \"Producto\", \"Precio Unitario\", \"Subtotal\", \"Descuento por Producto\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.String.class, java.lang.Double.class, java.lang.Double.class, java.lang.Double.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, true, true\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tablaDetalles.setRowHeight(25);\n tablaDetalles.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tablaDetallesMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(tablaDetalles);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 845, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 845, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 25, Short.MAX_VALUE)))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Opciones\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n btnQuitar.setBackground(new java.awt.Color(255, 255, 255));\n btnQuitar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnQuitar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/eliminar.png\"))); // NOI18N\n btnQuitar.setText(\"Quitar\");\n btnQuitar.setEnabled(false);\n btnQuitar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnQuitarActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Subtotal:\");\n\n jLabel12.setText(\"Descuento Total:\");\n\n jLabel13.setText(\"Total:\");\n\n subtotalTotal.setEditable(false);\n subtotalTotal.setBackground(new java.awt.Color(255, 255, 255));\n subtotalTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n descuentoTotal.setEditable(false);\n descuentoTotal.setBackground(new java.awt.Color(255, 255, 255));\n descuentoTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n totalFac.setEditable(false);\n totalFac.setBackground(new java.awt.Color(255, 255, 255));\n totalFac.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnQuitar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal)\n .addComponent(totalFac))))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnQuitar, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(totalFac, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Envio\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 12), new java.awt.Color(51, 51, 51))); // NOI18N\n\n envio.add(rbtnSi);\n rbtnSi.setText(\"Si\");\n rbtnSi.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rbtnSiMouseClicked(evt);\n }\n });\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/dinero.png\"))); // NOI18N\n jLabel14.setText(\"Precio de envio\");\n\n jTextField7.setEditable(false);\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField7.setText(\"$ 2.00\");\n\n direccionEnvio.setBackground(new java.awt.Color(255, 255, 255));\n direccionEnvio.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n direccionEnvio.setForeground(new java.awt.Color(0, 102, 204));\n direccionEnvio.setText(\"Añadir direccion de Envio del cliente\");\n direccionEnvio.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n direccionEnvio.setEnabled(false);\n direccionEnvio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccionEnvioActionPerformed(evt);\n }\n });\n\n envio.add(rtbnNo);\n rtbnNo.setSelected(true);\n rtbnNo.setText(\"No\");\n rtbnNo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rtbnNoMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rbtnSi)\n .addComponent(rtbnNo))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbtnSi)\n .addComponent(jLabel14)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rtbnNo)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21))\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Servicios\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel15.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/cobro.png\"))); // NOI18N\n jLabel15.setText(\"Total a Pagar:\");\n\n txttotalPagar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txttotalPagar.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txttotalPagar.setEnabled(false);\n txttotalPagar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txttotalPagarActionPerformed(evt);\n }\n });\n\n btnRecetaMedica.setBackground(new java.awt.Color(255, 255, 255));\n btnRecetaMedica.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnRecetaMedica.setForeground(new java.awt.Color(0, 102, 204));\n btnRecetaMedica.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/receta.png\"))); // NOI18N\n btnRecetaMedica.setText(\"Agregar Receta Medica\");\n btnRecetaMedica.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRecetaMedicaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(txttotalPagar)\n .addGap(23, 23, 23))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txttotalPagar, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Generar Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jButton6.setBackground(new java.awt.Color(255, 255, 255));\n jButton6.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton6.setForeground(new java.awt.Color(0, 102, 204));\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/impresora.png\"))); // NOI18N\n jButton6.setText(\"Imprimir Factura\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(23, 23, 23))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }", "public void dialogoEditarUsuario() {\n vEditarUsuario = new V_EditarUsuario(new JFrame(), true);\n vEditarUsuario.setVisible(true);\n }", "public void crearRecTrans(){\n \n \tgetContentPane().setLayout(new BorderLayout());\n \n \tp1 = new JPanel();\n p2 = new JPanel();\n \n String[] a = {\"Regresar\",\"Continuar\"}, c = {\"Cuenta de origen\",\"Monto\",\"Cuenta de destino\"};\n \n p1.setLayout(new GridLayout(1,2));\n p2.setLayout(new GridLayout(1,3));\n \n for (int x=0; x<2; x++) {\n b = new JButton(a[x]);\n botones.add(b);\n }\n for (JButton x:botones) {\n x.setPreferredSize(new Dimension(110,110));\n p1.add(x);\n }\n // Add buttons panel \n add(p1, BorderLayout.SOUTH);\n \n for (int x=0; x<3; x++) {\n tf = new JTextField(c[x]);\n tf.setPreferredSize(new Dimension(10,100));\n textos.add(tf);\n p2.add(textos.get(x));\n }\n // Add textfields panel\n add(p2, BorderLayout.NORTH);\n }", "public GUI_IntroDatos() {\n initComponents();\n }", "public frmOrdenacao() {\n initComponents();\n setResizable(false);\n ordenacaoControle = new OrdenacaoControle();\n }" ]
[ "0.7242289", "0.72396755", "0.7181405", "0.70887464", "0.70322484", "0.6976582", "0.6874646", "0.6850722", "0.6832498", "0.6758669", "0.6758037", "0.6754386", "0.6748522", "0.6728364", "0.6724675", "0.6695569", "0.6686467", "0.66813606", "0.667768", "0.6674401", "0.6666243", "0.6664777", "0.6657688", "0.66426814", "0.6637488", "0.6602849", "0.66019183", "0.65968406", "0.6573318", "0.65715533", "0.65379614", "0.6531392", "0.6531023", "0.6510529", "0.6509897", "0.64980614", "0.64971286", "0.6487126", "0.6481877", "0.6481522", "0.6479275", "0.6479022", "0.64649945", "0.64591527", "0.64547527", "0.64547116", "0.64530694", "0.6452202", "0.6451535", "0.64497185", "0.6447802", "0.64398533", "0.643093", "0.6421745", "0.64202225", "0.6414817", "0.6412314", "0.64081186", "0.64069736", "0.6404642", "0.6401958", "0.6395414", "0.6393689", "0.63894975", "0.6389057", "0.63885844", "0.6374673", "0.63745254", "0.6368654", "0.6367438", "0.63535243", "0.6351234", "0.63487947", "0.63420564", "0.6339748", "0.6337051", "0.6336511", "0.6333084", "0.6329258", "0.63291913", "0.631811", "0.6317209", "0.6316363", "0.63135475", "0.63072586", "0.6306749", "0.63027865", "0.6300946", "0.629776", "0.629704", "0.6296785", "0.6293121", "0.6292926", "0.6287885", "0.62864834", "0.6282194", "0.6279398", "0.62766796", "0.62755615", "0.62689996" ]
0.7502166
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { btgSel = new javax.swing.ButtonGroup(); stampa = new javax.swing.JButton(); annulla = new javax.swing.JButton(); listini = new javax.swing.JComboBox(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); ordine = new javax.swing.JComboBox(); jScrollPane1 = new javax.swing.JScrollPane(); noteTesta = new javax.swing.JTextArea(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); notePiede = new javax.swing.JTextArea(); jLabel5 = new javax.swing.JLabel(); formato = new javax.swing.JComboBox(); rbtEnt = new javax.swing.JRadioButton(); rbtVen = new javax.swing.JRadioButton(); rbtAcq = new javax.swing.JRadioButton(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); lingua = new javax.swing.JComboBox(); jLabel8 = new javax.swing.JLabel(); sorgente = new javax.swing.JComboBox(); FormListener formListener = new FormListener(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Stampa Elenco Articoli"); stampa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/it/tnx/invoicex/res/Checkmark-16.png"))); // NOI18N stampa.setText("Stampa"); stampa.addActionListener(formListener); annulla.setIcon(new javax.swing.ImageIcon(getClass().getResource("/it/tnx/invoicex/res/Delete Sign-16.png"))); // NOI18N annulla.setText("Annulla"); annulla.addActionListener(formListener); listini.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel1.setText("Includi i prezzi del listino"); jLabel1.setPreferredSize(new java.awt.Dimension(80, 14)); jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel2.setText("Ordina per"); jLabel2.setPreferredSize(new java.awt.Dimension(80, 14)); ordine.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); noteTesta.setColumns(20); noteTesta.setRows(5); jScrollPane1.setViewportView(noteTesta); jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel3.setText("Note Testata"); jLabel3.setPreferredSize(new java.awt.Dimension(80, 14)); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel4.setText("Note Piede"); jLabel4.setPreferredSize(new java.awt.Dimension(80, 14)); notePiede.setColumns(20); notePiede.setRows(5); jScrollPane2.setViewportView(notePiede); jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel5.setText("Formato Stampa"); jLabel5.setPreferredSize(new java.awt.Dimension(80, 14)); formato.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); btgSel.add(rbtEnt); rbtEnt.setSelected(true); rbtEnt.setText("Entrambi"); rbtEnt.addActionListener(formListener); btgSel.add(rbtVen); rbtVen.setText("Vendita"); rbtVen.addActionListener(formListener); btgSel.add(rbtAcq); rbtAcq.setText("Acquisto"); rbtAcq.addActionListener(formListener); jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel6.setText("Tipo Articolo"); jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel7.setText("Lingua"); lingua.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Italiano", "Inglese" })); lingua.addActionListener(formListener); jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel8.setText("Sorgente dati"); jLabel8.setPreferredSize(new java.awt.Dimension(80, 14)); sorgente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Elenco finestra articoli", "Tutti gli articoli" })); sorgente.addItemListener(formListener); sorgente.addInputMethodListener(formListener); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane2)) .add(layout.createSequentialGroup() .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane1)) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(0, 0, Short.MAX_VALUE) .add(annulla) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(stampa)) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jLabel6) .add(jLabel7)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lingua, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(layout.createSequentialGroup() .add(rbtVen) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(rbtAcq) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(rbtEnt)) .add(formato, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 221, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(layout.createSequentialGroup() .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sorgente, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 114, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(listini, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 191, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(ordine, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 325, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))) .add(0, 0, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {jLabel1, jLabel2, jLabel3, jLabel4, jLabel5, jLabel6, jLabel7, jLabel8}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(sorgente, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(listini, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(ordine, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane1) .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane2) .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(formato, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(5, 5, 5) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(rbtVen) .add(rbtAcq) .add(rbtEnt) .add(jLabel6)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jLabel7) .add(lingua, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(18, 18, 18) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(stampa) .add(annulla)) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\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 .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\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 .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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.createParallelGroup(\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\tAlignment.LEADING)\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.addComponent(label22,\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\tGroupLayout.PREFERRED_SIZE,\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\tGroupLayout.DEFAULT_SIZE,\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\tGroupLayout.PREFERRED_SIZE)\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.addGroup(\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\tlayout.createSequentialGroup()\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\t\t\t.addGap(3)\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\t\t\t.addComponent(\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\t\t\t\t\tlabel23,\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\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\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\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\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\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\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 .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.732017", "0.7291279", "0.7291279", "0.7291279", "0.7286003", "0.7249014", "0.721411", "0.720819", "0.7196242", "0.7190395", "0.71849346", "0.7159721", "0.7148069", "0.70934445", "0.7079763", "0.7056577", "0.6987638", "0.6978011", "0.69549644", "0.69530493", "0.6945049", "0.6942394", "0.6935541", "0.693223", "0.6928088", "0.6924428", "0.69241494", "0.691142", "0.69106644", "0.6893475", "0.68921363", "0.68898267", "0.6889822", "0.6888889", "0.68830574", "0.68813944", "0.6881165", "0.6877479", "0.68752235", "0.68747437", "0.6871299", "0.6859591", "0.6856115", "0.6855173", "0.6855125", "0.6854962", "0.68530196", "0.6852737", "0.6852737", "0.6843147", "0.68370813", "0.68366593", "0.68283623", "0.68281215", "0.6825811", "0.6823924", "0.6823443", "0.68169594", "0.68156785", "0.6809513", "0.68092215", "0.68091464", "0.68080777", "0.6806839", "0.6802871", "0.6795172", "0.67944115", "0.67920417", "0.6790103", "0.6789442", "0.67882615", "0.67874336", "0.6782333", "0.67663395", "0.67655057", "0.6765026", "0.6756117", "0.6755023", "0.67517287", "0.6751031", "0.6743606", "0.6738867", "0.6737393", "0.6735563", "0.67327684", "0.67275465", "0.67266476", "0.6719547", "0.67160183", "0.6713876", "0.6713717", "0.67084426", "0.6706528", "0.670407", "0.67005676", "0.670017", "0.66990566", "0.6697206", "0.6694092", "0.6691282", "0.6689802" ]
0.0
-1
End of variables declaration//GENEND:variables
private void checkSorgente() { if (sorgente.getSelectedIndex() == 0) { rbtAcq.setEnabled(false); rbtVen.setEnabled(false); rbtEnt.setEnabled(false); rbtAcq.setSelected(false); rbtVen.setSelected(false); rbtEnt.setSelected(false); } else { rbtAcq.setEnabled(true); rbtVen.setEnabled(true); rbtEnt.setEnabled(true); rbtAcq.setSelected(false); rbtVen.setSelected(false); rbtEnt.setSelected(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
Crude, but good enough while the app isn't launched.
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { final String DROP_REVIEW_TABLE = "DROP TABLE IF EXISTS " + GOOGLE_PLAY_REVIEW + ";"; db.execSQL(DROP_REVIEW_TABLE); final String DROP_FILE_HISTORY_TABLE = "DROP TABLE IF EXISTS " + FILE_IMPORT + ";"; db.execSQL(DROP_FILE_HISTORY_TABLE); final String DROP_REVIEW_STATUS_TABLE = "DROP TABLE IF EXISTS " + REVIEW_STATUS + ";"; db.execSQL(DROP_REVIEW_STATUS_TABLE); final String DROP_REVIEW_HISTORY_TABLE = "DROP TABLE IF EXISTS " + REVIEW_HISTORY + ";"; db.execSQL(DROP_REVIEW_HISTORY_TABLE); onCreate(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void dontShowThisAgain() {\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(\"isFirstAppLaunch\", false);\n editor.apply();\n }", "public void pauseApp() {\n\t\t//do nothing\n\t}", "public void pauseApp() {\n theIsRunning = false;\n }", "protected void pauseApp() {\n\t\t\r\n\t}", "public void makegoaway(){\n if (!started_app){ // added to prevent running two copies when user clicks to skip\n // and when time runs out for splash\n Intent mainIntent = new Intent(SplashActivity.this,MainActivity.class);\n SplashActivity.this.startActivity(mainIntent);\n SplashActivity.this.finish();\n started_app=true;\n }\n }", "protected void pauseApp() {\n\r\n\t}", "public abstract boolean killNotDrawnAppsWhenFrozen();", "public void pauseApp() {\n myRefreshTask.cancel();\n myRefreshTask = null;\n // Release resources.\n myWorld = null;\n }", "public void startApp()\r\n\t{\n\t}", "private void checkIfForceKill() {\n SharedPreferences settings = PreferenceManager\n .getDefaultSharedPreferences(this);\n boolean forceKill = settings.getBoolean(\n FORCE_EXIT_APPLICATION, false);\n\n if (forceKill) {\n //CLEAR THE FORCE_EXIT SETTINGS\n SharedPreferences.Editor editor = settings.edit();\n editor.putBoolean(FORCE_EXIT_APPLICATION, false);\n // Commit the edits!\n editor.apply();\n //HERE STOP ALL YOUR SERVICES\n finish();\n }\n }", "public void pauseApp() {\n try {\n if (myCanvas != null) {\n setGoCommand();\n systemPauseThreads();\n }\n } catch (Exception e) {\n errorMsg(e);\n }\n }", "protected void onFirstTimeLaunched() {\n }", "public void startApp() {\n\n\t\tboolean isContinue = true;\n\t\tint i = 0;\n\t\twhile (isContinue) {\n\t\t\ti = displayAppMenu();\n\t\t\texecuteMenuItem(i);\n\n\t\t\tif (i == APP_EXIT) {\n\t\t\t\tisContinue = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public static void handleApplicationLaunch(Context context) {\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n\n boolean doNotRemindAgain = sharedPrefs.getBoolean(PREF_KEY_DO_NOT_REMIND_AGAIN, false);\n if (!doNotRemindAgain) {\n // Increment launch counter\n long launchCount = sharedPrefs.getLong(PREF_KEY_LAUNCH_COUNT, 0);\n launchCount++;\n Log.d(TAG, \"The application has been launched \" + launchCount + \" times.\");\n sharedPrefs.edit().putLong(PREF_KEY_LAUNCH_COUNT, launchCount).commit();\n\n // Get date of first launch\n long now = System.currentTimeMillis();\n Long dateOfFirstLaunch = sharedPrefs.getLong(PREF_KEY_DATE_OF_FIRST_LAUNCH, now);\n if (dateOfFirstLaunch == now) {\n sharedPrefs.edit().putLong(PREF_KEY_DATE_OF_FIRST_LAUNCH, now).commit();\n }\n long numberOfDaysSinceFirstLaunch = convertMillisToDays(now - dateOfFirstLaunch);\n Log.d(TAG, \"It has been \" + numberOfDaysSinceFirstLaunch + \" days since first launch\");\n\n if (numberOfDaysSinceFirstLaunch >= NUMBER_OF_DAYS_TIL_PROMPT &&\n launchCount >= NUMBER_OF_LAUNCHES_TIL_PROMPT) {\n // It's time. Ask the user to rate the app.\n showRateApplicationDialog(context, sharedPrefs);\n }\n }\n }", "public void pauseApp()\r\n\t{\n\t}", "private void bypassIt(){\n rebootDialog();\n }", "@Override\n public void run() {\n doubleBackToExitPressedOnce=false;\n }", "public void setLaunched();", "public final void restartApp() {\r\n Intent intent = new Intent(getApplicationContext(), SplashActivity.class);\r\n intent.addFlags(32768);\r\n intent.addFlags(268435456);\r\n startActivity(intent);\r\n }", "private void restartApplication() {\n android.os.Process.killProcess(android.os.Process.myPid());\r\n System.exit(0);\r\n }", "void resetApp();", "@Override\n public void cancelPreloadRecentApps() {\n if (!isUserSetup()) {\n return;\n }\n\n mImpl.cancelPreloadRecentApps();\n }", "private void forceRestart() {\n\n/*\t\tAlarmManager alarmMgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n\t\tlong timeMillis = SystemClock.elapsedRealtime() + 1000; //1 second\n\t\tIntent intent = getPackageManager().getLaunchIntentForPackage(getPackageName());\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\talarmMgr.set(AlarmManager.ELAPSED_REALTIME, timeMillis, PendingIntent.getActivity(this, 0, intent, 0));*/\n\t\tnew Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\tSystem.exit(0);\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}).start();\n\t}", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n checkMainSetupCompletion();\n Intent i;\n if(isPermanentlySkipped == 1 || isFacebookLoggedIn == 1 )\n i = new Intent(SplashScreen.this, menuActivity.class);\n else\n i = new Intent(SplashScreen.this, MainActivity.class);\n startActivity(i);\n // close this activity\n finish();\n }", "public void retry(){\n _activity.finish();\n Intent i = _activity.getBaseContext().getPackageManager()\n .getLaunchIntentForPackage(_activity.getBaseContext().getPackageName());\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n _activity.startActivity(i);\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\n public void preloadRecentApps() {\n if (!isUserSetup()) {\n return;\n }\n\n mImpl.preloadRecentApps();\n }", "public void pauseApp() {\n midletPaused = true;\n }", "public void pauseApp() {\n midletPaused = true;\n }", "public void pauseApp() {\n midletPaused = true;\n }", "private void grabForever() {\n if (Platform.isFxApplicationThread()) {\n throw new IllegalStateException(\"This may not run on the FX application thread!\");\n }\n final Thread thread = Thread.currentThread();\n while (!thread.isInterrupted()) {\n boolean success = grabOnceBlocking();\n if (!success) {\n // Couldn't grab the frame, wait a bit to try again\n // This may be caused by a lack of connection (such as the robot is turned off) or various other network errors\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n thread.interrupt();\n }\n }\n }\n }", "@Override\n\tpublic void onConnCreate() {\n\t\tapp.start();\n setEnabled( false );\n\t}", "private void startFrozenBubble()\n {\n // Create an intent to launch the activity to play the\n // game.\n //\n //\n Intent intent = new Intent( this, FrozenBubble.class );\n startActivity(intent);\n //\n // Terminate the splash screen activity.\n //\n //\n finish();\n }", "private AppTimer() {\n\t\tstart();\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n if (!isAppInBackground) {\n // app 从后台唤醒,进入前台\n isAppInBackground = false;\n }\n }", "@Override\n public void run() {\n boolean pvp_net;\n //Start with negative state:\n pvp_net_changed(false);\n \n Window win = null;\n\n while(!isInterrupted()||true) {\n //Check whether window is running\n if(win==null) {\n win = CacheByTitle.initalInst.getWindow(ConstData.window_title_part);\n //if(win==null)\n // Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window from name failed...\");\n }\n else if(!win.isValid()) {\n win = null;\n //Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window is invalid...\");\n }\n else if(\n main.ToolRunning() && \n main.settings.getBoolean(Setnames.PREVENT_CLIENT_MINIMIZE.name, (Boolean)Setnames.PREVENT_CLIENT_MINIMIZE.default_val) &&\n win.isMinimized()) {\n win.restoreNoActivate();\n }\n pvp_net = win!=null;\n //On an change, update GUI\n if(pvp_net!=pvp_net_running) {\n pvp_net_changed(pvp_net);\n }\n \n /*thread_running = main.ToolRunning();\n if(thread_running!=automation_thread_running)\n thread_changed(thread_running);*/\n\n try {\n sleep(900L);\n //Wait some more if paused\n waitPause();\n }\n catch(InterruptedException e) {\n break; \n }\n } \n }", "public void goApp()\r\n {\n try\r\n {\r\n for (int y = 0; y < 16; y++)\r\n {\r\n for (int x = 0; x < 16; x++)\r\n {\r\n if (button[y][x].isSelected())\r\n {\r\n if (x > 0)\r\n {\r\n soundClip[x - 1].stop();\r\n soundClip[x].play();\r\n }\r\n else\r\n {\r\n soundClip[15].stop();\r\n soundClip[x].play();\r\n }\r\n\r\n }\r\n }\r\n Thread.sleep(tempo);\r\n }\r\n speedSlider.setToolTipText(\"The current speed is set to: \" + tempo);\r\n\r\n }\r\n catch (InterruptedException e)\r\n {\r\n }\r\n }", "private void checkFirstRun() {\r\n\r\n\t final String PREFS_NAME = \"MyPrefsFile\";\r\n\t final String PREF_VERSION_CODE_KEY = \"version_code\";\r\n\t final int DOESNT_EXIST = -1;\r\n\r\n\r\n\t // Get current version code\r\n\t int currentVersionCode = 0;\r\n\t try {\r\n\t currentVersionCode = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;\r\n\t } catch (android.content.pm.PackageManager.NameNotFoundException e) {\r\n\t // handle exception\r\n\t Log.e(\"PackageMissing\", \"Package Not Found\");\r\n\t return;\r\n\t }\r\n\r\n\t // Get saved version code\r\n\t SharedPreferences prefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);\r\n\t int savedVersionCode = prefs.getInt(PREF_VERSION_CODE_KEY, DOESNT_EXIST);\r\n\r\n\t // Check for first run or upgrade\r\n\t if (currentVersionCode == savedVersionCode) {\r\n\t \t// This is just a normal run\r\n\t return;\r\n\t } else {\r\n\t \tstartActivity(new Intent(DisplayBin.this, DisplayBinHelp.class));\r\n\t }\r\n\t // Update the shared preferences with the current version code\r\n\t prefs.edit().putInt(PREF_VERSION_CODE_KEY, currentVersionCode).commit();\r\n\t}", "private void enablePlatformRunLater() {\n Platform.setImplicitExit(false);\n }", "private void handleGoLauncher() {\n Trace.traceBegin(8, \"goLauncher:closeZswapd\");\n removeMessagesToStart();\n curState = 1;\n Message msg = handler.obtainMessage();\n msg.what = 5;\n Slog.i(TAG, \"handle launcher start, close zswapd\");\n closeZswapd();\n handler.sendMessageDelayed(msg, (long) (appStartDelay * 1000));\n Trace.traceEnd(8);\n }", "@Override\n\tprotected Application doInBackground() throws Exception {\n\t\treturn null;\n\t}", "private void restartApp() {\n Intent intent = new Intent(application, Launcher.class);\n int mPendingIntentId = 123;\n PendingIntent mPendingIntent =\n PendingIntent.getActivity(\n application,\n mPendingIntentId,\n intent,\n PendingIntent.FLAG_CANCEL_CURRENT\n );\n AlarmManager mgr = (AlarmManager) application.getSystemService(Context.ALARM_SERVICE);\n if (mgr != null) {\n mgr.set(AlarmManager.RTC, System.currentTimeMillis() + 100, mPendingIntent);\n }\n System.exit(0);\n }", "private void handleAppStart() {\n Trace.traceBegin(8, \"appStart:closeZswapd\");\n removeMessagesToStart();\n curState = 1;\n Message msg = handler.obtainMessage();\n msg.what = 3;\n Slog.i(TAG, \"handle app start, stop zswapd.\");\n closeZswapd();\n handler.sendMessageDelayed(msg, (long) (appStartDelay * 1000));\n Trace.traceEnd(8);\n }", "@Override\n public void run() {\n Intent i;\n //Tutorial at first launch\n boolean tutorial = !prefs_Read.contains(Constants.PREFS_APP_LAST_VERSION);\n try{\n\n if (getString(R.string.app_version_name).compareTo(prefs_Read.getString(Constants.PREFS_APP_LAST_VERSION, \"\")) > 0) {\n //Do update things\n\n String[] vero2 = prefs_Read.getString(Constants.PREFS_APP_LAST_VERSION, \"\").split(\"\\\\.\");\n String[] vern2 = getString(R.string.app_version_name).split(\"\\\\.\");\n\n tutorial = vero2.length == 0 || !(vero2[0].equals(vern2[0]) && vero2[1].equals(vern2[1]));//check first two numbers of version\n }\n }catch(ClassCastException ignore){}\n if (tutorial) {\n i = new Intent(SplashActivity.this, TutorialActivity.class);\n } else {\n i = new Intent(SplashActivity.this, MainActivity.class);\n }\n\n startActivity(i);\n overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n finish();\n\n }", "public void onBackPresed() {\n\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\n\n\t}", "public void makeNothingCurrent() {\n if (!argonEGL.eglMakeCurrent(argonGLDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE,\n \t\tEGL10.EGL_NO_CONTEXT)) {\n throw new RuntimeException(\"eglMakeCurrent failed\");\n }\n }", "public void requestExit()\r\n {\r\n // WE MAY HAVE TO SAVE CURRENT WORK\r\n boolean continueToExit = true;\r\n if (!saved)\r\n {\r\n // THE USER CAN OPT OUT HERE\r\n continueToExit = promptToSave();\r\n }\r\n \r\n // IF THE USER REALLY WANTS TO EXIT THE APP\r\n if (continueToExit)\r\n {\r\n // EXIT THE APPLICATION\r\n System.exit(0);\r\n }\r\n }", "protected void onFirstUse() {}", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }", "public void intialRun() {\n }", "protected void onResume(){\n super.onResume();\n hideSystemUI();\n if (!coreView.isGamePaused()) //only resume game if there wasn't a manual pause prior to losing focus\n coreView.resume();\n }", "@Override\n protected void appStop() {\n }", "void launchApp();", "@Override\n public void onLowMemory() {\n \tsuper.onLowMemory();\n \tif(isApplicationBroughtToBackground(getApplicationContext()))\n\t\t{\n\t\t\tfinishAllActivity(); \n finishProgram(); \n\t\t}\n }", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }", "default void appWillBeClosed(boolean isRestart) {\n }", "public void destroyApp(boolean unconditional) {\n theIsRunning = false;\n }", "@Override\r\n\tpublic boolean reActivateIt() {\n\t\treturn false;\r\n\t}", "private void exitApp()\n {\n if(spider.isCrawling())\n {\n stopCrawler();\n showTransition(1000);\n Timer task = new Timer(1000, (ActionEvent e)->\n {\n System.exit(0);\n });\n\n task.setRepeats(false);\n task.start();\n }\n \n else System.exit(0);\n }", "public void loadTryScreen() {\n Intent intent = new Intent(this, TryActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n System.exit(0);\n\n }", "@Override\n public void needReloain(Activity activity) {\n }", "protected void onBSResume() {\n checkBSActivityRunning();\n mDrawer.addBSParentView(mInitialWaveform, mInitialDithering);// show\n // user UI\n // on back\n // screen\n isResumed = true;\n mCalled = true;\n }", "public boolean isLaunched();", "@Override\r\n\tprotected void onPause() {\n\t\tif (SystemCheckTools.isApplicationSentToBackground(AppStartToMainActivity.this) == true) {\r\n\t\t\tExitApp.getInstance().exit();\r\n\t\t}\r\n\t\tsuper.onPause();\r\n\t}", "private void checkFirstLaunch(){\n SharedPreferencesEditor editor = new SharedPreferencesEditor(this);\n boolean test = editor.GetBoolean(\"firstLaunch\");\n if(test){\n loadData();\n return;\n }\n startActivity(new Intent(MainActivity.this, FirstLaunch.class));\n editor.WriteBoolean(\"firstLaunch\", true);\n }", "@Override\r\n public void run() {\n long time1 = System.currentTimeMillis();\r\n long time2 = 0;\r\n while (true) {\r\n if (BaseApplication.getInstance().isShelfDataLoadOver) {\r\n time2 = System.currentTimeMillis();\r\n break;\r\n }\r\n }\r\n long timeDis = time2 - time1;\r\n if (timeDis < 3500) {\r\n try {\r\n Thread.sleep(3500 - timeDis);\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n LauncherActivity.this.runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // TODO Auto-generated method stub\r\n startBookMain();\r\n }\r\n });\r\n\r\n }", "@Override\n public boolean onCreate() {\n return false;\n }", "public void arraiter() {\n \tthis.running = false;\n }", "@Override\r\n public void run() {\n if (preferences.getBoolean(\"isMain\",false))\r\n {\r\n startActivity(new Intent(SplashScreen.this,MainActivity.class));\r\n finish();\r\n }else {\r\n editor.putBoolean(\"isMain\",true);\r\n editor.apply();\r\n\r\n TaskStackBuilder.create(SplashScreen.this)\r\n .addNextIntentWithParentStack(new Intent(SplashScreen.this,MainActivity.class))\r\n .addNextIntent(new Intent(SplashScreen.this,IntroActivity.class))\r\n .startActivities();\r\n }\r\n }", "@Override\n protected void appStart() {\n }", "private void initUI() {\n setContentView(R.layout.activity_launcher);\r\n new Thread() {\r\n @Override\r\n public void run() {\r\n // TODO Auto-generated method stub\r\n long time1 = System.currentTimeMillis();\r\n long time2 = 0;\r\n while (true) {\r\n if (BaseApplication.getInstance().isShelfDataLoadOver) {\r\n time2 = System.currentTimeMillis();\r\n break;\r\n }\r\n }\r\n long timeDis = time2 - time1;\r\n if (timeDis < 3500) {\r\n try {\r\n Thread.sleep(3500 - timeDis);\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n LauncherActivity.this.runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // TODO Auto-generated method stub\r\n startBookMain();\r\n }\r\n });\r\n\r\n }\r\n }.start();\r\n }", "@Override\n public void exitFirstRun() {\n FirstRunStatus.setFirstRunSkippedByPolicy(true);\n\n launchPendingIntentAndFinish();\n }", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "private void showOrLoadApplications() {\n //nocache!!\n GetAppList getAppList = new GetAppList();\n if (plsWait == null && (getAppList.getStatus() == AsyncTask.Status.PENDING || getAppList.getStatus() == AsyncTask.Status.FINISHED)) {\n getAppList.setContext(this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n gameBoard.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n\n calculateConstants();\n }", "@Override\n\tprotected void onRestart() {\n\t\tshowPhoto(0);\n\t\tsuper.onRestart();\n\t}", "public boolean init() {\n if (!controller.initiateApp()) return false;\n System.out.println(\"App initialized\");\n\n //2. Warming palette table for initial state\n ViewInfo view = controller.getCurrentView();\n if (view == null) return false;\n\n return true;\n }", "private void restOfTheActivity() {\n if(SharedPrefUtils.hasTrunch(mSharedPreferences)){\n showTrunch();\n }\n loadUserImage();\n long lastTimeDownloaded = SharedPrefUtils.lastTimeDownloaded(mSharedPreferences);\n long timeDifference = System.currentTimeMillis() - lastTimeDownloaded;\n // Compare to MIN_TIME_BETWEEN_JSON_DOWNLOAD and act accordingly.\n if (timeDifference > MIN_TIME_BETWEEN_JSON_DOWNLOAD) {\n // show the splash screen\n mSplashScreenView.setVisibility(View.VISIBLE);\n // go get JSON from server\n downloadJSON();\n\n } else {\n // init tempView\n initTempView();\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n justAfterPause = false;\n }", "@SuppressLint(\"InlinedApi\")\r\n @Override\r\n public void run() {\n mainContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\r\n | View.SYSTEM_UI_FLAG_FULLSCREEN\r\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\r\n }", "@Override\n protected void onResume() {\n Log.i(\"G53MDP\", \"Main onResume\");\n super.onResume();\n }", "public synchronized void notifyForegroundApp(String packageName) {\n if (packageName != null) {\n if (!packageName.equals(this.mLatestPgName)) {\n NeuronAppRecord app = (NeuronAppRecord) this.mAppUsageMap.get(packageName);\n if (app == null) {\n app = new NeuronAppRecord(packageName);\n app.dataList.pushToHead(new AppDataNode());\n this.mAppUsageMap.put(packageName, app);\n }\n long currentTime = System.currentTimeMillis();\n app.lastestResumeTime.pushToHead(Long.valueOf(currentTime));\n AppDataNode latestAppData = (AppDataNode) app.dataList.getLatest();\n Long latestPause = (Long) app.latestPauseTime.getLatest();\n if (!(latestAppData == null || latestPause == null || latestPause.longValue() <= 0)) {\n long bgTime = currentTime - latestPause.longValue();\n if (bgTime < latestAppData.minBgTime) {\n latestAppData.minBgTime = bgTime;\n }\n if (bgTime > latestAppData.maxBgTime) {\n latestAppData.maxBgTime = bgTime;\n }\n latestAppData.totalBgTime += bgTime;\n }\n NeuronAppRecord removedApp = (NeuronAppRecord) this.mAppUsageList.pushToHead(app);\n if (removedApp != null) {\n this.mAppUsageMap.remove(removedApp.packageName);\n }\n pauseLatestApp(currentTime);\n this.mLatestAppUsage = app;\n this.mLatestPgName = packageName;\n }\n }\n }", "boolean launch();", "@Override\n public void run() {\n Intent mainIntent = new Intent().setClass(\n SplashScreenActivity.this, MainActivity.class);\n startActivity(mainIntent);\n \n // Close the activity so the user won't able to go back this\n // activity pressing Back button\n finish();\n }", "public static void showStartApp(FruitSlide _gameLib)//not full\n\t{\n\t\t\n\t}", "public void startup() {\n neutral();\n }", "static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}", "@Override\n public void run() {\n try {\n // Sleeping\n Thread.sleep(2800);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n\n startMainActivity();\n }", "@Override\n public void onPause() {\n mBricksView.setRunning(false);\n super.onPause();\n }", "private void runAuctionApp() {\r\n exitApp = false;\r\n String command;\r\n input = new Scanner(System.in);\r\n System.out.println(\"Welcome to C-Auction!\");\r\n\r\n loadCarListings();\r\n\r\n while (!exitApp) {\r\n\r\n displayMenu();\r\n command = input.next();\r\n\r\n processInput(command);\r\n\r\n }\r\n System.out.println(\"The application is closing\");\r\n }", "private void checkFirstRun() {\r\n\r\n\t\t final String PREFS_NAME = \"MyPrefsFileSelectActivity\";\r\n\t\t final String PREF_VERSION_CODE_KEY = \"version_code\";\r\n\t\t final int DOESNT_EXIST = -1;\r\n\r\n\r\n\t\t // Get current version code\r\n\t\t int currentVersionCode = 0;\r\n\t\t try {\r\n\t\t currentVersionCode = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;\r\n\t\t } catch (android.content.pm.PackageManager.NameNotFoundException e) {\r\n\t\t // handle exception\r\n\t\t Log.e(\"PackageMissing\", \"Package Not Found\");\r\n\t\t return;\r\n\t\t }\r\n\r\n\t\t // Get saved version code\r\n\t\t SharedPreferences prefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);\r\n\t\t int savedVersionCode = prefs.getInt(PREF_VERSION_CODE_KEY, DOESNT_EXIST);\r\n\r\n\t\t // Check for first run or upgrade\r\n\t\t if (currentVersionCode == savedVersionCode) {\r\n\t\t \t// This is just a normal run\r\n\t\t return;\r\n\t\t } \r\n\t\t else if (savedVersionCode < 6 || savedVersionCode == DOESNT_EXIST) {\r\n\t\t \tString sql_delete = \"delete from wordTable\";\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdb.execSQL(sql_delete);\r\n\t\t\t\t\tdb.execSQL(\"drop table if exists 'wordTable'\");\r\n\t\t\t\t\tToast.makeText(SelectActivity.this, \"Your bin has been cleared.\\nPlease download it again.\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tLog.e(\"FirstRunClearBin\", \"Failed to clear bin.\");\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t // Update the shared preferences with the current version code\r\n\t\t prefs.edit().putInt(PREF_VERSION_CODE_KEY, currentVersionCode).commit();\r\n\t\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tSalinlahiFour.getBgm().start();\n\t}", "public void restoreApplication() {\n /*\n * Note: on Windows, this is called from the Windows system tray\n * handler thread (created in the Windows DLL), and not from the\n * Swing Event handler thread. It is unsafe to call\n * GUIMediator.restoreView();\n * directly as Swing is not synchronized!\n * Instead, we should create an AWT Event and post it to the\n * default Toookit's EventQueue, and the application should\n * implement a Listener for that Event.\n */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n GUIMediator.restoreView();\n }\n });\n }", "@Override public boolean active() {\n General.sleep(200, 300); // Reduces CPU usage.\n return isAtFish();\n }", "public void continueRun() {\n pause = false;\n }", "public void wasteTime() {\n\t\tboolean running = true;\n\t\tlong startTime = System.currentTimeMillis();\n\t\twhile (running) {\n\n\t\t\tif (System.currentTimeMillis() - startTime > 4000) {\n\t\t\t\trunning = false;\n\t\t\t}\n\n\t\t}\n\t}", "void launch();", "void launch();" ]
[ "0.67208874", "0.67036295", "0.6703551", "0.6680624", "0.65599966", "0.65009797", "0.63179725", "0.6207287", "0.61938035", "0.6192948", "0.61804605", "0.61430395", "0.6122606", "0.6120327", "0.6096668", "0.60843706", "0.6026539", "0.601354", "0.5958083", "0.5953997", "0.59363824", "0.5929884", "0.59241503", "0.5922488", "0.5910448", "0.59084624", "0.59084624", "0.59084624", "0.58748806", "0.5864276", "0.5864276", "0.5864276", "0.5827744", "0.5821117", "0.57947123", "0.57892996", "0.57487", "0.5730995", "0.5730602", "0.57246554", "0.5717667", "0.5716007", "0.57125366", "0.5709064", "0.5703809", "0.5702628", "0.5684229", "0.5683775", "0.56805956", "0.56749105", "0.56688833", "0.56544065", "0.5653174", "0.56530774", "0.5645081", "0.5642292", "0.5638647", "0.5638647", "0.56378376", "0.5636707", "0.56250024", "0.5623288", "0.5618531", "0.5610561", "0.55786914", "0.55706555", "0.5568313", "0.55655444", "0.5557247", "0.5549023", "0.55394113", "0.5536591", "0.5528032", "0.5527462", "0.55254525", "0.5521348", "0.55198294", "0.5518893", "0.55117786", "0.5499849", "0.5483944", "0.54824996", "0.54786384", "0.54670125", "0.546659", "0.5464636", "0.54504395", "0.54428136", "0.54411143", "0.5440776", "0.54400826", "0.5437708", "0.54271626", "0.5422221", "0.54205716", "0.54180294", "0.5413089", "0.54112303", "0.54074216", "0.5405542", "0.5405542" ]
0.0
-1
Queries the database to count the reviews.
static long reviewCount(Context context) { SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context); return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GiftCardProductQuery reviewCount() {\n startField(\"review_count\");\n\n return this;\n }", "@Override\r\n\tpublic int countReview(String bnum) {\n\t\treturn ss.selectOne(\"countReview\", bnum);\r\n\t}", "@Override\r\n\tpublic int reviewCount() throws Exception {\n\t\treturn 0;\r\n\t}", "private void calculate() {\n //Making Database Connection\n String restaurant_id = partner.getRestaurant_id();\n DatabaseReference myRef = FirebaseDatabase.getInstance().getReference(\"reviews\");\n\n Query query = myRef.orderByChild(\"res_id\").equalTo(restaurant_id);\n query.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (snapshot.exists()) {\n reviewsNum = snapshot.getChildrenCount();\n Log.d(TAG, \"onDataChange: Found: \"+reviewsNum+\" reviews\");\n if(reviewsNum>31){\n mReviewsCount.setText(\"30+\");\n }else{\n mReviewsCount.setText(reviewsNum+\"\");\n }\n }\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n fetchRatings();\n\n\n /* myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot snapshot) {\n for(DataSnapshot ds:snapshot.getChildren()){\n // Log.d(TAG, \"onDataChange: Reviews \"+ds.toString());\n ReviewModel review = ds.getValue(ReviewModel.class);\n // Log.d(TAG, \"onDataChange: DataSnapshot : \"+ds.toString());\n // Log.d(TAG, \"onDataChange: Review : \"+review.toString());\n reviews.add(review);\n }\n Log.d(TAG, \"onDataChange: Added All Reviews\");\n showReviews();\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) {\n\n }\n });*/\n }", "public int getNoOfReviews(String productid) {\n\t\treturn 0;\r\n\t}", "public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}", "public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}", "long countNumberOfProductsInDatabase();", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}", "public Long getReviewerCount(){\n return User.count(\"from User u where u.status in (?1) and u.company = ?2 and (u.superReviewer = ?3 or u.reviewCategories IS NOT EMPTY)\",\n UserStatus.getStatusesConsideredInUse(), this, true);\n }", "@Override\n\tpublic Long count() {\n\t\treturn SApplicationcategorydao.count(\"select count(*) from \"+tablename+\" t\");\n\t}", "public int getSkoreCount() {\n \tString countQuery = \"SELECT * FROM \" + \"skore\";\n \tSQLiteDatabase db = this.getReadableDatabase();\n \tCursor cursor = db.rawQuery(countQuery, null);\n \tint count = cursor.getCount(); //added line here\n \t\n \tcursor.close(); \t\n \tdb.close();\n \t\n \treturn count;\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_APPROVATORE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int countDocuments(){\n try {\n ResultSet rs = stCountDocuments.executeQuery();\n\n int count = 0;\n\n while(rs.next()){\n count = rs.getInt(1);\n }\n rs.close();\n\n if(count<=0){\n System.out.println(\"There are no documents\");\n }\n\n return count;\n } catch(SQLException e){\n e.printStackTrace();\n }\n return 0;\n }", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Integer queryCount() {\n\t\tInteger count = musicdao.selectCount();\r\n\t\treturn count;\r\n\t}", "@Override\n\tpublic int selectCount() {\n\n\t\tint res = session.selectOne(\"play.play_count\");\n\n\t\treturn res;\n\t}", "public long getCount() {\n return getCount(new BasicDBObject(), new DBCollectionCountOptions());\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PAPER);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getCount() {\n\n int counter = 0;\n SQLiteDatabase db = getReadableDatabase();\n String GOALS_SELECT_QUERY =\n String.format(\"SELECT * FROM %s \", TABLE_GOALS);\n Cursor cursor = db.rawQuery(GOALS_SELECT_QUERY, null);\n\n try {\n counter = cursor.getCount();\n } catch (Exception e) {\n Log.d(TAG, \"Error while trying to get count from database\");\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n return counter;\n }", "public int count() {\n return Query.count(iterable);\n }", "public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }", "public static int getCountofPeople(){\n int training_set = 0;\n \n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT count(*) FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n if (rs.next()) {\n training_set = rs.getInt(1);\n }\n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return training_set;\n }", "public int query() {\n return totalcount;\n }", "int findAllCount() ;", "int getQueriesCount();", "public int getCoffeeShopCount() {\n String sqlCountQuery = \"SELECT * FROM \" + CoffeeShopDatabase.CoffeeShopTable.TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(sqlCountQuery, null);\n cursor.close();\n int count = cursor.getCount();\n return count;\n }", "public int countArticle(){\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n Cursor Count= sqLiteDatabase.rawQuery(\"select count(*) from\"+ ConfigDAO.TABLE_AISLE, null);\n Count.moveToFirst();\n int count= Count.getInt(0);\n Count.close();\n return count;\n }", "public int query() {\n return count;\n }", "long count(String query);", "long count(String query);", "public int getcount() {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE1;\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int cnt = cursor.getCount();\n\t cursor.close();\n\t return cnt;\n\t\n\t}", "public int getNumberOfRatings() {\n return this.usersRatings.size();\n }", "public Integer counts(String sql) {\n return tagsDao.counts(sql);\n }", "int countByExample(ReviewLevelSettingExample example);", "int getCountOfAllBooks();", "@GET\r\n\t@Path(\"count\")\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String getCount() {\r\n\t\tint count = TodoDao.instance.getMovies().size();\r\n\t\treturn String.valueOf(count);\r\n\t}", "public int getRatingListSize() throws GenericBusinessException {\n sust.bookshelves.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.bookshelves.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"select count(*) from \" + Rating.class.getName();\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n Integer countResult = (Integer) list.get(0);\n return countResult.intValue();\n } finally {\n log.debug(\"finished getRatingListSize()\");\n }\n }", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public int getCapteurCount() {\n String countQuery = \"SELECT * FROM \" + TABLE_LOGIN;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n int rowCount = cursor.getCount();\n cursor.close();\n //db.close();\n return rowCount;\n }", "Long getAllCount();", "@Override\n\tpublic Long count(Map<String, Object> params) {\n\t\tString hql=\"select count(*) from \"+tablename+\" t\";\n\t\treturn SApplicationcategorydao.count(hql, params);\n\t}", "int getDocumentCount();", "@Query(\"select count(r) from Reply r group by r.comment\")\n\tCollection<Double> dashboardRepliesPerComment();", "int getResultsCount();", "int getResultsCount();", "public int SelectCount() {\n return this.StudentDao.SelectCount();\n }", "@Override\n\tpublic int selectCount(Object ob) {\n\n\t\tint res = session.selectOne(\"play.all_count\", ob);\n\n\t\treturn res;\n\t}", "private void loadReviews(){\n cursor = db.rawQuery(\"SELECT * FROM REVIEW WHERE BookID = \"+bookIDSelected+\";\", null);\n startManagingCursor(cursor);\n List<String[]> reviews = new ArrayList<>();\n double sumRating = 0;\n\n while(cursor.moveToNext()){\n String[] arr ={\n String.valueOf(cursor.getInt(0)),\n String.valueOf(cursor.getDouble(3)),\n cursor.getString(2)\n };\n reviews.add(arr);\n sumRating += cursor.getDouble(3);\n }\n setRatingTotal( sumRating / reviews.size() );\n //Toast.makeText(this, ratingTotal+\" = \"+sumRating+\" / \"+reviews.size(), Toast.LENGTH_SHORT).show();\n ratingBarTotal = findViewById(R.id.rvRatingBarTotal);\n ratingBarTotal.setRating((float) ratingTotal);\n\n txtNumRv = findViewById(R.id.rvTxtNumRv);\n txtNoRv = findViewById(R.id.rvTxtNoReview);\n DecimalFormat df = new DecimalFormat(\"#.##\");\n if(reviews.size() == 0){\n txtNumRv.setText( R.string.noReviewsYet );\n } else {\n txtNumRv.setText(df.format(ratingTotal) + \" / \" + reviews.size() + \" reviews\");\n txtNoRv.setVisibility(View.INVISIBLE);\n }\n\n listView = findViewById(R.id.rvListView);\n listView.setAdapter(adapter = new ReviewAdapter(reviews));\n\n }", "public int getCoffeeShopImageCount() {\n String sqlCountQuery = \"SELECT * FROM \" + CoffeeShopDatabase.CoffeeShopImageTable.TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(sqlCountQuery, null);\n cursor.close();\n int count = cursor.getCount();\n return count;\n }", "public int getRatingsCount(int experimentID, int workerID) {\n return create.fetchCount(\n DSL.selectFrom(Tables.RATING)\n .where(Tables.RATING.EXPERIMENT.eq(experimentID))\n .and(Tables.RATING.WORKER_ID.eq(workerID))\n );\n }", "public long getMovieCount() {\n EntityManager em = emf.createEntityManager();\n try {\n long movieCount = (long) em.createQuery(\"SELECT COUNT(n) FROM Movie n\").getSingleResult();\n return movieCount;\n } finally {\n em.close();\n }\n\n }", "public void fillReviews(int totalEntries) {\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n int getRandomUserId = getRandomNumber(0, 999);\n Fairy fairy = Fairy.create();\n TextProducer text = fairy.textProducer();\n storeOperations.postReview(i, \"user_\" + getRandomUserId, \"password_\" + getRandomUserId, (long) getRandomNumber(0, 9999), getRandomNumber(1, 5), text.paragraph(getRandomNumber(1, 5)), dateFormat.format(date));\n }\n }", "@Override\n public int getItemCount() {\n if (null == reviewList) return 0;\n return reviewList.size();\n }", "public int getTrendingVideoCount(){\n try {\n SQLiteDatabase database = this.getReadableDatabase();\n database.enableWriteAheadLogging();\n Cursor cursor = database.rawQuery(TrendingVideoTable.selectAllVideos, null);\n\n if (cursor != null) {\n return cursor.getCount();\n }\n cursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n return 0;\n }\n return 0;\n }", "public int countOrders(){\n int count = 0;\n sql = \"SELECT * FROM Order\";\n ResultSet rs = db.SelectDB(sql);\n try{\n while(rs.next()){\n count++;\n }\n }\n catch(SQLException e){\n System.out.println(\"Crash at countOrders method (for Order). \" + e);\n }\n return count;\n }", "int commentsCount();", "public int countAll() throws SQLException\n {\n return countWhere(\"\");\n }", "public int countAll() throws SQLException\n {\n return countWhere(\"\");\n }", "public int countAll() throws SQLException\n {\n return countWhere(\"\");\n }", "public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }", "public int getListCount() {\n String countQuery = \"SELECT * FROM \" + TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n cursor.close();\n return cursor.getCount();\n }", "@Override\n\tpublic int listCount(SearchCriteria scri) throws Exception {\n\t\treturn dao.listCount(scri);\n\t}", "public int count() {\n\t\tint count = cstCustomerDao.count();\n\t\treturn count;\n\t}", "@Query(value = \"{alias:?0}\", count = true)\n int countQuiz();", "@Query(value = \"SELECT COUNT(*) FROM coupons\", nativeQuery = true)\n int countAllCoupons();", "Long queryCount(ProductSearchParm productSearchParm);", "@Query(\"SELECT count(*) FROM DemoEntity d\")\r\n\tpublic Integer countDemo();", "public long userCount(DBCollection collection) {\n return collection.count();\n }", "void setReviewStats()\n {\n if (hasInfo)\n {\n curReviewPageNum = 1;\n WalmartRequestHelper walmartRequestHelper = new WalmartRequestHelper(itemID, curReviewPageNum);\n\n curReviewURL = walmartRequestHelper.getRequestURL();\n\n Integer numStars[] = new Integer[5];\n\n for (int i = 0; i < 5; i++)\n {\n numStars[i] = 0;\n }\n\n try\n {\n Document reviewResultPage = Jsoup.connect(curReviewURL).userAgent(\"Mozilla\")\n .ignoreHttpErrors(true).ignoreContentType(true).get();\n\n // Handles the rare case where the API gives an error.\n if (reviewResultPage.getElementsByTag(\"title\").text().equals(\"Error\"))\n {\n return;\n }\n\n Elements unparsedRatings = reviewResultPage.getElementsByTag(\"ratingCounts\");\n\n // Review statistics are only generated if ratings can be found.\n if (unparsedRatings.size() != 0)\n {\n for (int i = 0; i < unparsedRatings.size(); i++)\n {\n String unparsedRatingCount = unparsedRatings.get(i).getElementsByTag(\"count\").text();\n\n if (!unparsedRatingCount.equals(\"\"))\n {\n numStars[i] = Integer.parseInt(unparsedRatings.get(i).text());\n }\n else\n {\n // No ratings could be found\n numStars[i] = 0;\n }\n }\n\n reviewStats = new ReviewStats(numStars);\n }\n else\n {\n reviewStats = new ReviewStats(numStars);\n }\n }\n catch (IOException ioe)\n {\n ioe.printStackTrace();\n }\n }\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ANSWER);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private void updateReviews(){\r\n FetchReviewsTask reviewsTask = new FetchReviewsTask();\r\n reviewsTask.execute(MovieId);\r\n }", "long getRecipesCount();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_VCMSPORTION);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int countByExample(CmsVoteTitleExample example);", "public int getAllCount(){\r\n\t\tString sql=\"select count(*) from board_notice\";\r\n\t\tint result=0;\r\n\t\tConnection conn=null;\r\n\t\tStatement stmt=null;\r\n\t\tResultSet rs=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tstmt=conn.createStatement();\r\n\t\t\trs=stmt.executeQuery(sql);\r\n\t\t\trs.next();\r\n\t\t\tresult=rs.getInt(1);\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, stmt, rs);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Query(value = \"SELECT COUNT(*) FROM customers_coupons\", nativeQuery = true)\n int countAllCouponsPurchased();", "private void executeCountQuery(JsonObject json, HttpServerResponse response) {\n database.countQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Count Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Count Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "public long countRecords();", "public static synchronized int count(Context context, String query)\n\t\t\tthrows SQLException, NullPointerException {\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\tCursor cursor = db.rawQuery(query, null);\n\n\t\treturn (cursor.getCount());\n\t}", "int countByExample(BnesBrowsingHisExample example) throws SQLException;", "public int count() {\r\n Session session = getSession();\r\n Long count = new Long(0);\r\n try {\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \").uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }", "public int getNoOfReservations(int userID) throws ClassNotFoundException{\n //sql statement\n String No_OF_Reservation_SQL = \"SELECT COUNT(*) as 'rcount' FROM reservation WHERE user_ID = ?\";\n\n int count=0;\n\n try(\n //initialising the database connection\n Connection conn = DatabaseConnection.connectDB();\n PreparedStatement statement = conn.prepareStatement(No_OF_Reservation_SQL);)\n { \n statement.setInt(1, userID);\n\n //executing the query and getting data\n ResultSet userdetails = statement.executeQuery(); \n\n userdetails.next();\n count = userdetails.getInt(\"rcount\");\n \n //closing the database connection\n conn.close();\n\n } catch (SQLException | ClassNotFoundException e){\n e.printStackTrace();\n } \n\n return count;\n }", "public static int countByTitle(String title) {\n\t\treturn getPersistence().countByTitle(title);\n\t}", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "@Override\r\n\tpublic int selectCount() {\n\t\treturn userdao.selectCount();\r\n\t}", "@Override\n public int count(String txt) throws Exception {\n Connection con = null;\n ResultSet rs = null;\n PreparedStatement ps = null;\n // check connection of db if cannot connect, it will throw an object of Exception\n try {\n String query = \"select count(*) from digital \\n\"\n + \"where title like ?\";\n con = getConnection();\n ps = con.prepareStatement(query);\n ps.setString(1, \"%\" + txt + \"%\");\n rs = ps.executeQuery();\n int count = 0;\n while (rs.next()) {\n count = rs.getInt(1);\n }\n return count;\n } catch (Exception e) {\n throw e;\n } finally {\n // close ResultSet, PrepareStatement, Connection\n closeResultSet(rs);\n closePrepareStateMent(ps);\n closeConnection(con);\n }\n }", "public int countByTitle(String title);", "@Override\n\tpublic int getCount() {\n\t\tString sql=\"SELECT count(*) FROM `tc_student` where project=\"+project;\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO 自动生成的 catch 块\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "public int countAll() throws DAOException;", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_INTERVIEWSCHEDULE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}" ]
[ "0.7126735", "0.7001945", "0.68335986", "0.6287412", "0.62762207", "0.6235695", "0.6178587", "0.605846", "0.6016973", "0.6001113", "0.5979005", "0.5938111", "0.58753085", "0.5858699", "0.58568174", "0.5830833", "0.58207047", "0.5809773", "0.57820946", "0.5735263", "0.5720192", "0.57003784", "0.56982595", "0.5696338", "0.5692812", "0.5684631", "0.56746024", "0.56604105", "0.5653953", "0.5653953", "0.5623128", "0.5622812", "0.5610901", "0.56106913", "0.56085867", "0.56038105", "0.5599465", "0.5571103", "0.5571103", "0.5571103", "0.5571103", "0.5571103", "0.5571103", "0.5571103", "0.5571103", "0.5571103", "0.5571103", "0.556921", "0.55560803", "0.55348146", "0.5534652", "0.5530902", "0.55297136", "0.55297136", "0.55283797", "0.5520546", "0.55151755", "0.5512022", "0.5509576", "0.5504896", "0.54968524", "0.546166", "0.54612404", "0.5459122", "0.54516727", "0.54436857", "0.54436857", "0.54436857", "0.54417986", "0.5424629", "0.5424445", "0.5418533", "0.54142535", "0.5407752", "0.54065263", "0.53954285", "0.5392056", "0.53880185", "0.5385733", "0.53839165", "0.5382033", "0.5369176", "0.53503025", "0.53494304", "0.53470904", "0.53422403", "0.5339831", "0.53375375", "0.53354055", "0.5334018", "0.5332231", "0.5331309", "0.5326375", "0.53258485", "0.5322846", "0.5319513", "0.5316347", "0.53134996", "0.53117317", "0.53085226" ]
0.7382184
0
Add a review from Google Play App Store to the database
public static boolean insertGooglePlayReview(SQLiteDatabase db, String javaPackageName, String appVersionCode, int appVersionName, String reviewerLanguage, String device, String reviewSubmitted, int reviewSubmittedTimeInMsecs, String reviewLastUpdated, int reviewLastUpdatedInMsecs, int starRating, String reviewTitle, String reviewText, String developerReply, int developerReplyTimeInMsecs, String developerReplyText, String reviewURL) { ContentValues reviewValues = new ContentValues(); reviewValues.put(PACKAGE, javaPackageName); reviewValues.put(APP_VERSION_CODE, appVersionCode); reviewValues.put(APP_VERSION_NAME, appVersionName); reviewValues.put(REVIEWER_LANGUAGE, reviewerLanguage); reviewValues.put(DEVICE, device); reviewValues.put(REVIEW_SUBMITTED, reviewSubmitted); reviewValues.put(REVIEW_SUBMITTED_MILLIS, reviewSubmittedTimeInMsecs); reviewValues.put(REVIEW_LAST_UPDATED, reviewLastUpdated); reviewValues.put(REVIEW_LAST_UPDATED_MILLIS, reviewLastUpdatedInMsecs); reviewValues.put(STAR_RATING, starRating); reviewValues.put(REVIEW_TITLE, reviewTitle); reviewValues.put(REVIEW_TEXT, reviewText); reviewValues.put(DEVELOPER_REPLY, developerReply); reviewValues.put(DEVELOPER_REPLY_MILLIS, developerReplyTimeInMsecs); reviewValues.put(DEVELOPER_REPLY_TEXT, developerReplyText); reviewValues.put(REVIEW_LINK, reviewURL); return insertReview(db, reviewValues); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addReview(){\n db = DatabaseHelper.getInstance(this).getWritableDatabase();\n btn = findViewById(R.id.rvBtn);\n btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n editText = findViewById(R.id.rvEditText);\n ratingBar = findViewById(R.id.rvRatingBar);\n\n String comment = editText.getText().toString();\n double rating = ratingBar.getRating();\n\n if(rating == 0){\n Toast.makeText(BookReviewActivity.this, \"Please add your rating\", Toast.LENGTH_SHORT).show();\n } else if(comment.equals(\"\")){\n Toast.makeText(BookReviewActivity.this, \"Please add your comment\", Toast.LENGTH_SHORT).show();\n } else {\n db.execSQL(\"INSERT INTO REVIEW (Comment, Rate, BookID) VALUES ('\"+comment+\"','\"+rating+\"','\"+bookIDSelected+\"');\");\n Toast.makeText(BookReviewActivity.this, comment+\", \"+rating, Toast.LENGTH_SHORT).show();\n }\n\n loadReviews();\n\n }\n });\n }", "Builder addReview(Review value);", "Builder addReviews(Review value);", "public void newReview(Review review) throws SQLException\n {\n \n \n }", "Builder addReview(String value);", "Builder addReviews(String value);", "Builder addReview(Review.Builder value);", "Builder addReviews(Review.Builder value);", "public void postReview(Review review)\n\t{\n\t\t// The new review ID is the last review ID + 1\n\t\treview.setId(list.get(list.size()-1).getId() + 1);\n\t\t\n\t\t// Add the review to the list\n\t\tlist.add(review);\n\t}", "private void getReview() {\r\n String newReviewText = reviewText.getText().toString();\r\n float stars = ratingStars.getRating();\r\n if (newReviewText != null) {\r\n String filename = \"review_yo.csv\";\r\n Write.writeReview(newReviewText, stars, filename);\r\n } else {\r\n newReviewText = \"No reviews available\";\r\n String filename = \"review_yo.csv\";\r\n Write.writeReview(newReviewText, stars, filename);\r\n\r\n }\r\n }", "public void addReview(Review review) {\n\t if (review != null) {\n\t\t reviews.add(review);\n\t }\n }", "@Test(priority=2, dataProvider=\"ReviewInputValues\")\n\t\tpublic void addReviewOnViewedProduct(String name,String reviewComments,String rating){\n\t\t\t\n//'**********************************************************\n//Calling method to navigate to Home Page after registration\n//'**********************************************************\n\t\t\thomePage=registraionPageOC.navigateToHome();//should be done from common actions class\n//'**********************************************************\n//Calling method to click on Galaxy tab 10.1 advertisement and verify user is redirected to respective product page\n//'**********************************************************\n\t\t\tgalaxyPage=homePage.clickOnGalaxyAdvTab();\n\t\t\tAssert.assertEquals(\"Samsung Galaxy Tab 10.1\", galaxyPage.heading.getText(), \"User is in \" +\"'\"+driver.getTitle()+\"'\"+\" page\");\n\t\t\textentTest.log(LogStatus.PASS,\"User is in \"+\"'\"+\"Samsung Galaxy Tab 10.1\"+\"'\"+\" page\");\n//'**********************************************************\n//Calling method to add reviews on the product\n//'**********************************************************\n\t\t\tgalaxyPage.productreview(name, reviewComments, rating);\n//'**********************************************************\n//Handling the error toast if displayed, when adding reviews\n//'**********************************************************\n\t\t\ttry{\n\t\t\t\tif(galaxyPage.warningToast.getText().equalsIgnoreCase(\"Warning: Review Text must be between 25 and 1000 characters!\")){\n\t\t\t\textentTest.log(LogStatus.PASS,\"Warning: Review Text must be between 25 and 1000 characters!\");}\n\t\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\t\tif(galaxyPage.successToast.getText().equalsIgnoreCase(\"Thank you for your review. It has been submitted to the webmaster for approval.\")){\n\t\t\t\textentTest.log(LogStatus.PASS,\"Thank you for your review. It has been submitted to the webmaster for approval.\");}\n\t\t\t}\n\t\t\textentTest.log(LogStatus.PASS, \"Added Reviews to the Product\");\n\t\t}", "private void updateReviews(){\r\n FetchReviewsTask reviewsTask = new FetchReviewsTask();\r\n reviewsTask.execute(MovieId);\r\n }", "public void addComment(View v) {\n //Get review views\n SimpleRatingBar rating = (SimpleRatingBar) mLeaveReview.findViewById(R.id.comment_h_rating);\n EditText title = (EditText) mLeaveReview.findViewById(R.id.comment_h_title);\n EditText comment = (EditText) mLeaveReview.findViewById(R.id.comment_h_body);\n\n\n //Set params\n SharedPreferences sharedPref = getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n VALUE_GID = currentBook.GID;\n VALUE_UID = sharedPref.getInt(\"UID\", -1);\n VALUE_PASSWORD = sharedPref.getString(\"PASSWORD\", null);\n VALUE_RATING = ((int) rating.getRating());\n VALUE_TITLE = title.getText().toString();\n VALUE_COMMENT = comment.getText().toString();\n\n //Verify info\n if (VALUE_GID == null || VALUE_UID == -1) {\n ErrorUtils.errorDialog(this, \"Error\", \"Information could not be retrieved from memory. Try logging out and logging back in.\");\n return;\n } else if (VALUE_PASSWORD == null) {\n Toast.makeText(this, \"No saved password was found. Please log out then log back in.\", Toast.LENGTH_LONG).show();\n } else if (VALUE_RATING <= 0 || VALUE_RATING > 5) {\n Toast.makeText(this, \"Please select a rating\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n //Build URI\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(SCHEME)\n .authority(BASE_URL)\n .appendPath(PATH0)\n .appendPath(PATH1)\n .appendPath(PATH2)\n .appendQueryParameter(PARAM_ACTION, VALUE_ACTION_ADD_REVIEW)\n .appendQueryParameter(PARAM_GID, VALUE_GID)\n .appendQueryParameter(PARAM_UID, Integer.toString(VALUE_UID))\n .appendQueryParameter(PARAM_PASSWORD, VALUE_PASSWORD)\n .appendQueryParameter(PARAM_RATING, Integer.toString(VALUE_RATING));\n\n if (!(VALUE_TITLE.trim().length() == 0)) {\n builder.appendQueryParameter(PARAM_TITLE, VALUE_TITLE);\n }\n\n if (!(VALUE_COMMENT.trim().length() == 0)) {\n builder.appendQueryParameter(PARAM_COMMENT, VALUE_COMMENT);\n }\n\n builder.build();\n String urlString = builder.toString();\n\n downloadJSON(urlString);\n }", "public void insert(ReviewRecord review){\n\t\t super.doInsert(review);\n\t}", "public static void saveReview(Review r, Product p, String overall, String price, String packaging, String quality, String environment, String productName){\n\t\t\t\t\n\t\t\t\tr.overallRate = Integer.parseInt(overall);\n\t\t\t\tr.priceRate = Integer.parseInt(price);\n\t\t\t\tr.packagingRate = Integer.parseInt(packaging);\n\t\t\t\tr.qualityRate = Integer.parseInt(quality);\n\t\t\t\tr.environmentRate = Integer.parseInt(environment);\n\t\t\t\t\n\t\t\t\tList <Product> prod = Product.find(\"productName\", productName).fetch();\n\t\t\t\t\n\t\t\t\tr.p = prod.get(0);\n\t\t\t\t\n\t\t\t\tif(Security.isConnected()){\n\t\t\t\t\tMember m = Member.find(\"byEmail\", Security.connected()).first();\n\t\t\t\t\t\n\t\t\t\t\tr.m = m;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tr.save();\n\t\t\t\treviewsList();\n\t\t\t}", "@org.junit.Test\r\n public void testInsertReview6() throws Exception {\r\n System.out.println(\"insertReview6\");\r\n Review review = new Review(new Long(0), \"Max\", 9, \"\");\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted empty review text\");\r\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_add_review);\n BottomNavigationView navView = findViewById(R.id.nav_view);\n navView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);\n session = new Session(getApplicationContext());\n if (session.isLoggedIn() == false) {\n Intent logout = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(logout);\n finish();\n }\n final User user = session.getUserDetails();\n\n String name = getIntent().getExtras().getString(\"title\");\n String image_url = getIntent().getExtras().getString(\"cover_art\");\n gameId = getIntent().getExtras().getInt(\"id\");\n\n TextView tv_name = findViewById(R.id.gameNameAddID);\n ImageView img = findViewById(R.id.addReviewGamePicID);\n reviewET = findViewById(R.id.reviewEnterID);\n headingET = findViewById(R.id.headingEnterID);\n\n Button submitButton = findViewById(R.id.submitButtonAddReview);\n spinner = findViewById(R.id.gameRatingPickerID);\n\n tv_name.setText(name);\n RequestOptions requestOptions = new RequestOptions().centerCrop().placeholder(R.drawable.ic_account_box_black_24dp).error(R.drawable.ic_account_box_black_24dp);\n Glide.with(this).load(image_url).apply(requestOptions).into(img);\n\n\n\n submitButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n author = Integer.toString(user.getUserId());\n review = reviewET.getText().toString();\n game = Integer.toString(gameId);\n rating = spinner.getSelectedItem().toString();\n heading = headingET.getText().toString();\n if (validateInputs() == true) {\n postReview(author, review, game, rating, heading);\n }\n }\n });\n\n }", "@Override\r\n\tpublic void regReview(ReviewVO rvo) {\n\t\tss.insert(\"insertReview\", rvo);\r\n\t}", "public void addReview(double score){\n totalReviews++;\n totalScore += score;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = getIntent();\n\t\t\t\tint pos = intent.getIntExtra(\"position\", 0);\n\t\t\t\tint uid = intent.getIntExtra(\"userid\", -1);\n\t\t\t\tString review =et_review.getText().toString();\n\t\t\t\tfloat rate = rating.getRating();\n\t\t\t\tif(db.saveReview(uid,pos,review,rate,review_given) >0 )\n\t\t\t\t\t{\n\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Review Saved!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t review_given=false;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Review given already!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void fillReviews(int totalEntries) {\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n int getRandomUserId = getRandomNumber(0, 999);\n Fairy fairy = Fairy.create();\n TextProducer text = fairy.textProducer();\n storeOperations.postReview(i, \"user_\" + getRandomUserId, \"password_\" + getRandomUserId, (long) getRandomNumber(0, 9999), getRandomNumber(1, 5), text.paragraph(getRandomNumber(1, 5)), dateFormat.format(date));\n }\n }", "@org.junit.Test\r\n public void testInsertReview4() throws Exception {\r\n System.out.println(\"insertReview4\");\r\n Review review = new Review(new Long(0), \"Max\", null, \"It's excellent\");\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null rating\");\r\n }", "@org.junit.Test\r\n public void testInsertReview5() throws Exception {\r\n System.out.println(\"insertReview5\");\r\n Review review = new Review(new Long(0), \"Max\", 9, null);\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null review text\");\r\n }", "public void addReview(String token, int courseId, String review)\n throws IllegalParameterException, UnpaidCourseException {\n int userId = userDao.getUserId(token);\n\n if (courseDao.getCourseStatus(courseId) != Status.APPROVED.getStatusId())\n throw new IllegalParameterException();\n\n if (!studentDao.isPaid(token, courseId))\n throw new UnpaidCourseException();\n\n studentDao.addReviewToCourse(userId, courseId, review);\n }", "public void onSaveButtonClicked(View view){\n recipe.setTitle(mTitle.getText().toString());\n recipe.setDescription(mDescription.getText().toString());\n recipe.setLastEaten(dateLastEaten);\n recipe.setRemarks(mRemarks.getText().toString());\n recipe.setPoints(mRating.getRating());\n\n recipe.calculateSuggestionValue();\n\n if (isNew)\n {\n FirebaseUser user = mAuth.getCurrentUser();\n recipe.setUid(user.getUid());\n\n db.collection(\"recipes\")\n .add(recipe)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n //startActivity(new Intent(RecipeDetailScreenActivity.this,RecipeMainScreenActivity.class));\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error adding document\", e);\n showSnackbar(R.string.ErrorSave);\n }\n });\n }\n else {\n db.collection(\"recipes\").document(recipe.getId())\n .set(recipe)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n //Log.d(TAG, \"DocumentSnapshot successfully written!\");\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error writing document\", e);\n showSnackbar(R.string.ErrorSave);\n }\n });\n\n }\n }", "@Override\n public void onClick(View v) {\n Double rate = Double.valueOf(mRatingBar.getRating());\n analyticsManager.trackBookRating(mBook,rate);\n String user = FirebaseAuth.getInstance().getCurrentUser().getDisplayName();\n String text = mText.getText().toString();\n mReviewsRef.push().setValue(new Review(rate,user,text));\n\n mSumReviews++;\n mSumRating+=Double.valueOf(mRatingBar.getRating());\n mDatabase.getReference(\"Reviews/\"+bookKey+\"/rating\").setValue(mSumRating/mSumReviews);\n finish();\n }", "@Override\n public void onClick(View view) {\n PSMApplication newApp = new PSMApplication();\n newApp.setFullName(txtName.getText().toString());\n newApp.setAddress(txtAddress.getText().toString());\n newApp.setEmail(txtEmail.getText().toString());\n newApp.setDocId(db.collection(\"PSMApplication\").document().getId());// get id of new entry\n // Record in the database\n DocumentReference docRef = db.collection(\"PSMApplication\").document(newApp.getDocId());\n Task insert = docRef.set(newApp);\n insert.addOnSuccessListener(o -> {\n Log.d(\"TAG\", \"New PSM application added!\");\n // Show thank you message\n txtThankYou.setVisibility(View.VISIBLE);\n btnBack.setVisibility(View.VISIBLE);\n btnApply.setEnabled(false);\n txtName.setEnabled(false);\n txtAddress.setEnabled(false);\n txtEmail.setEnabled(false);\n });\n insert.addOnFailureListener(o->{\n Log.e(\"TAG\", \"Failed to add new PSM application.\");\n Toast.makeText(ApplyPsmLicenseActivity.this, \"An error occurred\", Toast.LENGTH_SHORT).show();\n finish();\n });\n\n }", "@Override\r\n\tpublic void review_insert(ReviewDTO dto) throws Exception {\n\r\n\t}", "@POST(\"/attractions/{attractionId}/reviews\")\n Call<Review> postReview(\n @Path(\"attractionId\") int attractionId,\n @Header(\"Authorization\") String bearer,\n @Body Review review\n );", "public void submitReview() throws ServletException, IOException {\r\n\t\tInteger albumId = Integer.parseInt(request.getParameter(\"albumId\"));\r\n\t\tInteger rating = Integer.parseInt(request.getParameter(\"rating\"));\r\n\t\tString headline = request.getParameter(\"headline\");\r\n\t\tString comment = request.getParameter(\"comment\");\r\n\t\t\r\n\t\tReview newReview = new Review();\r\n\t\tnewReview.setHeadline(headline);\r\n\t\tnewReview.setComment(comment);\r\n\t\tnewReview.setRating(rating);\r\n\t\t\r\n\t\tAlbum album = new Album();\r\n\t\talbum.setAlbumId(albumId);\r\n\t\tnewReview.setAlbum(album);\r\n\t\t\r\n\t\tCustomer customer = (Customer) request.getSession().getAttribute(\"loggedCustomer\");\r\n\t\tnewReview.setCustomer(customer);\r\n\t\t\r\n\t\treviewDAO.create(newReview);\r\n\t\t\r\n\t\tString messagePage = \"frontend/review_done.jsp\";\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(messagePage);\r\n\t\tdispatcher.forward(request, response);\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\ttry {\n\t\t\t\t\tEditText customerView = (EditText)findViewById(R.id.customer_review);\n\t\t\t\t\tEditText reviewView = (EditText)findViewById(R.id.text_review);\n\t\t\t\t\t\n\t\t\t\t\tString customerName = String.valueOf(customerView.getText());\n\t\t\t\t\tString reviewText = String.valueOf(reviewView.getText());\n\t\t\t\t\t\n\t\t\t\t\t// Inserimento del record in tabella.\t\n\t\t\t\t\tReviewLocalService reviewLocalService = new ReviewLocalService(getApplication());\n\t\t\t\t\treviewLocalService.openHelper();\n\t\t\t\t\t\n\t\t\t\t\tString message = \"\";\n\t\t\t\t\tReviewLocalModel alModel = new ReviewLocalModel(null,customerName, reviewText);\n\t\t\t\t\t\n\t\t\t\t\tReviewEntry re = new ReviewContract.ReviewEntry();\n\t\t\t\t\tif(reviewLocalService.insertAlert(alModel, re)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tmessage = ResourceUtils.\n\t\t\t\t\t\t\t\tgetStringIdentifier(getApplication(), \"message_opinions_ok\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tcustomerView.setText(\"\");\n\t\t\t\t\t\treviewView.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmessage = ResourceUtils.\n\t\t\t\t\t\t\t\tgetStringIdentifier(getApplication(), \"message_opinions_ko\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tToast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\n\t\t\t\t} catch(Exception ex) {\n\t\t\t\t\tLog.e(OpinionsActivity.class.getCanonicalName(), \"Errore durante \" +\n\t\t\t\t\t\t\t\"l'inserimento della recensione\", ex);\n\t\t\t\t\t\n\t\t\t\t\tString koMessage = ResourceUtils.\n\t\t\t\t\t\t\tgetStringIdentifier(getApplication(), \"message_opinions_ko\");\n\t\t\t\t\t\n\t\t\t\t\tToast.makeText(getApplicationContext(), koMessage, Toast.LENGTH_LONG)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t}\n\t\t\t}", "@Override\n protected Void doInBackground(Object... params) {\n //Get parameters\n option = (String) params[0];\n title = (String) params[1];\n content = (String) params[2];\n type = (String) params[3];\n\n if(type.equals(COURSE_TYPE)) {\n\n if(option.equals(SUBMIT_OPERATION)) {\n //Construct Course Review\n CourseReview review = new CourseReview(\n id, uid, title,content,locationStr, null);\n //Insert into DB\n CourseReviewUtil courseReviewUtil =\n new CourseReviewUtil();\n result = courseReviewUtil.insertCourseReview(review);\n if(courseReviewDraft != null) {\n CourseReviewDraftUtil courseReviewDraftUtil = new CourseReviewDraftUtil();\n courseReviewDraftUtil.deleteDraft(courseReviewDraft.getId());\n }\n } else {\n if(courseReviewDraft == null) {\n //Construct Course Review Draft\n CourseReviewDraft review = new CourseReviewDraft(\n id, uid, title, content);\n //Insert into DB\n CourseReviewDraftUtil courseReviewDraftUtil =\n new CourseReviewDraftUtil();\n result = courseReviewDraftUtil.insertCourseReviewDraft(review);\n }else {\n courseReviewDraft.setTitle(title);\n Log.d(\"save and update\", title);\n courseReviewDraft.setContent(content);\n Log.d(\"save and update\", content);\n CourseReviewDraftUtil courseReviewDraftUtil = new CourseReviewDraftUtil();\n result = courseReviewDraftUtil.updateDraft(courseReviewDraft.getId(),courseReviewDraft);\n Log.d(\"save and update\", Boolean.toString(result));\n }\n }\n\n } else {\n\n if(option.equals(SUBMIT_OPERATION)) {\n //Construct Faculty Review\n FacultyReview review = new FacultyReview(\n uid, id, title, content, locationStr, null);\n //Insert into DB\n FacultyReviewUtil facultyReviewUtil =\n new FacultyReviewUtil();\n result = facultyReviewUtil.insertFacultyReview(review);\n if(facultyReviewDraft != null) {\n FacultyReviewDraftUtil facultyReviewDraftUtil = new FacultyReviewDraftUtil();\n facultyReviewDraftUtil.deleteDraft(facultyReviewDraft.getFid());\n }\n } else {\n if(facultyReviewDraft==null) {\n //Construct Faculty Review Draft\n FacultyReviewDraft facultyReviewDraft = new FacultyReviewDraft(\n id, uid, title, content);\n //Insert into DB\n FacultyReviewDraftUtil facultyReviewDraftUtil =\n new FacultyReviewDraftUtil();\n result = facultyReviewDraftUtil.insertFacultyReviewDraft(facultyReviewDraft);\n }else{\n facultyReviewDraft.setTitle(title);\n Log.d(\"save and update\", title);\n facultyReviewDraft.setContent(content);\n Log.d(\"save and update\", content);\n FacultyReviewDraftUtil facultyReviewDraftUtil = new FacultyReviewDraftUtil();\n result = facultyReviewDraftUtil.updateDraft(facultyReviewDraft.getFid(), facultyReviewDraft);\n Log.d(\"save and update\", Boolean.toString(result));\n }\n\n }\n }\n return null;\n }", "@org.junit.Test\r\n public void testUpdateReview7() throws Exception {\r\n System.out.println(\"updateReview7\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"Jack\", 2, \"\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted empty review text\");\r\n }", "@org.junit.Test\r\n public void testInsertReview1() throws Exception {\r\n System.out.println(\"insertReview1\");\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n Review result = service.insertReview(review);\r\n assertEquals(review, result);\r\n }", "@org.junit.Test\r\n public void testUpdateReview4() throws Exception {\r\n System.out.println(\"updateReview4\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"\", 2, \"Disappointing\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted empty author name\");\r\n }", "public void enterData(String name,int year,String director,String cast,int rating , String reviews , boolean fav){\n movieDB = getWritableDatabase();\n movieDB.execSQL(\"insert into \"+Db_Table+ \" (\" + MOVIE_NAME + \",\" + MOVIE_YEAR + \",\" + MOVIE_DIRECTOR + \",\" + MOVIE_CAST + \",\" + MOVIE_RATING + \",\"+MOVIE_REVIEWS+\",\"+FAVOURITES+\") values('\" +name+\"','\"+year+\"','\"+director+\"','\"+cast+\"','\"+rating+\"','\"+reviews+\"','\"+fav+\"');\");\n Toast.makeText(ctx, \"Movie Saved Successfully \", Toast.LENGTH_SHORT).show();\n Log.i(\"add\",\"done\");\n }", "public Review() {\n this.review_id = \"\";\n this.user_id = \"\";\n this.business_id = \"\";\n this.stars = 0;\n this.useful = 0;\n this.funny = 0;\n this.cool = 0;\n this.date = LocalDateTime.now();\n this.text = \"\";\n }", "@org.junit.Test\r\n public void testInsertReview3() throws Exception {\r\n System.out.println(\"insertReview3\");\r\n Review review = new Review(new Long(0), \"\", 9, \"It's excellent\");\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted empty author name\");\r\n }", "@org.junit.Test\r\n public void testUpdateReview6() throws Exception {\r\n System.out.println(\"updateReview6\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"Jack\", 2, null);\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null review text\");\r\n }", "public JavareviewModel postreview(JavareviewModel oJavareviewModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Insert the new review to database*/\n int reviewId = (Integer) hibernateSession.save(oJavareviewModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n\n /* Return the JavareviewModel with updated reviewId*/\n oJavareviewModel.setreviewId(reviewId);\n return oJavareviewModel;\n }", "public String createReview(String user) {\n Review r = new Review();\n Date date = new Date();\n \n currentUser = new DataQueryUsers().getUserByName(user);\n\n //initialize review content\n r.setContent(reviewText);\n r.setTimestamp(date);\n r.setGroup(group);\n r.setUser(currentUser);\n new DataQueryReviews().addReview(r);\n reviewText = \"\";\n\n return JSFUtilities.refreshWithParameters();\n }", "private void uploadRecommendationInfo(String info, Integer UserId){\n\t\tRecommenderDbService dbService2=null;\n\t\ttry {\n\t\t\tdbService2 = RecommenderDbServiceCreator.createCloud();\n\t\t\tif(UserId!=null){\n\t\t\t\tdbService2.insertRecommendationLog(info, UserId);\n\t\t\t}else{\n\t\t\t\tdbService2.insertRecommendationLog(info, 0);\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}finally {\n\t\t\tif (dbService2 != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdbService2.close();\n\t\t\t\t} catch (SQLException | IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic int insertReview(String memberId, String reviewContent, String productId, int productLike)\r\n\t{\n\t\tHashMap<String, Object> map = new HashMap<>();\r\n\t\tmap.put(\"memberId\", memberId);\r\n\t\tmap.put(\"productId\", productId);\r\n\t\tmap.put(\"productLike\", productLike);\r\n\t\tif(dao.reviewRegisterCheck(map) == 0)\r\n\t\t{\r\n\t\t\tdao.updateProductLikes(map);\r\n\t\t\tdao.insertReview(new Review(0, reviewContent, new Date(), memberId, productId));\r\n\t\t\treturn dao.selectProductLike(productId);\r\n\t\t}\r\n\t\telse \r\n\t\t\treturn 0;\r\n\t}", "@PostMapping(\"/product/reviews\")\n public ListReview addReview(@RequestBody AddReviewDTO addReviewDTO, HttpSession session) throws BaseException{\n validateLogin(session);\n return reviewService.addReviewToProduct(addReviewDTO);\n }", "@org.junit.Test\r\n public void testUpdateReview3() throws Exception {\r\n System.out.println(\"updateReview3\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), null, 2, \"Disappointing\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null author name\");\r\n }", "public void insertReviews(long movieRowId){\n MoviesDbHelper dbHelper = new MoviesDbHelper(mContext);\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n\n // Second Step (Review): Create review values\n ContentValues[] reviewValues = TestUtilities.createReviewValues(movieRowId);\n\n // Third Step (Review): Insert ContentValues into database and get a row ID back\n for (int i=0; i<reviewValues.length;i++) {\n ContentValues currValue = reviewValues[i];\n long weatherRowId = db.insert(\n MoviesContract.ReviewEntry.TABLE_NAME,\n null,\n currValue);\n assertTrue(weatherRowId != -1);\n Log.d(LOG_TAG, \"insertReviews inserting \"+i+\" row\");\n }\n\n\n // Fourth Step: Query the database and receive a Cursor back\n // A cursor is your primary interface to the query results.\n Cursor reviewCursor = db.query(\n MoviesContract.ReviewEntry.TABLE_NAME, // Table to Query\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n null, // columns to group by\n null, // columns to filter by row groups\n null // sort order\n );\n\n Log.d(LOG_TAG, \"insertReviews inserted \"+reviewCursor.getCount()+\" reviews.\");\n // Move the cursor to the first valid database row and check to see if we have any rows\n assertTrue(\"Error: No Records returned from location query\", reviewCursor.moveToFirst());\n\n assertTrue(\"Error: Records number (\"+reviewCursor.getCount()+\") differs from expected (3)\", reviewCursor.getCount()==3);\n\n for(int i=0;i<reviewCursor.getCount();i++){\n // Fifth Step: Validate the location Query\n TestUtilities.validateCurrentRecord(\"testInsertReadDb weatherEntry failed to validate\",\n reviewCursor, reviewValues[i]);\n\n // Move the cursor to demonstrate that there is only one record in the database\n// assertFalse(\"Error: More than one record returned from weather query\",\n reviewCursor.moveToNext();\n }\n\n\n // Sixth Step: Close cursor and database\n reviewCursor.close();\n dbHelper.close();\n }", "@org.junit.Test\r\n public void testInsertReview2() throws Exception {\r\n System.out.println(\"insertReview2\");\r\n Review review = new Review(new Long(0), null, 9, \"It's excellent\");\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null author name\");\r\n }", "public boolean addReview(String hotelId, String reviewId, int rating, String reviewTitle, String review,\n\t\t\tboolean isRecom, String date, String username) {\n\t\t// FILL IN CODE\n\t\t\n\t\tlock.lockWrite();\n\t\ttry{\n\t\t\tSet<Review> reviewSet;\n \t\t\tif(reviewMap.get(hotelId) == null){\n \t\t\t\treviewSet = new TreeSet<Review>();\n\t\t\t}\n \t\t\telse{\n \t\t\t\treviewSet = reviewMap.get(hotelId);\n \t\t\t}\n\t\t\tif(rating <= 0 || rating >= 6 || !isValidDate(date)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tReview r = new Review(reviewId, hotelId, reviewTitle, review, isRecom, username, date, rating);\n\t\t\treviewSet.add(r);\n\t\t\t\n\t\t\treviewMap.put(hotelId, reviewSet);\n\t\t\treturn true; \n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockWrite();\n\t\t}\n\t}", "public void addGrocery(String title)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n System.out.println(\"\\n\\nAdding to grocery list \"+title);\n ContentValues values = new ContentValues();\n values.put(KEY_TITLE,title);\n db.insert(TABLE_GROCERIES,null,values);\n db.close();\n }", "public void insertBook(){\n\n // Create a new map of values, where column names are the keys\n ContentValues values = new ContentValues();\n values.put(BookContract.BookEntry.COLUMN_PRODUCT_NAME, \"You Do You\");\n values.put(BookContract.BookEntry.COLUMN_PRICE, 10);\n values.put(BookContract.BookEntry.COLUMN_QUANTITY, 20);\n values.put(BookContract.BookEntry.COLUMN_SUPPLIER_NAME, \"Kedros\");\n values.put(BookContract.BookEntry.COLUMN_SUPPLIER_PHONE_NUMBER, \"210 27 10 48\");\n\n Uri newUri = getContentResolver().insert(BookContract.BookEntry.CONTENT_URI, values);\n }", "public void addFavorite(String google_id, String store_name, Integer account_id){\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"google_id\", google_id);\r\n params.put(\"name\", store_name);\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + STORE_EXT + ADD_FAVORITE_ACTION;\r\n this.makeVolleyRequest( url, params );\r\n }", "public void setReview_id(String review_id) {\n this.review_id = review_id;\n }", "@org.junit.Test\r\n public void testUpdateReview5() throws Exception {\r\n System.out.println(\"updateReview5\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"Jack\", null, \"Disappointing\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null rating\");\r\n }", "@PostMapping(\"/trails\")\n public String addReview(@RequestParam(value=\"trailId\") long trailId, @ModelAttribute Review review){\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n Trail trail = trailsDao.getOne(trailId);\n review.setCreatedAt(dtf.format(now));\n review.setUser((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal());\n review.setTrail(trail);\n\n trail.getReviewsList().add(review);\n reviewsDao.save(review);\n return \"redirect:/trails\";\n }", "public JavareviewModel putreview(JavareviewModel oJavareviewModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Update the existing review of the database*/\n hibernateSession.update(oJavareviewModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavareviewModel;\n }", "@org.junit.Test\r\n public void testUpdateReview1() throws Exception {\r\n System.out.println(\"updateReview1\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"Jack\", 2, \"Disappointing\");\r\n Review result = service.updateReview(review2, id);\r\n assertEquals(review2, result);\r\n }", "@Override\r\n\tpublic void updateReview(ReviewVO rvo) {\n\t\tss.update(\"updateReview\", rvo);\r\n\t}", "private void updateReviews() {\n ArrayList<MovieReview> movieReviewArrayList = new ArrayList<>();\n reviewRecyclerView = findViewById(R.id.reviews_recycler_view);\n reviewRecyclerView.setLayoutManager(new LinearLayoutManager(this));\n movieReviewAdapter = new MovieReviewAdapter(movieReviewArrayList, MovieDetailActivity.this);\n reviewRecyclerView.setAdapter(movieVideoAdapter);\n }", "private void calculate() {\n //Making Database Connection\n String restaurant_id = partner.getRestaurant_id();\n DatabaseReference myRef = FirebaseDatabase.getInstance().getReference(\"reviews\");\n\n Query query = myRef.orderByChild(\"res_id\").equalTo(restaurant_id);\n query.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (snapshot.exists()) {\n reviewsNum = snapshot.getChildrenCount();\n Log.d(TAG, \"onDataChange: Found: \"+reviewsNum+\" reviews\");\n if(reviewsNum>31){\n mReviewsCount.setText(\"30+\");\n }else{\n mReviewsCount.setText(reviewsNum+\"\");\n }\n }\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n fetchRatings();\n\n\n /* myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot snapshot) {\n for(DataSnapshot ds:snapshot.getChildren()){\n // Log.d(TAG, \"onDataChange: Reviews \"+ds.toString());\n ReviewModel review = ds.getValue(ReviewModel.class);\n // Log.d(TAG, \"onDataChange: DataSnapshot : \"+ds.toString());\n // Log.d(TAG, \"onDataChange: Review : \"+review.toString());\n reviews.add(review);\n }\n Log.d(TAG, \"onDataChange: Added All Reviews\");\n showReviews();\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) {\n\n }\n });*/\n }", "public void submit(View v) {\n nam = name.getText().toString();\n phon = phone.getText().toString();\n bookname = bname.getText().toString();\n authorname = aname.getText().toString();\n edition = edi.getText().toString();\n price = pric.getText().toString();\n subject = sub.getText().toString();\n numberofbooks = num.getText().toString();\n rating = r.getRating();\n //TODO: Add this object into the SellingBook model class and retrofit it\n MyAsyncTask task = new MyAsyncTask();\n task.execute(\"\");//url\n\n }", "static long reviewCount(Context context) {\n SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context);\n return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW);\n }", "private void addReviewId(HashMap<String, String> review, int reviewId, int length) {\n\t\treviewIds.put(reviewId, new ArrayList<>());\n\t\t// 0 - productId, 1 - score, 2 - helpfulness, 3 - length\n\t\tfor (String field : DataParser.INTEREST_FIELDS) {\n\t\t\tif (field.equals(\"text\")) { continue; }\n\t\t\treviewIds.get(reviewId).add(review.get(field));\n\t\t}\n\t\treviewIds.get(reviewId).add(String.valueOf(length));\n\t}", "public void saveMovieToFavorites() {\n Cursor moviecursor = this.getContentResolver().query(MovieContract.MovieEntry.CONTENT_URI, null, MovieContract.MovieEntry.COLUMN_NAME_MOVIE_ID + \" = \" + mMovie.getID(), null, null, null);\n if(moviecursor.getCount() == 0) { // first time this movie has been favorited insert record\n Uri movieUri = this.getContentResolver().insert(MovieContract.MovieEntry.CONTENT_URI, Constants.createMovieRecord(mMovie));\n long movieid = ContentUris.parseId(movieUri);\n int insertedTrailerCount = this.getContentResolver().bulkInsert(MovieContract.TrailerEntry.CONTENT_URI, Constants.createBulkTrailerValues(Constants.mTrailers, movieid));\n int insertedReviewCount = this.getContentResolver().bulkInsert(MovieContract.ReviewEntry.CONTENT_URI, Constants.createBulkReviewValues(Constants.mReviews, movieid));\n\n if(insertedTrailerCount < 1)\n Log.e(TAG,\"Trailer failed to insert\");\n\n if(insertedReviewCount < 1)\n Log.e(TAG, \" Review failed to insert\");\n }\n }", "public Review(String review_id, String user_id, String business_id,float stars,int useful,int funny,int cool, LocalDateTime date, String text) {\n this.review_id = review_id;\n this.user_id = user_id;\n this.business_id = business_id;\n this.stars = stars;\n this.useful = useful;\n this.funny = funny;\n this.cool = cool;\n this.date = date;\n this.text = text;\n }", "private void insertBook() {\n /// Create a ContentValues object with the dummy data\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_NAME, \"Harry Potter and the goblet of fire\");\n values.put(BookEntry.COLUMN_BOOK_PRICE, 100);\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, 2);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_NAME, \"Supplier 1\");\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE, \"972-3-1234567\");\n\n // Insert the dummy data to the database\n Uri uri = getContentResolver().insert(BookEntry.CONTENT_URI, values);\n // Show a toast message\n String message;\n if (uri == null) {\n message = getResources().getString(R.string.error_adding_book_toast).toString();\n } else {\n message = getResources().getString(R.string.book_added_toast).toString();\n }\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "public VideoRental saveRentalInfo(Integer userId, Integer videoId, String username, Double rentPrice, Integer numOfDays);", "@PostMapping(path=\"/add\") // Map ONLY POST Requests\n public @ResponseBody String addNewReview (@RequestParam Integer index, @RequestParam String comment,\n @RequestParam String client, @RequestParam String date, @RequestParam Integer rating, @RequestParam String location) {\n // @ResponseBody means the returned String is the response, not a view name\n // @RequestParam means it is a parameter from the GET or POST request\n\n Review n = new Review();\n n.setIndex(index);\n n.setComment(comment);\n n.setClient(client);\n n.setDate(date);\n n.setRating(rating);\n n.setLocation(location);\n reviewRepository.save(n);\n return \"Saved\";\n }", "@org.junit.Test\r\n public void testUpdateReview2() throws Exception {\r\n System.out.println(\"updateReview2\");\r\n Long id = null;\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"Jack\", 2, \"Disappointing\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null id\");\r\n }", "public Review create(Review newReview) {\n\t\tList<Review> matchingReviews = revRepo.matchingReviews(newReview.getUser().getId(),\n\t\t\t\tnewReview.getTVShow().getId());\n\t\tif (matchingReviews.size() > 0) {\n\t\t\treturn null;\n\t\t}\n\t\tnewReview.setId(null);\n\t\treturn revRepo.save(newReview);\n\t}", "public int addRate(String uname, String cid, String rate, String review) {\n\t\ttry {\n\t\t\tPreparedStatement updateStatus = null;\n\t\t\tsql = \"insert into rate values(?,?,?,?)\";\n\t\t\ttry {\n\t\t\t\tupdateStatus = conn.prepareStatement(sql);\n\t\t\t\tupdateStatus.setString(1, uname);\n\t\t\t\tupdateStatus.setString(2, cid);\n\t\t\t\tupdateStatus.setString(3, rate);\n\t\t\t\tupdateStatus.setString(4, review);\n\t\t\t\tupdateStatus.executeUpdate();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn 0;\n\t\t\t} finally {\n\t\t\t\tupdateStatus.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"sql error\");\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn 1;\n\t}", "@Override\n public void onClick(View view) {\n\n Movie movie = new Movie(\"abc\");\n ContentValues contentValues = new ContentValues();\n contentValues.put(MoviesContract.Movies.TITLE,movie.getTitle());\n getContentResolver().insert(MoviesContract.Movies.CONTENT_URI,contentValues);\n //fetchMovies();\n\n }", "private void saveRecords() {\r\n// for (int i = 0; i < reviewRecords.size(); i++) {\r\n// ReviewRecords get = reviewRecords.get(i);\r\n// if (!get.toString().startsWith(\"null\")) {\r\n// Logs.e(get.toString());\r\n// }\r\n//\r\n// }\r\n\r\n SQLiteJDBC sqliteJDBC = new SQLiteJDBC(GlobalParameters.WORKING_REVIEW_DB_PATH);\r\n StringBuilder sqlTableItems = new StringBuilder();\r\n\r\n sqlTableItems.append(\" (\").append(\"StockCode\").append(\" TEXT PRIMARY KEY NOT NULL,\")\r\n .append(\"StockName\").append(\" TEXT, \")\r\n .append(\"Reference\").append(\" TEXT, \")\r\n .append(\"Methods\").append(\" TEXT, \")\r\n .append(\"ObStartDate\").append(\" TEXT, \")\r\n .append(\"Comments\").append(\" TEXT)\");\r\n\r\n// sqlTableItems.append(\" (\").append(\"StockCode\").append(\" TEXT PRIMARY KEY NOT NULL,\")\r\n// .append(\"StockName\").append(\" TEXT, \")\r\n// .append(\"Reference\").append(\" TEXT, \")\r\n// .append(\"Methods\").append(\" TEXT, \")\r\n// .append(\"ObStartDate\").append(\" TEXT, \")\r\n// .append(\"ObStartPrice\").append(\" TEXT, \")\r\n// .append(\"ObEndDate\").append(\" TEXT, \")\r\n// .append(\"ObEndPrice\").append(\" TEXT, \")\r\n// .append(\"Profit\").append(\" TEXT, \")\r\n// .append(\"Efficency\").append(\" TEXT, \")\r\n// .append(\"Comments\").append(\" TEXT)\");\r\n String tableName = \"Review\";\r\n sqliteJDBC.createTable(tableName, sqlTableItems.toString());\r\n sqliteJDBC.insertColumns(tableName, colNames, getListData());\r\n\r\n }", "public void addToReviewList(String reviewID, double newRating, double oldRating) {\n if (reviews == null)\n reviews = new ArrayList<>();\n\n //only add review id if it doesn't exist\n if (!reviews.contains(reviewID)) { //adding a brand new review\n reviews.add(reviewID);\n totalRating += newRating;\n averageRating = totalRating/reviews.size();\n } else { //updating an existing review\n totalRating -= oldRating; //subtract old rating first\n totalRating += newRating; //add new rating to total\n averageRating = totalRating/reviews.size(); //calculate new average value\n }\n }", "@Override\n public void showReview() {\n }", "public void promptSubmitReview() {\n ZenDialog.builder().withBodyText(C0880R.string.prompt_submit_review).withDualButton(C0880R.string.cancel, 0, C0880R.string.submit, DIALOG_REQ_SUBMIT).create().show(getFragmentManager(), (String) null);\n }", "private void save(String name, String url, String price, String id, String uid) {\n //init DBAdapter\n DBAdapter db = new DBAdapter(this);\n db.openDB();//open db\n\n //add items to db\n long result = db.add(name, url, price, id, uid);\n\n //if added successfully pop up an alert dialog\n if (result == 1) {\n Toast.makeText(this, \"successful\", Toast.LENGTH_SHORT).show();\n\n AlertDialog.Builder builder;\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n builder = new AlertDialog.Builder(mBookDetails.this, android.R.style.Theme_Material_Dialog_Alert);\n } else {\n builder = new AlertDialog.Builder(mBookDetails.this);\n }\n\n builder.setTitle(getResources().getString(R.string.confirm))\n .setMessage(book_name + \" \" + getResources().getString(R.string.proceed))\n .setPositiveButton(getResources().getString(R.string.continueshopping), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(mBookDetails.this, SignUpActivity.class);\n startActivity(intent);\n }\n })\n .setNegativeButton(getResources().getString(R.string.proceedcheckout), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(mBookDetails.this, mShoppingCartActivity.class);\n startActivity(intent);\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setCancelable(false)\n .show();\n\n } else {\n Toast.makeText(this, \"failed\", Toast.LENGTH_SHORT).show();\n }\n\n //close db\n db.closeDB();\n }", "@PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n\t\tpublic ResponseEntity<Object> createReview(Review review, HttpServletRequest request, HttpServletResponse response) {\n\t\t\t\n\t\t\tReview newReview = reviewService.createReview(review);\n\t\t\t\n\t\t\tresponse.addHeader(\"Job Created\", request.getServerName() + \":\" + request.getServerPort() + \"/reviews/\" + newReview.getId());\n\t\t\tresponse.addHeader(\"Date\", new Date().toString());\n\t\t\tresponse.setHeader(\"Cache-Control\",\"no-cache,no-store,must-revalidate\");\n\t\t response.setHeader(\"Pragma\",\"no-cache\");\n\t\t response.setHeader(\"Version\",\"Mechanic API V-2.0\");\n\t\t response.setDateHeader(\"Expires\", 0);\n\t\t\t\n\t\t\treturn new ResponseEntity<>(newReview, HttpStatus.CREATED);\n\t\t}", "public void setReview(final Review review);", "private void add_ratereview(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tint hotel_userid;\n\t\tString name_user = (String) request.getSession().getAttribute(\"username\");\n\t\tServletContext servletContext = getServletContext();\n\t\tWebApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\t\tuserDaoImplementation userDaoImplementation = (userDaoImplementation) appContext\n\t\t\t\t.getBean(\"userDaoImplementation\");\n\t\tUser user1 = null;\n\t\tuser1 = userDaoImplementation.getuserbyid(name_user);\n\t\thotel_userid = user1.getUserId();\n\t\tString hotel_id = request.getParameter(\"key\");\n\t\tString hotel_name = request.getParameter(\"key_Name\");\n\t\tString hotel_loc = request.getParameter(\"key_loc\");\n\t\tString rrate = request.getParameter(\"review_rate\");\n\t\tString rreview = request.getParameter(\"rate_review\");\n\t\tRateReview rateReview = new RateReview();\n\t\trateReview.setRest_id(Integer.parseInt(hotel_id));\n\t\tSystem.out.println(\"sddede\"+hotel_id);\n\t\trateReview.setUser_id(hotel_userid);\n\t\trateReview.setRate(Integer.parseInt(rrate));\n\t\trateReview.setReview(rreview);\n\t\trestDaoImplementation restDaoImplementation = (restDaoImplementation) appContext\n\t\t\t\t.getBean(\"restDaoImplementation\");\n\t\tRest rest1 = null;\n\t\trest1 = restDaoImplementation.getrestbyid(Integer.parseInt(hotel_id));\n\t\tint count = rest1.getCount();\n\t\tfloat ratefrmrest = rest1.getRate_avg();\n\t\tfloat totalrating = (count * ratefrmrest) + (Integer.parseInt(rrate));\n\t\tint updated_count = count + 1;\n\t\tfloat final_rate = totalrating / updated_count;\n\t\tRest rest = new Rest();\n\t\trest.setCount(updated_count);\n\t\trest.setRate_avg(final_rate);\n\t\trest.setLocation(hotel_loc);\n\t\trest.setRestId(Integer.parseInt(hotel_id));\n\t\trest.setRestName(hotel_name);\n\t\trestDaoImplementation.updateRest_info(rest);\n\t\trrDaoImplementation rrDaoImplementation = (rrDaoImplementation) appContext.getBean(\"rrDaoImplementation\");\n\t\trrDaoImplementation.insert(rateReview);\n\t\tresponse.sendRedirect(\"restaurant\");\n\n\t}", "public void addReviews(List<Review> reviewsLoaded){\n\n if(reviewsLoaded==null)\n return;\n\n reviews.addAll(reviewsLoaded);\n notifyDataSetChanged();\n }", "public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }", "public void setReviews(ArrayList<String> reviews) {\n this.reviews = reviews;\n }", "public void setReview(List<ReviewType> review) {\n\t this.review = review;\n\t}", "private void addMovieToDb() {\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(MovieColumns.ADULT,mMovie.getAdult());\n contentValues.put(MovieColumns.BACKDROP_PATH,mMovie.getBackdropPath());\n contentValues.put(MovieColumns.GENRE,Utils.arrayToString(mMovie.getGenreIds()));\n contentValues.put(MovieColumns.MOV_ID,mMovie.getMovieId());\n contentValues.put(MovieColumns.ORIGINAL_LANGUAGE,mMovie.getOrigLanguage());\n contentValues.put(MovieColumns.ORIGINAL_TITLE,mMovie.getOrigTitle());\n contentValues.put(MovieColumns.OVERVIEW,mMovie.getOverview());\n contentValues.put(MovieColumns.RELEASE_DATE,mMovie.getReleaseDate());\n contentValues.put(MovieColumns.POSTER_PATH,mMovie.getPosterPath());\n contentValues.put(MovieColumns.POPULARITY,mMovie.getPopularity());\n contentValues.put(MovieColumns.TITLE,mMovie.getTitle());\n contentValues.put(MovieColumns.VIDEO, mMovie.getVideo());\n contentValues.put(MovieColumns.VOTE_AVERAGE, mMovie.getVoteAverage());\n contentValues.put(MovieColumns.VOTE_COUNT, mMovie.getVoteCount());\n\n try {\n getActivity().getContentResolver().insert(MoviesProvider.Movies.MOVIES_URI, contentValues);\n Toast.makeText(getContext(),getString(R.string.movie_added_as_favorite),Toast.LENGTH_SHORT).show();\n }catch (Exception ex){\n if(ex instanceof SQLiteConstraintException){\n Toast.makeText(getContext(), getString(R.string.movie_already_added_as_favorite), Toast.LENGTH_SHORT).show();\n }else {\n Toast.makeText(getContext(), getString(R.string.movie_added_as_favorite_problem), Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n public void onClick(View v) {\n Map<String, Object> profile = new HashMap<>();\n\n String name = et_name.getText().toString();\n String phone = et_phone.getText().toString();\n String email = et_email.getText().toString();\n String linkedin = et_linkedin.getText().toString();\n String git = et_github.getText().toString();\n String devpost = et_devpost.getText().toString();\n\n profile.put(\"name\", name);\n profile.put(\"phone\", phone);\n profile.put(\"email\", email);\n profile.put(\"linkedin\", linkedin);\n profile.put(\"github\", git);\n profile.put(\"devpost\", devpost);\n\n\n\n // Add a new document with a generated ID\n\n db.collection(\"seekers\").document(user.getUid()).set(profile);\n\n /*db.collection(\"seekers/\" + user.getUid())\n .add(profile)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n }\n });*/\n\n\n toBeam();\n }", "private void addVoteToGooglePlusAppActivity(User author, Photo photo,\n GoogleCredential credential) throws MomentWritingException {\n ItemScope target = new ItemScope().setUrl(photo.getPhotoContentUrl());\n ItemScope result = new ItemScope().setType(\"http://schema.org/Review\")\n .setName(\"A vote for a PhotoHunt photo\")\n .setUrl(photo.getPhotoContentUrl()).setText(\"Voted!\");\n Moment content = new Moment()\n .setType(\"http://schemas.google.com/ReviewActivity\").setTarget(target)\n .setResult(result);\n Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential).build();\n try {\n Insert request = plus.moments().insert(author.googleUserId, \"vault\",\n content);\n Moment moment = request.execute();\n } catch (IOException e) {\n throw new MomentWritingException(e.getMessage());\n }\n }", "public void setReview(double review) {\r\n this.review = review;\r\n }", "public void setReview(java.lang.String[] review) {\n this.review = review;\n }", "public void addCart(String shopName, String productName, String Price,String user_ID) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_SHOPNAME,shopName ); // Name\n values.put(KEY_PRODUCTNAME, productName); // Email\n values.put(KEY_PRICE, Price); // Email\n values.put(KEY_USERID, user_ID);\n\n\n // Inserting Row\n long id = db.insert(TABLE_CART, null, values);\n db.close(); // Closing database connection\n\n Log.d(TAG, \"New cart inserted into sqlite: \" + id);\n }", "public void onClickAddTask(View view) {\n\n // Insert new Movie data via a ContentResolver\n\n\n ContentValues mUpdateValues = new ContentValues();\n // Defines selection criteria for the rows you want to update\n /*\n * Sets the updated value and updates the selected words.\n */\n\n if (fav == 0) {\n mRatingBar.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), android.R.drawable.btn_star_big_on));\n mUpdateValues.put(MoviesContract.MovieEntry.COLUMN_PRIORITY, 1);\n } else {\n mRatingBar.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), android.R.drawable.btn_star_big_off));\n mUpdateValues.put(MoviesContract.MovieEntry.COLUMN_PRIORITY, 0);\n }\n int mRowsUpdated = getContentResolver().update(\n MoviesContract.MovieEntry.buildMoviesUri(_id),\n mUpdateValues,\n MoviesContract.MovieEntry._ID+\"=?\",\n new String[] {String.valueOf(_id)});\n\n\n }", "private void addProductId(String productId, int reviewId) {\n\t\tif (!productIds.containsKey(productId)) {\n\t\t\tproductIds.put(productId, new ArrayList<>(Arrays.asList(reviewId, 0)));\n\t\t}\n\t\telse {\n\t\t\tArrayList<Integer> product = productIds.get(productId);\n\t\t\tproduct.set(1, product.get(1) + 1);\n\t\t}\n\t}", "private void insertPet() {\n\n ContentValues values = new ContentValues();\n values.put(PetContract.PetEntry.COLUMN_PET_NAME, \"Toto\");\n values.put(PetContract.PetEntry.COLUMN_PET_BREED, \"Terrier\");\n values.put(PetContract.PetEntry.COLUMN_PET_GENDER, PetContract.PetEntry.GENDER_MALE);\n values.put(PetContract.PetEntry.COLUMN_PET_WEIGHT, 7);\n Uri uri = getContentResolver().insert(PetContract.PetEntry.CONTENT_URI,values);\n Toast.makeText(this, uri.toString()+\" added\", Toast.LENGTH_SHORT).show();\n }", "public ParseQuery<Review> create() {\n ParseQuery query = new ParseQuery(\"Review\");\n ParseObject user_id = ParseObject.createWithoutData(\"_User\", ParseUser.getCurrentUser().getObjectId());\n query.whereEqualTo(\"User_Id\", user_id);\n query.whereExists(\"College_Id\");\n query.include(\"College_Id\");\n query.include(\"User_Id\");\n query.orderByDescending(\"createdAt\");\n return query;\n }", "public void saveToDatabase(View view) {\n // new implementation\n EditText recipeName = findViewById(R.id.input_Name);\n EditText recipeDirections = findViewById(R.id.input_Directions);\n EditText recipeNotes = findViewById(R.id.input_Notes);\n\n\n if (!(recipeName.getText().toString().equals(\"\"))) {\n newRecipe.setName(recipeName.getText().toString());\n newRecipe.setDirections(recipeDirections.getText().toString());\n newRecipe.setNotes(recipeNotes.getText().toString());\n\n dbHandler.addRecipe(newRecipe);\n\n finish();\n }\n else {\n Toast.makeText(this, \"You must enter a name for your recipe!\", Toast.LENGTH_SHORT).show();\n }\n }", "public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }", "private void save(){\n\n this.title = mAssessmentTitle.getText().toString();\n String assessmentDueDate = dueDate != null ? dueDate.toString():\"\";\n Intent intent = new Intent();\n if (update){\n assessment.setTitle(this.title);\n assessment.setDueDate(assessmentDueDate);\n assessment.setType(mAssessmentType);\n intent.putExtra(MOD_ASSESSMENT,assessment);\n } else {\n intent.putExtra(NEW_ASSESSMENT, new Assessment(course.getId(),this.title,mAssessmentType,assessmentDueDate));\n }\n setResult(RESULT_OK,intent);\n finish();\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tStoredBookDAO storeBookDAO = new StoredBookDAO(BookInfoActivity.this);\n\t\t\tBookStoredEntity testBookBorrowedEntity1 = new BookStoredEntity();\n\t\t\ttestBookBorrowedEntity1.setBookId(\"1\");\n\t\t\ttestBookBorrowedEntity1.setBookText(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookImageUrl(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookPress(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookPressTime(\"android\");\n\t\t\tstoreBookDAO.insert(testBookBorrowedEntity1);\n\t\t\tToast.makeText(BookInfoActivity.this, R.string.storesuccess, Toast.LENGTH_SHORT).show();\n\t\t}", "public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String review = reviewField.getText().toString().trim();\n if (TextUtils.isEmpty(review)) {\n reviewField.setError(\"Required.\");\n return;\n } else {\n reviewField.setError(null);\n }\n // Update review in database\n mDatabaseReference.child(student.getUid()).child(\"review\").setValue(review);\n // This review must also reflect in the display when dialog closes\n student.setReview(review);\n mAdapter.notifyItemChanged(position);\n dialog.dismiss();\n }" ]
[ "0.68374085", "0.67749166", "0.671375", "0.6689264", "0.66529346", "0.6287818", "0.6173004", "0.6122755", "0.6065961", "0.6043435", "0.5990189", "0.59274787", "0.5923776", "0.591965", "0.59092313", "0.58994657", "0.5877047", "0.58657676", "0.58494323", "0.583005", "0.5824606", "0.58121264", "0.58037764", "0.57968026", "0.5770005", "0.5762044", "0.5716017", "0.5696001", "0.569063", "0.5689737", "0.568905", "0.5686031", "0.56822747", "0.5670183", "0.5669718", "0.5657169", "0.5650528", "0.5635413", "0.56337684", "0.5611306", "0.55572206", "0.55451053", "0.55431145", "0.5540094", "0.55396813", "0.5536639", "0.5533588", "0.5533199", "0.5528363", "0.55249184", "0.5516173", "0.5509956", "0.5497604", "0.54942006", "0.546762", "0.5449017", "0.5432571", "0.540742", "0.54007894", "0.5390497", "0.53752154", "0.5371414", "0.53676194", "0.5360629", "0.53304636", "0.53281564", "0.531979", "0.53186435", "0.53183544", "0.53155", "0.53117704", "0.53069794", "0.52871794", "0.5282411", "0.52743196", "0.5249647", "0.52414936", "0.5226889", "0.5226337", "0.5223908", "0.5206977", "0.5206282", "0.52030176", "0.5194564", "0.5192412", "0.5187728", "0.5186927", "0.5182942", "0.5174054", "0.5167033", "0.515415", "0.51333165", "0.5125165", "0.5121782", "0.5120292", "0.511926", "0.5117797", "0.5113373", "0.51117486", "0.5104853" ]
0.7062796
0
DataHandler dh = new DataHandler(getStatusInXml(), "text/xml");
public javax.activation.DataHandler addPhoto(java.awt.Image photo) throws java.rmi.RemoteException{ DataHandler dh = new DataHandler(getStatusInXml(), "application/fastinfoset"); return dh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DataHandler getDataHandler();", "boolean streamXML(String path,\n ContentHandler contentHandler,\n LexicalHandler lexicalHandler)\n throws SAXException, ProcessingException;", "public interface DataHandler {\n\n\tpublic String formatData(DataResponse dr);\n}", "public interface XmlService {\n\n\t/**\n\t * Parse response file.\n\t * \n\t * @param xmlPath\n\t * @param orderId\n\t * @param complete_on\n\t * @return\n\t * @throws JAXBException\n\t */\n ResponseMQ parseResponseFile(String xmlPath, Long orderId, Date complete_on) throws JAXBException;\n \n /**\n * \n * @param xml\n * @param orderId\n * @param complete_on\n * @return\n * @throws JAXBException\n */\n\tResponseMQ parseResponse(String xml, Long orderId, Date complete_on) throws JAXBException;\n\n\t/**\n\t * Generate change status request.\n\t * \n\t * @param requestMQ\n\t * @return result string or NULL\n\t */\n\tString generateChangeStatusRequest(RequestMQ requestMQ);\n\t\n}", "public void setDocumentHandler(DocumentHandler handler)\n {\n contentHandler = new Adapter(handler);\n xmlNames = true;\n }", "public static GetEntrancePage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetEntrancePage object =\n new GetEntrancePage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getEntrancePage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetEntrancePage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n\tpublic XmlHandler<ActivityResponse> getXmlHandler() {\n\t\treturn handler;\n\t}", "private ngtXMLHandler refreshActualXml()throws boRuntimeException\n {\n String xml = xwfm.getProgram().getAttribute(\"flow\").getValueString();\n return new ngtXMLHandler(xml); \n }", "interface TwoWayHandler extends ContentHandler {\n\n /**\n * This method is called after xml content (text) was read. For more\n * information read the method description in ContentHandler.\n *\n * @param ch the characters from the XML document.\n * @param start the start position in the array.\n * @param length the number of characters to read from the array.\n * @see ContentHandler\n */\n @Override\n void characters(char[] ch, int start, int length);\n\n /**\n * This method is called after an end-tag was read. For more information\n * read the method description in ContentHandler.\n *\n * @param uri the Namespace URI, or the empty string if the element has no\n * Namespace URI or if Namespace processing is not being\n * performed.\n * @param localName the local name (without prefix), or the empty string if\n * Namespace processing is not being performed.\n * @param qName the qualified name (with prefix), or the empty string if\n * qualified names are not available.\n * @see ContentHandler\n */\n @Override\n void endElement(String uri, String localName, String qName);\n\n /**\n * Read the XML file with a xmlPullParser.\n *\n * @param xmlPullParser the parser.\n * @throws IOException\n * @throws XmlPullParserException - thrown to signal XML Pull Parser\n * related faults.\n * @see XmlPullParser\n */\n void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;\n\n /**\n * This method is called after a start-tag was read. For more information\n * read the method description in ContentHandler.\n *\n * @param uri the Namespace URI, or the empty string if the element has no\n * Namespace URI or if Namespace processing is not being\n * performed.\n * @param localName the local name (without prefix), or the empty string if\n * Namespace processing is not being performed.\n * @param qName the qualified name (with prefix), or the empty string if\n * qualified names are not available.\n * @param attributes the attributes attached to the element. If there are\n * no attributes, it shall be an empty Attributes object.\n * The value of this object after startElement returns is\n * undefined.\n * @see Attributes\n * @see ContentHandler\n */\n @Override\n void startElement(String uri, String localName, String qName, Attributes attributes);\n}", "public java.lang.String getResponseXml(){\n return localResponseXml;\n }", "public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }", "public static GetDirectAreaInfoResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectAreaInfoResponse object =\n new GetDirectAreaInfoResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectAreaInfoResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectAreaInfoResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"getDirectAreaInfoReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setGetDirectAreaInfoReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setGetDirectAreaInfoReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetDirectSrvInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectSrvInfo object =\n new GetDirectSrvInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectSrvInfo\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectSrvInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private ArrayList<?> ParseXMLResponse(StringBuilder response, IDataInterface myHandler){\n \t\t SAXParserFactory spf = SAXParserFactory.newInstance();\n \t\t try {\n \t\t\tSAXParser sp = spf.newSAXParser();\n \t\t\tXMLReader xr = sp.getXMLReader();\n \t\t\t\n \t\t\txr.setContentHandler((ContentHandler) myHandler);\n \t\t\tInputSource is = new InputSource();\n \t\t\tis.setCharacterStream(new StringReader(response.toString()));\n \t\t\txr.parse(is);\n \t\t\t\n \t\t} catch (ParserConfigurationException e) {\n \t\t\te.printStackTrace();\n \t\t} catch (SAXException e) {\n \t\t\te.printStackTrace();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\treturn myHandler.getData();\n \t}", "public void handle(Element xmlRequest, HttpServletRequest req, HttpServletResponse res) throws IOException;", "public static GetDictionaryPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDictionaryPage object =\n new GetDictionaryPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDictionaryPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDictionaryPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n public XmlHandler handleDTD(XMLStreamReader parser) {\n return this;\n }", "private XmlHelper() {}", "public static GetDirectSrvInfoResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectSrvInfoResponse object =\n new GetDirectSrvInfoResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectSrvInfoResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectSrvInfoResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"getDirectSrvInfoReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setGetDirectSrvInfoReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setGetDirectSrvInfoReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetDirectAreaInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectAreaInfo object =\n new GetDirectAreaInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectAreaInfo\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectAreaInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetVehicleInfoPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleInfoPage object =\n new GetVehicleInfoPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleInfoPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleInfoPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetVehicleAlarmInfoPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleAlarmInfoPage object =\n new GetVehicleAlarmInfoPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleAlarmInfoPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleAlarmInfoPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public StAX2SAX(ContentHandler handler) {\n this.handler = handler;\n this.lhandler = (handler instanceof LexicalHandler) ?\n (LexicalHandler) handler :\n NO_LEXICAL_HANDLER ;\n this.xef = XMLInputFactory.newInstance();\n }", "fintech.HistoryResponse.Data getData();", "public static GetDownLoadCard parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDownLoadCard object =\n new GetDownLoadCard();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDownLoadCard\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDownLoadCard)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetEntrancePageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetEntrancePageResponse object =\n new GetEntrancePageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getEntrancePageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetEntrancePageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n public void XML_endDocument(Atz_XML_SAX_DataHandler sourceHandler) {\n }", "org.apache.xmlbeans.XmlString xgetStatus();", "public interface ResultHandler extends DocumentHandler {\n \n \n /**\n * Signals to receive CDATA characters\n * @param chars the character array containing the characters\n * to receive\n * @param start the index into the character array to start receiving\n * characters at\n * @param length the number of characters to recieve\n **/\n public void cdata(char[] chars, int start, int length);\n \n \n /**\n * Signals to recieve a comment\n * @param data, the content of the comment\n **/\n public void comment(String data);\n \n /**\n * Signals to recieve an entity reference with the given name\n * @param name the name of the entity reference\n **/\n public void entityReference(String name);\n \n \n /**\n * Sets the behavoir of handling character content. If argument is true,\n * character content will be escaped. If false, character content will\n * not be escaped.\n * @param escapeText the flag indicating whether or not to\n * escape character content\n **/\n //public void setEscapeText(boolean escapeText);\n \n /**\n * Sets the indent size for all formatters that perform\n * serialization, in which indentation is applicable.\n * @param indentSize the number of characters to indent\n **/\n public void setIndentSize(short indentSize);\n \n /**\n * Sets the output format information for Formatters that\n * perform serialization.\n * @param format the OutputFormat used to specify properties\n * during serialization\n **/\n public void setOutputFormat(OutputFormat format);\n \n \n /**\n * Signals to receive characters which should not be escaped\n * @param chars the character array containing the characters\n * to receive\n * @param start the index into the character array to start receiving\n * characters at\n * @param length the number of characters to recieve\n **/\n public void unescapedCharacters(char[] chars, int start, int length);\n \n}", "public static HelloResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloResponse object =\n new HelloResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public String getRequestInXML() throws Exception;", "public static GetVehicleRecordPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleRecordPage object =\n new GetVehicleRecordPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleRecordPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleRecordPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetDownLoadCardResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDownLoadCardResponse object =\n new GetDownLoadCardResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDownLoadCardResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDownLoadCardResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"getDownLoadCardReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setGetDownLoadCardReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setGetDownLoadCardReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private final class <init> extends com.ebay.nautilus.kernel.util.t>\n{\n\n final _cls1 this$1;\n\n public com.ebay.nautilus.kernel.util.t> get(String s, String s1, String s2, Attributes attributes)\n throws SAXException\n {\n if (\"http://www.ebay.com/marketplace/mobile/v1/services\".equals(s) && \"roiFactoryResponse\".equals(s1))\n {\n return new com.ebay.nautilus.kernel.util.SaxHandler.TextElement() {\n\n final RoiTrackEventResponse.RootElement.RoiTrackEventResponses this$2;\n\n public void text(String s3)\n throws SAXException\n {\n if (urls == null)\n {\n urls = new ArrayList();\n }\n urls.add(s3);\n }\n\n \n {\n this$2 = RoiTrackEventResponse.RootElement.RoiTrackEventResponses.this;\n super();\n }\n };\n } else\n {\n return super.t>(s, s1, s2, attributes);\n }\n }", "void provideSAXEvents(ContentHandler handler) throws SAXException;", "public GenericHandler() {\n\n }", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "void setDataStatus(String dataStatus);", "public static Hello parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Hello object =\n new Hello();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"hello\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (Hello)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static HelloAuthenticatedResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedResponse object =\n new HelloAuthenticatedResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public XmlAdaptedReminder() {}", "public static HelloAuthenticatedWithEntitlementPrecheck parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlementPrecheck object =\n new HelloAuthenticatedWithEntitlementPrecheck();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedWithEntitlementPrecheck\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlementPrecheck)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public interface XMLParser {\n\n String parse();\n}", "public void mo1779d(XmlPullParser xmlPullParser) {\n }", "public static HelloAuthenticatedWithEntitlementPrecheckResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlementPrecheckResponse object =\n new HelloAuthenticatedWithEntitlementPrecheckResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedWithEntitlementPrecheckResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlementPrecheckResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetRoadwayPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetRoadwayPage object =\n new GetRoadwayPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getRoadwayPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetRoadwayPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static DirectChargeResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectChargeResponse object =\n new DirectChargeResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directChargeResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectChargeResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"directChargeReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setDirectChargeReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setDirectChargeReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n public String getContentType() {\n return \"text/xml; charset=UTF-8\";\n }", "public static GetVehicleBookPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleBookPage object =\n new GetVehicleBookPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleBookPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleBookPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "CreateHandler()\n {\n }", "public StringHttpResponseHandler() {\n\t\tsuper();\n\t}", "@Override\n\t\t\t\t\tpublic void onResponse(String s) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public InputDataHandler() {}", "public static OrderStatus parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n OrderStatus object =\n new OrderStatus();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"OrderStatus\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (OrderStatus)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"OrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"OrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"OrderStatus\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"OrderStatus\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setOrderStatus(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetVehicleAlarmInfoPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleAlarmInfoPageResponse object =\n new GetVehicleAlarmInfoPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleAlarmInfoPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleAlarmInfoPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public interface RequestHandler {\r\n /**\r\n * Handle the request and response.\r\n *\r\n *\r\n * @param xmlRequest\r\n * the xml request element\r\n * @param req\r\n * the http request\r\n * @param res\r\n * the http response\r\n * @throws IllegalArgumentException\r\n * if argument is null\r\n * @throws IOException\r\n * if I/O error occurs\r\n */\r\n public void handle(Element xmlRequest, HttpServletRequest req, HttpServletResponse res) throws IOException;\r\n\r\n}", "public static GetVehicleInfoPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleInfoPageResponse object =\n new GetVehicleInfoPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleInfoPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleInfoPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "XMLStreamReader createXMLStreamReader(DataObject sdo);", "private void parseData() {\n\t\t\r\n\t}", "public static TerminalDownloadQueryForDay parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n TerminalDownloadQueryForDay object =\n new TerminalDownloadQueryForDay();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"terminalDownloadQueryForDay\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (TerminalDownloadQueryForDay)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static HelloAuthenticated parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticated object =\n new HelloAuthenticated();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticated\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticated)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static DirectQueryResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectQueryResponse object =\n new DirectQueryResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directQueryResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectQueryResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"directQueryReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setDirectQueryReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setDirectQueryReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetDictionaryPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDictionaryPageResponse object =\n new GetDictionaryPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDictionaryPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDictionaryPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "String getDataStatus();", "public static DirectOrderStateQueryResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectOrderStateQueryResponse object =\n new DirectOrderStateQueryResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directOrderStateQueryResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectOrderStateQueryResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"directOrderStateQueryReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setDirectOrderStateQueryReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setDirectOrderStateQueryReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static DoControlResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DoControlResponse object =\n new DoControlResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"doControlResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DoControlResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static TerminalDownloadQueryForDayResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n TerminalDownloadQueryForDayResponse object =\n new TerminalDownloadQueryForDayResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"terminalDownloadQueryForDayResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (TerminalDownloadQueryForDayResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"terminalDownloadQueryForDayReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setTerminalDownloadQueryForDayReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setTerminalDownloadQueryForDayReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n protected void loadXMLDescription() {\n\n }", "@Override\r\n\tpublic XMLParser getParser() {\r\n\t\treturn new ResponseXMLParser();\r\n\t}", "public static GetServerVersionResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetServerVersionResponse object =\n new GetServerVersionResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getServerVersionResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetServerVersionResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(VersionVO.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "void xsetStatus(org.apache.xmlbeans.XmlString status);", "private ContentHandler getXmlContentHandler(Writer writer)\n\t\t\tthrows TransformerConfigurationException {\n\t\tSAXTransformerFactory factory = (SAXTransformerFactory) SAXTransformerFactory\n\t\t\t\t.newInstance();\n\t\tTransformerHandler handler = factory.newTransformerHandler();\n\t\thandler.getTransformer().setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\thandler.setResult(new StreamResult(writer));\n\t\treturn handler;\n\t}", "private static void setResponse(HttpServletResponse response, Integer status) {\n\t\tresponse.setContentType(\"text/XML\");\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\ttry {\n\t\t\t//response.getWriter().write(\"<friendRequest:status id=\\\"friendRequestResponse\\\" value=\\\"\" + status + \"\\\" />\");\n\t\t\tresponse.getWriter().write(status.toString());\n\t\t} catch (Exception ignored) {};\n\t}", "private static void setResponse(HttpServletResponse response, Integer status) {\n\t\tresponse.setContentType(\"text/XML\");\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\ttry {\n\t\t\t//response.getWriter().write(\"<friendRequest:status id=\\\"friendRequestResponse\\\" value=\\\"\" + status + \"\\\" />\");\n\t\t\tresponse.getWriter().write(status.toString());\n\t\t} catch (Exception ignored) {};\n\t}", "public XMLSystemManager(){\n\t\tthis(\"data\");\n\t}", "private DataHandler createDataHandler(URL url) throws MalformedURLException {\n return new DataHandler(url);\n }", "private void onPreRequestData(int tag) {\n }", "public interface DTDHandler {\n\n /**\n * Receive notification of a notation declaration event. <p/> It is up to\n * the application to record the notation for later reference, if necessary.\n * </p> <p/> If a system identifier is present, and it is a URL, the SAX\n * parser must resolve it fully before passing it to the application. </p>\n * \n * @param name\n * The notation name.\n * @param publicId\n * The notation's public identifier, or null if none was given.\n * @param systemId\n * The notation's system identifier, or null if none was given.\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #unparsedEntityDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void notationDecl(String name, String publicId,\n String systemId) throws SAXException;\n\n /**\n * Receive notification of an unparsed entity declaration event. <p/> Note\n * that the notation name corresponds to a notation reported by the\n * notationDecl() event. It is up to the application to record the entity\n * for later reference, if necessary. </p> <p/> If the system identifier is\n * a URL, the parser must resolve it fully before passing it to the\n * application. </p>\n * \n * @param name\n * The unparsed entity's name.\n * @param publicId\n * The entity's public identifier, or null if none was given.\n * @param systemId\n * The entity's system identifier (it must always have one).\n * @param notation\n * name The name of the associated notation.\n * @param notationName\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #notationDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void unparsedEntityDecl(String name, String publicId,\n String systemId, String notationName) throws SAXException;\n\n}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String xml = \"\";\n\n Document doc = dummy();\n xml = xml2String(doc);\n //response.setContentType(\"text/html;charset=UTF-8\");\n response.setContentType(\"text/xml\");\n\n //response.setHeader(\"Expires\", \"0\");\n //response.setHeader(\"Cache-Control\", \"no-cache\");\n //response.setHeader(\"Pragma\", \"public\");\n String fileName = \"dump.xml\";\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"\" + fileName + \"\\\"\");\n // response.setCharacterEncoding(\"utf-8\");\n //response.setHeader(\"Transfer-Encoding\", \"Chunked\");\n //response.setBufferSize(baos.size());\n //response.flushBuffer();\n\n PrintWriter out = response.getWriter();\n try {\n out.println(xml);\n } finally {\n out.close();\n }\n\n }", "@Override\n public void onResponse(String response)\n {\n\n }", "public static DoControl parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DoControl object =\n new DoControl();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"doControl\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DoControl)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void mo1778c(XmlPullParser xmlPullParser) {\n }", "public static GetVehicleRecordPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleRecordPageResponse object =\n new GetVehicleRecordPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleRecordPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleRecordPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "public static HelloAuthenticatedWithEntitlementsResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlementsResponse object =\n new HelloAuthenticatedWithEntitlementsResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedWithEntitlementsResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlementsResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\r\n protected XMLLoad createXMLLoad() {\r\n return new XMLLoadImpl(createXMLHelper()) {\r\n @Override\r\n protected DefaultHandler makeDefaultHandler() {\r\n return new BpmnXmlHandler(resource, helper, options);\r\n }\r\n };\r\n }", "private void testProXml(){\n\t}", "public static InitializeHelloWorldWSResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n InitializeHelloWorldWSResponse object =\n new InitializeHelloWorldWSResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"initializeHelloWorldWSResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (InitializeHelloWorldWSResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"return\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n protected void onTextData(Reader r) throws IOException {\n\n }", "public static GetRoadwayPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetRoadwayPageResponse object =\n new GetRoadwayPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getRoadwayPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetRoadwayPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void setResponseXml(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localResponseXmlTracker = true;\n } else {\n localResponseXmlTracker = true;\n \n }\n \n this.localResponseXml=param;\n \n\n }", "public static GetClientsResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n GetClientsResponse object =\r\n new GetClientsResponse();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix =\"\";\r\n java.lang.String namespaceuri =\"\";\r\n try {\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n \r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName!=null){\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1){\r\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\r\n \r\n if (!\"getClientsResponse\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GetClientsResponse)ExtensionMapper.getTypeObject(\r\n nsUri,type,reader);\r\n }\r\n \r\n\r\n }\r\n \r\n\r\n }\r\n\r\n \r\n\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\r\n \r\n \r\n reader.next();\r\n \r\n java.util.ArrayList list1 = new java.util.ArrayList();\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry\",\"return\").equals(reader.getName())){\r\n \r\n \r\n \r\n // Process the array and step past its final element's end.\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n list1.add(null);\r\n reader.next();\r\n } else {\r\n list1.add(User.Factory.parse(reader));\r\n }\r\n //loop until we find a start element that is not part of this array\r\n boolean loopDone1 = false;\r\n while(!loopDone1){\r\n // We should be at the end element, but make sure\r\n while (!reader.isEndElement())\r\n reader.next();\r\n // Step out of this element\r\n reader.next();\r\n // Step to next element event.\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n if (reader.isEndElement()){\r\n //two continuous end elements means we are exiting the xml structure\r\n loopDone1 = true;\r\n } else {\r\n if (new javax.xml.namespace.QName(\"http://registry\",\"return\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n list1.add(null);\r\n reader.next();\r\n } else {\r\n list1.add(User.Factory.parse(reader));\r\n }\r\n }else{\r\n loopDone1 = true;\r\n }\r\n }\r\n }\r\n // call the converter utility to convert and set the array\r\n \r\n object.set_return((User[])\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\r\n User.class,\r\n list1));\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n \r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n \r\n\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "@Override \n\t public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { \n\t \n\t\t //String val = atts.getValue(\"val\");\n\t\t //Log.d(\"startElement\", localName + \" : \" + val);\n\t\t \n\t\t if(localName.equalsIgnoreCase(AlarmItemContent.TAG)){\n\t\t\t\n\t\t\t AlarmItemContent vo = new AlarmItemContent();\n\t\t\t \n\t\t\t //if(atts.getValue(AlarmItemContent.prtPosition) != null)\n\t\t\t\t vo.setPosition( ++position ); // atts.getValue(AlarmItemContent.prtPosition)\n\t\t\t vo.setState(atts.getValue(AlarmItemContent.prtState)); // ALARMSTATETYPE_E_ON\n\t\t\t vo.setTime(atts.getValue(AlarmItemContent.prtTime));\n\t\t\t vo.setUri(atts.getValue(AlarmItemContent.prtURI));\n\t\t\t vo.setMetaData(atts.getValue(AlarmItemContent.prtMetaData));\n\t\t\t vo.setVolume(Integer.parseInt(atts.getValue(AlarmItemContent.prtVolume)));\n\t\t\t vo.setFreaquency(atts.getValue(AlarmItemContent.prtFrequency)); // ALARMFREQUENCYTYPE_E_ONCE\n\t\t\t \n\t\t\t _data.add(vo);\n\t\t\t \n\t\t } \n\t\t \n\t }", "@Override\n protected void onHandleIntent(Intent workIntent) {\n // Gets a URL to read from the incoming Intent's \"data\" value\n String urlString = workIntent.getDataString();\n\n // URL to download from\n URL url;\n\n //block that tries to connect to xml data, and throws an IOException if one occurs\n try {\n // Convert the incoming data string to a URL.\n url = new URL(urlString);\n\n /**\n * Tries to open a connection to the URL. If an IO error occurs, this throws an\n * IOException\n */\n URLConnection urlConnection = url.openConnection();\n\n // If the connection is an HTTP connection, continue\n if (urlConnection instanceof HttpURLConnection) {\n // Broadcasts an Intent indicating that processing has started.\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_STARTED);\n\n // Casts the connection to a HTTP connection\n HttpURLConnection httpURLConnection = (HttpURLConnection) urlConnection;\n\n // Reports that the service is about to connect to the RSS feed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_CONNECTING);\n\n // Get response code from site\n int responseCode = httpURLConnection.getResponseCode();\n\n // Continue if response is OK\n if (responseCode == HttpURLConnection.HTTP_OK) {\n // Get content length (in bytes) to calculate progress from\n int contentLength = httpURLConnection.getContentLength();\n\n InputStream inputStream = urlConnection.getInputStream();\n\n // Save to file\n //FileOutputStream outputStream = new FileOutputStream(Constants.XML_SAVE_FILE_PATH);\n // Save to internal storage instead\n File file = new File(getFilesDir(), Constants.XML_SAVE_FILE_NAME);\n FileOutputStream outputStream = new FileOutputStream(file);\n\n // keep track of how much is downloaded\n int totalBytesRead = 0;\n int progressDone = 0;\n // Report downloading state\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_DOWNLOADING);\n\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n totalBytesRead += bytesRead;\n progressDone = totalBytesRead/contentLength * 100;\n // TODO: broadcast progress\n }\n\n outputStream.close();\n inputStream.close();\n httpURLConnection.disconnect();\n // Report download complete\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_DOWNLOAD_COMPLETE);\n }\n\n }\n else {\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n return;\n }\n\n // TODO: make sure tvheadend is running\n // Open sockect connection to xmltv.sock\n String socketName = getFilesDir() + \"/xmltv.sock\";\n Log.d(\"socketConnection\", \"Connecting to \" + socketName);\n LocalSocketAddress socketAddress = new LocalSocketAddress(socketName,\n LocalSocketAddress.Namespace.FILESYSTEM);\n LocalSocket socket = new LocalSocket();\n socket.connect(socketAddress);\n if (socket.isConnected()) {\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_SOCKET_CONNECTED);\n\n // open xml file\n File file = new File(getFilesDir(), Constants.XML_SAVE_FILE_NAME);\n FileInputStream inputStream = new FileInputStream(file);\n\n // get socket output stream\n OutputStream outputStream = socket.getOutputStream();\n\n // write xml data to xmltv socket\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n outputStream.close();;\n inputStream.close();\n socket.close();\n }\n else {\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n return;\n }\n // Done successfully\n // set last update time - THIS could be DANGEROUS since shared prefs is not thread safe!\n Date now = new Date();\n EpgStoredSettings settings = new EpgStoredSettings(getApplicationContext());\n settings.setLastUpdateTime(now);\n // notify status fragment\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_COMPLETE);\n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n\n }\n catch (IOException e) {\n e.printStackTrace();\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n }\n catch (SecurityException e)\n {\n e.printStackTrace();\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n }\n }", "@GET\n @Produces(MediaType.TEXT_XML)\n public String sayXMLHello() {\n return \"<?xml version=\\\"1.0\\\"?>\" + \"<hello> Hello Jersey\" + \"</hello>\";\n }", "public void xmlPresentation () {\n System.out.println ( \"****** XML Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n Books books = new Books();\n books.setBooks(new ArrayList<Book>());\n\n bookArrayList = new Request().postRequestBook();\n\n for (Book aux: bookArrayList) {\n books.getBooks().add(aux);\n }\n\n try {\n javax.xml.bind.JAXBContext jaxbContext = JAXBContext.newInstance(Books.class);\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n jaxbMarshaller.marshal(books, System.out);\n } catch (JAXBException e) {\n System.out.println(\"Error: \"+ e);\n }\n ClientEntry.showMenu ( );\n }", "public static GetVehicleBookPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleBookPageResponse object =\n new GetVehicleBookPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleBookPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleBookPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }" ]
[ "0.61500674", "0.56963027", "0.55963975", "0.5551731", "0.55224836", "0.5458828", "0.54496396", "0.54413646", "0.5422617", "0.54070216", "0.5385857", "0.5377734", "0.5375548", "0.5371707", "0.5367651", "0.5351586", "0.53502065", "0.53419024", "0.5341605", "0.5311388", "0.53108066", "0.53088987", "0.5295105", "0.52891374", "0.5288971", "0.52701586", "0.5260961", "0.5243045", "0.5236309", "0.5228923", "0.52285534", "0.52149487", "0.5212214", "0.5205518", "0.5192748", "0.5191757", "0.5175845", "0.51709086", "0.51677537", "0.5164966", "0.5163155", "0.5151626", "0.51410806", "0.5136356", "0.51359403", "0.5132283", "0.51284665", "0.51264936", "0.512423", "0.5123574", "0.51144814", "0.51106244", "0.5105459", "0.50884277", "0.5084209", "0.50837076", "0.5079808", "0.5078903", "0.50755316", "0.5068856", "0.50683206", "0.5067428", "0.5064666", "0.50557464", "0.5055317", "0.50472194", "0.5046165", "0.5041219", "0.50409544", "0.5039804", "0.50263345", "0.50194526", "0.5015616", "0.5015616", "0.50056654", "0.50011396", "0.49870408", "0.49847254", "0.49830723", "0.49787238", "0.4977628", "0.49738258", "0.49709988", "0.49699748", "0.49693808", "0.49638337", "0.49636495", "0.49636495", "0.49636495", "0.49627328", "0.49578217", "0.49565795", "0.4941977", "0.49408332", "0.49398893", "0.49315882", "0.49266768", "0.4925062", "0.4924839", "0.49183738", "0.4912375" ]
0.0
-1
/ TEST OF MONTHLY CHARGE
@Test public void statementCoverageDurationLower() { assertEquals(2500, Calc.monthlyCharge(200)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test()\n public void testGetCurrentValuePerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2015, 5);\n\tdouble currentValue = expenseManager.getCurrentValuePerMonth(yearMonth);\n\tassertEquals(615, currentValue, 0);\n }", "@Test\n public void computeFactor_SummerTimeMonth() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-01-13 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-04-25 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-01-01 00:00:00\", \"2012-05-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.MONTH,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then\n assertEquals(4, factor, 0);\n }", "@Test()\n public void testGetForecastPerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2016, 4);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(483, forecast, 0);\n }", "@Test()\n public void testGetForecastPerMonthWithYearly() {\n\tYearMonth yearMonth = YearMonth.of(2016, 8);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(3795.75, forecast, 0.01);\n }", "@Test\n public void computeFactor_WinterTimeMonth() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-09-03 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-11-08 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-09-01 00:00:00\", \"2012-12-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.MONTH,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then\n assertEquals(3, factor, 0);\n }", "@Test public void estimatedMonthlyCostTest() throws NegativeValueException {\n PetBunny pb1 = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n \n Assert.assertEquals(6.475, pb1.estimatedMonthlyCost(), 0.00001);\n }", "@Test()\n public void testGetBiggestPerMonthWithYearly() {\n\tYearMonth yearMonth = YearMonth.of(2015, 8);\n\tList<Expense> list = expenseManager.getBiggestPerMonth(yearMonth);\n\tassertEquals(\"vacation\", list.get(0).getName());\n }", "@org.junit.Test\r\n public void testGetFixedMonthlyPayment() {\r\n Prospect p = new Prospect(\"Börje\", 2500, 7, 1);\r\n MortgageCalculation m = new MortgageCalculation(p);\r\n double result = m.getFixedMonthlyPayment();\r\n Double expResult = 216.32;\r\n\r\n assertEquals(expResult, result, 0.01);\r\n }", "@Test\n public void computeFactor_TwoMonthsOfLeapYear() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-02-01 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-03-01 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-02-01 00:00:00\", \"2012-03-02 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.MONTH,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then factor is 1 months\n assertEquals(1, factor, 0);\n }", "int getExpMonth(String bookingRef);", "@Test()\n public void testGetForecastPerMonthNull() {\n\tYearMonth yearMonth = YearMonth.of(2015, 12);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(0, forecast, 0);\n }", "@Test()\n public void testGetBiggestPerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2015, 6);\n\tList<Expense> list = expenseManager.getBiggestPerMonth(yearMonth);\n\tassertEquals(\"gas\", list.get(0).getName());\n }", "@Test()\n public void testSetBudgetPerMonth() {\n\tfloat budget = 3000;\n\texpenseManager.setBudgetPerMonth(budget);\n\tassertEquals(3000, expenseManager.getBudgetPerMonth(), 0);\n }", "@Test\n public void month() throws Exception {\n Date thisDate = dateFormat.parse(\"08/14/2006\");\n Month august06 = Month.create(thisDate);\n testThePeriod(august06, thisDate, \"08/01/2006 00:00:00.000\",\n \"08/31/2006 23:59:59.999\", \"2006-08\");\n\n //Test the prior period\n Date priorDate = dateFormat.parse(\"07/22/2006\");\n Month july06 = august06.prior();\n testThePeriod(july06, priorDate, \"07/01/2006 00:00:00.000\",\n \"07/31/2006 23:59:59.999\", \"2006-07\");\n\n //Test the next period.\n Date nextDate = dateFormat.parse(\"09/03/2006\");\n Month september06 = august06.next();\n testThePeriod(september06, nextDate, \"09/01/2006 00:00:00.000\",\n \"09/30/2006 23:59:59.999\", \"2006-09\");\n\n //Test compareTo\n testCompareTo(july06, august06, september06);\n }", "@Test()\n public void testGetExpensesByTypeAndMonth() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2015, 6);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }", "@Test(groups= {\"android\"})\n\tpublic void testBudgetMonth() throws InterruptedException {\n\t\ttry{\n\n\t\t\tloginPage().loginWithValidCredentialsForAndroidQKN(\"mb1_iamtestpass@mailinator.com\", \"Testing@01\");\n\t\t\tQuickenLogger.info(\"Logginng from sign up page\");\n\t\t\tThread.sleep(10000);\n\t\t\toverviewPage().CheckAnypopus();\n\t\t\tThread.sleep(10000);\n\t\t\tint s= budgetPage().validateBudgetMonth();\n\t\t\tThread.sleep(3000);\n\t\t\tif(s==0){\n\n\t\t\t\tAssert.assertTrue(true, \"Correct month is displayed\");\n\t\t\t}\n\n\t\t\telse{\n\t\t\t\tAssert.assertTrue(false, \"Incorrect month is displayed\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tQuickenLogger.log(Level.SEVERE,\"Exceptions happen!!\");\n\t\t\te.printStackTrace();\n\t\t\tlogFailure(e.getMessage());\n\t\t}\n\t}", "@Test\n\tpublic void testDiffMonth() {\n diffMonth.addOneDay();\n diffMonthTwo.addOneDay();\n diffMonthThree.addOneDay();\n assertEquals(2, diffMonth.getMonth());\n assertEquals(3, diffMonthTwo.getMonth());\n assertEquals(5, diffMonthThree.getMonth());\n }", "@Test\r\n\tvoid testGetChargeableDays() {\r\n\t\t/* Testing several scenarios for calculating chargeable days. */\r\n\t\t\r\n\t\tassertEquals(2, CalculationService.getChargeableDays(LocalDate.of(2020, 7, 2), 3, ToolTypes.LADDER), \"Calculated days incorrect.\");\r\n\t\tassertEquals(3, CalculationService.getChargeableDays(LocalDate.of(2015, 7, 2), 5, ToolTypes.CHAINSAW), \"Calculated days incorrect.\");\r\n\t\tassertEquals(3, CalculationService.getChargeableDays(LocalDate.of(2015, 9, 3), 6, ToolTypes.JACKHAMMER), \"Calculated days incorrect.\");\r\n\t\tassertEquals(5, CalculationService.getChargeableDays(LocalDate.of(2015, 7, 2), 9, ToolTypes.JACKHAMMER), \"Calculated days incorrect.\");\r\n\t\tassertEquals(1, CalculationService.getChargeableDays(LocalDate.of(2020, 7, 2), 4, ToolTypes.JACKHAMMER), \"Calculated days incorrect.\");\r\n\t}", "@Test\n public void isMonthlyDebtLessThan36PercentTest() {\n assertTrue(FinanceCalculator.isMonthlyDebtLessThan36Percent(100000, 3000) == 0);\n // Less than 36% debt returns positive integer.\n assertTrue(FinanceCalculator.isMonthlyDebtLessThan36Percent(100000, 1000) == 1999);\n // Greater than 36% debt returns negative integer.\n assertTrue(FinanceCalculator.isMonthlyDebtLessThan36Percent(100000, 5000) == -2000);\n }", "@Test\n public void testFindRate_PositiveResult_Mon9to12() {\n System.out.println(\"FindRate-positive result mon 0900-1200\");\n AssertRateFound(\"2015-07-06T09:00:00Z\", \"2015-07-06T20:59:00Z\", 1500); \n }", "@Test\n public void computeFactor_FebruaryOfLeapYear() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-02-01 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-02-29 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-02-01 00:00:00\", \"2012-03-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.DAY,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then factor is 29 (days)\n assertEquals(29, factor, 0);\n }", "@Test\r\n public void test12() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(22,0,0,5555),0 , 100, 100);\r\n assertTrue(loan == Consts.FULL_LOAN + Consts.FULL_SUBSIDY);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 12, correct : 9904, got : \"+ loan);\r\n \t}\r\n }", "private void givenExchangeRatesExistsForEightMonths() {\n }", "@Test\r\n public void test10() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555),Consts.PARTTIME_MAX_INCOME +1 , 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 10, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }", "@Test(expected = IllegalArgumentException.class)\n public void testGetExpensesByTypeAndMonthInFuture() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2016, 12);\n\texpenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n }", "public void testApp() {\n\t\tCapacityItem capacityItem1 = new CapacityItem(\"KAABA00011GN\",\n\t\t\t\t\"2012-12-01\", \"2012-12-31\", \"M10\", 100000, 5000);\n\n\t\t// 12.83 * 0.2 * 0.5 * 100000= 128300.0\n\t\tCapacityItem capacityItem2 = new CapacityItem(\"KEALGYO03ONN\",\n\t\t\t\t\"2012-05-01\", \"2012-05-31\", \"M10\", 100000, 5000);\n\n\t\t// 21.38 * 0.2 * 1.0 * 100000 = 427600.0\n\t\tCapacityItem capacityItem3 = new CapacityItem(\"GEDRAVAS1IIN\",\n\t\t\t\t\"2012-05-01\", \"2012-05-31\", \"M0\", 100000, 5000);\n\t\t// 19.24 * 0.2 * 1.0 * 100000 = 384800.0\n\t\tCapacityItem capacityItem4 = new CapacityItem(\"KETELJCS57EN\",\n\t\t\t\t\"2012-05-01\", \"2012-05-31\", \"M0\", 100000, 5000);\t\t\t\n\n\t\tassertEquals(\"Winter test\", capacityItem1.getSeasonalPrecent(), 0.9);\n\t\tassertEquals(\"Other season test\", capacityItem2.getSeasonalPrecent(),\n\t\t\t\t0.2);\n\n\t\tassertEquals(\"M10 test\", capacityItem1.getTypePrecent(), 0.5);\n\t\tassertEquals(\"M0 test\", capacityItem3.getTypePrecent(), 1.0);\n\n\t\tassertEquals(\"Location type test1\", capacityItem1.getLocationType(),\n\t\t\t\t\"Hazai kilépési\");\n\t\tassertEquals(\"Location type test2\", capacityItem2.getLocationType(),\n\t\t\t\t\"Hazai tárolói belépési\");\n\t\tassertEquals(\"Location type test3\", capacityItem3.getLocationType(),\n\t\t\t\t\"Külföldi belépési\");\n\t\tassertEquals(\"Location type test4\", capacityItem4.getLocationType(),\n\t\t\t\t\"Hazai termelői belépési\");\n\n\t\tassertEquals(\"Fee test1\", capacityItem1.getItemFee(), 159727.5);\n\t\tassertEquals(\"Fee test2\", capacityItem2.getItemFee(), 128300.0);\n\t\tassertEquals(\"Fee test3\", capacityItem3.getItemFee(), 427600.0);\n\t\tassertEquals(\"Fee test4\", capacityItem4.getItemFee(), 384800.0);\n\n\t}", "int calDateMonth(int mC,int yC,int mG,int yG){//(current-month, current-year, goal-month, goal-year)\n int x = 0,i,countM=0;\n if(yC<=yG){\n for(i = yC; i < yG; i++)\n countM += 12;\n }\n\n countM -= mC;\n countM += mG;\n return (countM);\n }", "@Test\n void calculatePeriodLessThanOneMonth() throws ParseException {\n LocalDate testDateStart = LocalDate.parse(\"2015-03-07\");\n LocalDate testDateEnd = LocalDate.parse(\"2015-04-01\");\n Map<String, String> periodMap = datesHelper.calculatePeriodRange(testDateStart, testDateEnd, false);\n assertEquals(\"1 month\", periodMap.get(PERIOD_START));\n assertEquals(\"1 April 2015\", periodMap.get(PERIOD_END));\n }", "public double getPer_month(){\n\t\tdouble amount=this.num_of_commits/12;\n\t\treturn amount;\n\t}", "@Test\n public void shouldCalculatePaymentWhen24MonthsIsSelected() {\n\n\n //1. Select '24'\n //2. Enter 7 in the Interest Rate field\n //3. Enter 25000 in the Price field.\n //4. Enter 1500 in the Down Payment Field.\n //5. Inter 3000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $945 / month for 24 months at 7.0%.\n\n\n //1. Select '36'\n //2. Enter 4 in the Interest Rate field\n //3. Enter 35000 in the Price field.\n //4. Enter 2500 in the Down Payment Field.\n //5. Inter 2000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $919 / month for 36 months at 4.0%.\n\n\n //1. Select '48'\n //2. Enter 5 in the Interest Rate field\n //3. Enter 45000 in the Price field.\n //4. Enter 3500 in the Down Payment Field.\n //5. Inter 3000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $901 / month for 48 months at 5.0%.\n\n\n //1. Select '60'\n //2. Enter 6 in the Interest Rate field\n //3. Enter 55000 in the Price field.\n //4. Enter 4500 in the Down Payment Field.\n //5. Inter 4000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $911 / month for 60 months at 6.0%.\n\n\n //1. Select '72'\n //2. Enter 8 in the Interest Rate field\n //3. Enter 65000 in the Price field.\n //4. Enter 5500 in the Down Payment Field.\n //5. Inter 5000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $966 / month for 72 months at 8.0%.\n\n\n }", "@Test\r\n public void test11() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555), Consts.PARTTIME_MAX_INCOME, 99, 100);\r\n assertTrue(loan == Consts.HALF_LOAN + Consts.HALF_SUBSIDY);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 11, correct : 4960, got : \"+ loan);\r\n \t}\r\n \r\n }", "@Test // Specification Test 4\n void calculateJackhammerLaborDayTest() throws Exception {\n ToolType toolType = ToolType.JACKHAMMER; // weekendFree: true holidayFree: true\n String toolCode = \"JAKD\";\n String brand = \"DeWalt\";\n double dailyPrice = JACKHAMMER_PRICE;\n int discount = 0;\n int daysRented = 6;\n int daysCharged = 3; // This value changes depending on tool and date of rental period\n LocalDate checkoutDate = createDate(\"2015-09-03\");\n double prediscountTotal = MoneyUtil.round(daysCharged * dailyPrice);\n double finalCharge = MoneyUtil.applyDiscount(prediscountTotal, discount);\n double discountAmt = MoneyUtil.round(prediscountTotal - finalCharge);\n\n Tool tool = createTool(toolType, toolCode, brand);\n\n List<Tool> tools = Arrays.asList(tool);\n Order order = new Order(tools, checkoutDate, daysRented);\n\n List<LocalDate> holidays = createHolidays(checkoutDate.getYear());\n RentalAgreement rentAgmt = createRentalAgreement(order, discount, holidays);\n rentAgmt.calculate();\n rentAgmt.createDocument();\n\n // Assert that all members vars all instantiated\n assertRentalAgreementNotNull(rentAgmt);\n\n // Assert that values in rental agreement match expected values\n assertValuesEqual(rentAgmt, toolCode, toolType, brand, daysRented, daysCharged, checkoutDate,\n checkoutDate.plusDays(daysRented), dailyPrice, prediscountTotal, discount, discountAmt, finalCharge);\n\n // Print document to console\n System.out.println(rentAgmt.getDocument());\n }", "public double getMonthlyCost() {\n\t\treturn 0;\n\t}", "@Test\r\n public void test9() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(21,0,0,5555), Consts.FULLTIME_MAX_INCOME , 100, 100);\r\n assertTrue(loan == Consts.FULL_LOAN + Consts.FULL_SUBSIDY);\r\n \t}catch(AssertionError err){\r\n System.out.println(\"Test 9, correct : 9904, got : \"+ loan);\r\n \t}\r\n \r\n }", "@Test(dependsOnMethods = {\"shouldBeAbleToClick60Months\"})\n public void shouldBeAbleToClick72Months() {\n calculatePaymentPage.selectMonth(\"72\");\n }", "@Test\n void calculatePeriod12Months() throws ParseException {\n LocalDate testDateStart = LocalDate.parse(\"2016-08-12\");\n\n System.out.println(\"periodStartDate: \" + testDateStart);\n\n LocalDate testDateEnd = LocalDate.parse(\"2017-08-23\");\n\n System.out.println(\"periodEndDate: \" + testDateStart);\n Map<String, String> periodMap = datesHelper.calculatePeriodRange(testDateStart, testDateEnd, false);\n assertNull(periodMap.get(PERIOD_START));\n assertEquals(\"2017\", periodMap.get(PERIOD_END));\n\n }", "public void DeductCharges () {\r\n\r\n\t\tdouble Temp = 0;\r\n\r\n\t\tfor ( Map.Entry<String, Double> CA : _ChargeAmounts.entrySet() ) {\r\n\r\n\t\t\tTemp += CA.getValue();;\r\n\r\n\t\t}\r\n\r\n\t\t_MonthlyChargeAmounts.put( _Tick.getMonthNumber(), Temp );\r\n\r\n\t\t_FundValue -= Temp;\r\n\r\n\t\tSystem.out.println( \"\\t\\t\\t \" + _Name + \" After Charges : \" + _FundValue );\r\n\t}", "@Test\r\n public void test1() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n loan = p.getMonthlyAmount(TestHelper.getSSN(19,0,0,5555), 0, 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 1, correct : 0, got : \"+ loan);\r\n \t}\r\n }", "private static double totalPricePerMonth(double price_interest, int months) {\n \treturn price_interest / months;\n }", "@Test(dependsOnMethods = {\"shouldBeAbleToClick48Months\"})\n public void shouldBeAbleToClick60Months() {\n calculatePaymentPage.selectMonth(\"60\");\n }", "public static void main(String[] args) {\r\n\t\tDate today = new Date(2, 26, 2012);\r\n\t\tSystem.out.println(\"Input date is \" + today);\r\n\t\tSystem.out.println(\"Printing the next 10 days after \" + today);\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\ttoday = today.next();\r\n\t\t\tSystem.out.println(today);\r\n\t\t}\r\n\t\tDate expiry = new Date(2011);\r\n\t\tSystem.out.println(\"testing year 2011 as input:\" + expiry);\r\n\r\n\t\tDate todayDate = new Date();\r\n\t\tSystem.out.println(\"todays date: \" + todayDate);\r\n\t\tSystem.out.println(\"current month:\" + todayDate.month);\r\n\r\n\t\t// testing isValidMonth function\r\n\t\tDate start = new Date(\"08-01-2010\");\r\n\t\tDate end1 = new Date(\"09-01-2010\");\r\n\t\tboolean param1 = start.isValidMonth(4, end1);\r\n\t\tSystem.out.println(\"is April valid between: \" + start + \" and \" + end1\r\n\t\t\t\t+ \": \" + param1);\r\n\t\tDate end2 = new Date(\"02-01-2011\");\r\n\t\tboolean param2 = start.isValidMonth(2, end2);\r\n\t\tSystem.out.println(\"is feb valid between: \" + start + \" and \" + end2\r\n\t\t\t\t+ \": \" + param2);\r\n\t\tboolean param3 = start.isValidMonth(8, start);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tparam3 = start.isValidMonth(4, start);\r\n\t\tSystem.out.println(\"is april valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tDate end3 = new Date(\"02-01-2010\");\r\n\t\tboolean param4 = start.isValidMonth(8, end3);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + end3\r\n\t\t\t\t+ \": \" + param4);\r\n\t\t \r\n\t\tDate lease = new Date(\"1-01-2012\");\r\n\t\tDate expiry1 = new Date(\"12-31-2012\");\r\n\r\n\t\t// testing daysBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING daysBetween method\\n------------------------------\");\r\n\t\tint count = lease.daysBetween(expiry);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry + \"is: \"\r\n\t\t\t\t+ count);\r\n count = new Date(\"1-01-2011\").daysBetween(new Date(\"12-31-2011\"));\r\n\t\tSystem.out.println(\"Days between [1-01-2011] and [12-31-2011]\" + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tcount = lease.daysBetween(expiry1);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry1 + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tDate testDate = new Date(\"12-31-2013\");\r\n\t\tcount = lease.daysBetween(testDate);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [12-31-2013] \"\r\n\t\t\t\t+ \"is: \" + count);\r\n\t\tcount = lease.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n count = lease.daysBetween(new Date(\"1-10-2012\"));\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [1-10-2012\" + \"is: \"\r\n\t\t\t\t+ count);\r\n \r\n\t\tcount = testDate.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + testDate + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n\r\n\t\t// testin isBefore\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING isBefore method\\n------------------------------\");\r\n\t\tboolean isBefore = today.isBefore(today.next());\r\n\t\tSystem.out.println(today + \"is before \" + today.next() + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.next().isBefore(today);\r\n\t\tSystem.out.println(today.next() + \"is before \" + today + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.isBefore(today);\r\n\t\tSystem.out.println(today + \"is before \" + today + \": \" + isBefore);\r\n isBefore = today.isBefore(today.addMonths(12));\r\n\t\tSystem.out.println(today + \"is before \" + today.addMonths(12) + \": \" + isBefore);\r\n\r\n\t\t// testing addMonths\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING addMonths method\\n------------------------------\");\r\n\t\ttoday = new Date(\"1-31-2011\");\r\n\t\tDate newDate = today.addMonths(1);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 1 months to \" + today + \" gives: \" + newDate);\r\n\t\tnewDate = today.addMonths(13);\r\n\t\tSystem.out.println(\"adding 13 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\ttoday = new Date(\"3-31-2010\");\r\n\t\tnewDate = today.addMonths(15);\r\n\t\tSystem.out.println(\"adding 15 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(23);\r\n\t\tSystem.out.println(\"adding 23 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(49);\r\n\t\tSystem.out.println(\"adding 49 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(0);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 0 months to \" + today + \" gives: \" + newDate);\r\n\t\t\r\n\t\t// testing monthsBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING monthsBetween method\\n------------------------------\");\r\n\t\tint monthDiff = today.monthsBetween(today.addMonths(1));\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + today.addMonths(1)\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\tmonthDiff = today.next().monthsBetween(today);\r\n\t\tSystem.out.println(\"months between \" + today.next() + \" and \" + today\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date(\"09-30-2011\");\r\n\t\tDate endDate = new Date(\"2-29-2012\");\r\n\t\tmonthDiff = today.monthsBetween(endDate);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate + \": \"\r\n\t\t\t\t+ monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate1 = new Date(\"12-04-2011\");\r\n\t\tmonthDiff = today.monthsBetween(endDate1);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate1\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate2 = new Date(\"12-22-2010\");\r\n\t\tmonthDiff = today.monthsBetween(endDate2);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate2\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\t\r\n\t\t// following should generate exception as date is invalid!\r\n\t\t// today = new Date(13, 13, 2010);\r\n\r\n\t\t// expiry = new Date(\"2-29-2009\");\r\n // newDate = today.addMonths(-11);\r\n\r\n\t}", "@Test\n public void computeFactor_SummerTimeDay() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-03-22 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-03-31 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-03-01 00:00:00\", \"2012-04-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.DAY,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then\n assertEquals(10, factor, 0);\n }", "@Test\n public void testTimeToPayOff() {\n assertEquals(expectedResults.getMonthsToPayOff(), results.getMonthsToPayOff());\n }", "@Test\n public void computeFactor_SummerTimeWeek() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-03-13 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-03-25 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-03-01 00:00:00\", \"2012-04-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.WEEK,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then\n assertEquals(2, factor, 0);\n }", "@Test\r\n public void test4() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(47,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.FULL_SUBSIDY); \t\t\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 4, correct : 2816, got : \"+ loan);\r\n \t}\r\n }", "@Test\n public void testProcessCheckoutJackhammerJulyFourthDiscount() throws Exception {\n String toolCode = \"JAKR\";\n int rentalDays = 4;\n int discountPercentage = 50;\n LocalDate checkoutDate = LocalDate.of(2020, Month.JULY, 2);\n\n RentalAgreement result = checkout.processCheckout(toolCode, rentalDays, discountPercentage, checkoutDate);\n\n assertEquals(\"Jackhammer\", result.getRentedTool().getToolType());\n assertEquals(\"Ridgid\", result.getRentedTool().getBrand());\n assertEquals(LocalDate.of(2020, Month.JULY, 6), result.getDueDate());\n assertEquals(1, result.getChargeDays());\n assertEquals(2.99, result.getPreDiscountCharge(), 0.00001);\n assertEquals(1.50, result.getDiscountAmount(), 0.00001);\n assertEquals(1.49, result.getFinalCharge(), 0.00001);\n }", "@Test\n public void whenComputingBillForPeopleOver70WithDiagnosisXRayAndECG() {\n double result = billingService.computeBill(1);\n // 90% discount on Diagnosis (60£) = 6\n // 90% discount on X-RAY (150£) = 15\n // 90% discount on ECG (200.40£) = 20.04\n Assert.assertEquals(41.04, result, 0);\n }", "@org.junit.Test\r\n public void testPayBackSumShouldBeSameOrHigher() {\r\n Prospect p = new Prospect(\"Doris\", 1000, 5, 2);\r\n MortgageCalculation m = new MortgageCalculation(p);\r\n double result = m.getFixedMonthlyPayment();\r\n double payBackSum = result * p.getYears() * 12;\r\n\r\n assertTrue(payBackSum >= p.getTotalLoan());\r\n }", "@Test\n public void testProcessCheckoutJackhammerJulyFourthNoDiscount() throws Exception {\n String toolCode = \"JAKR\";\n int rentalDays = 9;\n int discountPercentage = 0;\n LocalDate checkoutDate = LocalDate.of(2015, Month.JULY, 2);\n\n RentalAgreement result = checkout.processCheckout(toolCode, rentalDays, discountPercentage, checkoutDate);\n\n assertEquals(\"Jackhammer\", result.getRentedTool().getToolType());\n assertEquals(\"Ridgid\", result.getRentedTool().getBrand());\n assertEquals(LocalDate.of(2015, Month.JULY, 11), result.getDueDate());\n assertEquals(5, result.getChargeDays());\n assertEquals(14.95, result.getPreDiscountCharge(), 0.00001);\n assertEquals(0.00, result.getDiscountAmount(), 0.00001);\n assertEquals(14.95, result.getFinalCharge(), 0.00001);\n }", "@Test\r\n public void test7() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555),Consts.FULLTIME_MAX_INCOME +1 , 101, 100);\r\n \t assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 7, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }", "public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}", "@Test\n public void monthlySalaryTest() {\n double expected = 2432.00;\n\n assertEquals(\"The expected value for the monthly salary does not match the actual\",\n expected, e1.monthlySalary(), 0.001);\n }", "double getMonthTask(){\n\t\treturn this.monthTax = (super.getAvailableMoney()+(super.getAvailableMoney()*super.getYearInterest()))/this.period;\n\t}", "@Test\r\n public void test2() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n loan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.FULL_LOAN + Consts.FULL_SUBSIDY);\r\n \t\t\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 2, correct : 9904, got : \"+ loan);\r\n \t}\r\n\r\n }", "@Test\n public void getLessonMonths() throws Exception {\n ActiveAndroid.initialize(this);\n List<String> mmyy = Arrays.asList(\"10/17\", \"11/17\", \"12/17\", \"01/18\");\n List<Lesson> lessons = createLessons();\n ArrayList<String> result = mHomePresenter.getLessonMonths(lessons);\n\n assertEquals(mmyy, result);\n }", "@Test()\n public void testGetExpensesByTypeAndMonthNull() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2014, 12);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n\tassertEquals(0, expensesForDisplay.size(), 0);\n }", "@Test(expected = NullPointerException.class)\n public void testGetBiggestPerMonthNull() {\n\tYearMonth yearMonth = YearMonth.of(2015, 1);\n\texpenseManager.getBiggestPerMonth(yearMonth);\n }", "@Test\n public void testProcessCheckoutChainsawJulyFourth() throws Exception {\n String toolCode = \"CHNS\";\n int rentalDays = 5;\n int discountPercentage = 25;\n LocalDate checkoutDate = LocalDate.of(2015, Month.JULY, 2);\n\n RentalAgreement result = checkout.processCheckout(toolCode, rentalDays, discountPercentage, checkoutDate);\n\n assertEquals(\"Chainsaw\", result.getRentedTool().getToolType());\n assertEquals(LocalDate.of(2015, Month.JULY, 7), result.getDueDate());\n assertEquals(3, result.getChargeDays());\n assertEquals(4.47, result.getPreDiscountCharge(), 0.00001);\n assertEquals(1.12, result.getDiscountAmount(), 0.00001);\n assertEquals(3.35, result.getFinalCharge(), 0.00001);\n }", "@Test\n public void testProcessCheckoutLadderJulyFourth() throws Exception {\n String toolCode = \"LADW\";\n int rentalDays = 3;\n int discountPercentage = 10;\n LocalDate checkoutDate = LocalDate.of(2020, Month.JULY, 2);\n\n RentalAgreement result = checkout.processCheckout(toolCode, rentalDays, discountPercentage, checkoutDate);\n\n assertEquals(\"Ladder\", result.getRentedTool().getToolType());\n assertEquals(LocalDate.of(2020, Month.JULY, 5), result.getDueDate());\n assertEquals(2, result.getChargeDays());\n assertEquals(3.98, result.getPreDiscountCharge(), 0.00001);\n assertEquals(0.40, result.getDiscountAmount(), 0.00001);\n assertEquals(3.58, result.getFinalCharge(), 0.00001);\n }", "public static void main(String[] args) {\r\n\t Scanner in = new Scanner(System.in);\r\n\t int d1 = in.nextInt();\r\n\t int m1 = in.nextInt();\r\n\t int y1 = in.nextInt();\r\n\t int d2 = in.nextInt();\r\n\t int m2 = in.nextInt();\r\n\t int y2 = in.nextInt();\r\n\t LocalDate returnDate=LocalDate.of(y1,m1,d1);\r\n\t LocalDate dueDate=LocalDate.of(y2,m2,d2);\r\n\t long fine=0;\r\n\t if(returnDate.isBefore(dueDate)||returnDate.equals(dueDate))fine=0;\r\n\t else if(returnDate.isAfter(dueDate)){\r\n\t \tif(returnDate.getYear()==dueDate.getYear()){\r\n\t \t\tif(returnDate.getMonth()==dueDate.getMonth()){\r\n\t \t\t\tfine=(returnDate.getDayOfYear()-dueDate.getDayOfYear())*15;\r\n\t \t\t}else{\r\n\t \t\t\t\tfine=(returnDate.getMonthValue()-dueDate.getMonthValue())*500;\r\n\t \t\t\r\n\t \t}\r\n\t \t\t\r\n\t \t\t\r\n\t } else fine=10000;\r\n\t }else fine=10000;\r\n\t System.out.println(fine);\r\n\t }", "public LimitDayAndMonthByCpn() {\r\n\t\tthis.mydb = new DBForMT();\r\n\t}", "@Test\n\tpublic void negativeNumYrs() {\n\t\tWebElement new_page = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tdouble dwnpymnt = Double.valueOf(new_page.findElement(By.name(\"downpayment\")).getAttribute(\"value\"));\n\t\tdouble interest = Double.valueOf(new_page.findElement(By.name(\"interest\")).getAttribute(\"value\"));\n\t\t\n\t\t// modify year to a negative integer\n\t\tint year = -5;\n\t\tnew_page.findElement(By.name(\"year\")).clear();\n\t\tnew_page.findElement(By.name(\"year\")).sendKeys(\"-5\");\n\t\t\n\t\tdouble price_tax = Double.valueOf(new_page.findElement(By.name(\"price_with_taxes\")).getAttribute(\"value\"));\n\t\t\n\t\tdouble price_interest = priceWithInterest(price_tax, dwnpymnt, interest, year);\n\t\tint nMnths = numMonths(year);\n\t\tdouble ttl = totalPrice(price_interest, dwnpymnt);\n\t\tdouble ttl_per_mnth = totalPricePerMonth(price_interest, nMnths);\n\t\t\n\t\t// click calculate button\n\t\tnew_page.findElement(By.name(\"calculate_payment_button\")).click();\n\t\twait(2);\n\t\t\n\t\tWebElement solutions = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tDecimalFormat twoDForm = new DecimalFormat(\"#.##\");\n\t\t\n\t\tassertEquals(Double.valueOf(twoDForm.format(dwnpymnt)), Double.valueOf(solutions.findElement(By.id(\"total_downpayment\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl_per_mnth)), Double.valueOf(solutions.findElement(By.id(\"total_price_per_month\")).getAttribute(\"value\")));\n\t\tassertEquals(Integer.valueOf(nMnths), Integer.valueOf(solutions.findElement(By.id(\"n_of_months\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl)), Double.valueOf(solutions.findElement(By.id(\"total_price\")).getAttribute(\"value\")));\n\t}", "@Test\r\n public void test5() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(56,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.FULL_SUBSIDY);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 5, correct : 2816, got : \"+ loan);\r\n \t}\r\n }", "@Test\n\tpublic void invalidNumYrs() {\n\t\tWebElement new_page = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tdouble dwnpymnt = Double.valueOf(new_page.findElement(By.name(\"downpayment\")).getAttribute(\"value\"));\n\t\t\n\t\t// get initial value of interest\n\t\tdouble interest = Double.valueOf(new_page.findElement(By.name(\"interest\")).getAttribute(\"value\"));\n\t\t\n\t\t// modify number of years to non-numeric characters\n\t\tnew_page.findElement(By.name(\"year\")).clear();\n\t\tnew_page.findElement(By.name(\"year\")).sendKeys(\"abcd\");\n\t\t\n\t\tint year = 0;\n\t\tdouble price_tax = Double.valueOf(new_page.findElement(By.name(\"price_with_taxes\")).getAttribute(\"value\"));\n\t\t\n\t\tdouble price_interest = priceWithInterest(price_tax, dwnpymnt, interest, year);\n\t\tint nMnths = numMonths(year);\n\t\tdouble ttl = totalPrice(price_interest, dwnpymnt);\n\t\tdouble ttl_per_mnth = totalPricePerMonth(price_interest, nMnths);\n\t\t\n\t\t// click calculate button\n\t\tnew_page.findElement(By.name(\"calculate_payment_button\")).click();\n\t\twait(2);\n\t\t\n\t\tWebElement solutions = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tDecimalFormat twoDForm = new DecimalFormat(\"#.##\");\n\t\t\n\t\tassertEquals(Double.valueOf(twoDForm.format(dwnpymnt)), Double.valueOf(solutions.findElement(By.id(\"total_downpayment\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl_per_mnth)), Double.valueOf(solutions.findElement(By.id(\"total_price_per_month\")).getAttribute(\"value\")));\n\t\tassertEquals(Integer.valueOf(nMnths), Integer.valueOf(solutions.findElement(By.id(\"n_of_months\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl)), Double.valueOf(solutions.findElement(By.id(\"total_price\")).getAttribute(\"value\")));\n\t}", "@Test\r\n public void test13()\r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(21,0,0,5555), 0 , 99, 100);\r\n assertTrue(loan == Consts.HALF_LOAN + Consts.HALF_SUBSIDY);\r\n \t\t\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 13, correct : 4960, got : \"+ loan);\r\n \t}\r\n }", "@Test()\n public void testGetForecastPerYear() {\n\tYear year = Year.of(2016);\n\tdouble forecast = expenseManager.getForecastPerYear(year);\n\tassertEquals(11030.25, forecast, 0.01);\n }", "public void testGetBlogForMonth() {\n MonthlyBlog monthlyBlog = rootBlog.getBlogForMonth(2003, 4);\n assertNotNull(monthlyBlog);\n assertEquals(2003, monthlyBlog.getYearlyBlog().getYear());\n assertEquals(4, monthlyBlog.getMonth());\n }", "public void testGetBlogForThisMonth() {\n Calendar cal = rootBlog.getCalendar();\n MonthlyBlog monthlyBlog = rootBlog.getBlogForThisMonth();\n assertNotNull(monthlyBlog);\n assertEquals(cal.get(Calendar.YEAR), monthlyBlog.getYearlyBlog().getYear());\n assertEquals(cal.get(Calendar.MONTH) + 1, monthlyBlog.getMonth());\n }", "@Test\r\n public void test6() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(57,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 6, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }", "@Test(dependsOnMethods = {\"shouldBeAbleToClick36Months\"})\n public void shouldBeAbleToClick48Months() {\n calculatePaymentPage.selectMonth(\"48\");\n }", "@Test\r\n public void testGetKiloCalPerHundredGrams()\r\n {\r\n System.out.println(\"getKiloCalPerHundredGrams\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n double expResult = 500.0;\r\n double result = instance.getKiloCalPerHundredGrams();\r\n assertEquals(expResult, result, 0.0);\r\n }", "@Test(dependsOnMethods = {\"shouldBeAbleToClick24Months\"})\n public void shouldBeAbleToClick36Months() {\n calculatePaymentPage.selectMonth(\"36\");\n }", "@Test\r\n public void test3()\r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(46,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.FULL_LOAN + Consts.FULL_SUBSIDY);\r\n \t\t\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 3, correct : 9904, got : \"+ loan);\r\n \t}\r\n \r\n }", "public double getRate( ) {\nreturn monthlyInterestRate * 100.0 * MONTHS;\n}", "@Test\n public void testProcessCheckoutJackhammerLaborDay() throws Exception {\n String toolCode = \"JAKD\";\n int rentalDays = 6;\n int discountPercentage = 0;\n LocalDate checkoutDate = LocalDate.of(2015, Month.SEPTEMBER, 3);\n\n RentalAgreement result = checkout.processCheckout(toolCode, rentalDays, discountPercentage, checkoutDate);\n\n assertEquals(\"Jackhammer\", result.getRentedTool().getToolType());\n assertEquals(\"DeWalt\", result.getRentedTool().getBrand());\n assertEquals(LocalDate.of(2015, Month.SEPTEMBER, 9), result.getDueDate());\n assertEquals(3, result.getChargeDays());\n assertEquals(8.97, result.getPreDiscountCharge(), 0.00001);\n assertEquals(0.00, result.getDiscountAmount(), 0.00001);\n assertEquals(8.97, result.getFinalCharge(), 0.00001);\n }", "@Test\n\tpublic void testOneMillion() {\n\n\tdouble tax = Main.calcTax(1_000_000.);\n\tassertEquals(50_250., tax, .01);\n\n\t}", "@Override\r\n\tpublic int[] getMonthPeopleStatistic(int year, int month) {\n\t\tint[] result = new int[31];\r\n\t\tDate date = DateUtil.getDateByYearAndMonth(year, month);\r\n\t\tDate dateStart = DateUtil.getFirstDay(date);\r\n\t\tfor(int i=0;i<31;++i){\r\n\t\t\tresult[i] = cinemaConditionDao.getCount(dateStart, dateStart);\r\n\t\t\tdateStart = DateUtil.getDayLater(dateStart);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public boolean aMonthPasses()\n\t{\n\t\tdecreaseHealth();\n\t\tage++;\n\t\treturn false;\n\t}", "@Test\r\n public void test8() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555), Consts.FULLTIME_MAX_INCOME +1 , 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 8, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }", "@Test\r\n public void testGetCarbsPerHundredGrams()\r\n {\r\n System.out.println(\"getCarbsPerHundredGrams\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n double expResult = 120.0;\r\n double result = instance.getCarbsPerHundredGrams();\r\n assertEquals(expResult, result, 0.0);\r\n }", "@Test\n public void testOrderFactoryMonthSales2() {\n OrderController orderController = orderFactory.getOrderController();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n // add a menu item to the menu\n menuFactory.getMenu().addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n\n // order 3 of the menu item\n HashMap<MenuItem, Integer> orderItems = new HashMap<>();\n HashMap<SetItem, Integer> setOrderItems = new HashMap<>();\n orderItems.put(menuFactory.getMenu().getMenuItem(1), 3);\n\n // create 2 of this order\n orderController.addOrder(STAFF_NAME, 1, true, orderItems, setOrderItems);\n orderController.addOrder(STAFF_NAME, 2, false, orderItems, setOrderItems);\n\n // create order invoices\n orderController.addOrderInvoice(orderController.getOrder(1));\n orderController.addOrderInvoice(orderController.getOrder(2));\n\n Calendar date = orderController.getOrderInvoice(1).getDate(); // lazy manually type\n int day = date.get(Calendar.DAY_OF_MONTH);\n int month = date.get(Calendar.MONTH);\n int year = date.get(Calendar.YEAR);\n\n // run the month sales report\n // total revenue should be 3 * MENU_PRICE * 1.8, and the service charge should be 0.1 * 3 * MENU_PRICE * 0.8 + 0.1 * 3 * MENU_PRICE\n assertEquals((double)((3 * MENU_PRICE * 1.8) + (3 * MENU_PRICE * 0.1 * 0.8) + (3 * MENU_PRICE * 0.1)), orderController.viewMonthSalesReport(month, year));\n }", "public static void testPeriod() {\n LocalDate date1 = LocalDate.now();\n System.out.println(\"Current date: \" + date1);\n\n //add 1 month to the current date\n LocalDate date2 = date1.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + date2);\n\n Period period = Period.between(date2, date1);\n System.out.println(\"Period: \" + period);\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int returnDay = scanner.nextInt();\n int returnMonth = scanner.nextInt();\n int returnYear = scanner.nextInt();\n int dueDay = scanner.nextInt();\n int dueMonth = scanner.nextInt();\n int dueYear = scanner.nextInt();\n int fine = 0;\n if(returnYear > dueYear) fine = 10000;\n else if(returnYear < dueYear) fine = 0;\n else if(returnMonth == dueMonth && returnDay > dueDay) {\n fine = 15 * (returnDay - dueDay);\n }\n else if(returnMonth > dueMonth){\n fine = 500 * (returnMonth - dueMonth);\n }\n\n System.out.println(fine);\n\n }", "@Test\n public void test_total_balance2() {\n assertEquals(1200, ao2.totalBalanceOfAccountsOwned(), EPS);\n }", "@Test\n public void testDecimalAutoLoan() {\n LoanTerms loanTerms = new LoanTerms(30, 500000, LoanType.SCB, 40, 3000, 21000);\n\n /* Get Loan Details */\n LoanDetails details = new HomeLoanCalculator(loanTerms).calculateLoanDetails();\n\n /* Check Values */\n assertThat(details.getMonthlyPayment(), is(\"$466.15\"));\n }", "public double calculateCommissionTest() {\n\t\tCommission commission = new Commission(lockPrice, stockPrice, barrelPrice);\n\t\tcommission.processNewSale(locks, stocks, barrels);\n\t\tcommission.calculateSales();\n\t\treturn commission.calculateCommission();\n\t}", "public abstract int daysInMonth(DMYcount DMYcount);", "public static double calcMonthlyPayment(int term, double amount, double rate)\r\n {\r\n // Your code goes here ... use cut and paste as much as possible!\r\n rate = rate / 100;\r\n double num1 = rate * (Math.pow((1 + rate), (term * 12)));\r\n double num2 = Math.pow((1 + rate), (term * 12)) - 1;\r\n double monthlyPayment = amount * (num1 / num2);\r\n return monthlyPayment;\r\n }", "public void calculateMonthBills() {\r\n\t\tdouble sum = 0;\r\n\r\n\t\tfor (int i = 0; i <= (numberOfBills - counter); i++) {\r\n\r\n\t\t\tsum += invoiceInfo[i].getAmount();\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\\nTotal monthly bills: \" + sum);\r\n\t}", "@Override\r\n\tpublic Map<String, Integer[]> getMonthMoneyStatistic(int year, int month) {\n\t\treturn null;\r\n\t}", "private void givenExchangeRatesExistsForSixMonths() {\n }", "public void calculateWageForMonth() {\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\temployeeAttendanceUsingCase();\n\t\t\ttotalSalary = totalSalary + salary;\n\t\t\t// return totalSalary;\n\t\t}\n\t}", "public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }", "float getMonthlySalary();", "@Test // Specification Test 6\n void calculateJackhammerIndependeceDayTest2() throws Exception {\n ToolType toolType = ToolType.JACKHAMMER; // weekendFree: true holidayFree: true\n String toolCode = \"JAKR\";\n String brand = \"Werner\";\n double dailyPrice = JACKHAMMER_PRICE;\n int discount = 50;\n int daysRented = 4;\n int daysCharged = 1; // This value changes depending on tool and date of rental period\n LocalDate checkoutDate = createDate(\"2020-07-02\");\n double prediscountTotal = MoneyUtil.round(daysCharged * dailyPrice);\n double finalCharge = MoneyUtil.applyDiscount(prediscountTotal, discount);\n double discountAmt = MoneyUtil.round(prediscountTotal - finalCharge);\n\n Tool tool = createTool(toolType, toolCode, brand);\n\n List<Tool> tools = Arrays.asList(tool);\n Order order = new Order(tools, checkoutDate, daysRented);\n\n List<LocalDate> holidays = createHolidays(checkoutDate.getYear());\n RentalAgreement rentAgmt = createRentalAgreement(order, discount, holidays);\n rentAgmt.calculate();\n rentAgmt.createDocument();\n\n // Assert that all members vars all instantiated\n assertRentalAgreementNotNull(rentAgmt);\n\n // Assert that values in rental agreement match expected values\n assertValuesEqual(rentAgmt, toolCode, toolType, brand, daysRented, daysCharged, checkoutDate,\n checkoutDate.plusDays(daysRented), dailyPrice, prediscountTotal, discount, discountAmt, finalCharge);\n\n // Print document to console\n System.out.println(rentAgmt.getDocument());\n }", "public Boolean verifyTheValueMonthlyCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if the value montly cost is equal to zero.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_monthlycost));\n\t}", "@Test\n public void testOrderFactoryMonthSales() {\n OrderController orderController = orderFactory.getOrderController();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n // add a menu item to the menu\n menuFactory.getMenu().addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n\n // order 3 of the menu item\n HashMap<MenuItem, Integer> orderItems = new HashMap<>();\n HashMap<SetItem, Integer> setOrderItems = new HashMap<>();\n orderItems.put(menuFactory.getMenu().getMenuItem(1), 3);\n\n // create 2 of this order\n orderController.addOrder(STAFF_NAME, 1, false, orderItems, setOrderItems);\n orderController.addOrder(STAFF_NAME, 2, false, orderItems, setOrderItems);\n\n // create order invoices\n orderController.addOrderInvoice(orderController.getOrder(1));\n orderController.addOrderInvoice(orderController.getOrder(2));\n\n Calendar date = orderController.getOrderInvoice(1).getDate(); // lazy manually type\n int day = date.get(Calendar.DAY_OF_MONTH);\n int month = date.get(Calendar.MONTH);\n int year = date.get(Calendar.YEAR);\n\n // run the month sales report\n // total revenue should be 3 * MENU_PRICE * 2, and the service charge should be 0.1 * 3 * MENU_PRICE * 2\n assertEquals((double)(3 * MENU_PRICE * 2 + 3 * 2 * MENU_PRICE * 0.1), orderController.viewMonthSalesReport(month, year));\n }", "@Test(dependsOnMethods = {\"shouldBeAbleToNavigateToCalculatePaymentPage\"})\n public void shouldBeAbleToClick24Months() {\n calculatePaymentPage.selectMonth(\"24\");\n }", "public abstract void monthlyProcess();", "@Test\r\n\tpublic void testGetPlannedCapacity_Nonlinear_Interval() {\n\t\tassertEquals(0, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 0, 0), 0);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\r\n\t\tassertEquals(0, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 0, 0), 0);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\r\n\t\t\r\n\t}" ]
[ "0.72435784", "0.6814494", "0.6771445", "0.6666264", "0.65952474", "0.65713507", "0.64862424", "0.64224154", "0.635111", "0.62843776", "0.62195605", "0.6194197", "0.61588275", "0.6148799", "0.6138497", "0.61198235", "0.6107668", "0.60263056", "0.60130495", "0.6002347", "0.59963614", "0.5941442", "0.59329426", "0.593221", "0.59211445", "0.59205395", "0.5911894", "0.5904587", "0.5903364", "0.5892034", "0.58766377", "0.5850508", "0.5822743", "0.58210856", "0.58162594", "0.58122116", "0.5806534", "0.57869583", "0.57820696", "0.5777505", "0.57753325", "0.5770648", "0.57642597", "0.5745301", "0.5742125", "0.57381713", "0.5729846", "0.57267535", "0.5724696", "0.57206285", "0.57200235", "0.5715755", "0.57153934", "0.5702213", "0.57009214", "0.5699312", "0.5693167", "0.56851196", "0.5679232", "0.5666387", "0.5663996", "0.5659045", "0.56551284", "0.56477314", "0.5637984", "0.5636225", "0.563242", "0.56202054", "0.561951", "0.56183255", "0.56138146", "0.56100017", "0.5601551", "0.5589164", "0.5579541", "0.5576314", "0.55713934", "0.5563731", "0.55563563", "0.5551919", "0.55474454", "0.554492", "0.55439156", "0.5540317", "0.55365604", "0.55348426", "0.55246687", "0.5516071", "0.5504454", "0.5501689", "0.549712", "0.54943824", "0.54934114", "0.54916173", "0.5485436", "0.5484274", "0.54817504", "0.5481324", "0.54789567", "0.5471329" ]
0.55149
88
Reads through the input file.
public String playTexasHoldEm() throws IOException { StringBuffer buffer = new StringBuffer(); String input = FileReaderUtil.readInputFile(); List<String> players = new ArrayList<>(); List<Hand> hands = new ArrayList<>(); Set<Integer> winners = new HashSet<>(); String[] lines = input.split("\n"); Hand highestHand = null; String[] highestCards = null; int highest = -1; int index = 0; for (String line : lines) { String[] cards = line.toUpperCase().split(" "); players.add(line); if (cards.length == 7) { // Played until the end. Hand currHand = determineHand(cards); hands.add(currHand); if (highestHand == null) { highestHand = currHand; highest = index; highestCards = cards; winners.add(index); } else if (currHand.rank > highestHand.rank) { winners.clear(); winners.add(index); highestHand = currHand; highest = index; highestCards = cards; } else if (currHand.rank == highestHand.rank) { int compare = breakTie(cards, highestCards); if (compare == 0) { // tied winners.add(highest); winners.add(index); } else if (compare < 0) { // current card wins winners.clear(); winners.add(index); highest = index; highestCards = cards; } } } else { hands.add(null); } index++; } for (int i = 0; i < players.size(); i++) { String player = lines[i]; Hand hand = hands.get(i); buffer.append(player); if (hand != null) { buffer.append(" ").append(WordUtils.capitalizeFully(hand.formatted)); } if (winners.contains(i)) { buffer.append(" ").append("(winner)"); } buffer.append("\n"); } return buffer.toString().trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "public static void processInput() throws IOException {\r\n\t\t\r\n\t\t//Out statement let user know the input file is being read\t\r\n\t\tScanner scnr;\r\n\t\tString[] splitString;\r\n\t\t\r\n\t\tFile file = new File(\"Project_04_Input01.txt\");\r\n\t\tscnr = new Scanner(file);\r\n\t\t\r\n\t\tSystem.out.println(\"Reading data from \" + file + \"...\");\r\n\t\t\r\n\t\twhile(scnr.hasNextLine()) {\r\n\t\t\tString line = scnr.nextLine();\r\n\t\t\tsplitString = line.split(\",\");\r\n\r\n\t\t\tif (splitString[0].contains(\"STUDENT\")) {\r\n\t\t\t\t\r\n\t\t\t\t// Call processStudentData\r\n\t\t\t\tprocessStudentData(splitString);\r\n\t\t\t\tSystem.out.println(\"'STUDENT' has been found in the file.\");\r\n\r\n\t\t\t} // End if\r\n\t\t\t\r\n\t\t\telse if (splitString[0].contains(\"GRADEITEM\") ) {\r\n\t\t\t\t\r\n\t\t\t\t// Call processGradeItemData\r\n\t\t\t\tprocessGradeItemData(splitString);\r\n\t\t\t\tSystem.out.println(\"'GRADEITEM' has been found in the file.\");\r\n\t\t\t\t\r\n\t\t\t} // End if\r\n\t\t} // End while\r\n\t\t\r\n\t\t// Close the file\r\n\t\tscnr.close();\r\n\t\t\t\r\n\t}", "public void readFromFile() {\n\n\t}", "void readFile()\n {\n Scanner sc2 = new Scanner(System.in);\n try {\n sc2 = new Scanner(new File(\"src/main/java/ex45/exercise45_input.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (sc2.hasNextLine()) {\n Scanner s2 = new Scanner(sc2.nextLine());\n while (s2.hasNext()) {\n //s is the next word\n String s = s2.next();\n this.readFile.add(s);\n }\n }\n }", "public static void readfile() {\r\n\t\t// read input file\r\n\t\ttry {\r\n\t\t File inputObj = new File(\"input.txt\");\r\n\t\t Scanner inputReader = new Scanner(inputObj);\r\n\t\t int i = 0;\r\n\t\t while (inputReader.hasNextLine()) {\r\n\t\t String str = inputReader.nextLine();\r\n\t\t str = str.trim();\r\n\t\t if(i == 0) {\r\n\t\t \tnumQ = Integer.parseInt(str);\r\n\t\t \torign_queries = new String[numQ];\r\n\t\t \t//queries = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(i == numQ + 1) {\r\n\t\t \tnumKB = Integer.parseInt(str);\r\n\t\t \torign_sentences = new String[numKB];\r\n\t\t \t//sentences = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(0 < i && i< numQ + 1) {\t\r\n\t\t \torign_queries[i-1] = str;\r\n\t\t \t//queries.add(toCNF(str));\r\n\t\t }\r\n\t\t else {\r\n\t\t \torign_sentences[i-2-numQ] = str;\r\n\t\t \t//sentences.add(toCNF(str));\r\n\t\t }\t\t \r\n\t\t i++;\r\n\t\t }\r\n\t\t inputReader.close();\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t System.out.println(\"An error occurred when opening the input file.\");\r\n\t\t }\r\n\t}", "public List<RankList> readInput(String inputFile) {\n/* 661 */ return FeatureManager.readInput(inputFile, mustHaveRelDoc, useSparseRepresentation);\n/* */ }", "public void readFile(File inputFile) throws IOException {\n\t\tCSVParser csvParser = CSVParser.parse(inputFile, charset, csvFormat);\n\t\trecordList = csvParser.getRecords();\n\t}", "public void readIn(String file) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Initialise loop variable **/\r\n\r\n\t\t\tusedSize = 0;\r\n\r\n\t\t\t/** Set up file for reading **/\r\n\r\n\t\t\tFileReader reader = new FileReader(file);\r\n\r\n\t\t\tScanner in = new Scanner(reader);\r\n\r\n\t\t\t/** Loop round reading in data while array not full **/\r\n\r\n\t\t\twhile (in.hasNextInt() && (usedSize < size)) {\r\n\r\n\t\t\t\tA[usedSize] = in.nextInt();\r\n\r\n\t\t\t\tusedSize++;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\tSystem.out.println(\"Error processing file \" + file);\r\n\r\n\t\t}\r\n\r\n\t}", "private void ReadInputFile(String filePath){\n String line;\n\n try{\n BufferedReader br = new BufferedReader(new FileReader(filePath));\n while((line = br.readLine()) != null){\n //add a return at each index\n inputFile.add(line + \"\\r\");\n }\n\n\n }catch(IOException ex){\n System.out.print(ex);\n }\n\n }", "public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }", "public void readFile() {\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString currentLine;\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\r\n\t\t\t\tif (!currentLine.equals(\"\")) {\r\n\t\t\t\t\tString[] paragraphs = currentLine.split(\"\\\\n\\\\n\");\r\n\r\n\t\t\t\t\tfor (String paragraphEntry : paragraphs) {\r\n\t\t\t\t\t\t//process(paragraphEntry);\r\n\t\t\t\t\t\t//System.out.println(\"Para:\"+paragraphEntry);\r\n\t\t\t\t\t\tParagraph paragraph = new Paragraph();\r\n\t\t\t\t\t\tparagraph.process(paragraphEntry);\r\n\t\t\t\t\t\tthis.paragraphs.add(paragraph);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)br.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "Auditorium(java.util.Scanner input, java.io.File file){\r\n\t\t\r\n\t\tString line = input.next(); // read in next line from file // or nextLine()\r\n\t\tboolean flag = true;\r\n\t\tcolumns = line.length();\r\n\t\twhile(line != \"\" && flag != false) {\r\n\t\t\trows++; // increment number of rows\r\n\t\t\tif (!input.hasNext())\r\n\t\t\t\tflag = false;\r\n\t\t\tparseLine(line, rows, columns); // send line, array, and rows to a parse function\r\n\t\t\tif(input.hasNext())\r\n\t\t\t\tline = input.next(); //read in next line\r\n\t\t}\r\n\t}", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public void processInput(String theFile){processInput(new File(theFile));}", "private void readInter() throws FileNotFoundException {\n\t\t\r\n\t\tFile file = new File(\"input.txt\");\r\n\r\n\t\tScanner input = new Scanner(file);\r\n\r\n\t\twhile (input.hasNext()) {\r\n\r\n\t\t\tint x = input.nextInt();\r\n\t\t\tint y = input.nextInt();\r\n\t\t\t\r\n\t\t\tintervals.add(new Point(x, y));\r\n\t\t}\r\n\t\t\r\n\t\t//Close 'input.txt'\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "public void readData(String infile) throws Exception {\r\n \t\tScanner in = new Scanner(new FileReader(infile));\r\n \t}", "@Override\n public Ini read(File file) throws IOException {\n try ( Reader reader = new FileReader(file)) {\n return read(reader);\n }\n }", "public static void main (String[] args) throws IOException\n {\n Scanner fileScan, lineScan;\n String fileName;\n\n Scanner scan = new Scanner(System.in);\n\n System.out.print (\"Enter the name of the input file: \");\n fileName = scan.nextLine();\n fileScan = new Scanner(new File(fileName));\n\n // Read and process each line of the file\n\n\n\n\n }", "public List<Task> readFile() throws FileNotFoundException, DukeException {\n List<Task> output = new ArrayList<>();\n Scanner sc = new Scanner(file);\n while (sc.hasNext()) {\n output.add(readTask(sc.nextLine()));\n }\n return output;\n }", "public abstract void readFromFile( ) throws Exception;", "@Override\n public Ini read(Path path) throws IOException {\n try (Reader reader = Files.newBufferedReader(path)) {\n return read(reader);\n }\n }", "@Override\r\n\tpublic DocumentData read(File in) throws Exception {\r\n\t\tDocumentData doc = new DocumentData(in);\r\n\t\tBufferedReader reader = FileHandler.getBufferedReader(in);\r\n\t\tBufferedReader nested = null;\r\n\t\tString inpath = in.getAbsolutePath();\r\n\t\tFile nestin = new File (inpath.substring(0,inpath.length()-5)+SUBSUFFIX);\r\n\t\tif(nestin.exists())\r\n\t\t\tnested = FileHandler.getBufferedReader(nestin);\r\n\t\tint lcnt=0;\r\n\t\tint scnt=0;\r\n\t\tint start=-1;\r\n\t\tint nstart = -1;\r\n\t\tSentenceData sent = null;\r\n\t\twhile(true){\r\n\t\t\tString line = reader.readLine();\r\n\t\t\tString nline = null;\r\n\t\t\tif(nested!=null)\r\n\t\t\t\tnline = nested.readLine();\r\n\t\t\tif(line==null) {\r\n\t\t\t\tif(sent!=null){\r\n\t\t\t\t\tdoc.addSentenceData(sent);\r\n\t\t\t\t\tsent=null;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tline = line.trim();\r\n\t\t\tlcnt++;\r\n\t\t\tif(line.length()==0){\r\n\t\t\t\tif(sent!=null){\r\n\t\t\t\t\tdoc.addSentenceData(sent);\r\n\t\t\t\t\tsent=null;\r\n\t\t\t\t\tscnt=0;\r\n\t\t\t\t}else\r\n\t\t\t\t\tSystem.out.println(\"Skip empty line in line:\"+lcnt);\r\n\t\t\t}else if(line.startsWith(\"#\")){\r\n\t\t\t\tSystem.out.println(\"Skip comments in line:\"+lcnt+\"; \"+line);\r\n\t\t\t}else{\r\n\t\t\t\tif(sent==null)\r\n\t\t\t\t\tsent = new SentenceData();\r\n\t\t\t\tscnt++;\r\n\t\t\t\t\r\n\t\t\t\tString tmp[] = line.split(\"\\t\");\r\n\t\t\t\tsent.addTokens(tmp[0]);\r\n\t\t\t\tString mark = tmp[tmp.length-1];// last column is the markables;\r\n\t\t\t\tif(mark.equals(\"O\")){\r\n\t\t\t\t\tif(start>=0)\r\n\t\t\t\t\t\tsent.addMarkables(start, scnt-1);\r\n\t\t\t\t\tstart=-1;\r\n\t\t\t\t}else if(mark.startsWith(\"I-\")||mark.startsWith(\"B-\")){\r\n\t\t\t\t\tif(start<0)\r\n\t\t\t\t\t\tstart = scnt;//support both IOB1 and IOB2\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthrow new Exception(\"Please input only IOB or IOB2 scheme (main): \"+lcnt+\": \"+line);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nline!=null){\r\n\t\t\t\t\tString ntmp[] = nline.split(\"\\t\");\r\n\t\t\t\t\tString nmark = ntmp[ntmp.length-1];\r\n\t\t\t\t\tif(nmark.equals(\"O\")){\r\n\t\t\t\t\t\tif(nstart>=0)\r\n\t\t\t\t\t\t\tsent.addMarkables(start, scnt-1);\r\n\t\t\t\t\t\tnstart=-1;\r\n\t\t\t\t\t}else if(nmark.startsWith(\"I-\")||nmark.startsWith(\"B-\")){\r\n\t\t\t\t\t\tif(nstart<0)\r\n\t\t\t\t\t\t\tnstart = scnt;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthrow new Exception(\"Please input only IOB or IOB2 scheme (nested): \"+lcnt+\": \"+nline);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn doc;\r\n\t}", "public void openFile(){\n\t\ttry{\n\t\t\t//input = new Scanner (new File(\"input.txt\")); // creates file \"input.txt\" or will rewrite existing file\n\t\t\tFile inFile = new File(\"input.txt\");\n\t\t\tinput = new Scanner(inFile);\n\t\t\t//for (int i = 0; i < 25; i ++){\n\t\t\t\t//s = input.nextLine();\n\t\t\t\t//System.out.println(s);\n\t\t\t//}\n\t\t}catch (SecurityException securityException){ // catch errors\n\t\t\tSystem.err.println (\"You do not have the write access to this file.\");\n\t\t\tSystem.exit(1);\n\t\t}catch (FileNotFoundException fnf){// catch errors\n\t\t\tSystem.err.println (\"Trouble opening file\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "protected abstract void readFile();", "public void inputForAnalysis() throws IOException\n {\n ArrayList<String> words = new ArrayList<String>(0);\n \n File fileName = new File(\"ciphertext.txt\");\n Scanner inFile = new Scanner(fileName);\n \n int index = 0;\n while(inFile.hasNext())\n {\n words.add(inFile.next());\n index++;\n }\n inFile.close();\n analyze(words);\n }", "public void read(){\n assert(inputStream.hasNext());\n\n while(inputStream.hasNextLine()){\n String line = inputStream.nextLine();\n String[] fields = line.split(\";\");\n\n //If Line is address line\n if(fields.length >= 4){\n Address adr = new Address(fields[0], fields[1], fields[2], fields[3]);\n if(fields.length == 5){\n parseGroups(fields[4], adr);\n }\n inputAddressList.add(adr);\n }\n\n //If Line is Group Line\n else if(fields.length <=3){\n Group group = new Group(fields[0], Integer.parseInt(fields[1]));\n if(fields.length == 3){\n parseGroups(fields[2], group);\n }\n inputGroupList.add(group);\n }\n }\n compose();\n assert(invariant());\n }", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void readFile(File file){\n try{\n scan = new Scanner(file);\n while(scan.hasNextLine()){\n String line = scan.nextLine();\n if(line.startsWith(\"//\")){\n continue;\n }\n process(line);\n }\n }catch(IOException e){\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(null);\n alert.setContentText(\"Oops the input was not read properly\");\n alert.showAndWait();\n e.printStackTrace();\n }catch(NullPointerException e){\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(null);\n alert.setContentText(\"Oops the input was not read properly\");\n alert.showAndWait();\n e.printStackTrace();\n \n }\n }", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "private void loadAndProcessInput(){\n transactions_set = new ArrayList<>();\n strItemToInt = new HashMap<>();\n intToStrItem = new HashMap<>();\n \n try{\n BufferedReader br = new BufferedReader(\n new InputStreamReader(\n new FileInputStream(this.inputFilePath)\n ));\n \n String line;\n while((line = br.readLine()) != null){\n String[] tokens = line.split(\" \");\n ArrayList<Integer> itemsId = new ArrayList();\n \n for(String item : tokens){\n if( ! strItemToInt.containsKey(item)){\n strItemToInt.put(item, strItemToInt.size()+1);\n intToStrItem.put(strItemToInt.size(), item);\n }\n itemsId.add(strItemToInt.get(item));\n }\n transactions_set.add(itemsId);\n }\n }\n catch(IOException fnfEx){\n System.err.println(\"Input Error\");\n fnfEx.printStackTrace();\n }\n \n }", "public InputFileReader(String fileName) throws IOException{\n\t\t\n\t\tthis.contentsByLine = new ArrayList<>();\n\t\t\n\t\ttry {\n\t\t\tStream<String> stream = Files.lines(Paths.get(fileName));\n\t\t\tcontentsByLine = stream.collect(Collectors.toList());\n\t\t\tstream.close();\n\t\t} catch(IOException e) {\n\t\t\tthrow e;\n\t\t}\n\t}", "public void readFile();", "public void fileRead(String filename) throws IOException;", "public static void reading(String fileName)\n {\n\n }", "public static void main(String[] args) throws FileNotFoundException {\n\n\t\t// define a file object for the file on our computer we want to read\n\t\t// provide a path to the file when defining a File object\n\t\t//\n\t\t// paths can be: absolute - code all the parts from the root folder of your OS (Windows)\n\t\t//\n\t\t// paths can be: relative - code the part from the assumed current position to the file\n\t\t//\n\t\t// absolute paths should be avoided - they tightly couple the program to the directory structure it was created on\n\t\t//\t\t\t\t\t\t\t\t\t\t\tif the program is run on a machine with a different directory structure it won't work\n\t\t//\t\t\t\t\t\t\t\t\t\t\t\tbecause the absolute path doesn't exist in a different directory structure\n\t\t//\n\t\t// relative paths are preferred because you have loosely coupled the file to the directory structure\n\t\t//\t\t\tit is more likely that the relative paths will be the same from machine to machine\n\t\t//\n\t\t// path: . = current directory\n\t\t//\t\t/ = then (sub-directory or file follows)\n\t\t//\t\tnumbers.txt - file name\n\n\t\tFile theFile = new File(\"./data/numbers.txt\"); // give the File object the path to our file\n\n\t\t// define a scanner for the File object we created for the file on our computer\n\t\tScanner scannerForFile = new Scanner(theFile); // give Scanner the file object we created\n\n\t\tString aLine = \"\"; // hold a line of input from the file\n\n\n\t\tint sum = 0; // hold the sum of the numbers in a line\n\n\t\t// if we want to get all the lines in the file\n\t\t// we need to go through and get each line in the file one at a time\n\t\t// but we can't get a line from the file if there are no more lines in the file\n\t\t// we can use the Scanner class hasNextLine() method to see if there is another line in the file\n\t\t// we can set a loop to get a line from the file and process it as long as there are lines in the file\n\t\t// we will use while loop since we want loop based on a condition (as long as there are line in the file)\n\t\t// \t\t\tand not a count of lines in the file, in which case we would use a for-loop\n\t\t//\t\t\t\tfor-each-loops only work for collection classes\n\n\t\t// add up each line from my file\n\t\t// the file has one or more numbers separated by a single space in each line\n\n\t\twhile (scannerForFile.hasNextLine()) { // loop while there ia a line in the file\n\n\t\t\taLine = scannerForFile.nextLine(); // get a line from the file and store it in aLine\n\n\t\t\t// break apart the numbers in the line based on spaces\n\t\t\t// String .split() will create an array of Strings of the values separated by the delimiter\n\n\t\t\tString[] theNumbers = aLine.split(\" \"); // break apart the numbers in the line based on spaces\n\n\t\t\tSystem.out.println(\"Line from the file: \" + aLine); // display the line from the file\n\n\t\t\t// reset teh sum to 0 to clear it of the value from the last time through the loop\n\t\t\tsum = 0;\n\n\t\t\t// loop through the array of Strings holding the numbers from the line in the file\n\n\t\t\tfor (String aNumber : theNumbers) { // aNumber will hold the current element that is in the array\n\t\t\t\t\tsum = sum + Integer.parseInt(aNumber); // add the number to a sum after converting the String to an int\n\t\t\t}\n\n\t\t\t// now that we have the sum, we can display it\n\n\t\t\tSystem.out.println(\"Sum of the numbers is: \" + sum);\n\t\t\tSystem.out.println(\"Average of the numbers is: \" + sum / theNumbers.length);\n\n\t\t} // end of while loop\n\n\n\t\t\n}", "@Override\n public void parse() {\n if (file == null)\n throw new IllegalStateException(\n \"File cannot be null. Call setFile() before calling parse()\");\n\n if (parseComplete)\n throw new IllegalStateException(\"File has alredy been parsed.\");\n\n FSDataInputStream fis = null;\n BufferedReader br = null;\n\n try {\n fis = fs.open(file);\n br = new BufferedReader(new InputStreamReader(fis));\n\n // Go to our offset. DFS should take care of opening a block local file\n fis.seek(readOffset);\n records = new LinkedList<T>();\n\n LineReader ln = new LineReader(fis);\n Text line = new Text();\n long read = readOffset;\n\n if (readOffset != 0)\n read += ln.readLine(line);\n\n while (read < readLength) {\n int r = ln.readLine(line);\n if (r == 0)\n break;\n\n try {\n T record = clazz.newInstance();\n record.fromString(line.toString());\n records.add(record);\n } catch (Exception ex) {\n LOG.warn(\"Unable to instantiate the updateable record type\", ex);\n }\n read += r;\n }\n\n } catch (IOException ex) {\n LOG.error(\"Encountered an error while reading from file \" + file, ex);\n } finally {\n try {\n if (br != null)\n br.close();\n\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n LOG.error(\"Can't close file\", ex);\n }\n }\n\n LOG.debug(\"Read \" + records.size() + \" records\");\n }", "private static int[][] readInput() throws Exception {\r\n\t\t\r\n\t\t// Read the input into a array of strings.\r\n\t\tList<String> inputLines = new ArrayList<String>();\r\n\t\tString currLine = \"\";\r\n\t\ttry {\r\n\t\t\t// Read the content of the file into an array of strings.\r\n\t\t\tScanner myScanner = new Scanner(new File(myFileName));\r\n\t\t\twhile((currLine = myScanner.nextLine()) != null) {\r\n\t\t\t\t\r\n\t\t\t\tinputLines.add(currLine);\r\n\r\n\t\t\t\tif (!myScanner.hasNextLine()) {\r\n\t\t\t\t\tmyScanner.close();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Based out of the number of lines in the input file\r\n\t\t\t// create a nXn matrix.\r\n\t\t\tint max = inputLines.size();\r\n\t\t\tint[][] data = new int[max][max];\r\n\t\t\tint count = 0;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < max; i++) {\r\n\t\t\t\tfor (int j = 0; j < max; j++) {\r\n\t\t\t\t\tdata[i][j] = INFINITY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Populate the nXn matrix.\r\n\t\t\tfor(int i = 0; i < inputLines.size(); i++) {\r\n\t\t\t\tcurrLine = inputLines.get(i);\r\n\t\t\t\tString[] splitLine = currLine.split(\"\\t\");\r\n\t\t\t\tfor(int j = 0; j < splitLine.length; j++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdata[count][j] = Integer.parseInt(splitLine[j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (NumberFormatException ex) { \r\n\t\t\t\t\t\t//do nothing\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcount++;\r\n\t\t\t}\t\t\t\r\n\t\t\treturn data;\r\n\t\t\t\r\n\t\t} catch(Exception ex) {\r\n\t\t\tSystem.out.println(ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}", "public void parseInputFile(String filename) throws BadInputFormatException {\r\n\t\tString line;\r\n\r\n\t\ttry {\r\n\t\t\tInputStream fis = new FileInputStream(filename);\r\n\t\t\tInputStreamReader isr = new InputStreamReader(fis);\r\n\t\t\tBufferedReader br = new BufferedReader(isr);\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tparseMessage(line);\r\n\t\t\t}\r\n\t\t\tbr.close();\r\n\t\t} catch (FileNotFoundException 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 void readMapFile(Scanner input) {\n this.height = input.nextInt();\n this.width = input.nextInt();\n if((this.height >= 20 && this.height <= 50) && (this.width >= 20 && this.width <= 50)) \n {\t \n\t while(input.hasNext())\n\t {\n\t this.map += input.next();\n\t }\n\t input.close();\n }\n else\n {\n \tSystem.err.println(\"Map you have chosen is corrupted, please report this map to your neareast administrator\");\n \tSystem.exit(1);\n }\n \t\n }", "protected void readAndProcessInFile() throws IOException {\r\n\r\n\t\tfinal String LINE_PROMPT = \"\\nPlease enter a line; a command must start with a \"\r\n\t\t\t\t+ Editor.COMMAND_START + \".\";\r\n\r\n\t\tString result = new String();\r\n\r\n\t\tfileWriter.println(LINE_PROMPT);\r\n\t\tString line = fileReader.readLine();\r\n\t\twhile (line != null) {\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tfileWriter.println(line);\r\n\t\t\t\tresult = editor.interpret(line);\r\n\r\n\t\t\t} // try\r\n\t\t\tcatch (RuntimeException e) {\r\n\r\n\t\t\t\tfileWriter.println(e);\r\n\r\n\t\t\t} // catch\r\n\t\t\tif (line.equals(Editor.DONE_COMMAND))\r\n\t\t\t\tfileWriter.println(result);\r\n\t\t\telse\r\n\t\t\t\tfileWriter.println(LINE_PROMPT);\r\n\t\t\tline = fileReader.readLine();\r\n\t\t} // while\r\n\t\tfileWriter.close();\r\n\r\n\t}", "public static void readDataFile(String INPUT_FILENAME) {\r\n File dataFile = new File(INPUT_FILENAME);\r\n Scanner fileScanner = null;\r\n String oneLine;\r\n String [] lineValues;\r\n int lineCount = 0;\r\n \r\n System.out.println(\"Reading data file...\");\r\n System.out.println();\r\n \r\n try {\r\n fileScanner = new Scanner(dataFile);\r\n }\r\n catch (FileNotFoundException e) {\r\n System.err.println(\"FILE NOT FOUND: \" + INPUT_FILENAME);\r\n System.exit(1);\r\n }\r\n \r\n while (fileScanner.hasNextLine()) {\r\n oneLine = fileScanner.nextLine();\r\n lineValues = oneLine.split(\",\");\r\n lineCount++;\r\n \r\n if (lineValues[0].equalsIgnoreCase(\"REALTOR\")) {\r\n if (lineValues[1].equalsIgnoreCase(\"ADD\")) {\r\n addRealtor(lineValues);\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"formatted correctly to ADD an object.\");\r\n }\r\n } else if (lineValues[0].equalsIgnoreCase(\"PROPERTY\")) {\r\n if (lineValues[1].equalsIgnoreCase(\"ADD\")) {\r\n addProperty(lineValues);\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"formatted correctly to ADD an object.\");\r\n }\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"designated as REALTOR or PROPERTY.\");\r\n }\r\n }\r\n \r\n //Close data file\r\n fileScanner.close();\r\n \r\n System.out.println();\r\n System.out.println(\"Data Read Finished: Read \" + lineCount \r\n + \" lines of data.\");\r\n System.out.println();\r\n }", "private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }", "public static void processDataFile() {\n final String INPUT_FILENAME = \"input/assn6input1.txt\";\n File inputFile = null;\n Scanner inputScanner = null;\n System.out.println(\"Reading data from file: \" + INPUT_FILENAME);\n System.out.println();\n try {\n inputFile = new File(INPUT_FILENAME);\n inputScanner = new Scanner(inputFile);\n } catch(FileNotFoundException e) {\n System.err.println(\"Error opening file \" + INPUT_FILENAME);\n }\n while(inputScanner.hasNext()) {\n String[] dataLine = inputScanner.nextLine().split(\",\");\n // Is the first token \"REALTOR\"?\n if(dataLine[0].toUpperCase().equals(\"REALTOR\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addRealtor(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteRealtor(dataLine[2]);\n }\n else {\n \n }\n }\n // Is the first token \"PROPERTY\"?\n else if(dataLine[0].toUpperCase().equals(\"PROPERTY\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addProperty(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteProperty(Integer.parseInt(dataLine[2]));\n }\n else {\n \n }\n } else {\n // not realtor or property in the first token\n System.out.println(\"\\tNeither realtor, nor property in first\"\n + \" token\");\n }\n }\n inputScanner.close();\n }", "public void input(File inputFile){\n instantiateTable();\n try{\n String line = \"\";\n //method to scan certain words between 2 delimiting characters, usually blank lines or white spaces or tabs.\n Scanner read = new Scanner(inputFile).useDelimiter(\"\\\\W+|\\\\n|\\\\r|\\\\t|, \");\n //while there is a next word, keeps reading the file \n while (read.hasNext()){\n line = read.next().toLowerCase();\n LLNodeHash words = new LLNodeHash(line, 1, null);\n add(words);\n }\n read.close();\n }\n catch (FileNotFoundException e){\n System.out.print(\"Not found\");\n e.printStackTrace();\n }\n System.out.println(hashTable.length);\n System.out.println(space());\n System.out.println(loadFactor);\n System.out.println(collisionLength());\n print();\n }", "public static void readInFile(Scanner inFile) {\n\t\twhile(inFile.hasNext()) {\n\t\t\tString strIn = inFile.nextLine();\n\t\t\tSystem.out.println(strIn);\n\t\t}\n\t\tinFile.close();\n\t}", "@Override\n @SneakyThrows\n public void process() {\n process(new FileReader(new File(fileName)));\n }", "private int inputFile(Integer parameterIndex) throws ExceptionMalformedInput\n {\n this.inputFile = parseParameter(args, parameterIndex+1);\n//TODO check that the file exists and is readable\n return parameterIndex + 1;\n }", "public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void openInput(String file)\r\n\t{\n\t\ttry{\r\n\t\t\tfstream = new FileInputStream(file);\r\n\t\t\tin = new DataInputStream(fstream);\r\n\t\t\tis = new BufferedReader(new InputStreamReader(in));\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\r\n\t}", "public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }", "private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }", "@Override\n protected void read(){\n try(BufferedReader bufferedReader = new BufferedReader(new FileReader(getPath()));) {\n\n String frequencyString;\n\n String frequencyFileFormat = \"([a-z]\\\\s\\\\d+\\\\.\\\\d+)\";\n Pattern pattern = Pattern.compile(frequencyFileFormat);\n Matcher matcher;\n\n String[] frequency;\n\n // Read in each line of the frequencies file\n while ((frequencyString = bufferedReader.readLine()) != null) {\n // Match the frequency format to a individual frequency\n matcher = pattern.matcher(frequencyString);\n if(matcher.find()){\n\n // Split the string into the character and its frequency\n frequency = matcher.group(1).split(\" \");\n\n // Add the string and its corresponding frequency to the frequencies hash map\n frequencies.put(frequency[0], Double.parseDouble(frequency[1]));\n \n }\n }\n\n // Only set to true if it successfully reads the whole file\n setFileRead();\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }", "public void read() throws IOException {\n\t\twhile (this.in.getReadBytes() != size) {\n\t\t\tString chunkID;\n\t\t\ttry {\n\t\t\t\tchunkID = readString(4);\n\t\t\t} catch (EmptyReadException e) {\n\t\t\t\t/**\n\t\t\t\t * T4L bug 15259: Some encoders must write a byte \"0\" to signify\n\t\t\t\t * EOF?\n\t\t\t\t */\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong chunkSize = readLong(4);\n\t\t\treadChunk(chunkID, chunkSize);\n\t\t}\n\t}", "public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void readFileByLines(String inputName){\n File file = new File(inputName);\n BufferedReader reader = null;\n\n try {\n reader = new BufferedReader(new FileReader(file));\n\n String tempString = null;\n this.inputContent = new StringBuilder();\n\n while((tempString = reader.readLine()) != null){\n this.inputContent.append(tempString);\n this.inputContent.append(\" \");\n }\n\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }\n }", "@Override\n\tprotected List<String> performScanning(String inputFilePath) {\n\t\tList<String> resultList = App.fileParser(inputFilePath);\n\t\treturn resultList;\n\t}", "public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }", "public static void main(String[] args) throws IOException {\n\t\t FileInputStream file=new FileInputStream(\"C:\\\\Users\\\\DELL\\\\Desktop\\\\test.txt\");\r\n Scanner scan=new Scanner(file);\r\n while(scan.hasNextLine()){\r\n \t System.out.println(scan.nextLine());\r\n }\r\n \r\n file.close();\r\n\t}", "private void openAndReadFile() throws IOException {\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textreader = new BufferedReader(fr);\n\t\tString line;\n\t\tString[] parsedLine;\n\t\twhile ((line = textreader.readLine()) != null) {\n\t\t\tparsedLine = pattern.split(line);\n\t\t\tif (parsedLine.length == 2) {\n\t\t\t\tfileData.put(parsedLine[0], parsedLine[1]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Couldn't read line \" + line + \" in \" + path);\n\t\t\t}\n\t\t}\n\t\ttextreader.close();\n\t\tfr.close();\n\t}", "void readMap()\n {\n try {\n FileReader\t\tmapFile = new FileReader(file);\n StringBuffer\tbuf = new StringBuffer();\n int\t\t\t\tread;\n boolean\t\t\tdone = false;\n \n while (!done)\n {\n read = mapFile.read();\n if (read == -1)\n done = true;\n else\n buf.append((char) read);\n }\n \n mapFile.close();\n \n parseMap(buf.toString());\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not read the map file data.\", ErrorHandler.ERR_OPEN_FAIL);\n }\n }", "private static void readFileIntoArray (String inputFileName) {\n Path path = Paths.get(inputFileName);\n array = new int[countLines(inputFileName)];\n try {\n Scanner sc = new Scanner(path);\n int i = 0;\n while (sc.hasNextLine()) {\n array[i] = Integer.parseInt(sc.nextLine());\n i++;\n }\n sc.close();\n //sort the array\n MergeSort.mergeSort(array);\n }\n catch(FileNotFoundException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n catch(IOException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n }", "static void experiment1Day1Part1() {\n\n File file = new File(\"src/main/java/weekone/input01.txt\");\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n int sum = 0;\n\n try {\n fileReader = new FileReader(file);\n bufferedReader = new BufferedReader(fileReader);\n\n while ((bufferedReader.read() != -1)) {\n String line = bufferedReader.readLine();\n System.out.println(\"\\nThe string is: \" + line);\n int number = Integer.valueOf(line);\n\n System.out.println(\"The number is: \" + number);\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fileReader != null)\n fileReader.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n System.out.println(\"The sum is: \" + sum);\n }", "public void readFile()\r\n\t{\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tx = new Scanner(new File(\"clean vipr measles results.txt\"));\r\n\t\t\t\r\n\t\t\twhile (x.hasNext())\r\n\t\t\t{\r\n\t\t\t\tString a = x.next();\r\n\t\t\t\tString b = x.next();\r\n\t\t\t\tString c = x.next();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.printf(\"%s %s %s \\n\\n\", a,b,c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tx.close();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"file not found\");\r\n\t\t}\r\n\t\r\n\t}", "public void readFile(String name) {\n\t\tString filename = this.path + name;\n\t\tFile file = new File(filename);\n\t\t\n\t\t\n\t\ttry {\t\t \n\t\t\tScanner reader = new Scanner(file);\n\t\t\t\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\tString data = reader.nextLine();\n\t\t System.out.println(data);\n\t\t\t}\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t System.out.println(\"File not found!\");\n\t\t} \n\t}", "private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\n }", "public void readFile(String file)\n\t{\t\n\t\tfindPieces(file);\n\t}", "public void readAll() throws FileNotFoundException{ \n b = new BinaryIn(this.filename);\n this.x = b.readShort();\n this.y = b.readShort();\n \n int count = (x * y) / (8 * 8);\n this.blocks = new double[count][8][8][3];\n \n Node juuri = readTree();\n readDataToBlocks(juuri);\n }", "private static void readFile() throws IOException\r\n\t{\r\n\t\tString s1;\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\r\n\t\tSystem.out.println(\"\\ndbs3.txt File\");\r\n\t\twhile ((s1 = br.readLine())!=null)\r\n\t\t{\r\n\t\t\tSystem.out.println(s1);\r\n\t\t}//end while loop to read files\r\n\t\t\r\n\t\tbr.close();//close the buffered reader\r\n\t}", "private void readFile (String file, Visitor visitor) throws Exception {\n\t\tFileReader fr = new FileReader (file);\n\t\tBufferedReader reader = new BufferedReader (fr);\n\n\t\tSystem.out.println (\"Reading file \" + file);\n\n\t\tint count = 0;\n\t\tfor (String line; (line = reader.readLine()) != null;) {\n\t\t\tif (count++ % 10000 == 0) System.out.println (line);\n\t\t\tvisitor.visit (line);\n\n\t\t\tif (count >= LIMIT) break;\n\t\t}\n\n\t\tSystem.out.println (\"Done\");\n\n\t\treader.close();\n\t\tfr.close();\n\t}", "public static void files(Scanner input) throws FileNotFoundException { \n File inputName = inputVerify(input); // call inputVerify method to get the name of the input file \n\n System.out.print(\"Output file name: \"); // ask user for output file name and save it to outputFile variable \n\t\tString outputName = input.next();\n\n Scanner inputFile = new Scanner(inputName); // reads input file\n\n // creates a new PrintStream object to print to the output file\n PrintStream output = new PrintStream(new File(outputName)); \n\n // while loop that runs as long as the input file has another line\n while (input.hasNextLine()){\n String line = inputFile.nextLine(); // reads entire line\n output.println(line + \":\"); // prints name to file\n String scoreLine = inputFile.nextLine(); // reads next line\n abCount(scoreLine, output); // call abCount method\n }\n }", "public void readFile(String filename) throws IOException {\n BufferedReader buffer = new BufferedReader(new FileReader(filename));\n\n String line;\n int row = 0;\n isFirstLine = true;\n\n while ((line = buffer.readLine()) != null) {\n String[] vals = line.trim().split(\"\\\\s+\");\n int length = vals.length;\n \n if(isFirstLine) {\n \tfor(int col = 0; col < 2; col++) {\n \t\tif(col == 0)\n \t\t\trowSize = Integer.parseInt(vals[col]);\n \t\telse\n \t\t\tcolSize = Integer.parseInt(vals[col]);\n \t}\n \tskiMap = new int[rowSize][colSize];\n \tisFirstLine = false;\n }\n else {\n \tfor (int col = 0; col < length; col++) {\n \tskiMap[row][col] = Integer.parseInt(vals[col]);\n }\n \t row++;\n }\n }\n \n if(buffer != null)\n \tbuffer.close();\n }", "private List<Integer> parseFile(Scanner input) {\n mySimType = input.next();\n myCellShape = input.next();\n neighborPolicy = input.next();\n edgePolicy = input.next();\n isOutlined = input.next();\n initialConfig = input.next();\n\n myNumStates = input.nextInt();\n myStateMap = new HashMap<>();\n for (int i = 0; i < myNumStates; i++){\n var name = input.next();\n var type = input.nextInt();\n var colorString = input.next();\n var image = input.next();\n var prob = Double.parseDouble(input.next());\n var amt = input.nextInt();\n State s = new State(name, type, Color.valueOf(colorString), image, prob, amt);\n myStateMap.put(type, s);\n }\n\n numCols = input.nextInt();\n numRows = input.nextInt();\n\n checkValid();\n\n return getResults(input);\n }", "private void parseInputFile(String inputFile) throws IOException {\n List<String> lines = Files.readAllLines(FileSystems.getDefault().getPath(inputFile), Charset.defaultCharset());\n for (int i = 1; i < lines.size(); ++i) {\n ParsedRecord record = new ParsedRecord(lines.get(i));\n if (!this.parsedRecords.containsKey(record.docName)) {\n this.parsedRecords.put(record.docName, new ArrayList<ParsedRecord>());\n }\n this.parsedRecords.get(record.docName).add(record);\n\n if (!this.docToMaxPosition.containsKey(record.docName) ||\n this.docToMaxPosition.containsKey(record.docName) && this.docToMaxPosition.get(record.docName) < record.position) {\n this.docToMaxPosition.put(record.docName, record.position);\n }\n }\n }", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "public static void readMyFile() throws IOException {\n\n List<String> allLines = Files.readAllLines(Paths.get(\"src/ErfansInputFile\"));\n System.out.println(\"allLines = \" + allLines);\n System.out.println(\"Reading the file in my computer. \");\n\n throw new FileNotFoundException(\"Kaboom, file is not found!!!\");\n }", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public void readFile() throws IOException {\n String line;\n while ((line = fileReader.readLine()) != null) {\n wordStorage.addWords(line);\n }\n }", "private void printInputMessage() {\n System.out.println(\"Printing the input message:\");\n try(BufferedReader inputBuffer = Files.newBufferedReader(inputPath)) {\n String inputLine;\n while((inputLine = inputBuffer.readLine()) != null) {\n System.out.print(inputLine+\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "private boolean parseInput(String fileName)\n {\n try\n {\n Scanner in = new Scanner(new File(fileName));\n\n this.numIntxns = in.nextInt();\n this.roads = new Road[in.nextInt()];\n this.cities = new City[in.nextInt()];\n\n for (int i = 0; i < this.roads.length; i++)\n {\n int start = in.nextInt();\n int end = in.nextInt();\n double length = in.nextDouble();\n\n this.roads[i] = new Road(start, end, length);\n }\n\n for (int i = 0; i < this.cities.length; i++)\n {\n int intersectionNum = in.nextInt();\n String name = in.next();\n\n this.cities[i] = new City(intersectionNum, name);\n }\n\n if (in.hasNextInt())\n {\n this.signs = new Sign[in.nextInt()];\n }\n\n for (int i = 0; i < this.signs.length; i++)\n {\n int start = in.nextInt();\n int end = in.nextInt();\n double length = in.nextDouble();\n\n this.signs[i] = new Sign(start, end, length);\n }\n }\n // lazy catch statement because computer science is hard\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n return false;\n }\n\n return true;\n }", "private void readInFile()\n {\n try\n {\n file = new File(fileAddress);//Create new file from the given file name\n fileScanner = new Scanner(file);//Create a file scanner to scan for all the integers\n }\n catch(FileNotFoundException e) //Throws a FileNotFountException if the given file name doesn't exist\n {\n System.out.println(\"The file \" + fileAddress + \" could not be found\");\n }\n\n int i = 0;\n\n for(int j = 0; j < 1000; j++)\n {\n integerList[j] = fileScanner.nextInt();//Store the next integer from the file in to the integerList\n\n //Check to see if the index is at the end of the array and the file still has more integers,\n //then we reallocate more space for the array.\n\n /* if(i > (integerList.length - 1) && fileScanner.hasNextInt())\n resizeArray();\n i++;*/\n }\n\n /*while(fileScanner.hasNextInt())//Iterate through the file until there are no more integers\n {\n integerList[i] = fileScanner.nextInt();//Store the next integer from the file in to the integerList\n\n //Check to see if the index is at the end of the array and the file still has more integers,\n //then we reallocate more space for the array.\n\n if(i >= (integerList.length - 1) && fileScanner.hasNextInt())\n resizeArray();\n i++;\n }*/\n\n fileScanner.close();//close the scanner\n }", "private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }", "public void readFile() {\n try\n {\n tasksList.clear();\n\n FileInputStream file = new FileInputStream(\"./tasksList.txt\");\n ObjectInputStream in = new ObjectInputStream(file);\n\n boolean cont = true;\n while(cont){\n Task readTask = null;\n try {\n readTask = (Task)in.readObject();\n } catch (Exception e) {\n }\n if(readTask != null)\n tasksList.add(readTask);\n else\n cont = false;\n }\n\n if(tasksList.isEmpty()) System.out.println(\"There are no todos.\");\n in.close();\n file.close();\n }\n\n catch(IOException ex)\n {\n ex.printStackTrace();\n }\n }", "public abstract void runInput(String stringFile) throws IOException;", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\t\n\t\tScanner scan = new Scanner(new File(\"input.txt\"));\n\t\t\n\t\tParser parse;\n\t\tCode code = new Code();\n\t\tSymbolTable st = new SymbolTable();\n\t\t\n\t\twhile(scan.hasNextLine()) {\n\t\t\tString inCode = scan.nextLine();\t\n\t\t\tparse = new Parser(inCode);\n\t\t}\n\t\t\n\t}", "protected abstract void parseFile(File f) throws IOException;", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\tSystem.out.println(parseInputFile());\r\n\t\t\r\n\t}", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "private void loadFromFile() {\n\t\ttry {\n\t\t\tFileInputStream fis = openFileInput(FILENAME);\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\t\t\tString line = in.readLine();\n\t\t\tGson gson = new Gson();\n\t\t\twhile (line != null) {\n\t\t\t\tCounterModel counter = gson.fromJson(line, CounterModel.class);\n\t\t\t\tif (counterModel.getCounterName().equals(counter.getCounterName())) {\n\t\t\t\t\tcounterListModel.addCounterToList(counterModel);\n\t\t\t\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t\t\t\t} else {\n\t\t\t\t\tcounterListModel.addCounterToList(counter);\n\t\t\t\t}\n\t\t\t\tline = in.readLine();\n\t\t\t} \n\t\t\tfis.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public InputData getData() throws IOException {\n\n ObjectMapper mapper = new ObjectMapper();\n return mapper.readValue(Paths.get(inFile).toFile(), InputData.class);\n }", "@Override\n public void readFrom(InputStream in) throws IOException {\n }", "protected void modelRead(){\r\n\t\tthis.model.read(in, null);\r\n\t\tSystem.out.println(\"\\n -- model read finished --\\n\");\r\n\t}", "@Override\n public Ini read(InputStream in) throws IOException {\n return read(new InputStreamReader(in));\n }", "private ArrayList<Integer> fileReader() {\n ArrayList<Integer> data = new ArrayList<>();\n try {\n Scanner scanner = new Scanner(new File(\"andmed.txt\"));\n while (scanner.hasNextLine()) {\n data.add(Integer.valueOf(scanner.nextLine()));\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return data;\n }", "public static void main(String[] args) throws IOException{\n\t\ttry {\r\n\t\t\tDataInputStream inputStream = new DataInputStream(\r\n\t\t\t\t\tnew ByteArrayInputStream(\r\n\t\t\t\t\t\t\tBufferedInputFile.read(\r\n\t\t\t\t\t\t\t\t\t\"C:/Users/cyu088/workspace/javaIO/src/fileIO/BufferedInputFile.java\").getBytes()));\r\n\t\t\twhile(true)\r\n\t\t\t\tSystem.out.println((char)inputStream.readByte());//一次一个字节读取字符,返回值不能用来检测输入是否结束\r\n\t\t} catch (EOFException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(\"end of stream\");\r\n\t\t}\r\n\t}", "public Scanner( String filename ) throws IOException\n {\n sourceFile = new PushbackInputStream(new FileInputStream(filename));\n \n nextToken = null;\n }", "public void read(Scanner input) {\r\n overallRoot = readHelper(input);\r\n }" ]
[ "0.74524784", "0.7029728", "0.6915507", "0.666333", "0.6629724", "0.6365074", "0.63576406", "0.62972564", "0.62791854", "0.62486494", "0.6205116", "0.61359143", "0.6109457", "0.60864055", "0.6024541", "0.6017197", "0.59834236", "0.5982326", "0.5974137", "0.5926409", "0.5918", "0.59171456", "0.590638", "0.59040666", "0.5904032", "0.5895696", "0.584992", "0.58393365", "0.5829005", "0.5803653", "0.57939017", "0.57898176", "0.57882863", "0.5787863", "0.5772124", "0.57628393", "0.57612526", "0.57547253", "0.5741819", "0.5739464", "0.5715565", "0.5706124", "0.56948715", "0.5690629", "0.5688911", "0.56864804", "0.5686363", "0.5642018", "0.5637999", "0.56288314", "0.56286865", "0.5627332", "0.562414", "0.5617955", "0.5613692", "0.56058675", "0.5594531", "0.55935544", "0.55909884", "0.5589401", "0.5565569", "0.5556364", "0.55486923", "0.55426294", "0.5541446", "0.5536756", "0.5522649", "0.5518845", "0.55076295", "0.55022717", "0.5495476", "0.548562", "0.54750794", "0.5471781", "0.54706347", "0.5466637", "0.5465112", "0.5462183", "0.5456564", "0.54541403", "0.5449308", "0.5443175", "0.5441185", "0.5440804", "0.54403204", "0.54392046", "0.54359215", "0.5427429", "0.5418025", "0.54171944", "0.541201", "0.5411911", "0.5410692", "0.54080826", "0.5398033", "0.5395849", "0.53952307", "0.5391203", "0.53911334", "0.53907096", "0.538979" ]
0.0
-1
TODO Autogenerated method stub
@Override public String jobType() { return "productMonitorStat"; }
{ "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
public static EndpointConfig defaultConfigNoParser = defaultConfig(JsonWriter.cheapJson);
public static <J> EndpointConfig<J> defaultConfig(JsonParserAndWriter<J> parserAndWriter) { return new EndpointConfig<J>(Files.getText("header.js"), parserAndWriter, "http://", JavascriptDetailsToString.simple, IMergeJavascriptAndJson.byLinks); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Endpoint getDefaultEndpoint();", "void setDefaultEndpoint(Endpoint defaultEndpoint);", "private static ServerConfigPOJO defaultServerConfig() {\n return ServerConfigParser.readServerConfig();\n }", "Map<String, Object> exportDefaultConfiguration();", "void setDefaultEndpointUri(String endpointUri);", "private Map<String, Object> getDefaultConfiguration() {\n JavaFormattingOptions options = JavaFormattingOptions.createDefault();\n options.ClassBraceStyle = BraceStyle.EndOfLine;\n options.InterfaceBraceStyle = BraceStyle.EndOfLine;\n options.EnumBraceStyle = BraceStyle.EndOfLine;\n\n return ProcyonBuilderConfiguration\n .getBuilderConfiguration()\n .uploadClassReference(true)\n .excludeNestedTypes(false)\n .flattenSwitchBlocks(true)\n .forceExplicitImports(true)\n .forceExplicitTypeArguments(true)\n .setLanguage(new JavaLanguage())\n .setByteCodeOutputOptions(new BytecodeOutputOptions())\n .setJavaFormatterOptions(options)\n .showSyntheticMembers(false)\n .alwaysGenerateExceptionVariableForCatchBlocks(true)\n .includeErrorDiagnostics(false)\n .includeLineNumbersInByteCode(false)\n .retainRedundantCasts(false)\n .retainPointlessSwitches(true)\n .unicodeOutputEnabled(true)\n .showDebugLineNumbers(false)\n .mergeVariables(false)\n .simplifyMemberReferences(true)\n .disableForEachTransforms(false)\n .setForceFullyQualifiedReferences(false)\n .getConfiguration();\n }", "public GameConfig createDefaultConfig() {\n\n return null;\n }", "private static void setDefaultConfig() {\n AgentConfig agentConfig = HypertraceConfig.get();\n OpenTelemetryConfig.setDefault(OTEL_EXPORTER, \"zipkin\");\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_PROPAGATORS, toOtelPropagators(agentConfig.getPropagationFormatsList()));\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_ENDPOINT, agentConfig.getReporting().getEndpoint().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n }", "EndpointBalancerConfig getConfig();", "public static String getDefaultEndpoint() {\n return WorkflowsStubSettings.getDefaultEndpoint();\n }", "public static String getDefaultEndpoint() {\n return \"biglake.googleapis.com:443\";\n }", "@Test\n public void DefaultConfig() {\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate single JWKS\", 1, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "Properties defaultTelemetryConfig();", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void init(EndpointConfig arg0) {\n\t\t\r\n\t}", "@Deprecated\n public Object getDefault(String path) {return defaultConfig.get(path); }", "@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}", "public RelyingPartyConfiguration getDefaultRelyingPartyConfiguration();", "public static ElasticLoadConfig buildConfig(CommandLine cmd, String defaultLocation) {\n ElasticLoadConfig config = new ElasticLoadConfig();\n\n config.setTerminology(cmd.getOptionValue('t'));\n config.setForceDeleteIndex(cmd.hasOption('f'));\n if (cmd.hasOption('d')) {\n String location = cmd.getOptionValue('d');\n if (StringUtils.isBlank(location)) {\n logger.error(\"Location is empty!\");\n\n }\n if (!location.endsWith(\"/\")) {\n location += \"/\";\n }\n logger.info(\"location - {}\", location);\n config.setLocation(location);\n } else {\n config.setLocation(defaultLocation);\n }\n\n return config;\n }", "private ApiConfig() {\n }", "void configureEndpoint(Endpoint endpoint);", "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "@Test\n public void testDetectTestDefaults() throws Exception {\n\n Config testConfig = ConfigFactory.load(\"componentTest\");\n\n StreamsConfigurator.addConfig(testConfig);\n\n ComponentConfigurator<ComponentConfiguration> configurator = new ComponentConfigurator<>(ComponentConfiguration.class);\n ComponentConfiguration defaultPojo = configurator.detectConfiguration();\n\n assert(defaultPojo != null);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration(testConfig.getConfig(\"configuredComponent\"));\n\n assert(configuredPojo != null);\n\n }", "@Override\n public AbstractConfiguration getEmptyConfiguration(\n DefaultConfigurationBuilder.ConfigurationDeclaration decl) throws Exception\n {\n throw new Exception(\"Unable to create configuration!\");\n }", "@Override\n public String getDefaultConfigName() {\n return defaultConfigFileName;\n }", "public interface PreconfiguredEndpoint {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the description property: The description of the endpoint.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the endpoint property: The endpoint that is preconfigured.\n *\n * @return the endpoint value.\n */\n String endpoint();\n\n /**\n * Gets the endpointType property: The type of endpoint.\n *\n * @return the endpointType value.\n */\n EndpointType endpointType();\n\n /**\n * Gets the backend property: The preconfigured endpoint backend.\n *\n * @return the backend value.\n */\n String backend();\n\n /**\n * Gets the inner com.azure.resourcemanager.frontdoor.fluent.models.PreconfiguredEndpointInner object.\n *\n * @return the inner object.\n */\n PreconfiguredEndpointInner innerModel();\n}", "@Bean\n public Docket api(){\n //Enables following endpoints once configured\n //http://localhost:8080/swagger-ui.html\n //http://localhost:8080/v2/api-docs\n return new Docket(DocumentationType.SWAGGER_2)\n //.apiInfo(ApiInfo.DEFAULT)\n .apiInfo(DEFAULT_API_INFO)\n .produces(DEFAULT_PRODUCES_AND_CONSUMES)\n .consumes(DEFAULT_PRODUCES_AND_CONSUMES);\n }", "@Override\n\tpublic Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> arg0) {\n\t\tSet<ServerEndpointConfig> result = new HashSet<>();\n//\t\tif (arg0.contains(EchoEndpoint.class)) {\n//\t\t\tresult.add(ServerEndpointConfig.Builder.create(\n//\t\t\t\t\tEchoEndpoint.class,\n//\t\t\t\t\t\"/websocket/echoProgrammatic\").build());\n//\t\t}\n\n\t\treturn result;\t\n\t}", "@Config.HotReload\n@Config.Sources({\n \"classpath:server.properties\",\n \"file:/tmp/test.properties\"})\npublic interface ServerConfig extends Config {\n\n @DefaultValue(\"${FOO_ENV}\")\n int maxThreads();\n\n @Config.DefaultValue(\"5\")\n int myNumber();\n}", "private OpenApiHandlerConfig(String configName) {\n config = Config.getInstance();\n mappedConfig = config.getJsonMapConfigNoCache(configName);\n setConfigData();\n setConfigMap();\n }", "abstract public ResourceManager getDefaultConfig();", "@Override\n public boolean hasAdditionalConfig() { return true; }", "ShipmentGatewayConfig createShipmentGatewayConfig();", "com.google.protobuf.Any getNewConfig();", "public interface ConfigurationHolder {\n\n /**\n * Gets OpenAPI Gateway host.\n *\n * @return the OpenAPI Gateway host.\n */\n public String getGatewayHost();\n\n /**\n * Gets the App ID.\n *\n * @return the App ID.\n */\n public String getAppId();\n\n /**\n * Gets the merchant number.\n *\n * @return the merchant number.\n */\n public String getMerchantNo();\n\n /**\n * Gets the message format.\n *\n * @return the message format.\n */\n public default String getFormat() {\n return Constants.FORMAT_JSON;\n }\n\n /**\n * Gets the message charset.\n *\n * @return the message charset.\n */\n public default String getCharset() {\n return Constants.CHARSET_UTF8;\n }\n\n /**\n * Gets the API version number.\n *\n * @return the API version number.\n */\n public default String getVersion() {\n return Constants.VERSION_1;\n }\n\n /**\n * Gets the language.\n *\n * @return the language.\n */\n public Language getLanguage();\n\n /**\n * Gets the signature type.\n *\n * @return the signature type.\n */\n public SignType getSignType();\n\n /**\n * Gets the public key (used by RSA only).\n *\n * @return the public key.\n */\n public String getPublicKey();\n\n /**\n * Gets the private key.\n *\n * @return the private key.\n */\n public String getPrivateKey();\n\n /**\n * Gets whether the client supports partial payment.\n * This feature is only available for Snaplii payment.\n *\n * @return true if the client supports partial payment, or false otherwise.\n */\n public boolean isPartialPaymentSupported();\n\n /**\n * Gets the prefix for generating alternative order number when making partial payment.\n *\n * @return the alternative order number prefix.\n */\n public String getAlternativeOrderNumberPrefix();\n\n /**\n * Gets the suffix for generating alternative order number when making partial payment.\n *\n * @return the alternative order number suffix.\n */\n public String getAlternativeOrderNumberSuffix();\n\n /**\n * Gets the connection timeout setting.\n *\n * @return connection timeout in seconds.\n */\n public int getConnectionTimeout();\n\n /**\n * Gets the read timeout setting.\n *\n * @return read timeout in seconds.\n */\n public int getReadTimeout();\n\n /**\n * Validates the configuration.\n *\n * @throws OpenApiConfigurationExcepiton if any configuration is missing.\n */\n public default void validate() throws OpenApiConfigurationExcepiton {\n if (StringUtils.isEmpty(getGatewayHost())) {\n throw new OpenApiConfigurationExcepiton(\"Gateway host is not configured\");\n }\n if (StringUtils.isEmpty(getAppId())) {\n throw new OpenApiConfigurationExcepiton(\"App ID is not configured\");\n }\n if (StringUtils.isEmpty(getMerchantNo())) {\n throw new OpenApiConfigurationExcepiton(\"Merchant number is not configured\");\n }\n if (StringUtils.isEmpty(getFormat())) {\n throw new OpenApiConfigurationExcepiton(\"Format is not configured\");\n }\n if (StringUtils.isEmpty(getCharset())) {\n throw new OpenApiConfigurationExcepiton(\"Charset is not configured\");\n }\n if (getLanguage() == null) {\n throw new OpenApiConfigurationExcepiton(\"Language is not configured\");\n }\n if (getSignType() == null) {\n throw new OpenApiConfigurationExcepiton(\"Signature type is not configured\");\n }\n if (StringUtils.isEmpty(getPrivateKey())) {\n throw new OpenApiConfigurationExcepiton(\"Private key is not configured\");\n }\n if (SignType.RSA == getSignType() && StringUtils.isEmpty(getPublicKey())) {\n throw new OpenApiConfigurationExcepiton(\"Public key is not configured\");\n }\n if (getConnectionTimeout() <= 0 || getConnectionTimeout() > 60) {\n throw new OpenApiConfigurationExcepiton(\"Connection timeout needs to be between 1 and 60\");\n }\n if (getReadTimeout() <= 0 || getReadTimeout() > 60) {\n throw new OpenApiConfigurationExcepiton(\"Read timeout needs to be between 1 and 60\");\n }\n }\n\n}", "PreconfiguredEndpointInner innerModel();", "@Override\n\tpublic Properties getConfig() {\n\t\treturn null;\n\t}", "ServiceConfig getServiceConfig();", "ServiceConfig getServiceConfig();", "public interface ConsumeServiceConfiguration {\n\n /**\n * @return the interfaces of all services that should be consumed\n */\n Set<Class<?>> getServiceInterfaces();\n\n /**\n * Returns the full URL of the server so that the service name only has to be appended to hit the required endpoint.\n * Must not end with a slash.\n */\n String getServerUrl();\n}", "public ConfigProfile buildProfileDefault() {\n this.topics = \"mytopic\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = false;\n this.ack = true;\n this.indexes = \"\";\n this.sourcetypes = \"\";\n this.sources = \"\";\n this.httpKeepAlive = true;\n this.validateCertificates = true;\n this.hasTrustStorePath = true;\n this.trustStorePath = \"./src/test/resources/keystoretest.jks\";\n this.trustStoreType = \"JKS\";\n this.trustStorePassword = \"Notchangeme\";\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"ni=hao,hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = true;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n this.lineBreaker = \"\\n\";\n return this;\n }", "public void init(EndpointConfig arg0) {\n\t\t\n\t}", "JSONConverter getDefaultConverter();", "private OptimoveConfig() {\n }", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "@Override\n public String getFullDefaultConfigName() {\n return getConfigPath() + defaultConfigFileName;\n }", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "@PostConstruct\n\tpublic void config() {\n\t\tthis.configureSwaggerV1();\n\t}", "@Test\n public void testDefaults()\n {\n NearScheme scheme = new NearScheme();\n\n scheme.setBackScheme(new LocalScheme());\n\n assertNotNull(scheme.getServiceBuilder());\n assertEquals(\"auto\", scheme.getInvalidationStrategy(new NullParameterResolver()));\n }", "protected abstract String getBaseEndpoint();", "void overwriteDefaultConfiguration(Map<String, Object> config);", "@Override\n protected Path getConfigurationPath() {\n return null;\n }", "private PSConfigDeNormalizer()\n {\n\n }", "@Override\n public Map<String, Object> getConfigParams() {\n return null;\n }", "public interface AdvancedWorkdayEndpointBuilder\n extends\n AdvancedWorkdayEndpointConsumerBuilder,\n AdvancedWorkdayEndpointProducerBuilder {\n default WorkdayEndpointBuilder basic() {\n return (WorkdayEndpointBuilder) this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder basicPropertyBinding(\n boolean basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder basicPropertyBinding(\n String basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option is a:\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder httpConnectionManager(\n Object httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option will be converted to a\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder httpConnectionManager(\n String httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder synchronous(boolean synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder synchronous(String synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n }", "public OServerConfiguration() {}", "public JTestDefinition allDefaults(){\n return JTestDefinition.builder(Id.of(\"all defaults\"), getEndpoints()).build();\n }", "public void initialConfig() {\n }", "private RelayConfig () {}", "public interface AdvancedWorkdayEndpointConsumerBuilder\n extends\n EndpointConsumerBuilder {\n default WorkdayEndpointConsumerBuilder basic() {\n return (WorkdayEndpointConsumerBuilder) this;\n }\n /**\n * To let the consumer use a custom ExceptionHandler. Notice if the\n * option bridgeErrorHandler is enabled then this option is not in use.\n * By default the consumer will deal with exceptions, that will be\n * logged at WARN or ERROR level and ignored.\n * \n * The option is a: <code>org.apache.camel.spi.ExceptionHandler</code>\n * type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exceptionHandler(\n ExceptionHandler exceptionHandler) {\n doSetProperty(\"exceptionHandler\", exceptionHandler);\n return this;\n }\n /**\n * To let the consumer use a custom ExceptionHandler. Notice if the\n * option bridgeErrorHandler is enabled then this option is not in use.\n * By default the consumer will deal with exceptions, that will be\n * logged at WARN or ERROR level and ignored.\n * \n * The option will be converted to a\n * <code>org.apache.camel.spi.ExceptionHandler</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exceptionHandler(\n String exceptionHandler) {\n doSetProperty(\"exceptionHandler\", exceptionHandler);\n return this;\n }\n /**\n * Sets the exchange pattern when the consumer creates an exchange.\n * \n * The option is a: <code>org.apache.camel.ExchangePattern</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exchangePattern(\n ExchangePattern exchangePattern) {\n doSetProperty(\"exchangePattern\", exchangePattern);\n return this;\n }\n /**\n * Sets the exchange pattern when the consumer creates an exchange.\n * \n * The option will be converted to a\n * <code>org.apache.camel.ExchangePattern</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exchangePattern(\n String exchangePattern) {\n doSetProperty(\"exchangePattern\", exchangePattern);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder basicPropertyBinding(\n boolean basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder basicPropertyBinding(\n String basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option is a:\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder httpConnectionManager(\n Object httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option will be converted to a\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder httpConnectionManager(\n String httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder synchronous(\n boolean synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder synchronous(\n String synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n }", "public interface AdvancedWorkdayEndpointProducerBuilder\n extends\n EndpointProducerBuilder {\n default WorkdayEndpointProducerBuilder basic() {\n return (WorkdayEndpointProducerBuilder) this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder basicPropertyBinding(\n boolean basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder basicPropertyBinding(\n String basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option is a:\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder httpConnectionManager(\n Object httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option will be converted to a\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder httpConnectionManager(\n String httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder synchronous(\n boolean synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder synchronous(\n String synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n }", "default Component getConfigComponent()\r\n {\r\n return null;\r\n }", "RootConfig getConfig();", "@Bean\n public WebSSOProfileOptions defaultWebSSOProfileOptions() {\n final WebSSOProfileOptions webSSOProfileOptions = new WebSSOProfileOptions();\n webSSOProfileOptions.setIncludeScoping(false);\n return webSSOProfileOptions;\n }", "IngestModuleIngestJobSettings getDefaultIngestJobSettings();", "public String getEndpoint() {\n\t\treturn null;\n\t}", "public abstract Configuration configuration();", "@Bean\n @ConditionalOnMissingBean(name = \"defaultSearchServiceTransportChannelProvider\")\n public TransportChannelProvider defaultSearchServiceTransportChannelProvider() {\n if (this.clientProperties.getUseRest()) {\n return SearchServiceSettings.defaultHttpJsonTransportProviderBuilder().build();\n }\n return SearchServiceSettings.defaultTransportChannelProvider();\n }", "protected AmqpTransportConfig() {\n\t\tsuper();\n\t}", "Map<String, String> getEndpointMap();", "com.google.protobuf.Any getOldConfig();", "void importDefaultConfiguration(Map<String, Object> config);", "public void forceDefaultConfig()\n {\n plugin.saveResource(fileName, true);\n }", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "public Config getConfig();", "private Config() {\n }", "private void config() {\n\t}", "protected void initDefaultStrategies() {\n\t\tRedisSerializer<String> keySerializer = new StringRedisSerializer();\n\t\tRedisSerializer<Object> valueSerializer = new JacksonSerializer();\n\t\tsetSerializer(valueSerializer);\n\t\tsetStringSerializer(keySerializer);\n\t}", "@ConditionalOnMissingBean\n @Bean\n public DefaultWebClientErrorDecoder defaultWebClientErrorDecoder(\n ObjectProvider<RestApiExceptionParser> restApiExceptionParser) {\n\n return new DefaultWebClientErrorDecoder(restApiExceptionParser.getIfAvailable());\n }", "@Bean\r\n public Map<String, Object> producerConfig() {\r\n \t\r\n Map<String, Object> producerProperties = new HashMap<String, Object>();\r\n producerProperties.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG,propertiesManager.getBootstrapServer());\r\n producerProperties.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);\r\n producerProperties.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, JsonSerializer.class);\r\n \r\n return producerProperties;\r\n }", "public static boolean getDefaultPrettyPrint()\n {\n return defaults.pretty_print;\n }", "@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }", "public abstract IOpipeConfiguration config();", "public boolean hasEndpoint() { return true; }", "public static DocumentationSettings getDefault(){\n return INSTANCE;\n }", "void setEndpoint(String endpoint);", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n ServiceConfigurationResourceInner get(String resourceUri, String endpointName, String serviceConfigurationName);", "private void loadDefaultConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n } else {\r\n LOG.error(\"Can't load default Scope config from: \" + DEFAULT_CONFIG_NAME);\r\n }\r\n }", "public abstract ModularConfigurationModule<T> getDefaultModule();", "public Builder setEndpoint(String endpoint) {\n this.endpoint = Preconditions.checkNotNull(endpoint, \"Endpoint is null.\");\n return this;\n }", "@GET\n @Path(\"/config/get\")\n public Response configGet(@Context HttpServletRequest request,@Context HttpServletResponse response,@Context ServletContext servletContext) throws JsonGenerationException, JsonMappingException, IOException{\n return Response.status(200).entity(Json.newObjectMapper(true).writeValueAsString(Config.get())).build();\n }", "@Override\n public String getRefMapperConfig() {\n return null;\n }", "@Override\npublic NodeConfig<NodeIDType> getNodeConfig() {\n\treturn null;\n}", "public static PulsarTikaConfig getDefaultConfig() {\n try {\n return new PulsarTikaConfig();\n } catch (IOException e) {\n throw new RuntimeException(\"Unable to read default configuration\", e);\n } catch (TikaException e) {\n throw new RuntimeException(\"Unable to access default configuration\", e);\n }\n }", "public final WuicFacadeBuilder noDefaultContextBuilderConfigurator() {\n this.useDefaultContextBuilderConfigurator = Boolean.FALSE;\n return this;\n }" ]
[ "0.7122773", "0.6658968", "0.6558436", "0.64401484", "0.61858577", "0.6165251", "0.61106914", "0.604933", "0.6012656", "0.59795666", "0.5931127", "0.5881567", "0.5857209", "0.58310753", "0.58310753", "0.5806081", "0.5779637", "0.57559127", "0.5728628", "0.56312007", "0.56229156", "0.5590259", "0.55841273", "0.5568564", "0.55540216", "0.55494106", "0.5525961", "0.5518084", "0.5516115", "0.5496039", "0.54912597", "0.5472712", "0.54725266", "0.5469221", "0.5452844", "0.5421173", "0.5394555", "0.5390412", "0.5389608", "0.5389608", "0.5377589", "0.5370653", "0.5367878", "0.5357024", "0.53531075", "0.53451896", "0.53398603", "0.5330081", "0.5330081", "0.5330081", "0.5330081", "0.5304143", "0.52990264", "0.52935815", "0.52889", "0.52823514", "0.527844", "0.52766335", "0.5273054", "0.52648914", "0.52450144", "0.5211989", "0.521047", "0.5208684", "0.52035064", "0.518366", "0.5177656", "0.51772904", "0.51703423", "0.51632714", "0.5157523", "0.5153869", "0.51532406", "0.51495326", "0.5144751", "0.513951", "0.51371604", "0.51301134", "0.5128263", "0.51235294", "0.51231754", "0.5120862", "0.51168686", "0.5110963", "0.51060784", "0.5104513", "0.5103503", "0.50988066", "0.5094453", "0.50921476", "0.5089414", "0.50892943", "0.5083776", "0.5077466", "0.50770074", "0.50724417", "0.50702155", "0.5063518", "0.5063349", "0.5056855" ]
0.7195045
0
TODO: must add a new property for image of service
public Service(int title, int id) { mTitle = title; mId = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public mService() {\n super(\"fetchImageService\");\n }", "public interface ImageService extends Remote {\n\n public static final int IMG_SIZE_ORIGINAL = 0;\n public static final int IMG_SIZE_176_220_SMALL = 1;\n public static final int IMG_SIZE_330_220 = 2;\n public static final int IMG_SIZE_240_320_SMALL = 3;\n public static final int IMG_SIZE_120_67 = 4;\n\n public static final int IMG_SIZE_320_480_SMALL = 5;\n public static final int IMG_SIZE_170_121 = 6;\n public static final int IMG_SIZE_480_640_SMALL = 7;\n public static final int IMG_SIZE_800_600 = 8;\n\n public static final String SERVICE_NAME = \"ImageService\";\n\n public byte[] getBytes(long imageId, int imageSize) throws RemoteException;\n\n public byte[] getBytesQuiet(long imageId, int imageSize) throws RemoteException;\n\n public void removeImage(long imageId) throws RemoteException;\n\n public byte[] scale(byte[] data, int imageSize) throws RemoteException;\n\n public boolean addImage(long imageId, byte[] bytes) throws RemoteException;\n}", "public DownloadImageService() {\n\n super(\"DownloadImageService\");\n }", "public CreateScaledImagesService() {\n super(\"CreateScaledImagesService\");\n }", "public interface ImageStatusService {\n\n /**\n * 状态变化处理操作\n */\n void changeHandle(String id, Integer type);\n}", "public interface AfterSaleService extends BaseService<AfterSale> {\r\n\r\n\r\n void uplaodPicture(Long orderid, MultipartFile[] myavatar) throws IOException;\r\n\r\n List<AfterSale> afterSales(Long orderid);\r\n\r\n}", "public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}", "public interface IssuePhotoService extends BaseService<IssuePhotoBean> {\n}", "public String getImage() { return image; }", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "public interface ImageMetadataService {\n\n List<ArtistDTO> getArtistsByPrediction(String name, String name2, String surname);\n\n List<ImageTypeDTO> getImageTypesByPrediction(String name);\n\n UploadImageMetadataDTO saveMetadata(UploadImageMetadataDTO uploadImageMetadataDTO);\n\n List<ImageDTO> getTop10Images(String username, String title);\n\n List<ImageDTO> getAllUserImages(String username);\n\n List<ImageDTO> searchImagesByCriteria(SearchImageCriteriaDTO searchImageCriteriaDTO);\n\n ImageDTO updateImageMetadata(ImageDTO imageDTO);\n\n List<ImageDTO> getImagesTop50();\n\n void rateImage(RateImageDTO rateImageDTO);\n\n List<ImageDTO> getAllImages();\n}", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "public interface Images extends ClientBundle {\n\n\t\t@Source(\"gr/grnet/pithos/resources/mimetypes/document.png\")\n\t\tImageResource fileContextMenu();\n\n\t\t@Source(\"gr/grnet/pithos/resources/doc_versions.png\")\n\t\tImageResource versions();\n\n\t\t@Source(\"gr/grnet/pithos/resources/groups22.png\")\n\t\tImageResource sharing();\n\n\t\t@Source(\"gr/grnet/pithos/resources/border_remove.png\")\n\t\tImageResource unselectAll();\n\n\t\t@Source(\"gr/grnet/pithos/resources/demo.png\")\n\t\tImageResource viewImage();\n\n @Source(\"gr/grnet/pithos/resources/folder_new.png\")\n ImageResource folderNew();\n\n @Source(\"gr/grnet/pithos/resources/folder_outbox.png\")\n ImageResource fileUpdate();\n\n @Source(\"gr/grnet/pithos/resources/view_text.png\")\n ImageResource viewText();\n\n @Source(\"gr/grnet/pithos/resources/folder_inbox.png\")\n ImageResource download();\n\n @Source(\"gr/grnet/pithos/resources/trash.png\")\n ImageResource emptyTrash();\n\n @Source(\"gr/grnet/pithos/resources/refresh.png\")\n ImageResource refresh();\n\n /**\n * Will bundle the file 'editcut.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();\n\n /**\n * Will bundle the file 'editcopy.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();\n\n /**\n * Will bundle the file 'editpaste.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editpaste.png\")\n ImageResource paste();\n\n /**\n * Will bundle the file 'editdelete.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editdelete.png\")\n ImageResource delete();\n\n /**\n * Will bundle the file 'translate.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/translate.png\")\n ImageResource selectAll();\n \n @Source(\"gr/grnet/pithos/resources/internet.png\")\n ImageResource internet();\n }", "@Override\n public String getImagePath() {\n return IMAGE_PATH;\n }", "@Host(\"{endpoint}\")\n @ServiceInterface(name = \"FarmBeatsClientImage\")\n public interface ImageProcessingsService {\n @Put(\"/image-processing/rasterize/{jobId}\")\n @ExpectedResponses({202})\n @UnexpectedResponseExceptionType(\n value = ClientAuthenticationException.class,\n code = {401})\n @UnexpectedResponseExceptionType(\n value = ResourceNotFoundException.class,\n code = {404})\n @UnexpectedResponseExceptionType(\n value = ResourceModifiedException.class,\n code = {409})\n @UnexpectedResponseExceptionType(HttpResponseException.class)\n Mono<Response<BinaryData>> createRasterizeJob(\n @HostParam(\"endpoint\") String endpoint,\n @PathParam(\"jobId\") String jobId,\n @QueryParam(\"api-version\") String apiVersion,\n @BodyParam(\"application/json\") BinaryData job,\n @HeaderParam(\"Accept\") String accept,\n RequestOptions requestOptions,\n Context context);\n\n @Get(\"/image-processing/rasterize/{jobId}\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(\n value = ClientAuthenticationException.class,\n code = {401})\n @UnexpectedResponseExceptionType(\n value = ResourceNotFoundException.class,\n code = {404})\n @UnexpectedResponseExceptionType(\n value = ResourceModifiedException.class,\n code = {409})\n @UnexpectedResponseExceptionType(HttpResponseException.class)\n Mono<Response<BinaryData>> getRasterizeJob(\n @HostParam(\"endpoint\") String endpoint,\n @PathParam(\"jobId\") String jobId,\n @QueryParam(\"api-version\") String apiVersion,\n @HeaderParam(\"Accept\") String accept,\n RequestOptions requestOptions,\n Context context);\n }", "public interface ImageSearchService {\n\n /**\n * Register an image into the search instance.\n *\n * @param imageData Image data in JPEG or PNG format.\n * @param imageType Image format.\n * @param uuid Unique identifier of the image.\n */\n void register(byte[] imageData, ObjectImageType imageType, String uuid);\n\n /**\n * Un-register an image from the search instance.\n *\n * @param uuid Unique identifier of the image.\n */\n void unregister(String uuid);\n\n /**\n * Find all images similar to the given one.\n *\n * @param imageData Image to match with registered ones in the search instance.\n * @param objectRegion object region to search.\n * @return Found images UUIDs and raw response.\n */\n ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);\n\n /**\n * Check the image search configuration is correct by making a fake search request.\n *\n * @param configuration Configuration to check.\n */\n void checkImageSearchConfiguration(Configuration configuration) throws InvalidConfigurationException;\n}", "@ApiOperation(value = \"Endpoint Summary Description goes here\",\n notes = \"Endpoint Complete Description goes here\",\n response = Response.class)\n @RequestMapping(value = \"/dosomething\", method = RequestMethod.GET, produces = \"application/json\")\n public ResponseEntity<Response> doSomething() throws Exception {\n MediaTagResponse response = imageTaggingService.tagImage(\"http://www.spain.info/export/sites/spaininfo/comun/carrusel-recursos/madrid/dp_madrid_dg_im_03.jpg_369272544.jpg\");\n //\n //\n\n // return response\n return ResponseEntity.ok(new Response(true, response.getLabel().stream().map(TagDTO::getName).collect(Collectors.joining(\",\"))));\n }", "public interface PhotoService {\n\n /**\n * Add saved photo to a given user.\n * @param user current user's model object\n * @param photo photo model object\n */\n void addPhoto(User user, Photo photo);\n\n /**\n * Remove saved photo from a given user.\n * @param user current user's model object.\n * @param photoId NASA's API photo identifier.\n */\n void removePhoto(User user, String photoId);\n}", "public Image getSemibreveRest();", "public abstract void saveUserImage(Call serviceCall, Response serviceResponse, CallContext messageContext);", "public interface IService {\n \n void savePictureFromUrl(String url, String destionationFile) throws IOException;\n \n}", "public String getImage() {\n return image;\n }", "public interface HomeImgService extends BaseService {\n\n /**\n * 查询前5个首页图片的数据\n * @return\n */\n List<HomeImg> listHomeImg();\n\n}", "public interface ShowCaseImageService {\n List<ImageShowCaseModel> getImageListByCaseId(Integer showCaseId);\n List<ImageShowCaseModel> getLimitImageListByCaseId(Integer showCaseId);\n}", "@Override\n public String getImageLink() {\n return imageLink;\n }", "public interface CaptureImgService {\n\n String captureImg(HttpServletRequest re, String url, String size) throws IOException;\n}", "@Output(\"image\")\n public Image getImage() {\n return image;\n }", "@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}", "public interface WebsiteThumbGeneratorService extends ThumbGeneratorService {\n}", "public interface ImageService {\n\n void saveImageFile(Long recipeId, MultipartFile imageFile);\n}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Returns product image.\";\n\t}", "ImageProcessingsImpl(FarmBeatsClientImpl client) {\n this.service =\n RestProxy.create(\n ImageProcessingsService.class, client.getHttpPipeline(), client.getSerializerAdapter());\n this.client = client;\n }", "public interface FaroProfileImageDo {\n URL getPublicUrl();\n ImageProvider getImageProvider();\n boolean isThumbnail();\n}", "public interface IRDubboProInvestImageService {\n /**\n * searchProInvestHotList\n * 品类网 特殊定制 合并调用 拼 pic 获取url\n @param hotStatus hot表状态\n * @param hot_siteId hot表站点id\n * @param orderType hot排序\n * @param webCategory 分类\n * @param num 显示条数\n * @param oldPicFormat old规格\n * @param newPicFormat new规格\n * @return\n * String\n * @author guoYang\n * @supply\n * @date 2013-8-8 下午3:44:53\n * @exception\n * @since 1.0\n */\n public String searchProInvestHotList(int hotStatus,int hot_siteId,String orderType,String webCategory,int num,\n String oldPicFormat,String newPicFormat);\n}", "public void setImage(String image){\n this.image = image;\n }", "public interface ImageUploadService {\n\n public ResponseInfo uploadFile(UploadFileVo uploadFileVo) ;\n}", "public String getImg(){\n return img;\n }", "public interface ReceiptScanService {\r\n\t\r\n\t/**\r\n\t * Return a {@link Receipt} object from imagePath\r\n\t * @param imagePath an absolute file path for image\r\n\t * @return {@link Receipt}\r\n\t */\r\n\tpublic Receipt getReceiptFromImage(String imagePath);\r\n}", "@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }", "public String getImage()\n {\n return image;\n }", "public interface IImageMetadata {\n\n public String getImageType();\n\n public void setImageType(String imageType);\n\n public String getFilename();\n\n public void setFilename(String filename);\n\n public DateTime getLastModified();\n\n public void setLastModified(DateTime d);\n\n public DateTime getCreated();\n\n public void setCreated(DateTime d);\n\n public long getSize();\n\n public void setSize(long size);\n\n public String getReadableSize();\n\n}", "public void setImage(String _image)\n {\n this.image = _image;\n }", "public interface PictureService {\n UploadPictureResponseVO uploadPicture(MultipartFile multipartFile);\n}", "public interface ImageServer extends Remote {\n\n /**\n * Returns the identifier of the remote image. This method should be\n * called to return an identifier before any other methods are invoked.\n * The same ID must be used in all subsequent references to the remote\n * image.\n */\n Long getRemoteID() throws RemoteException;\n\n /**\n * Disposes of any resouces allocated to the client object with\n * the specified ID.\n */\n void dispose(Long id) throws RemoteException;\n\n /**\n * Increments the reference count for this id, i.e. increments the\n * number of RMIServerProxy objects that currently reference this id.\n */\n void incrementRefCount(Long id) throws RemoteException;\n\n\n /// Methods Common To Rendered as well as Renderable modes.\n\n\n /**\n * Gets a property from the property set of this image.\n * If the property name is not recognized, java.awt.Image.UndefinedProperty\n * will be returned.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param name the name of the property to get, as a String.\n * @return a reference to the property Object, or the value\n * java.awt.Image.UndefinedProperty.\n */\n Object getProperty(Long id, String name) throws RemoteException;\n\n /**\n * Returns a list of names recognized by getProperty(String).\n *\n * @return an array of Strings representing proeprty names.\n */\n String [] getPropertyNames(Long id) throws RemoteException;\n\n /**\n * Returns a list of names recognized by getProperty().\n *\n * @return an array of Strings representing property names.\n */\n String[] getPropertyNames(String opName) throws RemoteException;\n\n\n /// Rendered Mode Methods\n\n\n /** Returns the ColorModel associated with this image. */\n SerializableState getColorModel(Long id) throws RemoteException;\n\n /** Returns the SampleModel associated with this image. */\n SerializableState getSampleModel(Long id) throws RemoteException;\n\n /** Returns the width of the image on the ImageServer. */\n int getWidth(Long id) throws RemoteException;\n\n /** Returns the height of the image on the ImageServer. */\n int getHeight(Long id) throws RemoteException;\n\n /**\n * Returns the minimum X coordinate of the image on the ImageServer.\n */\n int getMinX(Long id) throws RemoteException;\n\n /**\n * Returns the minimum Y coordinate of the image on the ImageServer.\n */\n int getMinY(Long id) throws RemoteException;\n\n /** Returns the number of tiles across the image. */\n int getNumXTiles(Long id) throws RemoteException;\n\n /** Returns the number of tiles down the image. */\n int getNumYTiles(Long id) throws RemoteException;\n\n /**\n * Returns the index of the minimum tile in the X direction of the image.\n */\n int getMinTileX(Long id) throws RemoteException;\n\n /**\n * Returns the index of the minimum tile in the Y direction of the image.\n */\n int getMinTileY(Long id) throws RemoteException;\n\n /** Returns the width of a tile in pixels. */\n int getTileWidth(Long id) throws RemoteException;\n\n /** Returns the height of a tile in pixels. */\n int getTileHeight(Long id) throws RemoteException;\n\n /** Returns the X offset of the tile grid relative to the origin. */\n int getTileGridXOffset(Long id) throws RemoteException;\n\n /** Returns the Y offset of the tile grid relative to the origin. */\n int getTileGridYOffset(Long id) throws RemoteException;\n\n /**\n * Returns tile (x, y). Note that x and y are indices into the\n * tile array, not pixel locations. Unlike in the true RenderedImage\n * interface, the Raster that is returned should be considered a copy.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param x the x index of the requested tile in the tile array\n * @param y the y index of the requested tile in the tile array\n * @return a copy of the tile as a Raster.\n */\n SerializableState getTile(Long id, int x, int y) throws RemoteException;\n\n /**\n * Compresses tile (x, y) and returns the compressed tile's contents\n * as a byte array. Note that x and y are indices into the\n * tile array, not pixel locations.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param x the x index of the requested tile in the tile array\n * @param y the y index of the requested tile in the tile array\n * @return a byte array containing the compressed tile contents.\n */\n byte[] getCompressedTile(Long id, int x, int y) throws RemoteException;\n\n /**\n * Returns the entire image as a single Raster.\n *\n * @return a SerializableState containing a copy of this image's data.\n */\n SerializableState getData(Long id) throws RemoteException;\n\n /**\n * Returns an arbitrary rectangular region of the RenderedImage\n * in a Raster. The rectangle of interest will be clipped against\n * the image bounds.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param bounds the region of the RenderedImage to be returned.\n * @return a SerializableState containing a copy of the desired data.\n */\n SerializableState getData(Long id, Rectangle bounds) \n\tthrows RemoteException;\n\n /**\n * Returns the same result as getData(Rectangle) would for the\n * same rectangular region.\n */\n SerializableState copyData(Long id, Rectangle bounds)\n\tthrows RemoteException;\n\n /**\n * Creates a RenderedOp on the server side with a parameter block\n * empty of sources. The sources are set by separate calls depending\n * upon the type and serializabilty of the source.\n */\n\n void createRenderedOp(Long id, String opName,\n\t\t\t ParameterBlock pb,\n\t\t\t SerializableState hints) throws RemoteException;\n\n /**\n * Calls for Rendering of the Op and returns true if the RenderedOp\n * could be rendered else false\n */\n boolean getRendering(Long id) throws RemoteException;\n\n /**\n * Retrieve a node from the hashtable.\n */\n RenderedOp getNode(Long id) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderedImage on the server side\n */\n void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image as a RenderedOp on the server side\n */\n void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on the same\n * server\n */\n void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on a different\n * server\n */\n void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;\n\n\n /// Renderable mode methods\n\n\n /** \n * Gets the minimum X coordinate of the rendering-independent image\n * stored against the given ID.\n *\n * @return the minimum X coordinate of the rendering-independent image\n * data.\n */\n float getRenderableMinX(Long id) throws RemoteException;\n\n /** \n * Gets the minimum Y coordinate of the rendering-independent image\n * stored against the given ID.\n *\n * @return the minimum X coordinate of the rendering-independent image\n * data.\n */\n float getRenderableMinY(Long id) throws RemoteException;\n\n /** \n * Gets the width (in user coordinate space) of the \n * <code>RenderableImage</code> stored against the given ID.\n *\n * @return the width of the renderable image in user coordinates.\n */\n float getRenderableWidth(Long id) throws RemoteException;\n \n /**\n * Gets the height (in user coordinate space) of the \n * <code>RenderableImage</code> stored against the given ID.\n *\n * @return the height of the renderable image in user coordinates.\n */\n float getRenderableHeight(Long id) throws RemoteException;\n\n /**\n * Creates a RenderedImage instance of this image with width w, and\n * height h in pixels. The RenderContext is built automatically\n * with an appropriate usr2dev transform and an area of interest\n * of the full image. All the rendering hints come from hints\n * passed in.\n *\n * <p> If w == 0, it will be taken to equal\n * Math.round(h*(getWidth()/getHeight())).\n * Similarly, if h == 0, it will be taken to equal\n * Math.round(w*(getHeight()/getWidth())). One of\n * w or h must be non-zero or else an IllegalArgumentException \n * will be thrown.\n *\n * <p> The created RenderedImage may have a property identified\n * by the String HINTS_OBSERVED to indicate which RenderingHints\n * were used to create the image. In addition any RenderedImages\n * that are obtained via the getSources() method on the created\n * RenderedImage may have such a property.\n *\n * @param w the width of rendered image in pixels, or 0.\n * @param h the height of rendered image in pixels, or 0.\n * @param hints a RenderingHints object containg hints.\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createScaledRendering(Long id, \n\t\t\t\t\tint w, \n\t\t\t\t\tint h, \n\t\t\t\t\tSerializableState hintsState) \n\tthrows RemoteException;\n \n /** \n * Returnd a RenderedImage instance of this image with a default\n * width and height in pixels. The RenderContext is built\n * automatically with an appropriate usr2dev transform and an area\n * of interest of the full image. The rendering hints are\n * empty. createDefaultRendering may make use of a stored\n * rendering for speed.\n *\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createDefaultRendering(Long id) throws RemoteException;\n \n /** \n * Creates a RenderedImage that represented a rendering of this image\n * using a given RenderContext. This is the most general way to obtain a\n * rendering of a RenderableImage.\n *\n * <p> The created RenderedImage may have a property identified\n * by the String HINTS_OBSERVED to indicate which RenderingHints\n * (from the RenderContext) were used to create the image.\n * In addition any RenderedImages\n * that are obtained via the getSources() method on the created\n * RenderedImage may have such a property.\n *\n * @param renderContext the RenderContext to use to produce the rendering.\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createRendering(Long id, \n\t\t\t\t SerializableState renderContextState) \n\tthrows RemoteException;\n\n /**\n * Creates a RenderableOp on the server side with a parameter block\n * empty of sources. The sources are set by separate calls depending\n * upon the type and serializabilty of the source.\n */\n void createRenderableOp(Long id, String opName, ParameterBlock pb)\n\tthrows RemoteException;\n\n /**\n * Calls for rendering of a RenderableOp with the given SerializableState\n * which should be a RenderContextState.\n */\n Long getRendering(Long id, SerializableState rcs) throws RemoteException;\n\n /**\n * Sets the source of the image which is on the same\n * server\n */\n void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on a different\n * server\n */\n void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;\n\n /**\n * Sets the source of the operation refered to by the supplied \n * <code>id</code> to the <code>RenderableRMIServerProxy</code>\n * that exists on the supplied <code>serverName</code> under the\n * supplied <code>sourceId</code>. \n */\n void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderableOp on the server side.\n */\n void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderableImage on the server side.\n */\n void setRenderableSource(Long id, SerializableRenderableImage source,\n\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderedImage on the server side\n */\n void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;\n\n /**\n * Maps the RenderContext for the remote Image\n */\n SerializableState mapRenderContext(int id, Long nodeId,\n\t\t\t\t String operationName,\n\t\t\t\t SerializableState rcs)\n\tthrows RemoteException;\n\n /**\n * Gets the Bounds2D of the specified Remote Image\n */\n SerializableState getBounds2D(Long nodeId, String operationName)\n\tthrows RemoteException;\n\n /**\n * Returns <code>true</code> if successive renderings with the same\n * arguments may produce different results for this opName\n *\n * @return <code>false</code> indicating that the rendering is static.\n */\n public boolean isDynamic(String opName) throws RemoteException;\n\n /**\n * Returns <code>true</code> if successive renderings with the same\n * arguments may produce different results for this opName\n *\n * @return <code>false</code> indicating that the rendering is static.\n */\n public boolean isDynamic(Long id) throws RemoteException;\n\n /**\n * Gets the operation names supported on the Server\n */\n String[] getServerSupportedOperationNames() throws RemoteException;\n\n /**\n * Gets the <code>OperationDescriptor</code>s of the operations\n * supported on this server.\n */\n List getOperationDescriptors() throws RemoteException;\n\n /**\n * Calculates the region over which two distinct renderings\n * of an operation may be expected to differ.\n *\n * <p> The class of the returned object will vary as a function of\n * the nature of the operation. For rendered and renderable two-\n * dimensional images this should be an instance of a class which\n * implements <code>java.awt.Shape</code>.\n *\n * @return The region over which the data of two renderings of this\n * operation may be expected to be invalid or <code>null</code>\n * if there is no common region of validity.\n */\n SerializableState getInvalidRegion(Long id,\n\t\t\t\t ParameterBlock oldParamBlock,\n\t\t\t\t SerializableState oldHints,\n\t\t\t\t ParameterBlock newParamBlock,\n\t\t\t\t SerializableState newHints)\n\tthrows RemoteException;\n\n /**\n * Returns a conservative estimate of the destination region that\n * can potentially be affected by the pixels of a rectangle of a\n * given source. \n *\n * @param id A <code>Long</code> identifying the node for whom\n * the destination region needs to be calculated .\n * @param sourceRect The <code>Rectangle</code> in source coordinates.\n * @param sourceIndex The index of the source image.\n *\n * @return A <code>Rectangle</code> indicating the potentially\n * affected destination region, or <code>null</code> if\n * the region is unknown.\n */\n Rectangle mapSourceRect(Long id, Rectangle sourceRect, int sourceIndex)\n\tthrows RemoteException;\n\n /**\n * Returns a conservative estimate of the region of a specified\n * source that is required in order to compute the pixels of a\n * given destination rectangle. \n *\n * @param id A <code>Long</code> identifying the node for whom\n * the source region needs to be calculated .\n * @param destRect The <code>Rectangle</code> in destination coordinates.\n * @param sourceIndex The index of the source image.\n *\n * @return A <code>Rectangle</code> indicating the required source region.\n */\n Rectangle mapDestRect(Long id, Rectangle destRect, int sourceIndex)\n\tthrows RemoteException;\n\n /**\n * A method that handles a change in some critical parameter.\n */\n Long handleEvent(Long renderedOpID, \n\t\t String propName,\n\t\t Object oldValue, \n\t\t Object newValue) throws RemoteException;\n\n /**\n * A method that handles a change in one of it's source's rendering,\n * i.e. a change that would be signalled by RenderingChangeEvent.\n */\n Long handleEvent(Long renderedOpID, \n\t\t int srcIndex,\n\t\t SerializableState srcInvalidRegion, \n\t\t Object oldRendering) throws RemoteException;\n\n /**\n * Returns the server's capabilities as a\n * <code>NegotiableCapabilitySet</code>. Currently the only capabilities\n * that are returned are those of TileCodecs.\n */\n NegotiableCapabilitySet getServerCapabilities() throws RemoteException;\n\n /**\n * Informs the server of the negotiated values that are the result of\n * a successful negotiation.\n *\n * @param id An ID for the node which must be unique across all clients.\n * @param negotiatedValues The result of the negotiation.\n */\n void setServerNegotiatedValues(Long id, \n\t\t\t\t NegotiableCapabilitySet negotiatedValues)\n\tthrows RemoteException; \n}", "@ApiModelProperty(example = \"functions/nodeinfo:latest\", required = true, value = \"The fully qualified docker image name of the function\")\n public String getImage() {\n return image;\n }", "public interface FileUploadService {\n\n /**\n *\n * @param form\n * @param path\n * @param fileName\n * @throws Exception\n */\n void uploadBase64Image(Base64ImageForm form, String path, String fileName) throws Exception;\n}", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "Builder addImage(ImageObject.Builder value);", "PImage getImage() {\n return _img;\n }", "void ProcessImage() {\n DoDescribe();\n }", "public String getImage() {\n\t\treturn null;\n\t}", "public interface FileService {\n\n Map<String,Object> uploadImage(MultipartFile upfile);\n}", "public interface FileService {\n\n Map<String,Object> uploadImage(MultipartFile upfile);\n}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public interface PropertyService {\n\n\t//public Property createProperty();\n\tpublic void uploadPhotos(MultipartFile file, Long propertyId);\n\tpublic void uploadDocuments(MultipartFile file, Long propertyId);\n\n}", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}", "@ApiModelProperty(value = \"The event featured image details if set\")\n public Image getImage() {\n return image;\n }", "public HippoGalleryImageSetBean getImage() {\n return getLinkedBean(\"myspringbasedhippoproject:image\", HippoGalleryImageSetBean.class);\n }", "public String getImage() {\n return this.Image;\n }", "void setImage(IViewModel image);", "Builder addImage(ImageObject value);", "@Schema(example = \"iVBORw0KGgoAAAANSUhEUgAAACIAAAAoCAYAAACb3CikAAAABGdBTUEAALGPC\", description = \"Binary image content, base64 encoded.\")\n public String getImage() {\n return image;\n }", "public interface AwesomeService {\n\n public final static String label = \"core::service::ui::AwesomeService\";\n\n public Node getIcon(final Path path);\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}", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(String image) {\n this.image = image;\n }", "private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "@Override\n public String getPicPhoto() {\n return pic_filekey;\n }", "@Override\r\n public byte[] getCustomImageInBytes() {\r\n\r\n return imageInByte;\r\n }", "@GET\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic byte[] returnPicture(){\n \t return ContainerPicture.picture;\n \t}", "public interface LeadImageContainer {\n\tLeadAsset getImage();\n}", "public interface ImageService {\n public long insert(ImageEntity entity);\n\n public ImageEntity query(long id);\n\n public List<ImageEntity> findTiles(long id);\n\n public boolean update(ImageEntity entity);\n\n public boolean delete(long id);\n}", "public interface IAlbumImageService extends IService<AlbumImage> {\n\n List<AlbumImage> queryList(Map map);\n\n int queryTotal(Map map);\n\n /**\n * Delete photos in batch\n * @param ids\n * @return\n */\n int batchDelete(List<Integer> ids);\n\n /**\n * Check the album according to the album ID\n * @param albumId\n * @return\n */\n List<AlbumImage> selectByAlbum(Integer albumId);\n\n\n}", "public interface ICardService {\r\n /**\r\n * @param params eg:{'bbsId':1,'customerId':1,'type':'','pubDateFrom':'20151008','pubDateTo':'20151108'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String search(String params) throws Exception;\r\n\r\n /**\r\n * @param params eg: {'cardId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String cardDetail(String params) throws Exception;\r\n\r\n /**\r\n * @param params, eg: {'bbsId':1,'customerId':1,'content':'test','lon':'1.1','lat':'1.1','address':'YanJiaQiao No.1','picUrls':'1,2,3'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String create(String params) throws Exception;\r\n\r\n /**\r\n * save card\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String save(String params)throws Exception;\r\n\r\n /**\r\n * delete card\r\n * @param params, eg: {'cardId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String delete(String params) throws Exception;\r\n\r\n /**\r\n * 添加帖子图片\r\n * @param params (帖子ID,图片ID数组)\r\n * @return\r\n */\r\n String addPicture(String params) throws Exception;\r\n\r\n /**\r\n * 获取帖子图片\r\n * @param params(帖子ID)\r\n * @return\r\n * @throws Exception\r\n */\r\n String getPictures(String params) throws Exception;\r\n\r\n /**\r\n * 删除帖子图片\r\n * @param params,{'picId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String deletePicture(String params) throws Exception;\r\n\r\n /**\r\n * 排序帖子图片\r\n * @param params,eg:{'picId':1,'sortno':2}\r\n * @return\r\n * @throws Exception\r\n */\r\n String resortPicture(String params) throws Exception;\r\n}", "public interface PictureService {\n\n String uploadPicture(byte[] fileBuffer, String fileName) throws Exception;\n\n String uploadFile(String local_filename, String file_ext_name) throws Exception;\n\n}", "public Image getBassClef();", "java.lang.String getImagePath();", "String getItemImage();", "public Properties getImageMetaData() {\n\t\treturn null;\n\t}", "abstract public String imageUrl ();", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "public interface ImageUploadService {\n @Headers({\n \"User-Agent: Mozilla/5.0\",\n \"Content-Type: image/png\"\n })\n @POST(\"\")\n Observable<ImageUpload> uploadImage4search(@Body RequestBody imgs);\n // Observable<ImageUpload> uploadImage4search(@PartMap Map<String, Object> fields, @Body RequestBody imgs);\n}", "String getImagePath();", "String getImagePath();", "@Override\r\n\tpublic NetMdDTO getlogo() throws ServiceException {\n\t\ttry {\r\n\t\t\treturn billDao.getlogo();\r\n\t\t} catch (PersistenceException e) {\r\n\t\t\tthrow new ServiceException(ErrorCodeEnum.DatabaseError,e);\t\t\r\n\t\t}\r\n\t}", "public String getImg() {\n return img;\n }", "public String getImg() {\n return img;\n }", "public String getImg() {\n return img;\n }", "public static String getImage(ServiceSpec serviceSpec) throws HyscaleException {\n if (serviceSpec == null) {\n return null;\n }\n return getImage(serviceSpec.get(HyscaleSpecFields.image, Image.class));\n }", "public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "java.lang.String getImage();", "@Override\n\tpublic void onRxImage(String name, ImageMessage image) {\n\t\t\n\t}" ]
[ "0.7133725", "0.6983762", "0.6603022", "0.64583135", "0.62449837", "0.62238586", "0.61646587", "0.6129131", "0.6097813", "0.6076737", "0.6050504", "0.60227865", "0.60044736", "0.5999055", "0.5960175", "0.5866518", "0.58384514", "0.58076435", "0.58067197", "0.57886803", "0.5784398", "0.5767481", "0.5746859", "0.5739019", "0.57365304", "0.5727743", "0.5723562", "0.572077", "0.571805", "0.570362", "0.5692721", "0.56906927", "0.56833744", "0.5680257", "0.5660039", "0.56568086", "0.5651768", "0.5649664", "0.56494206", "0.5647306", "0.5639323", "0.5638249", "0.5635635", "0.5623891", "0.5620865", "0.56160843", "0.56158245", "0.56141347", "0.5608973", "0.5595603", "0.559528", "0.55920917", "0.55920917", "0.55907744", "0.558699", "0.5582519", "0.5582519", "0.5582519", "0.5582519", "0.55817586", "0.557679", "0.5575404", "0.5568856", "0.5564679", "0.55638355", "0.5556586", "0.5553832", "0.5551071", "0.55505", "0.55505", "0.5542618", "0.5542378", "0.5542378", "0.55419457", "0.5534552", "0.55342734", "0.5527858", "0.55238926", "0.55195093", "0.5517504", "0.5513494", "0.5512524", "0.55037147", "0.54950416", "0.54901844", "0.5487925", "0.5487327", "0.5484049", "0.5482976", "0.54827833", "0.5479498", "0.5479498", "0.54794735", "0.5475946", "0.5475946", "0.5475946", "0.5474558", "0.5471815", "0.54716897", "0.547154", "0.54702026" ]
0.0
-1
get a List of FavouriteJob matching doctorId;
@RequestMapping(value ="/doctorId/{docId}", method = RequestMethod.GET, produces = { "application/hal+json" }) public List<FavouriteJobs> getFavJobsByDocId(@PathVariable Long docId) { List<FavouriteJobs> favJobs = null; try { favJobs = favJobService.getFavJobsByDocId(docId); } catch(Exception e) { throw new ObjectNotFoundException("FavouriteJob is not found by doctor Id: "+ docId); } if(favJobs.isEmpty() || favJobs != null) { for(FavouriteJobs favJob: favJobs) { Link selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel(); favJob.add(selfLink); } } return favJobs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value =\"/hospitalCode/{hospitalCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalCode(@PathVariable String hospitalCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalCode(hospitalCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital code: \" + hospitalCode);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@RequestMapping(value =\"/hospitalName/{hospitalName}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalName(@PathVariable String hospitalName) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalName(hospitalName);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital name: \" + hospitalName);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@RequestMapping(value =\"/jobCode/{jobCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByJobCode(@PathVariable String jobCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByJobCode(jobCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by job code: \" +jobCode);\n\t\t}\t\t\n\t\t\n\t\tif( favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@RequestMapping(value = \"/list/\", method = RequestMethod.GET, produces = {\"application/hal+json\"})\n\tpublic List<FavouriteJobs> getAllFavJobs(){\n\t\tList<FavouriteJobs> favJobsList = null;\n\t\ttry {\n\t\t\tfavJobsList = favJobService.getAllFavJobs();\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception Handle\n\t\t}\n\t\t\n\t\treturn favJobsList;\n\t}", "@RequestMapping(value = \"/list/{pjobId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList1(@PathVariable(\"pjobId\") Integer pjobId) {\n ProfessionJob professionJob = professionJobService.getProfessionJob(pjobId).get();\n List<JobRequireProfessionJob> list = jobService.findAllByProfessionJob(professionJob);\n List<Job> jobsAfterFilterByProfession = new ArrayList<>();\n for(JobRequireProfessionJob jrpj : list) {\n jobsAfterFilterByProfession.add(jrpj.getJob());\n }\n return jobsAfterFilterByProfession;\n }", "@RequestMapping(value = \"/list/{pjobId}/{cityId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList2(@PathVariable(\"pjobId\") Integer pjobId, @PathVariable(\"cityId\") Integer city) {\n List<Job> jobsAfterFilterByProfession = getJobList1(pjobId);\n List<Job> jobsAfterFilterByCity = new ArrayList<>();\n for(Job job : jobsAfterFilterByProfession) {\n if (job.getCity().getId() == city) {\n jobsAfterFilterByCity.add(job);\n }\n }\n return jobsAfterFilterByCity;\n }", "public List<MovieDetails> getAllFavoriteMovies() {\n SQLiteDatabase database = this.getWritableDatabase();\n List<MovieDetails> movieDetailses = new ArrayList<>();\n List<Integer> favoritesMovieId = new ArrayList<>();\n String selectQuery = \"SELECT * FROM \" + FavoriteMoviesEntry.TABLE_NAME;\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n int id = getIdFromCursor(cursor);\n String selectFavoriteMovieQuery = \"SELECT * FROM \" + MoviesDetailsEntry.TABLE_NAME + \"WHERE \" + MoviesDetailsEntry._ID + \"= \" + id;\n Cursor movieCursor = database.rawQuery(selectFavoriteMovieQuery, null);\n if (movieCursor.moveToFirst()) {\n do {\n MovieDetails movieDetails = getMovieDetailsFromCursor(movieCursor);\n movieDetailses.add(movieDetails);\n } while (movieCursor.moveToNext());\n }\n } while (cursor.moveToNext());\n }\n database.close();\n\n return movieDetailses;\n }", "java.util.List<cb.Careerbuilder.Job> \n getJobsList();", "public static ArrayList<Job> getJobByRecruiter(int id)\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n ArrayList<Job> returnValue = new ArrayList<>();\n\n stmt = conn.createStatement();\n String sql = String.format(\n \"SELECT * FROM job NATURAL JOIN recruiter NATURAL JOIN location WHERE recruiter_id = %d;\",\n id\n );\n ResultSet rs = stmt.executeQuery(sql);\n while(rs.next()) {\n returnValue.add(new Job(\n rs.getInt(\"job_id\"),\n rs.getString(\"job_name\"),\n new Recruiter(\n rs.getInt(\"recruiter_id\"),\n rs.getString(\"name\"),\n rs.getString(\"email\"),\n rs.getString(\"phone_number\"),\n new Location(\n rs.getString(\"province\"),\n rs.getString(\"city\"),\n rs.getString(\"description\")\n )\n ),\n rs.getInt(\"fee\"),\n JobCategory.valueOf(rs.getString(\"category\"))\n ));\n }\n rs.close();\n stmt.close();\n conn.close();\n return returnValue;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return null;\n }\n }", "public List<Agent> listFieldStaffsByCoopetiveManagerProfileId(String agentId);", "private ArrayList<MovieItem> getFavoriteMovies(){\n //get list of favorite movies from buffer\n ArrayList<MovieItem> movies = mMovieStaff.getMovies(PosterHelper.NAME_ID_FAVORITE);\n\n //check if favorite movie list has changed\n if(mFavoriteChanged){\n //list has changed, show new movie list\n showMovieList(movies, PosterHelper.NAME_ID_FAVORITE);\n }\n\n //return movie list\n return movies;\n }", "public List<Firm> findFirmForCourseOptionId(long id)\r\n\t{\r\n\t\tStringBuilder s = new StringBuilder();\r\n\t\ts.append(\"select distinct job.firm from Job job where job.cursus.id like :id\");\r\n\t\r\n\t\tQuery query = HibernateUtils.getSession().createQuery(s.toString());\r\n\t\tquery.setParameter(\"id\" , id );\r\n\t\t\r\n\t\treturn query.list();\r\n\t}", "@Override\n public List<ProductPojo> getProductFavouritesList(Map<String, Object> params) {\n return yourFavouritesDetaildao.getProductFavouritesList(params);\n }", "public List<IJob> getDependentJobs();", "public static ArrayList<Job> getJob()\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n ArrayList<Job> returnValue = new ArrayList<>();\n\n stmt = conn.createStatement();\n String sql = \"SELECT * FROM job NATURAL JOIN recruiter NATURAL JOIN location;\";\n ResultSet rs = stmt.executeQuery(sql);\n while(rs.next()) {\n returnValue.add(new Job(\n rs.getInt(\"job_id\"),\n rs.getString(\"job_name\"),\n new Recruiter(\n rs.getInt(\"recruiter_id\"),\n rs.getString(\"name\"),\n rs.getString(\"email\"),\n rs.getString(\"phone_number\"),\n new Location(\n rs.getString(\"province\"),\n rs.getString(\"city\"),\n rs.getString(\"description\")\n )\n ),\n rs.getInt(\"fee\"),\n JobCategory.valueOf(rs.getString(\"category\"))\n ));\n }\n rs.close();\n stmt.close();\n conn.close();\n return returnValue;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return null;\n }\n }", "List<EcsFavourableActivity> selectAll();", "public List<Movie> getMovie_Actor(final int Actor_id) {\n List<Movie> actor_mov = new ArrayList<Movie>();\n if (actors_movies.size()!=NULL) {\n actor_mov = actors_movies.entrySet().stream().filter(x->x.getValue().getId()==Actor_id).map(x -> x.getKey()).collect(Collectors.toList());\n System.out.println( actor_mov);\n System.out.println(\"LENGTH:\" + actor_mov.size());\n\n }else{\n System.out.println(\"Tiene que dar valor al ID para buscar por ID\");\n\n }\n return actor_mov;\n }", "public List<Activo> _queryResponsable_ActivoList(Long responsable_id) {\n synchronized (this) {\n if (responsable_ActivoListQuery == null) {\n QueryBuilder<Activo> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Responsable_id.eq(null));\n responsable_ActivoListQuery = queryBuilder.build();\n }\n }\n Query<Activo> query = responsable_ActivoListQuery.forCurrentThread();\n query.setParameter(0, responsable_id);\n return query.list();\n }", "public List<StockFavorite> getListFavoriteStock(int userId);", "@Override\n public List<UserCirclePostPojo> getUserCirclePostFavouritesList(Map<String, Object> params) {\n return yourFavouritesDetaildao.getUserCirclePostFavouritesList(params);\n }", "@Transactional(readOnly=true)\n\tpublic List<Film> getFilmInfoAboveId(int id) {\n\t\tList<Film> films = filmRepository.findByFilmIdGreaterThan(id);\n\t\t\n\t\tfor(Film film : films) {\n\t\t\t// call the getter to load the data to cache\n\t\t\tfor(FilmActor actor : film.getFilmActors()) {\n\t\t\t\t// do nothing here\n\t \t}\n\t\t}\n\t\n\t\treturn films;\n\t}", "List<MiniJobForUser> getMiniJobForUserId( String userId );", "public List<User> getUserOfList(String id) {\n String query = DatabaseHelper.PARTICIPANT_COLUMN_SHOPPING_LIST_ID + \" = '\" + id + \"'\";\n List<Participant> participantList = getEntry(query);\n List<User> userList = new LinkedList<User>();\n\n for (Participant participant : participantList) {\n List<User> results = _userDataSource.getEntry(DatabaseHelper.USER_COLUMN_ID + \" = '\" + participant.getId() + \"'\");\n\n if (results.size() > 0) {\n userList.add(results.get(0));\n }\n }\n\n return userList;\n }", "@Override\n public List<ProductPojo> getProductTypeFavouritesList(Map<String, Object> params) {\n return yourFavouritesDetaildao.getProductTypeFavouritesList(params);\n }", "java.util.List<com.lvl6.proto.QuestProto.UserQuestJobProto> \n getUserQuestJobsList();", "@Transactional(readOnly = true)\n public List<Ticket> findByFoodJoint_Id(Long id) {\n log.debug(\"Request to findByFoodJoint_Id : {}\", id);\n List<TicketStatus> candidateStatues = new ArrayList<>();\n candidateStatues.add(TicketStatus.NO_ORDER_WAIT);\n candidateStatues.add(TicketStatus.READY);\n candidateStatues.add(TicketStatus.PROCESS);\n candidateStatues.add(TicketStatus.WAIT);\n List<Ticket> tickets = ticketRepository.findByFoodJoint_IdAndStatusIn(id, candidateStatues);\n return tickets;\n }", "java.util.List<com.google.cloud.talent.v4.Job> \n getJobsList();", "public void getFavoriteEateries(Integer account_id){\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_FAVORITES;\r\n this.makeVolleyRequest( url, params );\r\n }", "public List<Job> loadJobs(Map<String, Object> cmap) {\n CriteriaBuilder builder = em.getCriteriaBuilder();\n CriteriaQuery<JobEntity> criteriaQuery = builder.createQuery(JobEntity.class);\n Root<JobEntity> jobRoot = criteriaQuery.from(JobEntity.class);\n criteriaQuery.select(jobRoot);\n\n List<Predicate> predicates = buildPredicatesFromConditions(cmap, builder, jobRoot);\n criteriaQuery.where(builder.and(predicates.toArray(new Predicate[0])));\n return getResultsFromQuery(criteriaQuery);\n }", "ListWorkerFleetsResult listWorkerFleets(ListWorkerFleetsRequest listWorkerFleetsRequest);", "List<Professeur> getImplicatedProf(int coursId);", "@Override\r\n\tpublic List<FilmRecord> findRecordsByFilmId(int filmId) {\n\t\tString hql = \"from film_record f where f.filmId=? and f.date>=?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, filmId);\r\n\t\tquery.setParameter(1, DateUtil.getCurrentDate());\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<FilmRecord> filmRecords = query.list();\r\n\t\treturn filmRecords;\r\n\t}", "@Override\r\n\tpublic List<IncomingJobResponse> getJobList() {\n\t\tList<IncomingJobs> js = (List<IncomingJobs>)incomingRepository.fetchincomingJobs();\r\n\t\tList<IncomingJobResponse> joblist = new ArrayList<IncomingJobResponse>();\r\n\t\tfor(IncomingJobs job :js){\r\n\t\t\tIncomingJobResponse jobs = new IncomingJobResponse();\r\n\t\t\tSystem.out.println(\"ATA:\"+job.getAta()+\"ETA:\"+job.getEta());\r\n\t\t\tjobs.setJobid(job.getID());\r\n\t\t\t\r\n\t\t\tif(job.getEta()!=null){\r\n\t\t\tjobs.setEta(job.getEta().toString());\r\n\t\t\t}\r\n\t\t\tif(job.getAta()!=null){\r\n\t\t\tjobs.setAta(job.getAta().toString());\r\n\t\t\t}\r\n\t\t\tjobs.setBroker(job.getBroker());\r\n\t\t\tjobs.setClear(job.getClear());\r\n\t\t\tjobs.setConsignee(job.getConsignee());\r\n\t\t\tjobs.setDestination(job.getDestination());\r\n\t\t\tjobs.setFlight(job.getFlight());\r\n\t\t\tjobs.setHawb(job.getHawb());\r\n\t\t\tjobs.setHeld(job.getHeld());\r\n\t\t\tjobs.setMawb(job.getMawb());\r\n\t\t\tjobs.setMLID(job.getMLID());\r\n\t\t\tjobs.setNote(job.getNote());\r\n\t\t\tjobs.setOutturn(job.getOutturn());\r\n\t\t\tjobs.setPiece(job.getPiece());\r\n\t\t\tjobs.setWeight(job.getWeight());\r\n\t\t\tif(job.getInjectionDate()!=null){\r\n\t\t\t\tjobs.setInjectionDate(job.getInjectionDate().toString());\r\n\t\t\t\t}\r\n\t\t\tif(job.getClearanceDate()!=null){\r\n\t\t\t\tjobs.setClearanceDate(job.getClearanceDate().toString());\r\n\t\t\t\t}\r\n\t\t\tjobs.setDamage(job.getDamageNotes());\r\n\t\t\tjobs.setSurplus(job.getSurplusShortage());\r\n\t\t\tjoblist.add(jobs);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn joblist;\r\n\t}", "@GetMapping(\"/candidates/{id}\")\n\tpublic Collection<JobProcessDetails> getCandidates(@PathVariable Long id){\n\t\t\n\t\tOptional<JobApplication> obj= jobAppRepo.findById(id);\n\t\t\n\t\treturn jobProcessRepo.findByJobApplication(obj);\n\t}", "public static List getActorPorFiltros(Map pref) {\n try {\n List<String> ListaActores = new ArrayList<>();\n GetActoresFilter filtroActores = SerializarPreferenciasActor(pref);\n List<ActorCatastroDto> listAct = getActores(filtroActores).getItem();\n for (int i = 0; i < listAct.size(); i++) {\n ActorCatastroDto ds = new ActorCatastroDto();\n ds = listAct.get(i);\n String Actor = new Gson().toJson(ds);\n ListaActores.add(Actor);\n }\n return ListaActores;\n } catch (Exception e) {\n return null;\n }\n }", "public List<JobParam> findByJob(Job job);", "public List<Meeting> getMeetings(int projectId);", "cb.Careerbuilder.Job getJobs(int index);", "public List<Restaurant> listRestaurantVotedToday(){\r\n\t\tList<Restaurant> restaurantList = new LinkedList<Restaurant>();\r\n\t\tList<Vote> votingList = DataDAO.getVotingList();\r\n\t\tList<Vote> voteListResult = votingList.stream().filter(l -> l.getVotingDate().equals(DateUtil.asDate(LocalDate.now()))).collect(Collectors.toList());;\r\n\t\tvoteListResult.forEach(v -> restaurantList.add(v.getRestaurant()) );\r\n\t\treturn restaurantList;\r\n\t\t\r\n\t}", "public static void findFavourites() {\n DataManager.currentFavouritesList.clear();\n\n for (int i = 0; i < DataManager.fullFavouritesList.size(); i++) {\n Attraction attraction = DataManager.findAttractionByName(DataManager.fullFavouritesList.get(i));\n\n if (attraction != null) {\n DataManager.currentFavouritesList.add(attraction);\n }\n }\n\n FavouritesListFragment.backgroundLayout.setVisibility(DataManager.currentFavouritesList.size() == 0 ? View.VISIBLE : View.INVISIBLE);\n\n AttractionsListFragment.attractionsAdapter.notifyDataSetChanged();\n }", "public List<ExistenciaMaq> buscarExistencias(final Long almacenId,final Date fecha);", "@GetMapping(\"/favourites\")\n public ResponseEntity<List<Favourite>> getAll() {\n\n\n logger.info(\"The Favourite List is Successfully found.\");\n\n return new ResponseEntity<>( favouriteDao.getAll(), HttpStatus.OK);\n }", "public List<Activo> _queryCuentaContable_ActivoList(Long cuentacontable_id) {\n synchronized (this) {\n if (cuentaContable_ActivoListQuery == null) {\n QueryBuilder<Activo> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Cuentacontable_id.eq(null));\n cuentaContable_ActivoListQuery = queryBuilder.build();\n }\n }\n Query<Activo> query = cuentaContable_ActivoListQuery.forCurrentThread();\n query.setParameter(0, cuentacontable_id);\n return query.list();\n }", "public List<CpAppliedJob> getAllDetails() {\n\n\t\tList<CpAppliedJob> details = new ArrayList<CpAppliedJob>();\n\t\ttry {\n\t\t\tdetailRepository.findAll().forEach(details::add);\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn details;\n\n\t}", "MemberFav selectByPrimaryKey(Long id);", "@GetMapping(\"/job-bids\")\n @Timed\n public List<JobBid> getAllJobBids() {\n log.debug(\"REST request to get all JobBids\");\n return jobBidRepository.findAll();\n }", "List<Movie> getMovie(String movieId);", "java.util.List<? extends com.lvl6.proto.QuestProto.UserQuestJobProtoOrBuilder> \n getUserQuestJobsOrBuilderList();", "UserFriendsEntry getUserFriendsList(Integer user_id);", "@GetMapping(\"/_search/job-bids\")\n @Timed\n public List<JobBid> searchJobBids(@RequestParam String query) {\n log.debug(\"REST request to search JobBids for query {}\", query);\n return StreamSupport\n .stream(jobBidSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "public List<FavoriteLog> getFavoriteLogList() {\n if (_favoriteLogList == null) { _favoriteLogList = newReferrerList(); }\n return _favoriteLogList;\n }", "public List<Agent> findAgentbyServicePointId(long id);", "java.util.List<? extends cb.Careerbuilder.JobOrBuilder> \n getJobsOrBuilderList();", "public List<Employee> findEmployeesForServiceByDate(LocalDate date) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek)) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "public ArrayList<Books> getFinishedBooks(String id){\n User user = getById(id);\n ArrayList<Books> finished = new ArrayList<>();\n if(user!=null){\n for(SavedBook book : user.getSavedBooks()){\n int bookId = book.getBookId();\n if(book.getIsFinished().equals(\"True\")){\n Books save = bookService.getById(bookId);\n finished.add(save);\n }\n\n }\n return finished;\n }\n throw new UserNotFoundException(\"Sorry user not found!\");\n\n }", "public java.util.List<cb.Careerbuilder.Job> getJobsList() {\n return jobs_;\n }", "List<Long> getAuthorisedList( Long id) ;", "public List<Reimbursements> viewMyEmployeesReqs(int id, List<Reimbursements> resolved){\r\n\t\tEmployee e = getEmployeebyId(id);// gets manager\r\n\t\tSystem.out.println(\"Manager in charge of set staff members: \"+e);\r\n\t\tList<Employee> henchmen = myHenchmen(e.getId());// print all peeps that report to current manager\r\n\t\tfor(Employee h: henchmen) {\r\n\t\t\t//traverses through each henchmen\r\n\t\t\tReimbursements r = rs.getReimByEID(h.getId());//gets their reimbursements\r\n\t\t\tresolved.add(r);// adds all their reimbursemments\r\n\t\t\tresolved = rs.getReimbsbyStatus(\"approved\");//shows only reimbursements that are approved\r\n\t\t}\r\n\t\treturn resolved;\r\n\t}", "public List<JobParam> findByJobId(String jobId);", "public Book getBookById(int id){\n Book book = null;\n //list.stream->to take the stream\n\n book = list.stream().filter(e->e.getId()==id).findFirst().get();\n return book;\n }", "public List<Activity_checkwork> getByactid(Activity_checkwork che) {\n\treturn mapper.getByactid(che);\r\n}", "public List<UserJoins> listUserJoinsbyUid(int uid);", "public List<Employee> findEmployeesForService(LocalDate date, Set<EmployeeSkill> skills) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n Set<EmployeeSkill> employeeSkills = skills;\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n Set<EmployeeSkill> intersectionSkills = new HashSet<>();\n intersectionSkills.addAll(employeeSkills);\n intersectionSkills.retainAll(employee.getSkills());\n\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek) && (intersectionSkills.size() == employeeSkills.size())) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "public ArrayList<Meeting> getHistoryMeetings(ArrayList<Meeting> list) throws ParseException {\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n String now = df.format(new Date());\n Date today = new SimpleDateFormat(\"dd/MM/yyyy\").parse(now);\n ArrayList<Meeting> relevant = new ArrayList<Meeting>();\n for(Meeting meeting : list){\n Date meetingDate = new SimpleDateFormat(\"dd/MM/yyyy\").parse(meeting.getDate().toString());\n if(meetingDate.before(today)){\n relevant.add(meeting);\n }\n }\n return relevant;\n }", "private static List<StaffNotification> getStaffToNotify(FoodOrder foodOrder) {\n EntityManager entityManager = DatabaseManager.getInstance().getEntityManager();\n List<StaffNotification> staffNotifications = null;\n OrderStatus orderStatus = foodOrder.getStatus();\n // If the order has just been cooked we want the relevant waiter.\n if (orderStatus == OrderStatus.COOKING) {\n\n staffNotifications = entityManager\n .createQuery(\"from StaffNotification staffNotification \"\n + \"where staffNotification.staff.department = :department\", StaffNotification.class)\n .setParameter(\"department\", Department.KITCHEN).getResultList();\n } else if (orderStatus == OrderStatus.READY_TO_DELIVER | orderStatus == OrderStatus\n .READY_TO_CONFIRM) {\n // get a list of waiters on a table.\n staffNotifications = entityManager\n .createQuery(\"from StaffNotification staffNotification\"\n + \" where staffNotification.staff.department = :department and staffNotification.staff.employeeNumber = :serverNumber\",\n StaffNotification.class).setParameter(\"department\", Department.WAITER)\n .setParameter(\"serverNumber\",\n foodOrder.getTransaction().getRestaurantTableStaff().getStaff().getEmployeeNumber())\n .getResultList();\n // If the order has just been confirmed we want to tell the kitchen.\n }\n entityManager.close();\n\n return staffNotifications;\n }", "public java.util.List<cb.Careerbuilder.Job> getJobsList() {\n if (jobsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(jobs_);\n } else {\n return jobsBuilder_.getMessageList();\n }\n }", "public Map<UUID, T> getJobs(UUID agentId) throws RemoteException;", "@Test\r\n\tpublic void getListOfHiredCandidates() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\r\n\t\tUserDetails interviewer = getUserDetailsInterviewer();\r\n\t\tinterviewer.setUser(getInterviewerUser());\r\n\r\n\t\tInterview interview = getInterview();\r\n\t\tinterview.setInterviewer(interviewer);\r\n\r\n\t\tcandidate.setInterview(interview);\r\n\t\tcandidate.setInterviewResult(HIRE_CANDIDATE);\r\n\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.getHiredCandidates(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.getListOfHiredCandidates(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/listofhiredcandidate/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "public static ArrayList<Restaurant> getFav(Long idUser) {\n\t\tArrayList<Favourite> allFav=loadFavourite();\n\t\tArrayList<Restaurant> allRes=RestaurantDao.loadRestaurants();\n\t\tArrayList<Restaurant> returnFavRes=new ArrayList<>();\n\t\tfor(Favourite f:allFav) {\n\t\t\tif(f.getUserId().equals(idUser)) {\n\t\t\t\tfor(Restaurant r:allRes) {\n\t\t\t\t\tif(f.getIdRes().equals(r.getId())) {\n\t\t\t\t\t\treturnFavRes.add(r);\n\t\t\t\t\t\tSystem.out.println(\"restoran\"+r.getName() +\"\" +r.getAddress());\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn returnFavRes;\n\t}", "public ArrayList<Person> getQualifiedPeople(int jobCode) {\n ArrayList<Person> results = new ArrayList<Person>();\n\n String name = \"\";\n String email = \"\";\n\n try {\n PreparedStatement pStmt = conn.prepareStatement(\"SELECT DISTINCT NAME, EMAIL \\n\" +\n \"FROM PERSON NATURAL JOIN (\\n\" +\n \" SELECT PER_ID\\n\" +\n \" FROM PERSON_SKILL A\\n\" +\n \" WHERE NOT EXISTS (\\n\" +\n \" \\n\" +\n \" -- get skills of specific job\\n\" +\n \" SELECT JOB_SKILL.KS_CODE\\n\" +\n \" FROM JOB_SKILL INNER JOIN JOB_LISTING\\n\" +\n \" ON JOB_SKILL.JOB_CODE = JOB_LISTING.JOB_CODE\\n\" +\n \" WHERE JOB_SKILL.JOB_CODE=? AND JOB_LISTING.COMP_ID=?\\n\" +\n \" \\n\" +\n \" MINUS\\n\" +\n \" \\n\" +\n \" -- get skills of person\\n\" +\n \" (SELECT KS_CODE\\n\" +\n \" FROM PERSON_SKILL B\\n\" +\n \" WHERE A.PER_ID = B.PER_ID)\\n\" +\n \" )\\n\" +\n \")\");\n\n pStmt.setString(1, jobCode + \"\");\n pStmt.setString(2, this.compId + \"\");\n ResultSet rset = pStmt.executeQuery();\n\n while(rset.next()){\n name = rset.getString(1);\n email = rset.getString(2);\n\n Person person = new Person(name, email);\n results.add(person);\n }\n\n } catch(Exception e) {\n System.out.println(\"\\nError in method qualifiedPeople of Company: \" + e);\n }\n\n return results;\n }", "public List getBeneficioDeudaList(Map criteria);", "public List<Lote> listarLotes() {\n List<Lote> listaLotes;\n listaLotes = jpaLote.findLoteEntities();\n List<Lote> listaFiltrada = new ArrayList<Lote>();\n for (Lote lote : listaLotes) {\n if (lote.getEstado() == true){\n listaFiltrada.add(lote);\n }\n }\n return listaFiltrada;\n }", "public List findCandidatePhones(Serializable candidateId) {\n\t\tCriteria criteria = HibernateUtil.getSessionFactory()\n\t\t\t\t.getCurrentSession().createCriteria(Phone.class);\n\t\tObject candidate = HibernateUtil.getCurrentSession().load(Candidate.class, candidateId);\n\t\tcriteria.add(Restrictions.eq(\"candidate\", candidate));\n\t\tcriteria = addOrder(criteria, \"primary\", ORDER_DESC);\n\t\treturn criteria.list();\n\t}", "@Override\n\tpublic List<DataTaxTaskDetailFavouredPolicy> getDetailFav(\n\t\t\tDataTaxTask entityview, Integer id) {\n\t\tList<DataTaxTaskDetailFavouredPolicy> list = taxTaskDao.getDetailFav(entityview,id);\n\t\treturn list;\n\t}", "List<ActivityHongbaoPrize> selectByExample(ActivityHongbaoPrizeExample example);", "@POST\n\t@Path(\"/getSharedWishlists/{id}\")\n\t@Produces(\"application/json\")\n\tpublic String getSharedWishlists(@PathParam(\"id\") String fullfiller_id) throws JSONException{\n\t\t\n\t\tWishlistFullfillersDAO wfdao = new WishlistFullfillersDAO();\n\t\tArrayList<Integer> wishlists = wfdao.getWishlistsByFullfillerID(fullfiller_id);\n\t\tJSONArray result = new JSONArray();\n\t\t\n\t\tif(wishlists!=null) {\n\t\t\tfor(int i=0; i<wishlists.size();i++) {\n\t\t\t\tJSONObject details = new JSONObject();\n\t\t\t\tdetails.put(\"wishlist_id\", wishlists.get(i));\n\t\t\t\t\n\t\t\t\tWishlistDAO wdao = new WishlistDAO();\n\t\t\t\tWishlist wishlist = wdao.getWishlistDetailsByID(wishlists.get(i));\n\t\t\t\t\n\t\t\t\tif(wishlist.getStatus().equals(\"ONGOING\")) {\n\t\t\t\t\tdetails.put(\"wishlist_name\", wishlist.getName());\n\t\t\t\t\tdetails.put(\"creator_id\", wishlist.getCreator_id());\n\t\t\t\t\t\n\t\t\t\t\tCustomerDAO cdao = new CustomerDAO();\n\t\t\t\t\tCustomer customer = cdao.getCustomerByID(wishlist.getCreator_id());\n\t\t\t\t\tdetails.put(\"creator_name\", customer.getName());\n\t\n\t\t\t\t\tresult.put(details);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn result.toString();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Follow> getlist(String hql, Object... obj) {\n\t\treturn util.queryHQL(hql, obj);\n\t}", "public ArrayList<Books> getsavedbooks(String id){\n User user = getById(id);\n ArrayList<Books> saved = new ArrayList<>();\n if(user!=null){\n for(SavedBook book : user.getSavedBooks()){\n int bookId = book.getBookId();\n if(book.getIsFinished().equals(\"False\")){\n Books save = bookService.getById(bookId);\n saved.add(save);\n }\n\n }\n return saved;\n }\n throw new UserNotFoundException(\"Sorry user not found!\");\n\n }", "@Override\r\n\tpublic List<HashMap<String, Object>> queryList(HashMap<String, Object> map) {\n\t\treturn crawlerCronJobDao.queryList(map);\r\n\t}", "public List<Record> _queryWholePatrolCard_Records(Long fid) {\n synchronized (this) {\n if (wholePatrolCard_RecordsQuery == null) {\n QueryBuilder<Record> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Fid.eq(null));\n wholePatrolCard_RecordsQuery = queryBuilder.build();\n }\n }\n Query<Record> query = wholePatrolCard_RecordsQuery.forCurrentThread();\n query.setParameter(0, fid);\n return query.list();\n }", "WsTodo[] getTodosByTodoList(String listId);", "@SuppressWarnings(\"unchecked\")\n private List<Hall> getHalls(Session session, int idCompany) {\n Query query = session.createQuery(\"FROM Hall WHERE idCompany = :id\");\n query.setParameter(\"id\", idCompany);\n return query.list();\n }", "List<UserInfo> getFriendsOfMine(Integer user_id);", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "List<Company> getFollowing();", "List<Reimbursement> getReimbursementsByUser(int id);", "public List<ActifFinancier> listemontant_actuelFond(Fond f){\n \t List<ActifFinancier> l = new ArrayList<>();\n \t if(f == Fond.Fond_Euro){\n \t\t l = actifFinancierRepo.findByNomFond(Fond.Fond_Euro);\n \t }\n \t else{\n \t\t l = actifFinancierRepo.findByNomFond(Fond.Euro_Croissance);\n \t }\n \t return l;\n }", "public List<UserJoins> listUserJoinsbyTid(Integer tid);", "public List<ActifFinancier> listemontant_actuelFondparUser(Fond f,int idUser){\n \t List<ActifFinancier> l ;\n \t if(f == Fond.Fond_Euro){\n \t l = actifFinancierRepo.listemontant_actuelFondEuroparUser(idUser) ;\n \t }\n \t else {\n \t\t l = actifFinancierRepo.listemontant_actuelEuroCroissanceparUser(idUser) ;\n \t }\n \t return l;\n }", "public List<RequestJob> getAllJob() {\n List<RequestJob> allJob = null;\n if (allJob == null) {\n allJob = requestJobMapper.selectByExample(new RequestJobExample());\n }\n MemCacheUtil.set(\"job-list\", allJob);\n return allJob;\n }", "java.util.List<People>\n getFriendListList();", "public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }", "List<User> getFollowersForUser(User user);", "@GetMapping(\"/favourite-songs\")\n @Timed\n public List<FavouriteSong> getAllFavouriteSongs() {\n log.debug(\"REST request to get all FavouriteSongs\");\n return favouriteSongRepository.findAll();\n }", "void fetchEmployeeJobRelations(int selectedJobId, AsyncCallback<ArrayList<JobEmployeeRelation>> asyncCallback);", "public final List<Meeting> getMeetingsHavingRecallWhichOccurNow(){\n\t\tList<Meeting> listMeeting = null;\n\t\t\n\t\tCalendar calendar = GregorianCalendar.getInstance();\n\t\tcalendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH),\n\t\t\t\tcalendar.get(Calendar.DATE), calendar.get(Calendar.HOUR_OF_DAY),\n\t\t\t\tcalendar.get(Calendar.MINUTE), 0);\n\t\tDate now = calendar.getTime();\n\t\t\n\t\tString nowFormatted = \"\";\n\t\tnowFormatted = DateUtils.renderDBDateWithSecond(now);\n\t\tlistMeeting = em\n\t\t\t\t.createQuery(\n\t\t\t\t\t\t\"SELECT m FROM Meeting m where m.recallDate = \\\"\" +\n\t\t\t\t\t\t\t\tnowFormatted + \"\\\"\",\n\t\t\t\t\t\tMeeting.class).getResultList();\n\t\t\n\t\treturn listMeeting;\n\t}", "public List<TodoItem> findByTodoListId(Long todoListId);", "public List<Oferta> ofertasEmpresa(int idEmpresa) throws SQLException {\n\t\ttry {\n\t\t\tList<Oferta> lista = new ArrayList<>();\n\n\t\t\tString sql = \"SELECT * FROM ofertas where empresa_id = (?) ORDER BY fecha_registro DESC\";\n\n\t\t\tthis.conectar();\n\n\t\t\tcs = conexion.prepareCall(sql);\n\t\t\tcs.setInt(1, idEmpresa);\n\t\t\trs = cs.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tOferta oferta = new Oferta();\n\t\t\t\toferta.setIdOferta(rs.getInt(\"oferta_id\"));\n\t\t\t\toferta.setTituloOferta(rs.getString(\"titulo\"));\n\t\t\t\toferta.setCantidadCuponesOferta(rs.getInt(\"cantidad_cupones\"));\n\t\t\t\toferta.setDescripcionOferta(rs.getString(\"descripcion\"));\n\t\t\t\toferta.setPrecioRegularOferta(rs.getDouble(\"precio_regular\"));\n\t\t\t\toferta.setPrecio_ofertaOferta(rs.getDouble(\"precio_oferta\"));\n\t\t\t\toferta.setFechaInicioOferta(rs.getDate(\"fecha_inicio\"));\n\t\t\t\toferta.setFechaFinOferta(rs.getDate(\"fecha_fin\"));\n\t\t\t\toferta.setFechaRegistroOferta(rs.getDate(\"fecha_registro\"));\n\t\t\t\toferta.setEstadoOferta(rs.getInt(\"estado\"));\n\n\t\t\t\tlista.add(oferta);\n\t\t\t}\n\n\t\t\tthis.desconectar();\n\n\t\t\treturn lista;\n\t\t} catch (SQLException ex) {\n\t\t\tLogger.getLogger(UsuarioModel.class.getName()).log(Level.SEVERE, null, ex);\n\n\t\t\tthis.desconectar();\n\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "@Override\n public List<PatientCaseDto> getAllByDoctor(Long doctorId) {\n return null;\n }" ]
[ "0.6546396", "0.63996416", "0.6362875", "0.6017239", "0.59365237", "0.5747026", "0.56734246", "0.5666918", "0.5640599", "0.5619388", "0.5382422", "0.5320933", "0.53135747", "0.5308374", "0.52578944", "0.52391744", "0.52369386", "0.52267814", "0.52103716", "0.5204337", "0.51611394", "0.51518846", "0.5140525", "0.5117005", "0.5087745", "0.50719094", "0.5069453", "0.50485903", "0.503619", "0.49899212", "0.49874613", "0.49601004", "0.49550638", "0.49453136", "0.49437183", "0.49408275", "0.4913696", "0.49047598", "0.4901594", "0.48999044", "0.48969653", "0.4870084", "0.48682913", "0.48273554", "0.48246872", "0.4819543", "0.48166224", "0.481327", "0.48067048", "0.4806589", "0.48052347", "0.47971055", "0.47908005", "0.4787241", "0.4775798", "0.4775305", "0.47629717", "0.47596613", "0.47591168", "0.47425357", "0.47393495", "0.4731601", "0.4717707", "0.47087246", "0.47081527", "0.47055018", "0.4681825", "0.46796983", "0.46763858", "0.46753848", "0.46700162", "0.4665842", "0.46655875", "0.46578884", "0.46558836", "0.46551847", "0.46551788", "0.46540886", "0.46509612", "0.4645197", "0.46383995", "0.46347862", "0.46330932", "0.46316904", "0.46282113", "0.46250352", "0.46248642", "0.46228167", "0.46163645", "0.46140438", "0.46132794", "0.46019486", "0.45977625", "0.45973942", "0.45920897", "0.45918286", "0.4587488", "0.4586855", "0.45796454", "0.45796373" ]
0.70315075
0
get a list of FavouriteJob matching jobCode but ignoring case.
@RequestMapping(value ="/jobCode/{jobCode}", method = RequestMethod.GET, produces = { "application/hal+json" }) public List<FavouriteJobs> getFavJobsByJobCode(@PathVariable String jobCode) { List<FavouriteJobs> favJobs = null; try { favJobs = favJobService.getFavJobsByJobCode(jobCode); } catch(Exception e) { throw new ObjectNotFoundException("FavouriteJob is not found by job code: " +jobCode); } if( favJobs.isEmpty() || favJobs != null) { for(FavouriteJobs favJob: favJobs) { Link selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel(); favJob.add(selfLink); } } return favJobs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value =\"/hospitalCode/{hospitalCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalCode(@PathVariable String hospitalCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalCode(hospitalCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital code: \" + hospitalCode);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "public ArrayList<Person> getQualifiedPeople(int jobCode) {\n ArrayList<Person> results = new ArrayList<Person>();\n\n String name = \"\";\n String email = \"\";\n\n try {\n PreparedStatement pStmt = conn.prepareStatement(\"SELECT DISTINCT NAME, EMAIL \\n\" +\n \"FROM PERSON NATURAL JOIN (\\n\" +\n \" SELECT PER_ID\\n\" +\n \" FROM PERSON_SKILL A\\n\" +\n \" WHERE NOT EXISTS (\\n\" +\n \" \\n\" +\n \" -- get skills of specific job\\n\" +\n \" SELECT JOB_SKILL.KS_CODE\\n\" +\n \" FROM JOB_SKILL INNER JOIN JOB_LISTING\\n\" +\n \" ON JOB_SKILL.JOB_CODE = JOB_LISTING.JOB_CODE\\n\" +\n \" WHERE JOB_SKILL.JOB_CODE=? AND JOB_LISTING.COMP_ID=?\\n\" +\n \" \\n\" +\n \" MINUS\\n\" +\n \" \\n\" +\n \" -- get skills of person\\n\" +\n \" (SELECT KS_CODE\\n\" +\n \" FROM PERSON_SKILL B\\n\" +\n \" WHERE A.PER_ID = B.PER_ID)\\n\" +\n \" )\\n\" +\n \")\");\n\n pStmt.setString(1, jobCode + \"\");\n pStmt.setString(2, this.compId + \"\");\n ResultSet rset = pStmt.executeQuery();\n\n while(rset.next()){\n name = rset.getString(1);\n email = rset.getString(2);\n\n Person person = new Person(name, email);\n results.add(person);\n }\n\n } catch(Exception e) {\n System.out.println(\"\\nError in method qualifiedPeople of Company: \" + e);\n }\n\n return results;\n }", "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@RequestMapping(value = \"/list/\", method = RequestMethod.GET, produces = {\"application/hal+json\"})\n\tpublic List<FavouriteJobs> getAllFavJobs(){\n\t\tList<FavouriteJobs> favJobsList = null;\n\t\ttry {\n\t\t\tfavJobsList = favJobService.getAllFavJobs();\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception Handle\n\t\t}\n\t\t\n\t\treturn favJobsList;\n\t}", "public List<Employee> getEmployeesByOffice(String officeCode) {\n return employeeDao.selectOfficeCode(officeCode);\n// return getAll().stream().filter(emp -> emp.getOfficeCode() == null\n// ? null\n// : emp.getOfficeCode().equals(officeCode))\n// .collect(Collectors.toList());\n }", "java.util.List<cb.Careerbuilder.Job> \n getJobsList();", "public List<Student> getStudentsByFirstName(String fname) {\n\t\tList<Student> sameNames = new ArrayList<Student>();\r\n\t\t\r\n\t\t//loop over array list\r\n\t\t//for student type elements in the students array list do\r\n\t\tfor(Student student: students) {\r\n\t\t\t//if i find a student with the given first name then add to list\r\n\t\t\tif(student.getFirstName().equalsIgnoreCase(fname)) {\r\n\t\t\t\tsameNames.add(student);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//check if list has any students\r\n\t\tif(sameNames.size()>0) {\r\n\t\t\t//if students were found then return the list\r\n\t\t\treturn sameNames;\r\n\t\t}\r\n\t\t\r\n\t\t//if no students were found with that first name then return null\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic List<CompanyBoardVO> listSearchCriteria(String code) throws Exception {\n\t\treturn dao.listSearchCriteria(code);\r\n\t}", "@RequestMapping(value =\"/hospitalName/{hospitalName}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalName(@PathVariable String hospitalName) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalName(hospitalName);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital name: \" + hospitalName);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@Override\n\tpublic List<MusicRecom> findSmallClass(String code) {\n\t\treturn musicRecomDao.findSmallClass(code);\n\t}", "@Override\n\tpublic List<Bike> findBikeByCode(String bikeCode) throws Exception {\n\t\tBikeExample bikeExample = new BikeExample();\n\t\tBikeExample.Criteria criteria = bikeExample.createCriteria();\n\t\tcriteria.andBikeCodeLike(\"%\"+bikeCode+\"%\");\n\t\tList<Bike> bikeList = bikeMapper.selectByExample(bikeExample);\n\t\tif (bikeList.size() > 0) {\n\t\t\treturn bikeList;\n\t\t}\n\t\treturn null;\n\t}", "java.util.List<com.google.cloud.talent.v4.Job> \n getJobsList();", "List<T> buscarTodosComNomeLower();", "private void exercise1() {\n final List<String> list = asList(\n \"The\", \"Quick\", \"BROWN\", \"Fox\", \"Jumped\", \"Over\", \"The\", \"LAZY\", \"DOG\");\n\n final List<String> lowerList = list.stream()\n .map(String::toLowerCase)\n .peek(System.out::println)\n .collect(toList());\n }", "@RequestMapping(value = \"/list/{pjobId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList1(@PathVariable(\"pjobId\") Integer pjobId) {\n ProfessionJob professionJob = professionJobService.getProfessionJob(pjobId).get();\n List<JobRequireProfessionJob> list = jobService.findAllByProfessionJob(professionJob);\n List<Job> jobsAfterFilterByProfession = new ArrayList<>();\n for(JobRequireProfessionJob jrpj : list) {\n jobsAfterFilterByProfession.add(jrpj.getJob());\n }\n return jobsAfterFilterByProfession;\n }", "@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }", "public void filterByFoReason(String enteredReason){\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n // get the mood event's trigger text\n keyOfReason = moodListBeforeFilterFo.getMoodEvent(i).getTriggerText();\n // if it contains the entered key of reason, then add it to the new list\n if (keyOfReason != null && keyOfReason.toLowerCase().contains(enteredReason.toLowerCase())) {\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }\n }", "List<String> getFruitNameList() {\t\n\t\tList<String> fruitNameList = new ArrayList<>();\n\t\tfor(Fruit fruit : fruitList){\n\t\t\tfruitNameList.add(fruit.getName());\n\t\t}\n\t\treturn fruitNameList;\n\t}", "public List<Favorite> getFavorites(String signedInAccount) {\n String[] columns = {\n mDBAccountString, mDBTitleString, mDBDescString, mDBURLString\n };\n String[] selectArgs = {signedInAccount};\n\n Cursor cursor = mFavSQLiteDB.query(\n FAVORITES_TABLE,\n columns,\n mDBAccountString + \" = ?\",\n selectArgs,\n null,\n null,\n null\n );\n cursor.moveToFirst();\n List<Favorite> list = new ArrayList<>();\n for (int i = 0; i < cursor.getCount(); i++) {\n String account = cursor.getString(0);\n String title = cursor.getString(1);\n String desc = cursor.getString(2);\n String url = cursor.getString(3);\n Favorite favorite = new Favorite(account, title, desc, url);\n list.add(favorite);\n cursor.moveToNext();\n }\n cursor.close();\n return list;\n }", "public java.util.List<cb.Careerbuilder.Job> getJobsList() {\n if (jobsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(jobs_);\n } else {\n return jobsBuilder_.getMessageList();\n }\n }", "public String[] getAllJobs();", "private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }", "public List<Job> loadJobs(Map<String, Object> cmap) {\n CriteriaBuilder builder = em.getCriteriaBuilder();\n CriteriaQuery<JobEntity> criteriaQuery = builder.createQuery(JobEntity.class);\n Root<JobEntity> jobRoot = criteriaQuery.from(JobEntity.class);\n criteriaQuery.select(jobRoot);\n\n List<Predicate> predicates = buildPredicatesFromConditions(cmap, builder, jobRoot);\n criteriaQuery.where(builder.and(predicates.toArray(new Predicate[0])));\n return getResultsFromQuery(criteriaQuery);\n }", "public List findNameByCode(Map map) {\n\t\treturn apMessageDao.findNameByCode(map);\r\n\t\t\r\n\t}", "public static ArrayList<String> Searching_OnPeople_who_AddMe() {\n\t\t\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\t\tArrayList<String> requests= new ArrayList<String>();\n\t\tQuery gaeQuery = new Query(\"friends\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t\n\t\t\tif (entity.getProperty(\"friendEmail\").toString().equals(User.getCurrentActiveUser().getEmail().toString())&&\n\t\t\t\t\t!entity.getProperty(\"status\").toString().equals(\"accept\")) {\n\t\t\t\t\n\t\t\t\trequests.add(entity.getProperty(\"myEmail\").toString());\n\t\t\t\t\n\t\t\t }\nelse{\n\t\t\t\t }\n\t\t}\n\t\treturn requests;\n\t\n\t}", "java.util.List<com.lvl6.proto.QuestProto.UserQuestJobProto> \n getUserQuestJobsList();", "@Override\n public boolean onQueryTextSubmit(String query) {\n if (AfterLoginActivity.this.latestBookList != null) {\n searchBookList = new ArrayList<>();\n\n for (Book book : AfterLoginActivity.this.latestBookList) {\n //str1.toLowerCase().contains(str2.toLowerCase())\n if (book.getName().toLowerCase().contains(query.toLowerCase())) {\n //add to search book list\n searchBookList.add(book);\n }\n }\n //set books to book list view\n AfterLoginActivity.this.bookListFragment.setBooks(searchBookList);\n }\n return true;\n }", "private List<String> listCodesPizza() {\n\t\tString[] paths = file.list();\n\t\tList<String> stringList = new ArrayList<String>(Arrays.asList(paths));\n\t\treturn stringList;\n\t}", "private ArrayList<MovieItem> getFavoriteMovies(){\n //get list of favorite movies from buffer\n ArrayList<MovieItem> movies = mMovieStaff.getMovies(PosterHelper.NAME_ID_FAVORITE);\n\n //check if favorite movie list has changed\n if(mFavoriteChanged){\n //list has changed, show new movie list\n showMovieList(movies, PosterHelper.NAME_ID_FAVORITE);\n }\n\n //return movie list\n return movies;\n }", "List<Item> findByNameContainingIgnoreCase(String name);", "public List queryNameByCode(Map map) {\n\t\treturn apMessageDao.queryNameByCode(map);\r\n\t}", "public List<ApMessage> searchbyCode(Map<String, Object> map) {\n\t\treturn apMessageDao.searchbyCode(map);\r\n\t}", "public static List<Apple> filter(List<Apple> apples, Predicate<Apple> predicate) {\n\n\t\tList<Apple> result = new ArrayList<>();\n\t\tfor (Apple apple : apples) {\n\t\t\tif (predicate.test(apple)) {\n\t\t\t\tresult.add(apple);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\n\t}", "public ArrayList<String> findProductCodes(){\n\t\t\tArrayList<String> returnCodeNames = new ArrayList<String>();\n\t\t\t\n\t\t\tfor(Product p: products){\n\t\t\t\treturnCodeNames.add(p.getProductCode());\n\t\t\t}\n\t\t\t\n\t\t\treturn returnCodeNames;\n\t\t\t\n\t\t}", "private List<Flight> getFlightsFromOrigin(String originCode) {\n\t\tList<Flight> possibleFlights = new LinkedList<>();\n\t\tfor (Flight f : flights) {\n\t\t\tif (f.getOrigin().equals(originCode)) {\n\t\t\t\tpossibleFlights.add(f); // add it to the returned list if it has that as the origin\n\t\t\t}\n\t\t}\n\t\treturn possibleFlights;\n\t}", "public List<Chef_favorito> findByNomeChefContainingIgnoreCase(String nomePesquisa);", "public static List<String> getMatches(String value, Collection<String> list, boolean caseInsensitive) {\n List<String> result = new LinkedList<>();\n\n for (String str : list) {\n if (str.startsWith(value.toLowerCase())\n || (caseInsensitive && str.toLowerCase().startsWith(value.toLowerCase()))) {\n result.add(str);\n }\n }\n\n return result;\n }", "@Override\r\n\tpublic List<CabinCrew> findCabinCrewByHomeBase(String airportCode) {\r\n\t\tList<CabinCrew> cabinCrewByHomeBase = new ArrayList<CabinCrew>();\r\n\t\tfor (CabinCrew c : cabinCrew) {\r\n\t\t\tif (c.getHomeBase().equals(airportCode)) {\r\n\t\t\t\tcabinCrewByHomeBase.add(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cabinCrewByHomeBase;\r\n\t}", "public List<Person2> findByJobLocationIgnoreCase(String jobLocation);", "public ArrayList<String> get_name_code_Smells() {\n\t\tArrayList<String> keys = new ArrayList<String>();\n\t\tkeys.addAll(getCode_Smells().keySet());\n\t\treturn keys;\n\t}", "public Set<String> getCitiesForCode( String code )\n {\n return codeToCityMap.get( code );\n }", "public static void main(String[] args) {\n\r\n\t\tArrays.asList(\"Fred\", \"jim\", \"Sheila\")\r\n\t\t.stream()\r\n\t\t.peek(System.out::println)\r\n\t\t.allMatch(s -> s.startsWith(\"F\")); // fred jim\r\n\t}", "@RequestMapping(value =\"/doctorId/{docId}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByDocId(@PathVariable Long docId) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByDocId(docId);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by doctor Id: \"+ docId);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "public java.util.List<cb.Careerbuilder.Job> getJobsList() {\n return jobs_;\n }", "public Collection<String> list() {\n return jobs.keySet();\n }", "List<Object> retrieveSchemeNamesForApplication(long applicationId);", "@Override\n\tpublic ArrayList<DetailCodeBean> findDetailCodeList(String code) {\n\t\tif(logger.isDebugEnabled()){ logger.debug(\" CodeListApplicationServiceImpl : findDetailCodeList 시작 \"); }\n\t\t\n\t\tArrayList<DetailCodeBean> detailCodeList = null;\n\t\ttry{\n\t\tdetailCodeList = detailCodeDAO.selectDetailCodeList(code);\n\t\t}catch(Exception e){\n\t\t\tlogger.fatal(e.getMessage());\n\t\t\tthrow e; \n\t\t}\n\t\tif(logger.isDebugEnabled()){ logger.debug(\" CodeListApplicationServiceImpl : findDetailCodeList 종료 \"); }\n\t\treturn detailCodeList;\n\t}", "public ArrayList<NameRecord> getMatches(String partialName){\n\t\tpartialName=partialName.toLowerCase();\n\t\tArrayList<NameRecord> result = new ArrayList<NameRecord>();\n\t\tfor (int i = 0;i<names.size();i++){\n\t\t\tString s = names.get(i).toLowerCase();\n\t\t\tif (s.contains(partialName)){\n\t\t\t\tresult.add(list.get(i));\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\tList<String> lines = Arrays.asList(\"spring\", \"node\", \"mkyong\");\r\n\r\n List<String> result = lines.stream() // convert list to stream\r\n .filter(line -> !\"mkyong\".equals(line)) // we dont like mkyong\r\n .collect(Collectors.toList()); // collect the output and convert streams to a List\r\n\r\n result.forEach(System.out::println); //output : spring, node\r\n \r\n \r\n \r\n \r\n //Streams filter(), findAny() and orElse()\r\n List<Person> persons = Arrays.asList(\r\n new Person(\"mkyong\", 30),\r\n new Person(\"jack\", 20),\r\n new Person(\"lawrence\", 40)\r\n );\r\n\r\n Person result1 = persons.stream() // Convert to steam\r\n .filter(x -> \"jack\".equals(x.getName())) // we want \"jack\" only\r\n .findAny() // If 'findAny' then return found\r\n .orElse(null); // If not found, return null\r\n\r\n System.out.println(result1);\r\n \r\n \r\n \r\n \r\n //A List of Strings to Uppercase\r\n List<String> alpha = Arrays.asList(\"a\", \"b\", \"c\", \"d\");\r\n // Java 8\r\n List<String> collect = alpha.stream().map(String::toUpperCase).collect(Collectors.toList());\r\n System.out.println(collect); //[A, B, C, D]\r\n\r\n\t}", "public List<Agent> listAgentByAgentType(String code);", "public static List<String> getSpainCoach() throws URISyntaxException, IOException {\n\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/77\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> nameOfSpainTeamCoach= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getRole().equals(\"COACH\")){\n\n nameOfSpainTeamCoach.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n continue;\n }\n\n }\n return nameOfSpainTeamCoach;\n }", "public void searchByName() {\n System.out.println(\"enter a name to search\");\n Scanner sc = new Scanner(System.in);\n String fName = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (fName.equals(person.getFirstName())) {\n List streamlist = list.stream().\n filter(n -> n.getFirstName().\n contains(fName)).\n collect(Collectors.toList());\n System.out.println(streamlist);\n }\n }\n }", "private ArrayList<String> getList(int code) {\n\t\tif (!infoList.containsKey(code)) {\n\t\t\tinfoList.put(code, new ArrayList<String>());\n\t\t}\n\t\treturn infoList.get(code);\n\t}", "public List<String> autocomplete(String prefix) {\r\n\r\n ArrayList<String> result = new ArrayList<String>();\r\n result.add(\"England\");\r\n result.add(\"France\");\r\n result.add(\"Germany\");\r\n result.add(\"Italy\");\r\n result.add(\"Spain\");\r\n\r\n return result;\r\n }", "public void searchByEmail() {\n System.out.println(\"enter email to get that person details:\");\n Scanner sc = new Scanner(System.in);\n String email = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (email.equals(person.getEmail())) {\n List streamList = list.stream().filter(n -> n.getEmail().contains(email)).collect(Collectors.toList());\n System.out.println(streamList);\n }\n }\n }", "public List<String> getAllNames() {\n\t\tList<String> names = new ArrayList<>();\n\t\tfor(PhoneBookEntry entry : entries.values()) {\n\t\t\tnames.add(entry.getName());\n\t\t}\n\t\tCollections.sort(names);\n\t\treturn Collections.unmodifiableList(names);\n\t}", "List<CabinClassModel> findCabinClasses();", "List<Codebadge> search(String query);", "public static ArrayList<Job> getJob()\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n ArrayList<Job> returnValue = new ArrayList<>();\n\n stmt = conn.createStatement();\n String sql = \"SELECT * FROM job NATURAL JOIN recruiter NATURAL JOIN location;\";\n ResultSet rs = stmt.executeQuery(sql);\n while(rs.next()) {\n returnValue.add(new Job(\n rs.getInt(\"job_id\"),\n rs.getString(\"job_name\"),\n new Recruiter(\n rs.getInt(\"recruiter_id\"),\n rs.getString(\"name\"),\n rs.getString(\"email\"),\n rs.getString(\"phone_number\"),\n new Location(\n rs.getString(\"province\"),\n rs.getString(\"city\"),\n rs.getString(\"description\")\n )\n ),\n rs.getInt(\"fee\"),\n JobCategory.valueOf(rs.getString(\"category\"))\n ));\n }\n rs.close();\n stmt.close();\n conn.close();\n return returnValue;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return null;\n }\n }", "public static void searchJobs(String searchTerm) {\n\n for (int i = 0; i > PostJob.allJobs.size(); i++) {\n\n\n if (PostJob.allJobs.contains(searchTerm)) {\n int itemIndx = PostJob.allJobs.indexOf(searchTerm);\n String output = PostJob.allJobs.get(itemIndx);\n System.out.print(\"Available jobs within your search terms\" + output);\n\n }\n }\n }", "private ArrayList<String> getAllActions() {\n\t\t\n\t\tArrayList<String> allActions = new ArrayList<String>();\n\t\tallActions.add(\"Job fisher\");\n\t\tallActions.add(\"Job captain\");\n\t\tallActions.add(\"Job teacher\");\n\t\tallActions.add(\"Job factory worker\");\n\t\tallActions.add(\"Job factory boss\");\n\t\tallActions.add(\"Job elderly caretaker\");\n\t\tallActions.add(\"Job work outside village\");\n\t\tallActions.add(\"Job unemployed\");\n\t\treturn allActions;\n\t}", "public void filterByMyReason(String enteredReason){\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterMy.getCount(); i++ ){\n // get the mood event's trigger text\n keyOfReason = moodListBeforeFilterMy.getMoodEvent(i).getTriggerText();\n // if it contains the entered key of reason, then add it to the new list\n if (keyOfReason != null && keyOfReason.toLowerCase().contains(enteredReason.toLowerCase())) {\n moodListAfterFilter.add(moodListBeforeFilterMy.getMoodEvent(i));\n }\n }\n }", "public static void main(String[] args) throws FileNotFoundException {\n\n ArrayList<String> names = new ArrayList<>();\n Scanner scanner = new Scanner(new File(\"People.csv\"));\n scanner.nextLine();\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n String[] columns = line.split(\",\");\n String name = columns[1] + \" \" + columns[2];\n names.add(name);\n }\n\n Scanner consoleScanner = new Scanner(System.in);\n System.out.println(\"Type Search Term\");\n String searchTerm = consoleScanner.nextLine();\n\n// String searchTerm = \"mur\";\n\n //solve for via loop\n for (String name: names) {\n if (name.toLowerCase().contains(searchTerm)) {\n System.out.println(name);\n }\n }\n System.out.println();\n\n //solve via stream\n names.stream()\n .map(name -> name.toLowerCase())\n .filter(name -> name.toLowerCase().contains(searchTerm.toLowerCase()))\n// .forEach(System.out::println);\n .collect(Collectors.toCollection(ArrayList<String>::new));\n System.out.println();\n }", "@Override\r\n\tpublic List<Applier> retrieveAppliersByRole(String role) {\n\t\treturn em.createQuery(\"Select a from Applier a where a.role like '\" + role + \"'\").getResultList();\r\n\t}", "@Override\n public List<FoodItem> filterByName(String substring) {\n if (foodItemList == null || foodItemList.size() == 0)\n return foodItemList;\n List<FoodItem> foodCandidate = new ArrayList<>();\n \tfor (FoodItem food : foodItemList) {\n if (food.getName().equals(substring)) {\n foodCandidate.add(food);\n }\n \t}\n return foodCandidate;\n \n }", "List<City> findByNameIgnoringCase(String cityName);", "List<Company> getSuggestionsToFollow();", "List<String> getFavoriteRecipeTitle();", "public ArrayList<String> loadFavorites() {\n\n\t\tSAVE_FILE = FAVORITE_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "abstract List<String> filterByStartingWithA();", "@Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n FilterResults results = new FilterResults();\n\n if (charSequence != null && charSequence.length() > 0) {\n charSequence = charSequence.toString().toUpperCase();\n ArrayList<Icon> filterIcon = new ArrayList<>();\n\n for (int i = 0; i < mFilterList.size(); i++) {\n if (mFilterList.get(i).getName().toUpperCase().contains(charSequence)) {\n filterIcon.add(mFilterList.get(i));\n }\n }\n\n results.count = filterIcon.size();\n results.values = filterIcon;\n } else {\n results.count = mFilterList.size();\n results.values = mFilterList;\n }\n\n return results;\n }", "public static List<Job> findByTitle(String title) {\n\t\treturn getPersistence().findByTitle(title);\n\t}", "@Override\n\tpublic List<Applicant> getAllApplicantUsingRegex() {\n\t\tSystem.out.println(\"Fname Ending with a \");\n\t\tQuery query = new Query().addCriteria(Criteria.where(\"fname\").regex(\"a$\"));\n\t\treturn applicantMongoTemplate.find(query, Applicant.class);\n\t}", "public List<String> autoComplete(String inputValue) {\n System.out.println(\"The input value is: \" + inputValue);\n List<String> outputList = new ArrayList<String>();\n\n StockDetailsROVOImpl vo = getStockDetailsROVO();\n\n vo.executeQuery();\n RowSetIterator it = vo.createRowSetIterator(null);\n\n while (it.hasNext()) {\n StockDetailsROVORowImpl newRow =\n (StockDetailsROVORowImpl)it.next();\n if (newRow.getStockname().toLowerCase().startsWith(inputValue)) {\n outputList.add(newRow.getStockname());\n System.out.println(newRow.getStockname());\n }\n }\n vo.clearCache();\n it.closeRowSetIterator();\n return outputList;\n }", "List<GameCode> getGameCodeList();", "public List<Job> filteredJobsList(Map<String, String> filterParameters) throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn this.filteredJobsList(filterParameters, 0, 0);\n\t}", "public List<User> findAutoCompleteUser(String key) {\n\t\tTypedQuery<User> query = em.createQuery(\"select distinct a from User a\" + \" where UPPER(a.name) like :name\",\n\t\t\t\tUser.class);\n\t\tquery.setParameter(\"name\", \"%\" + key.toUpperCase() + \"%\");\n\t\tList<User> userLst = query.setFirstResult(0).setMaxResults(10).getResultList();\n\n\t\treturn userLst;\n\t}", "@Override\r\n\tpublic List<IncomingJobResponse> getJobList() {\n\t\tList<IncomingJobs> js = (List<IncomingJobs>)incomingRepository.fetchincomingJobs();\r\n\t\tList<IncomingJobResponse> joblist = new ArrayList<IncomingJobResponse>();\r\n\t\tfor(IncomingJobs job :js){\r\n\t\t\tIncomingJobResponse jobs = new IncomingJobResponse();\r\n\t\t\tSystem.out.println(\"ATA:\"+job.getAta()+\"ETA:\"+job.getEta());\r\n\t\t\tjobs.setJobid(job.getID());\r\n\t\t\t\r\n\t\t\tif(job.getEta()!=null){\r\n\t\t\tjobs.setEta(job.getEta().toString());\r\n\t\t\t}\r\n\t\t\tif(job.getAta()!=null){\r\n\t\t\tjobs.setAta(job.getAta().toString());\r\n\t\t\t}\r\n\t\t\tjobs.setBroker(job.getBroker());\r\n\t\t\tjobs.setClear(job.getClear());\r\n\t\t\tjobs.setConsignee(job.getConsignee());\r\n\t\t\tjobs.setDestination(job.getDestination());\r\n\t\t\tjobs.setFlight(job.getFlight());\r\n\t\t\tjobs.setHawb(job.getHawb());\r\n\t\t\tjobs.setHeld(job.getHeld());\r\n\t\t\tjobs.setMawb(job.getMawb());\r\n\t\t\tjobs.setMLID(job.getMLID());\r\n\t\t\tjobs.setNote(job.getNote());\r\n\t\t\tjobs.setOutturn(job.getOutturn());\r\n\t\t\tjobs.setPiece(job.getPiece());\r\n\t\t\tjobs.setWeight(job.getWeight());\r\n\t\t\tif(job.getInjectionDate()!=null){\r\n\t\t\t\tjobs.setInjectionDate(job.getInjectionDate().toString());\r\n\t\t\t\t}\r\n\t\t\tif(job.getClearanceDate()!=null){\r\n\t\t\t\tjobs.setClearanceDate(job.getClearanceDate().toString());\r\n\t\t\t\t}\r\n\t\t\tjobs.setDamage(job.getDamageNotes());\r\n\t\t\tjobs.setSurplus(job.getSurplusShortage());\r\n\t\t\tjoblist.add(jobs);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn joblist;\r\n\t}", "List getCompanies(OwnCodes ownCodes) throws PopulateDataException;", "public List<T> suggestFriends(T name) {\n List<T> fSuggestions = new ArrayList<>();\n List<T> names = map.get(name);\n for(T n: names) {\n List<T> fNames = map.get(n);\n for(T fn: fNames) {\n if(!names.contains(fn) && !fn.equals(name)) {\n fSuggestions.add(fn);\n }\n }\n }\n return fSuggestions;\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n constraint = constraint.toString().toLowerCase();\n FilterResults result = new FilterResults();\n if (constraint != null && constraint.toString().length() > 0) {\n List<Message> filt = new ArrayList<Message>(); //filtered list\n for (int i = 0; i < originalData.size(); i++) {\n Message m = originalData.get(i);\n if (m.getSender().getEmailAddress().getName().toLowerCase().contains(constraint)) {\n filt.add(m); //add only items which matches\n }\n }\n result.count = filt.size();\n result.values = filt;\n } else { // return original list\n synchronized (this) {\n result.values = originalData;\n result.count = originalData.size();\n }\n }\n return result;\n }", "public ArrayList<String[]> getFavoritePairs() {\n ArrayList<String[]> favPairs = new ArrayList<>();\n for(Landmark landmark : landmarks.getFavorites()) {\n favPairs.add(new String[]{landmark.getName(), landmark.getLocation().toString(), landmark.getDescription()});\n }\n return favPairs;\n }", "public List<String> getFavoriteFoods() {\n return new ArrayList<>(favoriteFoods);\n }", "@GetMapping(value = \"/search\")\n\tpublic String searchName(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\tmodel.addAttribute(\"employees\", employeerepository.findByFnameIgnoreCaseContaining(fname));\n\t\treturn \"employeelist\";\n\t}", "public List<String> q3() {\n\t\tList<String> top20 = jogadores.stream()\n\t\t\t\t.map(x-> x.getFullName())\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn top20.subList(0,20);\n\t}", "public static List<String> m57031a(Context context) {\n ArrayList arrayList = new ArrayList();\n if (C17095a.m85219b(C6969H.m41409d(\"G7A97DA0A8031BB39EA07835C\"), false)) {\n return arrayList;\n }\n try {\n for (ApplicationInfo applicationInfo : context.getPackageManager().getInstalledApplications(128)) {\n arrayList.add(applicationInfo.loadLabel(context.getPackageManager()).toString());\n }\n } catch (Exception unused) {\n }\n return arrayList;\n }", "public java.util.List<? extends cb.Careerbuilder.JobOrBuilder> \n getJobsOrBuilderList() {\n if (jobsBuilder_ != null) {\n return jobsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(jobs_);\n }\n }", "List<Student> findByNameContainingIgnoringCase(String name);", "public Items[] findWhereCodeEquals(String code) throws ItemsDaoException;", "private ArrayList<Integer> getListOnCode(String code) {\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < copyOfChunks.size(); i++) {\n\t\t\tif (copyOfChunks.get(i).getCode().equals(code)) {\n\t\t\t\tlist.add(i);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "@Override\n\tpublic ArrayList<SearchItem> search(String key) {\n\t\treturn null;\n\t}", "@FXML\n public void filterCupboardIngredients(){\n String searchText = searchIngredientCupboard.getText();\n List<Ingredient> filteredList = ingredientsFromDatabase.stream().filter(new Predicate<Ingredient>() {\n @Override\n public boolean test(Ingredient ingredient) {\n //inclusive of the upper cases makes it case insensitive\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }\n }).collect(Collectors.toList());\n filterObservableList = FXCollections.observableList(filteredList);\n allIngredientsCupboardPane.setItems(filterObservableList);\n }", "@GetMapping(\"/_search/job-bids\")\n @Timed\n public List<JobBid> searchJobBids(@RequestParam String query) {\n log.debug(\"REST request to search JobBids for query {}\", query);\n return StreamSupport\n .stream(jobBidSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "public void f5(List<Book> a) {\r\n for (Book o : a) {\r\n String code = o.getCode();\r\n String result = \"\";\r\n for (int i = 0; i < code.length(); i++) {\r\n char c = code.charAt(i);\r\n if (Character.isLetter(c)) {\r\n if (Character.isUpperCase(c)) {\r\n c = Character.toLowerCase(c);\r\n } else {\r\n c = Character.toUpperCase(c);\r\n }\r\n }\r\n result += c;\r\n }\r\n o.setCode(result);\r\n }\r\n }", "private List<LocaleListItem> gatherLocales(String languageCode) {\n final ArrayList<LocaleListItem> result = new ArrayList<LocaleListItem>();\n for (Locale locale : Locale.getAvailableLocales()) {\n if (locale.getLanguage().equals(languageCode)) {\n result.add(new LocaleListItem(locale));\n }\n }\n return result;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Code> getList() {\n\t\treturn this.getHibernateTemplate().find(\"from Code\");\r\n\t}", "public static List<DTOBase> getFaceLogListByUserCode(List<DTOBase> faceLogList, String userCode) {\r\n\t\tList<DTOBase> resultList = new ArrayList<DTOBase>();\r\n\t\tfor(DTOBase faceLogObj: faceLogList) {\r\n\t\t\tFaceLogDTO faceLog = (FaceLogDTO) faceLogObj;\r\n\t\t\tif(faceLog.getUserRFID().getUserCode().equalsIgnoreCase(userCode)) {\r\n\t\t\t\tresultList.add(faceLog);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn resultList;\r\n\t}", "@Override\r\n\tpublic List<Job> ShowAllJobs() {\n\t\treturn null;\r\n\t}", "List<Job> findAllByClientName(String query);", "public static List<Student> filterExample(){\n\t\tList<Student> genderFilter = StudentDataBase.getAllStudents().stream()\n\t\t\t\t.filter(stu->stu.getGender().equals(\"female\")).collect(Collectors.toList());\n\t\treturn genderFilter;\n\t}" ]
[ "0.59669924", "0.5703143", "0.539703", "0.52123785", "0.5048196", "0.5026883", "0.50192016", "0.501437", "0.49364364", "0.49189618", "0.48754945", "0.4865154", "0.48496976", "0.48417863", "0.47825584", "0.4781294", "0.4780461", "0.47759327", "0.47673398", "0.47642198", "0.47613487", "0.47510767", "0.4741713", "0.46991122", "0.46872753", "0.46631128", "0.46431085", "0.4642438", "0.46396303", "0.46279266", "0.4620748", "0.4614964", "0.46079034", "0.4607494", "0.4595813", "0.45872724", "0.4578381", "0.4577833", "0.45770264", "0.45620465", "0.4557519", "0.45566496", "0.45559695", "0.4552139", "0.455047", "0.45480394", "0.4545752", "0.45451683", "0.45322686", "0.45255616", "0.45226318", "0.4522512", "0.4521198", "0.45067915", "0.45066264", "0.44950777", "0.4490173", "0.4488401", "0.44861338", "0.44830462", "0.44760957", "0.44663396", "0.4465328", "0.4459135", "0.44584844", "0.44573507", "0.44541773", "0.44500282", "0.44466949", "0.4442307", "0.444036", "0.442663", "0.44247645", "0.44222936", "0.44189116", "0.44139656", "0.44113496", "0.4409393", "0.44037175", "0.4395184", "0.43927893", "0.4388311", "0.4387458", "0.43794513", "0.4378293", "0.43663645", "0.43590093", "0.4352164", "0.43512878", "0.43509042", "0.4347814", "0.43438056", "0.4333685", "0.4326066", "0.43218198", "0.43125942", "0.4312344", "0.43116707", "0.43105513", "0.43092933" ]
0.71581036
0
get a list of FavouriteJob matching hospitalCode but ignoring case.
@RequestMapping(value ="/hospitalCode/{hospitalCode}", method = RequestMethod.GET, produces = { "application/hal+json" }) public List<FavouriteJobs> getFavJobsByHospitalCode(@PathVariable String hospitalCode) { List<FavouriteJobs> favJobs = null; try { favJobs = favJobService.getFavJobsByHospitalCode(hospitalCode); } catch(Exception e) { throw new ObjectNotFoundException("FavouriteJob is found by hospital code: " + hospitalCode); } if(favJobs.isEmpty() || favJobs != null) { for(FavouriteJobs favJob: favJobs) { Link selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel(); favJob.add(selfLink); } } return favJobs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value =\"/hospitalName/{hospitalName}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalName(@PathVariable String hospitalName) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalName(hospitalName);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital name: \" + hospitalName);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@RequestMapping(value =\"/jobCode/{jobCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByJobCode(@PathVariable String jobCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByJobCode(jobCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by job code: \" +jobCode);\n\t\t}\t\t\n\t\t\n\t\tif( favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "public ArrayList<Person> getQualifiedPeople(int jobCode) {\n ArrayList<Person> results = new ArrayList<Person>();\n\n String name = \"\";\n String email = \"\";\n\n try {\n PreparedStatement pStmt = conn.prepareStatement(\"SELECT DISTINCT NAME, EMAIL \\n\" +\n \"FROM PERSON NATURAL JOIN (\\n\" +\n \" SELECT PER_ID\\n\" +\n \" FROM PERSON_SKILL A\\n\" +\n \" WHERE NOT EXISTS (\\n\" +\n \" \\n\" +\n \" -- get skills of specific job\\n\" +\n \" SELECT JOB_SKILL.KS_CODE\\n\" +\n \" FROM JOB_SKILL INNER JOIN JOB_LISTING\\n\" +\n \" ON JOB_SKILL.JOB_CODE = JOB_LISTING.JOB_CODE\\n\" +\n \" WHERE JOB_SKILL.JOB_CODE=? AND JOB_LISTING.COMP_ID=?\\n\" +\n \" \\n\" +\n \" MINUS\\n\" +\n \" \\n\" +\n \" -- get skills of person\\n\" +\n \" (SELECT KS_CODE\\n\" +\n \" FROM PERSON_SKILL B\\n\" +\n \" WHERE A.PER_ID = B.PER_ID)\\n\" +\n \" )\\n\" +\n \")\");\n\n pStmt.setString(1, jobCode + \"\");\n pStmt.setString(2, this.compId + \"\");\n ResultSet rset = pStmt.executeQuery();\n\n while(rset.next()){\n name = rset.getString(1);\n email = rset.getString(2);\n\n Person person = new Person(name, email);\n results.add(person);\n }\n\n } catch(Exception e) {\n System.out.println(\"\\nError in method qualifiedPeople of Company: \" + e);\n }\n\n return results;\n }", "public List<Employee> getEmployeesByOffice(String officeCode) {\n return employeeDao.selectOfficeCode(officeCode);\n// return getAll().stream().filter(emp -> emp.getOfficeCode() == null\n// ? null\n// : emp.getOfficeCode().equals(officeCode))\n// .collect(Collectors.toList());\n }", "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@RequestMapping(value = \"/list/\", method = RequestMethod.GET, produces = {\"application/hal+json\"})\n\tpublic List<FavouriteJobs> getAllFavJobs(){\n\t\tList<FavouriteJobs> favJobsList = null;\n\t\ttry {\n\t\t\tfavJobsList = favJobService.getAllFavJobs();\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception Handle\n\t\t}\n\t\t\n\t\treturn favJobsList;\n\t}", "@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }", "private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }", "@RequestMapping(value = \"/list/{pjobId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList1(@PathVariable(\"pjobId\") Integer pjobId) {\n ProfessionJob professionJob = professionJobService.getProfessionJob(pjobId).get();\n List<JobRequireProfessionJob> list = jobService.findAllByProfessionJob(professionJob);\n List<Job> jobsAfterFilterByProfession = new ArrayList<>();\n for(JobRequireProfessionJob jrpj : list) {\n jobsAfterFilterByProfession.add(jrpj.getJob());\n }\n return jobsAfterFilterByProfession;\n }", "public List<Student> getStudentsByFirstName(String fname) {\n\t\tList<Student> sameNames = new ArrayList<Student>();\r\n\t\t\r\n\t\t//loop over array list\r\n\t\t//for student type elements in the students array list do\r\n\t\tfor(Student student: students) {\r\n\t\t\t//if i find a student with the given first name then add to list\r\n\t\t\tif(student.getFirstName().equalsIgnoreCase(fname)) {\r\n\t\t\t\tsameNames.add(student);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//check if list has any students\r\n\t\tif(sameNames.size()>0) {\r\n\t\t\t//if students were found then return the list\r\n\t\t\treturn sameNames;\r\n\t\t}\r\n\t\t\r\n\t\t//if no students were found with that first name then return null\r\n\t\treturn null;\r\n\t}", "public List<Person2> findByJobLocationIgnoreCase(String jobLocation);", "public void filterByFoReason(String enteredReason){\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n // get the mood event's trigger text\n keyOfReason = moodListBeforeFilterFo.getMoodEvent(i).getTriggerText();\n // if it contains the entered key of reason, then add it to the new list\n if (keyOfReason != null && keyOfReason.toLowerCase().contains(enteredReason.toLowerCase())) {\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }\n }", "public void searchByName() {\n System.out.println(\"enter a name to search\");\n Scanner sc = new Scanner(System.in);\n String fName = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (fName.equals(person.getFirstName())) {\n List streamlist = list.stream().\n filter(n -> n.getFirstName().\n contains(fName)).\n collect(Collectors.toList());\n System.out.println(streamlist);\n }\n }\n }", "java.util.List<cb.Careerbuilder.Job> \n getJobsList();", "@GetMapping(value=\"/searchEmpData/{fname}\")\n\tpublic List<Employee> getEmployeeByName(@PathVariable (value = \"fname\") String fname)\n\t{\n\t\treturn integrationClient.getEmployees(fname);\n\t}", "private void exercise1() {\n final List<String> list = asList(\n \"The\", \"Quick\", \"BROWN\", \"Fox\", \"Jumped\", \"Over\", \"The\", \"LAZY\", \"DOG\");\n\n final List<String> lowerList = list.stream()\n .map(String::toLowerCase)\n .peek(System.out::println)\n .collect(toList());\n }", "@Override\n public List<FoodItem> filterByName(String substring) {\n if (foodItemList == null || foodItemList.size() == 0)\n return foodItemList;\n List<FoodItem> foodCandidate = new ArrayList<>();\n \tfor (FoodItem food : foodItemList) {\n if (food.getName().equals(substring)) {\n foodCandidate.add(food);\n }\n \t}\n return foodCandidate;\n \n }", "List<T> buscarTodosComNomeLower();", "@GetMapping(value = \"/search\")\n\tpublic String searchName(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\tmodel.addAttribute(\"employees\", employeerepository.findByFnameIgnoreCaseContaining(fname));\n\t\treturn \"employeelist\";\n\t}", "List<Hospital> listall();", "public void searchByCity() {\n System.out.println(\"Enter City Name : \");\n String city = sc.next();\n list.stream().filter(n -> n.getCity().equals(city)).forEach(i -> System.out.println(\"Result: \"+i.getFirstName()));\n }", "@Override\r\n\tpublic List<CabinCrew> findCabinCrewByHomeBase(String airportCode) {\r\n\t\tList<CabinCrew> cabinCrewByHomeBase = new ArrayList<CabinCrew>();\r\n\t\tfor (CabinCrew c : cabinCrew) {\r\n\t\t\tif (c.getHomeBase().equals(airportCode)) {\r\n\t\t\t\tcabinCrewByHomeBase.add(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cabinCrewByHomeBase;\r\n\t}", "public List<User> getAllEmployees(String companyShortName);", "public static void main(String[] args) throws FileNotFoundException {\n\n ArrayList<String> names = new ArrayList<>();\n Scanner scanner = new Scanner(new File(\"People.csv\"));\n scanner.nextLine();\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n String[] columns = line.split(\",\");\n String name = columns[1] + \" \" + columns[2];\n names.add(name);\n }\n\n Scanner consoleScanner = new Scanner(System.in);\n System.out.println(\"Type Search Term\");\n String searchTerm = consoleScanner.nextLine();\n\n// String searchTerm = \"mur\";\n\n //solve for via loop\n for (String name: names) {\n if (name.toLowerCase().contains(searchTerm)) {\n System.out.println(name);\n }\n }\n System.out.println();\n\n //solve via stream\n names.stream()\n .map(name -> name.toLowerCase())\n .filter(name -> name.toLowerCase().contains(searchTerm.toLowerCase()))\n// .forEach(System.out::println);\n .collect(Collectors.toCollection(ArrayList<String>::new));\n System.out.println();\n }", "public List<Chef_favorito> findByNomeChefContainingIgnoreCase(String nomePesquisa);", "List<Job> findAllByClientName(String query);", "public static void main(String[] args) {\n\t\tList<String> lines = Arrays.asList(\"spring\", \"node\", \"mkyong\");\r\n\r\n List<String> result = lines.stream() // convert list to stream\r\n .filter(line -> !\"mkyong\".equals(line)) // we dont like mkyong\r\n .collect(Collectors.toList()); // collect the output and convert streams to a List\r\n\r\n result.forEach(System.out::println); //output : spring, node\r\n \r\n \r\n \r\n \r\n //Streams filter(), findAny() and orElse()\r\n List<Person> persons = Arrays.asList(\r\n new Person(\"mkyong\", 30),\r\n new Person(\"jack\", 20),\r\n new Person(\"lawrence\", 40)\r\n );\r\n\r\n Person result1 = persons.stream() // Convert to steam\r\n .filter(x -> \"jack\".equals(x.getName())) // we want \"jack\" only\r\n .findAny() // If 'findAny' then return found\r\n .orElse(null); // If not found, return null\r\n\r\n System.out.println(result1);\r\n \r\n \r\n \r\n \r\n //A List of Strings to Uppercase\r\n List<String> alpha = Arrays.asList(\"a\", \"b\", \"c\", \"d\");\r\n // Java 8\r\n List<String> collect = alpha.stream().map(String::toUpperCase).collect(Collectors.toList());\r\n System.out.println(collect); //[A, B, C, D]\r\n\r\n\t}", "List<City> findByNameIgnoringCase(String cityName);", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "List<Codebadge> search(String query);", "@Override\r\n\tpublic List<CompanyBoardVO> listSearchCriteria(String code) throws Exception {\n\t\treturn dao.listSearchCriteria(code);\r\n\t}", "public static List<Apple> filter(List<Apple> apples, Predicate<Apple> predicate) {\n\n\t\tList<Apple> result = new ArrayList<>();\n\t\tfor (Apple apple : apples) {\n\t\t\tif (predicate.test(apple)) {\n\t\t\t\tresult.add(apple);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic List<EmployeeMaster> searchbyeyEmpCategoryforSA(String search_key) {\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\r\n\t\tList<EmployeeMaster> listemp = (List<EmployeeMaster>) sessionFactory.getCurrentSession()\r\n\t\t.createQuery(\"from EmployeeMaster WHERE obsolete ='N'\"\r\n\t\t\t\t+ \" AND empcategory LIKE '%\" + search_key + \"%' GROUP BY empcategory\").list();\r\n\t\treturn listemp;\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/list/{pjobId}/{cityId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList2(@PathVariable(\"pjobId\") Integer pjobId, @PathVariable(\"cityId\") Integer city) {\n List<Job> jobsAfterFilterByProfession = getJobList1(pjobId);\n List<Job> jobsAfterFilterByCity = new ArrayList<>();\n for(Job job : jobsAfterFilterByProfession) {\n if (job.getCity().getId() == city) {\n jobsAfterFilterByCity.add(job);\n }\n }\n return jobsAfterFilterByCity;\n }", "public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }", "public void filterByMyReason(String enteredReason){\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterMy.getCount(); i++ ){\n // get the mood event's trigger text\n keyOfReason = moodListBeforeFilterMy.getMoodEvent(i).getTriggerText();\n // if it contains the entered key of reason, then add it to the new list\n if (keyOfReason != null && keyOfReason.toLowerCase().contains(enteredReason.toLowerCase())) {\n moodListAfterFilter.add(moodListBeforeFilterMy.getMoodEvent(i));\n }\n }\n }", "public List<Hospital> getHospitals() {\n HospitalDAO hospitalDAO = DAOFactory.getHospitalDAO();\n try {\n return hospitalDAO.getAll();\n } catch (SQLException e) {\n return new ArrayList<>();\n }\n }", "@RequestMapping(value =\"/doctorId/{docId}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByDocId(@PathVariable Long docId) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByDocId(docId);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by doctor Id: \"+ docId);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@Override\n public boolean onQueryTextSubmit(String query) {\n if (AfterLoginActivity.this.latestBookList != null) {\n searchBookList = new ArrayList<>();\n\n for (Book book : AfterLoginActivity.this.latestBookList) {\n //str1.toLowerCase().contains(str2.toLowerCase())\n if (book.getName().toLowerCase().contains(query.toLowerCase())) {\n //add to search book list\n searchBookList.add(book);\n }\n }\n //set books to book list view\n AfterLoginActivity.this.bookListFragment.setBooks(searchBookList);\n }\n return true;\n }", "public static ArrayList<Job> getJob()\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n ArrayList<Job> returnValue = new ArrayList<>();\n\n stmt = conn.createStatement();\n String sql = \"SELECT * FROM job NATURAL JOIN recruiter NATURAL JOIN location;\";\n ResultSet rs = stmt.executeQuery(sql);\n while(rs.next()) {\n returnValue.add(new Job(\n rs.getInt(\"job_id\"),\n rs.getString(\"job_name\"),\n new Recruiter(\n rs.getInt(\"recruiter_id\"),\n rs.getString(\"name\"),\n rs.getString(\"email\"),\n rs.getString(\"phone_number\"),\n new Location(\n rs.getString(\"province\"),\n rs.getString(\"city\"),\n rs.getString(\"description\")\n )\n ),\n rs.getInt(\"fee\"),\n JobCategory.valueOf(rs.getString(\"category\"))\n ));\n }\n rs.close();\n stmt.close();\n conn.close();\n return returnValue;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return null;\n }\n }", "@Override\n\tpublic List<Applicant> getAllApplicantUsingRegex() {\n\t\tSystem.out.println(\"Fname Ending with a \");\n\t\tQuery query = new Query().addCriteria(Criteria.where(\"fname\").regex(\"a$\"));\n\t\treturn applicantMongoTemplate.find(query, Applicant.class);\n\t}", "public static void searchJobs(String searchTerm) {\n\n for (int i = 0; i > PostJob.allJobs.size(); i++) {\n\n\n if (PostJob.allJobs.contains(searchTerm)) {\n int itemIndx = PostJob.allJobs.indexOf(searchTerm);\n String output = PostJob.allJobs.get(itemIndx);\n System.out.print(\"Available jobs within your search terms\" + output);\n\n }\n }\n }", "public static List<String> getMatches(String value, Collection<String> list, boolean caseInsensitive) {\n List<String> result = new LinkedList<>();\n\n for (String str : list) {\n if (str.startsWith(value.toLowerCase())\n || (caseInsensitive && str.toLowerCase().startsWith(value.toLowerCase()))) {\n result.add(str);\n }\n }\n\n return result;\n }", "List<Item> findByNameContainingIgnoreCase(String name);", "public static List<String> listOfStudentsWhoseAgeBelow(List<MyStudent> l, int age){\n\t List<String> names= l.stream().filter(e->e.getAge()<age).map(e->e.getFirstName()).collect(Collectors.toList());\n\t return names;\n\t }", "public static ArrayList<String> Searching_OnPeople_who_AddMe() {\n\t\t\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\t\tArrayList<String> requests= new ArrayList<String>();\n\t\tQuery gaeQuery = new Query(\"friends\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t\n\t\t\tif (entity.getProperty(\"friendEmail\").toString().equals(User.getCurrentActiveUser().getEmail().toString())&&\n\t\t\t\t\t!entity.getProperty(\"status\").toString().equals(\"accept\")) {\n\t\t\t\t\n\t\t\t\trequests.add(entity.getProperty(\"myEmail\").toString());\n\t\t\t\t\n\t\t\t }\nelse{\n\t\t\t\t }\n\t\t}\n\t\treturn requests;\n\t\n\t}", "public void searchByEmail() {\n System.out.println(\"enter email to get that person details:\");\n Scanner sc = new Scanner(System.in);\n String email = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (email.equals(person.getEmail())) {\n List streamList = list.stream().filter(n -> n.getEmail().contains(email)).collect(Collectors.toList());\n System.out.println(streamList);\n }\n }\n }", "public List<Job> findByCountry(String country);", "public static List<String> getSpainCoach() throws URISyntaxException, IOException {\n\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/77\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> nameOfSpainTeamCoach= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getRole().equals(\"COACH\")){\n\n nameOfSpainTeamCoach.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n continue;\n }\n\n }\n return nameOfSpainTeamCoach;\n }", "public ArrayList<Customer> findCustomer(String searchText) {\r\n\t\tsearchText = searchText.toLowerCase();\r\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\r\n\t\ttry (ResultSet result = manager.performSql(\"SELECT id FROM Customer WHERE LOWER(first_name || ' ' || last_name) LIKE '%\" + searchText + \"%'\")) {\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tcustomers.add(manager.getCustomer(result.getInt(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customers;\r\n\t}", "List<TeacherRecord> getTeachersWithNameFilter(char lastNameCharFilter, String clientId) throws Exception;", "private Employee searchEmployee(String empName)\n {\n empName = empName.toLowerCase();\n Employee found = null;\n // Find the employee in the array list\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext() && found == null)\n {\n myEmployee = emp.next(); //get employee from array list\n String fullName = myEmployee.getName().toLowerCase();\n String[] FirstLast = fullName.split(\" \");\n \n if (\n matchString(fullName,empName) ||\n matchString(FirstLast[0],empName) ||\n matchString(FirstLast[1],empName)\n )\n found = myEmployee;\n } \n return found;\n }", "public ArrayList<NameRecord> getMatches(String partialName){\n\t\tpartialName=partialName.toLowerCase();\n\t\tArrayList<NameRecord> result = new ArrayList<NameRecord>();\n\t\tfor (int i = 0;i<names.size();i++){\n\t\t\tString s = names.get(i).toLowerCase();\n\t\t\tif (s.contains(partialName)){\n\t\t\t\tresult.add(list.get(i));\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "public Bahnhof getBahnhof(String bahnhof) {\n Bahnhof[] liste = new Bahnhof[bhfs];\n Bahnhof bhf = null;\n for (int i = 0; i < getBahnhofListe().length; i++) {\n if (liste[i].getName().equals(bahnhof)) {\n bhf = liste[i];\n }\n }\n return bhf;\n }", "public ArrayList<Patient> chercherPatient(String recherche) {\r\n ArrayList<Patient> p=new ArrayList();\r\n for (int i = 0; i < patients.size(); i++) {\r\n if ((patients.get(i).getNomUsuel()+patients.get(i).getPrenom()).toLowerCase().contains(recherche.trim().toLowerCase())) {\r\n p.add(patients.get(i));\r\n }\r\n }\r\n return p;\r\n }", "public static List<Student> filterExample(){\n\t\tList<Student> genderFilter = StudentDataBase.getAllStudents().stream()\n\t\t\t\t.filter(stu->stu.getGender().equals(\"female\")).collect(Collectors.toList());\n\t\treturn genderFilter;\n\t}", "public String[] getAllJobs();", "List<CabinClassModel> findCabinClasses();", "public List<String> getProducts(String c){\n\t\tif( containsCustomer(c)){\n\t\t\tfor (int i = 0; i < this.list.size(); i++){\n\t\t\t\tif( c.equals(list.get(i).getUsername())){\n\t\t\t\t\treturn list.get(i).getWishlist();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic List<MusicRecom> findSmallClass(String code) {\n\t\treturn musicRecomDao.findSmallClass(code);\n\t}", "public List<String> getCustomers(String p){\n\t\tif( containsProduct(p)){\n\t\t\tList<String> custlist = new ArrayList<String>();\n\t\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t\tif(hasProduct(list.get(i).getUsername(), p)){\n\t\t\t\t\tcustlist.add(list.get(i).getUsername());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn custlist;\n\t\t}\n\t\treturn null;\n\t}", "public List<Check> getServeCheck(String phonenumber) {\n\t\tList<Check> checks=checkDao.getServeCheck(phonenumber);\n\t\treturn checks;\n\t}", "private List<ParseUser> filterUsers(List<ParseUser> pUsers, String searchTerm) {\n List<ParseUser> filteredUsers = new ArrayList<>();\n for (ParseUser pU : pUsers) {\n User u = new User(pU);\n if (u.getName().toLowerCase().contains(searchTerm.toLowerCase())) {\n filteredUsers.add(pU);\n }\n }\n return filteredUsers;\n }", "public ArrayList<String> findCamps(String searchTerm) {\n if(searchTerm.equals(\"*\")) {\n return new ArrayList<>(landmarks.getCamps().keySet());\n }\n\n searchTerm = searchTerm.toLowerCase();\n ArrayList<String> results = new ArrayList<>();\n for(String campName : landmarks.getCamps().keySet()) {\n if(campName.toLowerCase().contains(searchTerm)) {\n results.add(campName);\n }\n }\n return results;\n }", "public ArrayList<AddressEntry> searchByPhoneNumber(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getPhoneNumber().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "List<String> getFruitNameList() {\t\n\t\tList<String> fruitNameList = new ArrayList<>();\n\t\tfor(Fruit fruit : fruitList){\n\t\t\tfruitNameList.add(fruit.getName());\n\t\t}\n\t\treturn fruitNameList;\n\t}", "public static void main(String[] args) {\n\r\n\t\tArrays.asList(\"Fred\", \"jim\", \"Sheila\")\r\n\t\t.stream()\r\n\t\t.peek(System.out::println)\r\n\t\t.allMatch(s -> s.startsWith(\"F\")); // fred jim\r\n\t}", "public List<User> listSearch(String search);", "@GetMapping(value = \"/histori\")\n\t\tpublic String searchHistory(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\t\tmodel.addAttribute(\"employees\", employeerepository.findByFname(fname));\n\t\t\treturn \"history\";\n\t\t}", "@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }", "public ArrayList<Book> findFantasy() {\n ArrayList<Book> fantasyBook = new ArrayList<>();\n for (Book book : bookList) {\n if (book.getGenre().equals(BookGenres.FANTASY)) {\n fantasyBook.add(book);\n }\n }\n return fantasyBook;\n }", "public List<Models.Programme> showProgrammes() {\n List<Models.Programme> results = em.createNativeQuery(\"select pg.* from programme pg, programmeparticipant ppa, participant p where pg.programmecode = ppa.programmecode and ppa.participantid = p.participantid and p.userid = ?\", Models.Programme.class).setParameter(1, user.getUserid()).getResultList();\n\n // Display the output\n String output = \"\";\n\n output = addChat(results.size() + \" programmes were found.\");\n\n for (Models.Programme programme : results) {\n output += \"<div class='result display' onclick=\\\"window.location.href='Programme?id=\" + programme.getProgrammecode() + \"'\\\">\\n\"\n + \" <div class='top'>\\n\"\n + \" <img class='icon' src='https://www.flaticon.com/svg/static/icons/svg/717/717874.svg'>\\n\"\n + \" <div class='text'>\\n\"\n + \" <a class='type'>PROGRAMME</a>\\n\"\n + \" <a class='name'>\" + programme.getTitle() + \"</a>\\n\"\n + \" <a class='subname'>\" + programme.getProgrammecode() + \"</a>\\n\"\n + \" </div>\\n\"\n + \" </div>\\n\"\n + \" </div>\";\n }\n\n servlet.putInJsp(\"result\", output);\n return results;\n }", "@Override\r\n\t@Transactional\r\n\tpublic List<EmployeeMaster> searchbyeyEmployeeforSA(String search_key) {\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\r\n\t\tList<EmployeeMaster> listemp = (List<EmployeeMaster>) sessionFactory.getCurrentSession()\r\n\t\t.createQuery(\"from EmployeeMaster WHERE obsolete ='N' and emp_name LIKE '%\" + search_key + \"%'\"\r\n\t\t\t\t+ \" OR empcategory LIKE '%\" + search_key + \"%' OR emp_code LIKE '%\" + search_key + \"%'\"\r\n\t\t\t\t+ \" OR branchModel.branch_name LIKE '%\" + search_key + \"%' OR emp_address1 LIKE '%\" + search_key + \"%'\"\r\n\t\t\t\t+ \" OR emp_address2 LIKE '%\" + search_key + \"%' OR location.location_name LIKE '%\" + search_key + \"%'\"\r\n\t\t\t\t+ \" OR location.address.city LIKE '%\" + search_key + \"%' OR location.address.district LIKE '%\" + search_key + \"%'\"\r\n\t\t\t\t+ \" OR location.address.state LIKE '%\" + search_key + \"%' OR emp_phoneno LIKE '%\" + search_key + \"%' OR emp_email LIKE '%\" + search_key + \"%' OR dob LIKE '%\"+ search_key + \"%'\"\r\n\t\t\t\t+ \" OR doj LIKE '%\" + search_key + \"%'\").list();\r\n\t\treturn listemp;\r\n\t\t\r\n\t}", "public java.util.List<cb.Careerbuilder.Job> getJobsList() {\n if (jobsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(jobs_);\n } else {\n return jobsBuilder_.getMessageList();\n }\n }", "@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}", "public ArrayList<AddressEntry> find(String startOf_lastName) {\n ArrayList<AddressEntry> filteredList = new ArrayList<>();\n\n for (int i = 0; i < addressEntryList.size(); i++) {\n if (addressEntryList.get(i).getLastName().toLowerCase().startsWith(startOf_lastName.toLowerCase())) {\n filteredList.add(addressEntryList.get(i));\n }\n }\n\n return filteredList;\n }", "@Test\n public void searchItems_LocationIsInCityInfo_ReturnListOfItems(){\n assertEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"Ho Chi Minh City, Downtown\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"Crescent Mall\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"abc\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\",null)), Collections.singletonList(\"\").toString());\n }", "List<StudentRecord> getStudentsWithNameFilter(char lastNameCharFilter, String clientId) throws Exception;", "java.util.List<com.google.cloud.talent.v4.Job> \n getJobsList();", "@Override\r\n\t@Transactional\r\n\tpublic List<EmployeeMaster> searchbyEmployee(String search_key) {\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\r\n\t\tList<EmployeeMaster> listcust = (List<EmployeeMaster>) sessionFactory.getCurrentSession()\r\n\t\t.createQuery(\"from EmployeeMaster WHERE obsolete ='N' \"\r\n\t\t\t\t+ \" AND user.role.role_Name <>'\" + constantVal.ROLE_SADMIN + \"' \"\r\n\t\t\t\t+ \" and emp_name LIKE '%\" + search_key + \"%'\").list();\r\n\t\treturn listcust;\r\n\t\t\r\n\t}", "@Override\n\tpublic JSONArray searchByProvince(String city, String prof1, String prof2,\n\t\t\tString gender, String age, String education, String level,\n\t\t\tString fazheng) {\n\t\tList re = resultsDAO.searchByProvince(city, prof1, prof2, gender, age,\n\t\t\t\teducation, level, fazheng);\n\n\t\tJSONArray json = new JSONArray();\n\t\tJSONObject jo = null;\n\t\tIterator iter = re.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tObject[] data = (Object[]) iter.next();\n\t\t\tjo = new JSONObject();\n\t\t\tjo.put(\"username\", data[0]);\n\t\t\tjo.put(\"name\", data[1]);\n\t\t\tjo.put(\"gender\", data[2]);\n\t\t\tjo.put(\"birthday\", data[3]);\n\t\t\tjo.put(\"password\", data[4]);\n\t\t\tjo.put(\"phone\", data[5]);\n\t\t\tjo.put(\"education\", data[6]);\n\t\t\tjo.put(\"idnumber\", data[7]);\n\t\t\tjo.put(\"prof1name\", data[8]);\n\t\t\tjo.put(\"prof2name\", data[9]);\n\t\t\tjo.put(\"proviceName\", data[10]);\n\t\t\tjo.put(\"cityName\", data[11]);\n\t\t\tjo.put(\"countyName\", data[12]);\n\t\t\tjo.put(\"townName\", data[13]);\n\t\t\tjo.put(\"fazhengtime\", data[14]);\n\t\t\tjo.put(\"level\", data[15]);\n\t\t\tjo.put(\"writescore\", data[16]);\n\t\t\tjo.put(\"interviewscore\", data[17]);\n\t\t\tjo.put(\"totalscore\", data[18]);\n\t\t\tjo.put(\"number\", data[19]);\n\t\t\tjson.add(jo);\n\t\t}\n\t\treturn json;\n\t}", "private void filter(String text){\n ArrayList<BloodBank> filteredList=new ArrayList<>();\n for(BloodBank bloodBank:lstBloodBanks){\n if(bloodBank.getName().toLowerCase().contains(text.toLowerCase())){\n filteredList.add(bloodBank);\n }\n }\n\n adapter.filterList(filteredList);\n }", "public List<Ve> searchVe(String maSearch);", "public ArrayList<ADFilmBEAN> search(int thang, int nam, int start) throws Exception{\r\n\t\treturn film.search(thang, nam, start);\r\n\t}", "public static List<Job> findByTitle(String title) {\n\t\treturn getPersistence().findByTitle(title);\n\t}", "List<Student> findByNameContainingIgnoringCase(String name);", "public static ArrayList<Homework> getHomeworkList() {\n ArrayList<Homework> result = new ArrayList<>();\n int count;\n\n //goes thru all homework in every subject\n for(ArrayList<Homework> subject_list: Storage.homework) {\n for(Homework homework: subject_list) {\n count = 0;\n if(result.size() != 0) {\n while(homework.getDate().after(result.get(count).getDate())) {\n count++;\n if(count == result.size()) {\n break;\n }\n }\n }\n if(settings.homework_isShowDoneHomework() || !homework.getSolution().isFinished()) {\n result.add(count, homework);\n }\n }\n }\n return result;\n }", "public List getList(String where_condtion, String namedQuery) {\r\n\r\n\t\tList list;\r\n\r\n\t\tlist = employeeAppointmentDao.getComboList(where_condtion, namedQuery);\r\n\r\n\t\treturn list;\r\n\r\n\t}", "List getCompanies(OwnCodes ownCodes) throws PopulateDataException;", "protected ArrayList<String> search(String key) {\n addresses = map.get(key);\n if (addresses == null) {\n return null;\n }\n return addresses;\n }", "@FXML\n public void filterCupboardIngredients(){\n String searchText = searchIngredientCupboard.getText();\n List<Ingredient> filteredList = ingredientsFromDatabase.stream().filter(new Predicate<Ingredient>() {\n @Override\n public boolean test(Ingredient ingredient) {\n //inclusive of the upper cases makes it case insensitive\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }\n }).collect(Collectors.toList());\n filterObservableList = FXCollections.observableList(filteredList);\n allIngredientsCupboardPane.setItems(filterObservableList);\n }", "public static ArrayList<QuakeEntry> filterByPhrase(ArrayList<QuakeEntry> quakeData,\n String where,\n String phrase){\n System.out.println(\"Quakes whose titles contain the phrase \" + phrase + \" at position \" + where);\n ArrayList<QuakeEntry> answer = new ArrayList<>();\n for (QuakeEntry qe: quakeData) {\n if (where == \"start\") {\n if (qe.getInfo().startsWith(phrase)) {\n answer.add(qe);\n }\n } else if (where == \"end\") {\n if (qe.getInfo().endsWith(phrase)) {\n answer.add(qe);\n }\n } else if (where == \"any\") {\n if (qe.getInfo().contains(phrase)) {\n answer.add(qe);\n }\n }\n }\n return answer;\n }", "private void collectUsingStream() {\n List<Person> persons =\n Arrays.asList(\n new Person(\"Max\", 18),\n new Person(\"Vicky\", 23),\n new Person(\"Ron\", 23),\n new Person(\"Harry\", 12));\n\n List<Person> filtered = persons\n .stream()\n .filter(p -> p.name.startsWith(\"H\"))\n .collect(Collectors.toList());\n\n System.out.println(\"collectUsingStream Filtered: \" + filtered);\n }", "public ArrayList<Guest> searchGuestList(String name) {\n \tString checkName = name.toUpperCase();\n \tArrayList<Guest> result = new ArrayList<>();\n \tfor(Guest guest : guestList){\n if(guest.getName().toUpperCase() != null && guest.getName().toUpperCase().contains(checkName)) {\n \tresult.add(guest);\n }\n }\n \treturn result;\n }", "@Override\n\tpublic List<Empregado> pesquisar(String palavraChave) {\n\t\treturn empregadoRepository.pesquisar(palavraChave);\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic List<EmployeeMaster> searchbyeyEmpCategory(String search_key) {\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\r\n\t\tList<EmployeeMaster> listemp = (List<EmployeeMaster>) sessionFactory.getCurrentSession()\r\n\t\t.createQuery(\"from EmployeeMaster WHERE obsolete ='N'\"\r\n\t\t\t\t+ \" AND empcategory LIKE '%\" + search_key + \"%' GROUP BY empcategory\").list();\t\t\t\t\r\n\t\t\t\t/*+ \" AND user.role.role_Name <> '\"+ constantVal.ROLE_SADMIN +\"' GROUP BY empcategory\").list();*/\r\n\t\treturn listemp;\r\n\t\t\r\n\t}", "@SuppressWarnings( \"unchecked\" )\n public List<Employment> getEmployments() {\n return (List<Employment>) CollectionUtils.select(\n getQueryService().findAllEmploymentsWithKnownActors(),\n new Predicate() {\n public boolean evaluate( Object obj ) {\n return !isFilteredOut( (Employment) obj ) && isInNameRange( (Employment) obj );\n }\n }\n );\n\n }", "public ArrayList<Movie> getSearchResult(String search) {\n\t\tArrayList<Movie> res = new ArrayList<>();\n\t\tfor (int i=0; i<getDataLength(); ++i) {\n\t\t\tboolean check = false;\n\t\t\tcheck = this.dataList.get(i).getTitle().toLowerCase().contains(search.toLowerCase());\n\t\t\tboolean checkEndShowing = this.dataList.get(i).isEndShowing();\n\t\t\tif (check&&!checkEndShowing)\n\t\t\t\tres.add((Movie)this.dataList.get(i));\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "@Override\n\tpublic ArrayList<DetailCodeBean> findDetailCodeList(String code) {\n\t\tif(logger.isDebugEnabled()){ logger.debug(\" CodeListApplicationServiceImpl : findDetailCodeList 시작 \"); }\n\t\t\n\t\tArrayList<DetailCodeBean> detailCodeList = null;\n\t\ttry{\n\t\tdetailCodeList = detailCodeDAO.selectDetailCodeList(code);\n\t\t}catch(Exception e){\n\t\t\tlogger.fatal(e.getMessage());\n\t\t\tthrow e; \n\t\t}\n\t\tif(logger.isDebugEnabled()){ logger.debug(\" CodeListApplicationServiceImpl : findDetailCodeList 종료 \"); }\n\t\treturn detailCodeList;\n\t}", "private int JobSearch(String ClientID, ArrayList<Jobs> SearchThrough) {\n \t\tint size = SearchThrough.size();\n \t\tint scan = 0;\n \n \t\twhile (scan < size) {\n \t\t\tJobs looking = SearchThrough.get(scan);\n \t\t\t// See if the client name matches the search parameter\n \t\t\tif (looking.GetIussed() == ClientID) {\n \t\t\t\treturn scan;\n \t\t\t}\n \t\t\tscan++;\n \t\t}\n \t\treturn -1;\n \t}" ]
[ "0.65763", "0.6554511", "0.5847694", "0.5565766", "0.5387842", "0.53107846", "0.5212807", "0.5193269", "0.5172609", "0.5149115", "0.5127915", "0.5099964", "0.4988074", "0.4982573", "0.49662396", "0.49578473", "0.49352947", "0.49227703", "0.48975465", "0.48871514", "0.48362222", "0.48272344", "0.48162034", "0.4798799", "0.47650605", "0.47573867", "0.4728913", "0.47094086", "0.47055095", "0.47039762", "0.47034007", "0.46908826", "0.46891034", "0.4678056", "0.46746132", "0.46617723", "0.4645772", "0.46398503", "0.46385923", "0.46320027", "0.4627921", "0.4621585", "0.46163243", "0.4609431", "0.4608742", "0.46059677", "0.46031645", "0.45998436", "0.45976782", "0.45934516", "0.4583081", "0.45830426", "0.45819062", "0.45779565", "0.4577949", "0.45747545", "0.45683587", "0.4564547", "0.45515078", "0.45509985", "0.45321944", "0.45262116", "0.4524226", "0.45139143", "0.45065796", "0.45061642", "0.45028108", "0.4499145", "0.44956085", "0.44941595", "0.44844803", "0.4484064", "0.44770402", "0.44764605", "0.4472099", "0.44682503", "0.44645557", "0.44616112", "0.4457027", "0.44537574", "0.444977", "0.44473714", "0.44431606", "0.44415772", "0.44403473", "0.4437643", "0.4434205", "0.44313276", "0.4416133", "0.44123778", "0.4409758", "0.44071135", "0.44064206", "0.44052747", "0.44026718", "0.44022775", "0.43890926", "0.4388061", "0.43870765", "0.4385298" ]
0.7313508
0
get a list of FavouriteJob matching hospitalName but ignoring case
@RequestMapping(value ="/hospitalName/{hospitalName}", method = RequestMethod.GET, produces = { "application/hal+json" }) public List<FavouriteJobs> getFavJobsByHospitalName(@PathVariable String hospitalName) { List<FavouriteJobs> favJobs = null; try { favJobs = favJobService.getFavJobsByHospitalName(hospitalName); } catch(Exception e) { throw new ObjectNotFoundException("FavouriteJob is found by hospital name: " + hospitalName); } if(favJobs.isEmpty() || favJobs != null) { for(FavouriteJobs favJob: favJobs) { Link selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel(); favJob.add(selfLink); } } return favJobs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value =\"/hospitalCode/{hospitalCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalCode(@PathVariable String hospitalCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalCode(hospitalCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital code: \" + hospitalCode);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }", "public void searchByName() {\n System.out.println(\"enter a name to search\");\n Scanner sc = new Scanner(System.in);\n String fName = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (fName.equals(person.getFirstName())) {\n List streamlist = list.stream().\n filter(n -> n.getFirstName().\n contains(fName)).\n collect(Collectors.toList());\n System.out.println(streamlist);\n }\n }\n }", "public List<Person2> findByJobLocationIgnoreCase(String jobLocation);", "List<City> findByNameIgnoringCase(String cityName);", "@Override\n public List<FoodItem> filterByName(String substring) {\n if (foodItemList == null || foodItemList.size() == 0)\n return foodItemList;\n List<FoodItem> foodCandidate = new ArrayList<>();\n \tfor (FoodItem food : foodItemList) {\n if (food.getName().equals(substring)) {\n foodCandidate.add(food);\n }\n \t}\n return foodCandidate;\n \n }", "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "List<Item> findByNameContainingIgnoreCase(String name);", "List<Student> findByNameContainingIgnoringCase(String name);", "public void searchByCity() {\n System.out.println(\"Enter City Name : \");\n String city = sc.next();\n list.stream().filter(n -> n.getCity().equals(city)).forEach(i -> System.out.println(\"Result: \"+i.getFirstName()));\n }", "@GetMapping(value = \"/search\")\n\tpublic String searchName(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\tmodel.addAttribute(\"employees\", employeerepository.findByFnameIgnoreCaseContaining(fname));\n\t\treturn \"employeelist\";\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\n ArrayList<String> names = new ArrayList<>();\n Scanner scanner = new Scanner(new File(\"People.csv\"));\n scanner.nextLine();\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n String[] columns = line.split(\",\");\n String name = columns[1] + \" \" + columns[2];\n names.add(name);\n }\n\n Scanner consoleScanner = new Scanner(System.in);\n System.out.println(\"Type Search Term\");\n String searchTerm = consoleScanner.nextLine();\n\n// String searchTerm = \"mur\";\n\n //solve for via loop\n for (String name: names) {\n if (name.toLowerCase().contains(searchTerm)) {\n System.out.println(name);\n }\n }\n System.out.println();\n\n //solve via stream\n names.stream()\n .map(name -> name.toLowerCase())\n .filter(name -> name.toLowerCase().contains(searchTerm.toLowerCase()))\n// .forEach(System.out::println);\n .collect(Collectors.toCollection(ArrayList<String>::new));\n System.out.println();\n }", "public ArrayList<NameRecord> getMatches(String partialName){\n\t\tpartialName=partialName.toLowerCase();\n\t\tArrayList<NameRecord> result = new ArrayList<NameRecord>();\n\t\tfor (int i = 0;i<names.size();i++){\n\t\t\tString s = names.get(i).toLowerCase();\n\t\t\tif (s.contains(partialName)){\n\t\t\t\tresult.add(list.get(i));\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "public List<Student> getStudentsByFirstName(String fname) {\n\t\tList<Student> sameNames = new ArrayList<Student>();\r\n\t\t\r\n\t\t//loop over array list\r\n\t\t//for student type elements in the students array list do\r\n\t\tfor(Student student: students) {\r\n\t\t\t//if i find a student with the given first name then add to list\r\n\t\t\tif(student.getFirstName().equalsIgnoreCase(fname)) {\r\n\t\t\t\tsameNames.add(student);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//check if list has any students\r\n\t\tif(sameNames.size()>0) {\r\n\t\t\t//if students were found then return the list\r\n\t\t\treturn sameNames;\r\n\t\t}\r\n\t\t\r\n\t\t//if no students were found with that first name then return null\r\n\t\treturn null;\r\n\t}", "private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }", "@RequestMapping(value =\"/jobCode/{jobCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByJobCode(@PathVariable String jobCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByJobCode(jobCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by job code: \" +jobCode);\n\t\t}\t\t\n\t\t\n\t\tif( favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "private Employee searchEmployee(String empName)\n {\n empName = empName.toLowerCase();\n Employee found = null;\n // Find the employee in the array list\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext() && found == null)\n {\n myEmployee = emp.next(); //get employee from array list\n String fullName = myEmployee.getName().toLowerCase();\n String[] FirstLast = fullName.split(\" \");\n \n if (\n matchString(fullName,empName) ||\n matchString(FirstLast[0],empName) ||\n matchString(FirstLast[1],empName)\n )\n found = myEmployee;\n } \n return found;\n }", "public String searchPerson(String name){\n String string = \"\";\n ArrayList<Person> list = new ArrayList<Person>();\n \n for(Person person: getPersons().values()){\n String _name = person.getName();\n if(_name.contains(name)){\n list.add(person);\n }\n }\n list.sort(Comparator.comparing(Person::getName));\n for (int i = 0; i < list.size(); i++){\n string += list.get(i).toString();\n }\n\n return string;\n }", "public static void searchJobs(String searchTerm) {\n\n for (int i = 0; i > PostJob.allJobs.size(); i++) {\n\n\n if (PostJob.allJobs.contains(searchTerm)) {\n int itemIndx = PostJob.allJobs.indexOf(searchTerm);\n String output = PostJob.allJobs.get(itemIndx);\n System.out.print(\"Available jobs within your search terms\" + output);\n\n }\n }\n }", "@GetMapping(value=\"/searchEmpData/{fname}\")\n\tpublic List<Employee> getEmployeeByName(@PathVariable (value = \"fname\") String fname)\n\t{\n\t\treturn integrationClient.getEmployees(fname);\n\t}", "public ArrayList<Guest> searchGuestList(String name) {\n \tString checkName = name.toUpperCase();\n \tArrayList<Guest> result = new ArrayList<>();\n \tfor(Guest guest : guestList){\n if(guest.getName().toUpperCase() != null && guest.getName().toUpperCase().contains(checkName)) {\n \tresult.add(guest);\n }\n }\n \treturn result;\n }", "@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }", "public Set<Sportive> filterByFirstName(String st){\n Iterable<Sportive> materials = repo.findAll();\n return StreamSupport.stream(materials.spliterator(), false).filter(sportive -> sportive.getFirstName().contains(st)).collect(Collectors.toSet());\n }", "public void filterByFoReason(String enteredReason){\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n // get the mood event's trigger text\n keyOfReason = moodListBeforeFilterFo.getMoodEvent(i).getTriggerText();\n // if it contains the entered key of reason, then add it to the new list\n if (keyOfReason != null && keyOfReason.toLowerCase().contains(enteredReason.toLowerCase())) {\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }\n }", "@Override\n\tpublic List<Applicant> getAllApplicantUsingRegex() {\n\t\tSystem.out.println(\"Fname Ending with a \");\n\t\tQuery query = new Query().addCriteria(Criteria.where(\"fname\").regex(\"a$\"));\n\t\treturn applicantMongoTemplate.find(query, Applicant.class);\n\t}", "List<T> buscarTodosComNomeLower();", "public List<Chef_favorito> findByNomeChefContainingIgnoreCase(String nomePesquisa);", "List<Job> findAllByClientName(String query);", "public static void main(String[] args) {\n\t\tList<String> lines = Arrays.asList(\"spring\", \"node\", \"mkyong\");\r\n\r\n List<String> result = lines.stream() // convert list to stream\r\n .filter(line -> !\"mkyong\".equals(line)) // we dont like mkyong\r\n .collect(Collectors.toList()); // collect the output and convert streams to a List\r\n\r\n result.forEach(System.out::println); //output : spring, node\r\n \r\n \r\n \r\n \r\n //Streams filter(), findAny() and orElse()\r\n List<Person> persons = Arrays.asList(\r\n new Person(\"mkyong\", 30),\r\n new Person(\"jack\", 20),\r\n new Person(\"lawrence\", 40)\r\n );\r\n\r\n Person result1 = persons.stream() // Convert to steam\r\n .filter(x -> \"jack\".equals(x.getName())) // we want \"jack\" only\r\n .findAny() // If 'findAny' then return found\r\n .orElse(null); // If not found, return null\r\n\r\n System.out.println(result1);\r\n \r\n \r\n \r\n \r\n //A List of Strings to Uppercase\r\n List<String> alpha = Arrays.asList(\"a\", \"b\", \"c\", \"d\");\r\n // Java 8\r\n List<String> collect = alpha.stream().map(String::toUpperCase).collect(Collectors.toList());\r\n System.out.println(collect); //[A, B, C, D]\r\n\r\n\t}", "public ArrayList<Person> getQualifiedPeople(int jobCode) {\n ArrayList<Person> results = new ArrayList<Person>();\n\n String name = \"\";\n String email = \"\";\n\n try {\n PreparedStatement pStmt = conn.prepareStatement(\"SELECT DISTINCT NAME, EMAIL \\n\" +\n \"FROM PERSON NATURAL JOIN (\\n\" +\n \" SELECT PER_ID\\n\" +\n \" FROM PERSON_SKILL A\\n\" +\n \" WHERE NOT EXISTS (\\n\" +\n \" \\n\" +\n \" -- get skills of specific job\\n\" +\n \" SELECT JOB_SKILL.KS_CODE\\n\" +\n \" FROM JOB_SKILL INNER JOIN JOB_LISTING\\n\" +\n \" ON JOB_SKILL.JOB_CODE = JOB_LISTING.JOB_CODE\\n\" +\n \" WHERE JOB_SKILL.JOB_CODE=? AND JOB_LISTING.COMP_ID=?\\n\" +\n \" \\n\" +\n \" MINUS\\n\" +\n \" \\n\" +\n \" -- get skills of person\\n\" +\n \" (SELECT KS_CODE\\n\" +\n \" FROM PERSON_SKILL B\\n\" +\n \" WHERE A.PER_ID = B.PER_ID)\\n\" +\n \" )\\n\" +\n \")\");\n\n pStmt.setString(1, jobCode + \"\");\n pStmt.setString(2, this.compId + \"\");\n ResultSet rset = pStmt.executeQuery();\n\n while(rset.next()){\n name = rset.getString(1);\n email = rset.getString(2);\n\n Person person = new Person(name, email);\n results.add(person);\n }\n\n } catch(Exception e) {\n System.out.println(\"\\nError in method qualifiedPeople of Company: \" + e);\n }\n\n return results;\n }", "private List<User> simulateSearchResult(String firstName)\n\t{\n\n\t\tArrayList<User> user=(ArrayList<User>) userService.getAllUsers();\n\t\tArrayList<User> result = new ArrayList<User>();\n\t\tfor (User u : user) {\n\t\t\tif (u.getFirstName().contains(firstName)) {\n\t\t\t\tresult.add(u);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public List<User> listSearch(String search);", "public List<User> getAllEmployees(String companyShortName);", "List<TeacherRecord> getTeachersWithNameFilter(char lastNameCharFilter, String clientId) throws Exception;", "private void exercise1() {\n final List<String> list = asList(\n \"The\", \"Quick\", \"BROWN\", \"Fox\", \"Jumped\", \"Over\", \"The\", \"LAZY\", \"DOG\");\n\n final List<String> lowerList = list.stream()\n .map(String::toLowerCase)\n .peek(System.out::println)\n .collect(toList());\n }", "public ArrayList<Patient> chercherPatient(String recherche) {\r\n ArrayList<Patient> p=new ArrayList();\r\n for (int i = 0; i < patients.size(); i++) {\r\n if ((patients.get(i).getNomUsuel()+patients.get(i).getPrenom()).toLowerCase().contains(recherche.trim().toLowerCase())) {\r\n p.add(patients.get(i));\r\n }\r\n }\r\n return p;\r\n }", "@Override\n\tpublic Set<Person> getfindByNameContainingIgnoreCase(String name) {\n\t\treturn null;\n\t}", "List<StudentRecord> getStudentsWithNameFilter(char lastNameCharFilter, String clientId) throws Exception;", "@RequestMapping(value = \"/list/\", method = RequestMethod.GET, produces = {\"application/hal+json\"})\n\tpublic List<FavouriteJobs> getAllFavJobs(){\n\t\tList<FavouriteJobs> favJobsList = null;\n\t\ttry {\n\t\t\tfavJobsList = favJobService.getAllFavJobs();\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception Handle\n\t\t}\n\t\t\n\t\treturn favJobsList;\n\t}", "public ArrayList<String> findCamps(String searchTerm) {\n if(searchTerm.equals(\"*\")) {\n return new ArrayList<>(landmarks.getCamps().keySet());\n }\n\n searchTerm = searchTerm.toLowerCase();\n ArrayList<String> results = new ArrayList<>();\n for(String campName : landmarks.getCamps().keySet()) {\n if(campName.toLowerCase().contains(searchTerm)) {\n results.add(campName);\n }\n }\n return results;\n }", "private boolean searchName(String username, ArrayList<String> existingList) {\n int low = 0;\n int high = existingList.size() - 1;\n int mid;\n\n while (low <= high) {\n mid = (low + high) / 2;\n String name = existingList.get(mid);\n String substr = name.substring(0, name.indexOf(\" \"));\n\n if (substr.compareToIgnoreCase(username) < 0) {\n low = mid + 1;\n } else if (substr.compareToIgnoreCase(username) > 0) {\n high = mid - 1;\n } else {\n return true;\n }\n\n }\n\n return false;\n }", "@Query(\"FROM Job j WHERE j.jobTitle LIKE %:term%\")\n List<Job> searchByJobTitle(@Param(\"term\") String term);", "List<Hospital> listall();", "List<Cloth> findByNameContaining(String name);", "private void filter(String text){\n ArrayList<BloodBank> filteredList=new ArrayList<>();\n for(BloodBank bloodBank:lstBloodBanks){\n if(bloodBank.getName().toLowerCase().contains(text.toLowerCase())){\n filteredList.add(bloodBank);\n }\n }\n\n adapter.filterList(filteredList);\n }", "public List<Ve> searchVe(String maSearch);", "private List<ParseUser> filterUsers(List<ParseUser> pUsers, String searchTerm) {\n List<ParseUser> filteredUsers = new ArrayList<>();\n for (ParseUser pU : pUsers) {\n User u = new User(pU);\n if (u.getName().toLowerCase().contains(searchTerm.toLowerCase())) {\n filteredUsers.add(pU);\n }\n }\n return filteredUsers;\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n if (AfterLoginActivity.this.latestBookList != null) {\n searchBookList = new ArrayList<>();\n\n for (Book book : AfterLoginActivity.this.latestBookList) {\n //str1.toLowerCase().contains(str2.toLowerCase())\n if (book.getName().toLowerCase().contains(query.toLowerCase())) {\n //add to search book list\n searchBookList.add(book);\n }\n }\n //set books to book list view\n AfterLoginActivity.this.bookListFragment.setBooks(searchBookList);\n }\n return true;\n }", "public IndexedList<Task> search(String partTitle) {\n\t\tpartTitle=partTitle.toLowerCase();\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getTitle().toLowerCase().contains(partTitle))\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}", "public void searchByEmail() {\n System.out.println(\"enter email to get that person details:\");\n Scanner sc = new Scanner(System.in);\n String email = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (email.equals(person.getEmail())) {\n List streamList = list.stream().filter(n -> n.getEmail().contains(email)).collect(Collectors.toList());\n System.out.println(streamList);\n }\n }\n }", "public ArrayList<AddressEntry> find(String startOf_lastName) {\n ArrayList<AddressEntry> filteredList = new ArrayList<>();\n\n for (int i = 0; i < addressEntryList.size(); i++) {\n if (addressEntryList.get(i).getLastName().toLowerCase().startsWith(startOf_lastName.toLowerCase())) {\n filteredList.add(addressEntryList.get(i));\n }\n }\n\n return filteredList;\n }", "java.util.List<cb.Careerbuilder.Job> \n getJobsList();", "List<User> findByfnameContaining(String search);", "public List<Contact> getAllContactsByName(String searchByName);", "@RequestMapping(value = \"/getAllNamesStartWith\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic List<Employee> getNamesStartWith(@RequestParam String name){\r\n\t\treturn repository.getAllEmpoyees().stream().filter(emp -> emp.getEmpName().startsWith(name)).collect(Collectors.toList());\r\n\t}", "public List<StaffPojo> staffSearchByName(String sname) {\n\t\treturn staffDao.staffSearchByName(sname);\n\t}", "List<MovieListing> searchMovieListingByFilmName(String movieName, List<MovieListing> allMoviesListing);", "public void filterByMyReason(String enteredReason){\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterMy.getCount(); i++ ){\n // get the mood event's trigger text\n keyOfReason = moodListBeforeFilterMy.getMoodEvent(i).getTriggerText();\n // if it contains the entered key of reason, then add it to the new list\n if (keyOfReason != null && keyOfReason.toLowerCase().contains(enteredReason.toLowerCase())) {\n moodListAfterFilter.add(moodListBeforeFilterMy.getMoodEvent(i));\n }\n }\n }", "@RequestMapping(value = \"/list/{pjobId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList1(@PathVariable(\"pjobId\") Integer pjobId) {\n ProfessionJob professionJob = professionJobService.getProfessionJob(pjobId).get();\n List<JobRequireProfessionJob> list = jobService.findAllByProfessionJob(professionJob);\n List<Job> jobsAfterFilterByProfession = new ArrayList<>();\n for(JobRequireProfessionJob jrpj : list) {\n jobsAfterFilterByProfession.add(jrpj.getJob());\n }\n return jobsAfterFilterByProfession;\n }", "public List<User> searchUser(String searchValue);", "public ArrayList<Customer> findCustomer(String searchText) {\r\n\t\tsearchText = searchText.toLowerCase();\r\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\r\n\t\ttry (ResultSet result = manager.performSql(\"SELECT id FROM Customer WHERE LOWER(first_name || ' ' || last_name) LIKE '%\" + searchText + \"%'\")) {\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tcustomers.add(manager.getCustomer(result.getInt(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customers;\r\n\t}", "public void searchByState() {\n System.out.println(\"enter a name of state to fetch person data fro state :--\");\n String state = scanner.next();\n\n Iterator it = list.iterator();\n while (it.hasNext()) {\n Contact person = (Contact) it.next();\n if (state.equals(person.getState())) {\n List stream = list.stream().filter(n -> n.getCity().contains(state)).collect(Collectors.toList());\n System.out.println(stream);\n }\n }\n }", "@GetMapping(value = \"/histori\")\n\t\tpublic String searchHistory(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\t\tmodel.addAttribute(\"employees\", employeerepository.findByFname(fname));\n\t\t\treturn \"history\";\n\t\t}", "private static void searchStaffByName(){\n\t\tshowMessage(\"type the name you are looking for: \\n\");\n\t\tString name = getUserTextTyped();\n\t\tToScreen.listEmployee(EmployeeSearch.employee(employee.getAllEmployee(),name), true);\n\t\t\n\t\t//condition to do another search by name or go back to the main menu\n //if the user decide for doing another search the method is called again, otherwise it will go back to the main menu\n\t\tint tryAgain = askForGoMainMenu(\"Would you like to search for another name or go back to main menu?\\n Type 1 to search someone else \\n Type 0 to go to menu. \\n Choice: \");\n\t\tif(tryAgain == 1){\n\t\t\tsearchStaffByName();\n\t\t} else {\n\t\t\tmain();\n\t\t}\n\t}", "public ArrayList<AddressEntry> searchByName(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getName().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "public List<String> getNamesFromAllTab() {\n List<String> namesFromAllCategory = new ArrayList<>(getTexts(teamPageFactory.displayedEmployeeNames));\n if (namesFromAllCategory.isEmpty()) logger.error(\"ERROR: no employee names elements found\");\n return namesFromAllCategory;\n }", "public static List<String> getMatches(String value, Collection<String> list, boolean caseInsensitive) {\n List<String> result = new LinkedList<>();\n\n for (String str : list) {\n if (str.startsWith(value.toLowerCase())\n || (caseInsensitive && str.toLowerCase().startsWith(value.toLowerCase()))) {\n result.add(str);\n }\n }\n\n return result;\n }", "public static void main(String[] args) {\n\r\n\t\tArrays.asList(\"Fred\", \"jim\", \"Sheila\")\r\n\t\t.stream()\r\n\t\t.peek(System.out::println)\r\n\t\t.allMatch(s -> s.startsWith(\"F\")); // fred jim\r\n\t}", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n String searchText = constraint.toString().toLowerCase();\n\n List<MapDataModel> filteredList = new ArrayList<>();\n\n if(searchText.isEmpty() || searchText.length() == 0){\n filteredList.addAll(doctorslist);\n }else{\n for (MapDataModel doctorlist: doctorslist){\n\n if (doctorlist.getDoctorname().toLowerCase().contains(searchText)){\n filteredList.add(doctorlist);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }", "public static List<String> getSpainCoach() throws URISyntaxException, IOException {\n\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/77\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> nameOfSpainTeamCoach= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getRole().equals(\"COACH\")){\n\n nameOfSpainTeamCoach.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n continue;\n }\n\n }\n return nameOfSpainTeamCoach;\n }", "@Override\r\n\tpublic List<Blog> findTitle(String ti) {\n\t\tList<Blog> list = this.getBlogDao().findAll();\r\n\t\tList<Blog> list1 = new ArrayList<Blog>();\r\n\t\tfor(Blog b:list){\r\n\t\t\tif(b.getTitle().contains(ti)){\r\n\t\t\t\tlist1.add(b);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list1;\r\n\t}", "@Override\n \tpublic ArrayList<Object> searchPostByName(String search) {\n\t\t\n\t\tSystem.out.println(\"i am in service search looking for cool posts\" + search);\n\t\t\n\t\tif(search == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<Object> list = null; //postRepository.findPostByName(search); ****Nick set this to null; otherwise it failed. Needs corrected in future\n\t\t\n\t\t//System.out.println(Arrays.toString(list));\n\t\treturn list;\n\t}", "public List<Staff> searchStaff(String searchString) {\n\t\t\n\t\tArrayList<Staff> result = new ArrayList<Staff>();\n\t\t\n\t\tSQLiteDatabase db = mDbHelper.getReadableDatabase();\n\t\tCursor cursor;\n\t\t\n\t\tStaff staff;\n\t\t\n\t\tcursor = db.rawQuery(\"SELECT a.id, a.name, password_ as pwd, mobile, phone, organization_id, \"\n\t\t\t\t + \" department_id, position_id, b.name as position_name \"\n + \"FROM staff a, position_ b \"\n + \"WHERE (a.name like '%\" + searchString + \"%' OR mobile like '%\" + searchString \n + \"%' OR phone like '%\" + searchString + \"%') AND a.position_id = b.id \" \n\t\t + \" AND is_warrant = '1' AND is_departure = '0' AND is_hipe = '0' \", null);\n\t\t\n\t\twhile (cursor.moveToNext()) {\n\t\t\t\n\t\t\tstaff = new Staff();\n\t\t\t\n\t\t\tstaff.setId(cursor.getInt(cursor.getColumnIndex(\"id\")));\n\t\t\tstaff.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n\t\t\tstaff.setPwd(cursor.getString(cursor.getColumnIndex(\"pwd\")));\n\t\t\tstaff.setMobile(cursor.getString(cursor.getColumnIndex(\"mobile\")));\n\t\t\tstaff.setPhone(cursor.getString(cursor.getColumnIndex(\"phone\")));\n\t\t\tstaff.setOrganizationId(cursor.getInt(cursor.getColumnIndex(\"organization_id\")));\n\t\t\tstaff.setDepartmentId(cursor.getInt(cursor.getColumnIndex(\"department_id\")));\n\t\t\tstaff.setPositionId(cursor.getInt(cursor.getColumnIndex(\"position_id\")));\n\t\t\tstaff.setPositionName(cursor.getString(cursor.getColumnIndex(\"position_name\")));\n\t\t\tstaff.setSelected(false);\n\t\t\t\n\t\t\tresult.add(staff);\n\t\t}\n\t\t\n\t\tcursor.close();\n\t\tdb.close();\n\t\t\n\t\treturn result;\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic List<EmployeeMaster> searchbyeyEmpCategoryforSA(String search_key) {\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\r\n\t\tList<EmployeeMaster> listemp = (List<EmployeeMaster>) sessionFactory.getCurrentSession()\r\n\t\t.createQuery(\"from EmployeeMaster WHERE obsolete ='N'\"\r\n\t\t\t\t+ \" AND empcategory LIKE '%\" + search_key + \"%' GROUP BY empcategory\").list();\r\n\t\treturn listemp;\r\n\t\t\r\n\t}", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "public Bahnhof getBahnhof(String bahnhof) {\n Bahnhof[] liste = new Bahnhof[bhfs];\n Bahnhof bhf = null;\n for (int i = 0; i < getBahnhofListe().length; i++) {\n if (liste[i].getName().equals(bahnhof)) {\n bhf = liste[i];\n }\n }\n return bhf;\n }", "public List<String> getProducts(String c){\n\t\tif( containsCustomer(c)){\n\t\t\tfor (int i = 0; i < this.list.size(); i++){\n\t\t\t\tif( c.equals(list.get(i).getUsername())){\n\t\t\t\t\treturn list.get(i).getWishlist();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public ArrayList<ADFilmBEAN> search(int thang, int nam, int start) throws Exception{\r\n\t\treturn film.search(thang, nam, start);\r\n\t}", "@Override\n\tpublic List<FilghtDetails> searchFlightByNameInUser(String flightname) {\n\t\tArrayList<FilghtDetails> sl = new ArrayList<FilghtDetails>();\n\t\tfor (int i = 0; i <= Repository.FLIGHT_DETAILS.size() - 1; i++) {\n\t\t\tFilghtDetails rf = Repository.FLIGHT_DETAILS.get(i);\n\t\t\tString rfn = rf.getFlightName();\n\t\t\tif (flightname.equalsIgnoreCase(rfn)) {\n\t\t\t\tsl.add(rf);\n\t\t\t\treturn sl;\n\t\t\t}\n\t\t}\n\t\tif (sl.size() == 0) {\n\t\t\tthrow new AirlineException(\"Flight not found\");\n\t\t} else {\n\t\t\treturn sl;\n\t\t}\n\t}", "public List<String> getCustomers(String p){\n\t\tif( containsProduct(p)){\n\t\t\tList<String> custlist = new ArrayList<String>();\n\t\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t\tif(hasProduct(list.get(i).getUsername(), p)){\n\t\t\t\t\tcustlist.add(list.get(i).getUsername());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn custlist;\n\t\t}\n\t\treturn null;\n\t}", "public List<Menu> searchCustomers(String theSearchName) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\r\n\t\tQuery theQuery = null;\r\n\r\n\t\t//\r\n\t\t// only search by name if theSearchName is not empty\r\n\t\t//\r\n\t\tif (theSearchName != null && theSearchName.trim().length() > 0) {\r\n\r\n\t\t\t// search for firstName or lastName ... case insensitive\r\n\t\t\ttheQuery = currentSession.createQuery(\r\n\t\t\t\t\t\"from Menu where lower(mname) like :theName or lower(munit) like :theName\", Menu.class);\r\n\t\t\ttheQuery.setParameter(\"theName\", \"%\" + theSearchName.toLowerCase() + \"%\");\r\n\r\n\t\t} else {\r\n\t\t\t// theSearchName is empty ... so just get all customers\r\n\t\t\ttheQuery = currentSession.createQuery(\"from Menu\", Menu.class);\r\n\t\t}\r\n\r\n\t\t// execute query and get result list\r\n\t\tList<Menu> theMenu = theQuery.getResultList();\r\n\r\n\t\t// return the results\r\n\t\treturn theMenu;\r\n\r\n\t}", "public List<String> autoComplete(String inputValue) {\n System.out.println(\"The input value is: \" + inputValue);\n List<String> outputList = new ArrayList<String>();\n\n StockDetailsROVOImpl vo = getStockDetailsROVO();\n\n vo.executeQuery();\n RowSetIterator it = vo.createRowSetIterator(null);\n\n while (it.hasNext()) {\n StockDetailsROVORowImpl newRow =\n (StockDetailsROVORowImpl)it.next();\n if (newRow.getStockname().toLowerCase().startsWith(inputValue)) {\n outputList.add(newRow.getStockname());\n System.out.println(newRow.getStockname());\n }\n }\n vo.clearCache();\n it.closeRowSetIterator();\n return outputList;\n }", "public static ArrayList<String> Searching_OnPeople_who_AddMe() {\n\t\t\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\t\tArrayList<String> requests= new ArrayList<String>();\n\t\tQuery gaeQuery = new Query(\"friends\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t\n\t\t\tif (entity.getProperty(\"friendEmail\").toString().equals(User.getCurrentActiveUser().getEmail().toString())&&\n\t\t\t\t\t!entity.getProperty(\"status\").toString().equals(\"accept\")) {\n\t\t\t\t\n\t\t\t\trequests.add(entity.getProperty(\"myEmail\").toString());\n\t\t\t\t\n\t\t\t }\nelse{\n\t\t\t\t }\n\t\t}\n\t\treturn requests;\n\t\n\t}", "List<Employee> findByNameContaining(String keyword, Sort sort);", "@SuppressWarnings( \"unchecked\" )\n public List<String> getIndexedNames() {\n List<Employment> employments = getQueryService().findAllEmploymentsWithKnownActors();\n if ( indexedOn.equals( ACTORS ) ) {\n return (List<String>) CollectionUtils.collect(\n employments,\n new Transformer() {\n public Object transform( Object obj ) {\n return ( (Employment) obj ).getActor().getLastName();\n }\n } );\n } else if ( indexedOn.equals( ROLES ) ) {\n return (List<String>) CollectionUtils.collect(\n CollectionUtils.select(\n employments,\n new Predicate() {\n public boolean evaluate( Object obj ) {\n return ( (Employment) obj ).getJob() != null;\n }\n } ),\n new Transformer() {\n public Object transform( Object obj ) {\n return ( (Employment) obj ).getJob().getRole().getName();\n }\n\n } );\n } else if ( indexedOn.equals( ORGANIZATIONS ) ) {\n return (List<String>) CollectionUtils.collect(\n CollectionUtils.select(\n employments,\n new Predicate() {\n public boolean evaluate( Object obj ) {\n return ( (Employment) obj ).getOrganization() != null;\n }\n } ),\n new Transformer() {\n public Object transform( Object obj ) {\n return ( (Employment) obj ).getOrganization().getName();\n }\n\n } );\n } else if ( indexedOn.equals( LOCATIONS ) ) {\n return (List<String>) CollectionUtils.collect(\n CollectionUtils.select(\n employments,\n new Predicate() {\n public boolean evaluate( Object obj ) {\n return ( (Employment) obj ).getOrganization() != null\n && ( (Employment) obj ).getOrganization().getLocation() != null;\n }\n } ),\n new Transformer() {\n public Object transform( Object obj ) {\n return ( (Employment) obj ).getOrganization().getLocation().getName();\n }\n\n } );\n } else {\n throw new IllegalStateException( \"Can't index on \" + indexedOn );\n }\n }", "List<MovieListing> searchMovieListingByCineplex(String cineplexName, List<MovieListing> allMoviesListing);", "public String[] getAllJobs();", "private void collectUsingStream() {\n List<Person> persons =\n Arrays.asList(\n new Person(\"Max\", 18),\n new Person(\"Vicky\", 23),\n new Person(\"Ron\", 23),\n new Person(\"Harry\", 12));\n\n List<Person> filtered = persons\n .stream()\n .filter(p -> p.name.startsWith(\"H\"))\n .collect(Collectors.toList());\n\n System.out.println(\"collectUsingStream Filtered: \" + filtered);\n }", "public static void main(String[] args) throws IOException {\n\t\tList<String> people = Arrays.asList(\"Al\", \"Ankit\", \"Kushal\", \"Brent\", \"Sarika\", \"amanda\", \"Hans\", \"Shivika\");\n\t\tpeople\n\t\t\t.stream()\n\t\t\t.map(String::toLowerCase)\n\t\t\t.filter(x -> x.startsWith(\"a\"))\n\t\t\t.forEach(System.out::println);\n\t}", "private void filter(String text) {\n List<UserModel> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (UserModel item : userModels) {\n //if the existing elements contains the search input\n if (item.getFirstName().toLowerCase().contains(text.toLowerCase())||item.getId().toLowerCase().contains(text.toLowerCase())||item.getEmail().toLowerCase().contains(text.toLowerCase())){\n //adding the element to filtered list\n filterdNames.add(item);\n }\n }\n userAdapter.filterList(filterdNames);\n }", "@Query(value = \"SELECT * FROM FUNCIONARIO \" +\n \"WHERE CONVERT(upper(name), 'SF7ASCII') = CONVERT(upper(:name), 'SF7ASCII')\", nativeQuery = true)\n Optional<List<Funcionario>> findByNameIgnoreCase(String name);", "@Override\n\tpublic List<Customer> searchCustomers(String theSearchName) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\tQuery theQuery = null;\n\t\t\n\t\t// only search by name if theSearchName is not empty\n\t\tif(theSearchName != null && theSearchName.trim().length() > 0) {\n\t\t\ttheQuery = currentSession.createQuery(\"from Customer where \"\n\t\t\t\t\t+ \"lower(firstName) like :theName or lower(lastName) \"\n\t\t\t\t\t+ \"like :theName\", Customer.class);\n\t\t\t\n\t\t\ttheQuery.setParameter(\"theName\", \"%\" + theSearchName.toLowerCase() + \"%\");\n\t\t}\n\t\telse {\n\t\t\t// theSearchName is empty, so get all the customers\n\t\t\ttheQuery=currentSession.createQuery(\"from Customer\", Customer.class);\n\t\t}\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\n\t\treturn customers;\n\t}", "@FXML\n public void filterCupboardIngredients(){\n String searchText = searchIngredientCupboard.getText();\n List<Ingredient> filteredList = ingredientsFromDatabase.stream().filter(new Predicate<Ingredient>() {\n @Override\n public boolean test(Ingredient ingredient) {\n //inclusive of the upper cases makes it case insensitive\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }\n }).collect(Collectors.toList());\n filterObservableList = FXCollections.observableList(filteredList);\n allIngredientsCupboardPane.setItems(filterObservableList);\n }", "public ObservableList<Part> lookupPart(String partName) {\n ObservableList<Part> namedParts = FXCollections.observableArrayList();\n for ( Part part : allParts ) {\n if(part.getName().toLowerCase().contains(partName.toLowerCase())) {\n namedParts.add(part);\n }\n }\n return namedParts;\n }", "@FXML\n public void filterIngredients(){\n String searchText = searchIngredient.getText();\n List<Ingredient> filteredList = ingredientsFromDatabase.stream().filter(new Predicate<Ingredient>() {\n @Override\n public boolean test(Ingredient ingredient) {\n //inclusive of the upper cases makes it case insensitive\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }\n }).collect(Collectors.toList());\n filterObservableList = FXCollections.observableList(filteredList);\n ingredientsList.setItems(filterObservableList);\n }", "@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic List<EmployeeMaster> searchbyEmployee(String search_key) {\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\r\n\t\tList<EmployeeMaster> listcust = (List<EmployeeMaster>) sessionFactory.getCurrentSession()\r\n\t\t.createQuery(\"from EmployeeMaster WHERE obsolete ='N' \"\r\n\t\t\t\t+ \" AND user.role.role_Name <>'\" + constantVal.ROLE_SADMIN + \"' \"\r\n\t\t\t\t+ \" and emp_name LIKE '%\" + search_key + \"%'\").list();\r\n\t\treturn listcust;\r\n\t\t\r\n\t}", "public List<Buku> findByName(String judulBuku) {\n Query query = this.session.createQuery(\"from Buku where judul like :judul order by judul\");\n query.setParameter(\"judul\",\n new StringBuilder(\"%\")\n .append(judulBuku.toLowerCase())\n .append(\"%\").toString()\n );\n\n return query.getResultList();\n }", "public List<Employee> getEmployeesByOffice(String officeCode) {\n return employeeDao.selectOfficeCode(officeCode);\n// return getAll().stream().filter(emp -> emp.getOfficeCode() == null\n// ? null\n// : emp.getOfficeCode().equals(officeCode))\n// .collect(Collectors.toList());\n }", "public ArrayList<CoronaCase> Analytics(String city)\n\t{\n\t\tArrayList<CoronaCase> temp = new ArrayList<CoronaCase>();\n\t\t\n\t\tfor(int i = 0; i < coronaCase.size(); i++)\n\t\t\tif(coronaCase.get(i).getCity().toLowerCase().contains(city.toLowerCase()))\n\t\t\t\ttemp.add(coronaCase.get(i));\t\n\t\t\n\t\treturn temp;\n\t}" ]
[ "0.6396404", "0.61333597", "0.59764147", "0.5926339", "0.5804571", "0.57842886", "0.5760147", "0.5692208", "0.5629465", "0.5620684", "0.55683565", "0.5564973", "0.5523119", "0.5484846", "0.54541534", "0.54505265", "0.5436579", "0.5429489", "0.54137075", "0.5378406", "0.53783107", "0.53780675", "0.5358831", "0.52992815", "0.52973986", "0.5295261", "0.5278252", "0.5269611", "0.5269423", "0.5256607", "0.5226473", "0.5195416", "0.51769227", "0.51757425", "0.51654744", "0.51407343", "0.514024", "0.5127307", "0.5103787", "0.5099582", "0.50797623", "0.5077197", "0.50769824", "0.5064001", "0.50606275", "0.5045974", "0.5045276", "0.50085145", "0.4999684", "0.49974605", "0.49954242", "0.49757937", "0.49752", "0.49748147", "0.4974661", "0.49677464", "0.4966914", "0.49617234", "0.49568918", "0.49502167", "0.49486995", "0.49486792", "0.49218974", "0.4920848", "0.49158803", "0.49066854", "0.49062487", "0.49050647", "0.48967016", "0.48958528", "0.48929244", "0.48913896", "0.48853502", "0.48803157", "0.48700243", "0.4869089", "0.48679352", "0.486631", "0.48632473", "0.4858316", "0.4852658", "0.484918", "0.4847522", "0.48458606", "0.48452112", "0.4839477", "0.4838619", "0.4835267", "0.48330888", "0.48291183", "0.48281714", "0.4827983", "0.48269373", "0.4825858", "0.48244348", "0.48214546", "0.48194417", "0.48134807", "0.48109663", "0.47991472" ]
0.6831757
0
get all the instance of FavouriteJob.
@RequestMapping(value = "/list/", method = RequestMethod.GET, produces = {"application/hal+json"}) public List<FavouriteJobs> getAllFavJobs(){ List<FavouriteJobs> favJobsList = null; try { favJobsList = favJobService.getAllFavJobs(); } catch(Exception e) { //TODO: Exception Handle } return favJobsList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value =\"/jobCode/{jobCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByJobCode(@PathVariable String jobCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByJobCode(jobCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by job code: \" +jobCode);\n\t\t}\t\t\n\t\t\n\t\tif( favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "public List<RequestJob> getAllJob() {\n List<RequestJob> allJob = null;\n if (allJob == null) {\n allJob = requestJobMapper.selectByExample(new RequestJobExample());\n }\n MemCacheUtil.set(\"job-list\", allJob);\n return allJob;\n }", "public static List<Job> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "@Override\r\n\tpublic List<Job> ShowAllJobs() {\n\t\treturn null;\r\n\t}", "List<EcsFavourableActivity> selectAll();", "java.util.List<cb.Careerbuilder.Job> \n getJobsList();", "public java.util.List<cb.Careerbuilder.Job> getJobsList() {\n return jobs_;\n }", "@Override\n Flux<Job> findAll();", "java.util.List<com.google.cloud.talent.v4.Job> \n getJobsList();", "private ArrayList<MovieItem> getFavoriteMovies(){\n //get list of favorite movies from buffer\n ArrayList<MovieItem> movies = mMovieStaff.getMovies(PosterHelper.NAME_ID_FAVORITE);\n\n //check if favorite movie list has changed\n if(mFavoriteChanged){\n //list has changed, show new movie list\n showMovieList(movies, PosterHelper.NAME_ID_FAVORITE);\n }\n\n //return movie list\n return movies;\n }", "public static ArrayList<Job> getJob()\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n ArrayList<Job> returnValue = new ArrayList<>();\n\n stmt = conn.createStatement();\n String sql = \"SELECT * FROM job NATURAL JOIN recruiter NATURAL JOIN location;\";\n ResultSet rs = stmt.executeQuery(sql);\n while(rs.next()) {\n returnValue.add(new Job(\n rs.getInt(\"job_id\"),\n rs.getString(\"job_name\"),\n new Recruiter(\n rs.getInt(\"recruiter_id\"),\n rs.getString(\"name\"),\n rs.getString(\"email\"),\n rs.getString(\"phone_number\"),\n new Location(\n rs.getString(\"province\"),\n rs.getString(\"city\"),\n rs.getString(\"description\")\n )\n ),\n rs.getInt(\"fee\"),\n JobCategory.valueOf(rs.getString(\"category\"))\n ));\n }\n rs.close();\n stmt.close();\n conn.close();\n return returnValue;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return null;\n }\n }", "public java.util.List<? extends cb.Careerbuilder.JobOrBuilder> \n getJobsOrBuilderList() {\n return jobs_;\n }", "public ArrayList<Job> getJobs(){\n return jobs;\n }", "@Override\r\n\tpublic List<JobDTO> getAllJobs() {\n\t\treturn accountDao.getAllJobs();\r\n\t}", "public Cursor fetchAllFavorites() {\n\n return mDb.query(DATABASE_TABLE_FAVORITES, new String[] {KEY_ROWID, KEY_TITLE,\n KEY_BODY}, null, null, null, null, null);\n }", "@Override\n\tpublic List<JobPreferences> findAll() {\n\t\treturn jobPreferenceDao.findAll();\n\t}", "@Override\r\n\tpublic List<IncomingJobResponse> getJobList() {\n\t\tList<IncomingJobs> js = (List<IncomingJobs>)incomingRepository.fetchincomingJobs();\r\n\t\tList<IncomingJobResponse> joblist = new ArrayList<IncomingJobResponse>();\r\n\t\tfor(IncomingJobs job :js){\r\n\t\t\tIncomingJobResponse jobs = new IncomingJobResponse();\r\n\t\t\tSystem.out.println(\"ATA:\"+job.getAta()+\"ETA:\"+job.getEta());\r\n\t\t\tjobs.setJobid(job.getID());\r\n\t\t\t\r\n\t\t\tif(job.getEta()!=null){\r\n\t\t\tjobs.setEta(job.getEta().toString());\r\n\t\t\t}\r\n\t\t\tif(job.getAta()!=null){\r\n\t\t\tjobs.setAta(job.getAta().toString());\r\n\t\t\t}\r\n\t\t\tjobs.setBroker(job.getBroker());\r\n\t\t\tjobs.setClear(job.getClear());\r\n\t\t\tjobs.setConsignee(job.getConsignee());\r\n\t\t\tjobs.setDestination(job.getDestination());\r\n\t\t\tjobs.setFlight(job.getFlight());\r\n\t\t\tjobs.setHawb(job.getHawb());\r\n\t\t\tjobs.setHeld(job.getHeld());\r\n\t\t\tjobs.setMawb(job.getMawb());\r\n\t\t\tjobs.setMLID(job.getMLID());\r\n\t\t\tjobs.setNote(job.getNote());\r\n\t\t\tjobs.setOutturn(job.getOutturn());\r\n\t\t\tjobs.setPiece(job.getPiece());\r\n\t\t\tjobs.setWeight(job.getWeight());\r\n\t\t\tif(job.getInjectionDate()!=null){\r\n\t\t\t\tjobs.setInjectionDate(job.getInjectionDate().toString());\r\n\t\t\t\t}\r\n\t\t\tif(job.getClearanceDate()!=null){\r\n\t\t\t\tjobs.setClearanceDate(job.getClearanceDate().toString());\r\n\t\t\t\t}\r\n\t\t\tjobs.setDamage(job.getDamageNotes());\r\n\t\t\tjobs.setSurplus(job.getSurplusShortage());\r\n\t\t\tjoblist.add(jobs);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn joblist;\r\n\t}", "public java.util.List<cb.Careerbuilder.Job> getJobsList() {\n if (jobsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(jobs_);\n } else {\n return jobsBuilder_.getMessageList();\n }\n }", "public List<BatchJob> findAll() {\r\n\t\treturn dao.findAll();\r\n\t}", "public java.util.List<? extends cb.Careerbuilder.JobOrBuilder> \n getJobsOrBuilderList() {\n if (jobsBuilder_ != null) {\n return jobsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(jobs_);\n }\n }", "public List<FavoriteLog> getFavoriteLogList() {\n if (_favoriteLogList == null) { _favoriteLogList = newReferrerList(); }\n return _favoriteLogList;\n }", "public static void findFavourites() {\n DataManager.currentFavouritesList.clear();\n\n for (int i = 0; i < DataManager.fullFavouritesList.size(); i++) {\n Attraction attraction = DataManager.findAttractionByName(DataManager.fullFavouritesList.get(i));\n\n if (attraction != null) {\n DataManager.currentFavouritesList.add(attraction);\n }\n }\n\n FavouritesListFragment.backgroundLayout.setVisibility(DataManager.currentFavouritesList.size() == 0 ? View.VISIBLE : View.INVISIBLE);\n\n AttractionsListFragment.attractionsAdapter.notifyDataSetChanged();\n }", "public List<IJob> getDependentJobs();", "public GetAllPrintJobListResponse getAllPrintJobs(){\n GetAllPrintJobResponse printJobResponse =\n new GetAllPrintJobResponse(null, null, null, null, null,\n null, null, null);\n\n List<GetAllPrintJobResponse> printJobResponses = new ArrayList<GetAllPrintJobResponse>();\n printJobResponses.add(printJobResponse);\n\n return new GetAllPrintJobListResponse(printJobResponses);\n }", "public String[] getAllJobs();", "@RequestMapping(value =\"/hospitalName/{hospitalName}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalName(@PathVariable String hospitalName) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalName(hospitalName);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital name: \" + hospitalName);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<IJobQueue> getJobs() throws IOException {\n\t\tfinal String sql = \"SELECT * from jobqueue order by id\";\n\t\tList<? extends IJobQueue> result = this.queryDataList(JobQueue.class,IJobQueue.Props.class, sql);\n\t\treturn (List<IJobQueue>) result;\t\t\n\t}", "public ArrayList<jobqueue> getqueue() {\n\t\tArrayList<jobqueue> job = new ArrayList<jobqueue>();\n\t\tMysqlConnPool.getInstance();\n\t\tConnection connection = MysqlConnPool.getConnection();\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = \"select * from jobqueue\";\n\t\trs = MysqlHelper.executeQuery(connection, sql, ps, rs);\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tjobqueue queue = new jobqueue();\n\t\t\t\tqueue.setId(rs.getInt(\"id\"));\n\t\t\t\tqueue.setUrl(rs.getString(\"url\"));\n\t\t\t\tqueue.setUrlname(rs.getString(\"sitename\"));\n\t\t\t\tqueue.setTitlerule(rs.getString(\"titlerule\"));\n\t\t\t\tqueue.setSourcerule(rs.getString(\"sourcerule\"));\n\t\t\t\tqueue.setPublishtimerule(rs.getString(\"publishtimerule\"));\n\t\t\t\tqueue.setContentrule(rs.getString(\"contentrule\"));\n\t\t\t\tqueue.setState(rs.getInt(\"state\"));\n\t\t\t\tqueue.setSitetype(rs.getInt(\"sitetype\"));\n\t\t\t\tqueue.setRuletype(rs.getInt(\"ruletype\"));\n\t\t\t\tqueue.setContentwebtype(rs.getInt(\"contentwebtype\"));\n\t\t\t\tjob.add(queue);\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} finally {\n\t\t\tMysqlUtil.realeaseResource(rs, ps, connection);\n\t\t}\n\t\treturn job;\n\n\t}", "java.util.List<? extends com.google.cloud.talent.v4.JobOrBuilder> \n getJobsOrBuilderList();", "public List<Restaurant> getAllFavoriteRestaurants() throws ExecutionException, InterruptedException {\n class GetAllFavoriteRestaurantsTask extends AsyncTask<Void,Void,List<Restaurant>>\n {\n @Override\n protected List<Restaurant> doInBackground(Void... url) {\n return mainDatabase.favoriteRestaurantsDao().getAllFavoriteRestaurants();\n }\n }\n return new GetAllFavoriteRestaurantsTask().execute().get();\n }", "public List<StockFavorite> getListFavoriteStock(int userId);", "java.util.List<? extends cb.Careerbuilder.JobOrBuilder> \n getJobsOrBuilderList();", "public Book[] getFavoriteBooks()\n {\n String stmnt = String.format(\n \"SELECT * FROM book ORDER BY rating DESC LIMIT %d \",\n PAGE_LIMIT);\n ResultSet rs = executeQuery(stmnt);\n ArrayList<Book> arr = resultSetPacker(rs, Book.class);\n\n return arr.toArray(new Book[arr.size()]);\n\n }", "@RequestMapping(value =\"/hospitalCode/{hospitalCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalCode(@PathVariable String hospitalCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalCode(hospitalCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital code: \" + hospitalCode);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@NotNull\n @Override\n public List<Faction> getFactions() {\n return FactionColl.get().getAll()\n .stream().map(MassiveCoreFactionsFaction::new).collect(Collectors.toList());\n }", "@GetMapping(\"/favourite-songs\")\n @Timed\n public List<FavouriteSong> getAllFavouriteSongs() {\n log.debug(\"REST request to get all FavouriteSongs\");\n return favouriteSongRepository.findAll();\n }", "java.util.List<com.lvl6.proto.QuestProto.UserQuestJobProto> \n getUserQuestJobsList();", "@Nonnull\n List<AbstractProject<?,?>> getAllJobs();", "private void getAllFavorite(){\n\n\n MainViewModel viewModel = ViewModelProviders.of(this).get(MainViewModel.class);\n viewModel.getFavorite().observe(this, new Observer<List<FavoriteEntry>>() {\n @Override\n public void onChanged(@Nullable List<FavoriteEntry> imageEntries) {\n List<Movie> movies = new ArrayList<>();\n for (FavoriteEntry entry : imageEntries){\n Movie movie = new Movie();\n movie.setId(entry.getMovieid());\n movie.setOverview(entry.getOverview());\n movie.setOriginalTitle(entry.getTitle());\n movie.setPosterPath(entry.getPosterpath());\n movie.setVoteAverage(entry.getUserrating());\n movie.setReleaseDate(entry.getReleasedate());\n movies.add(movie);\n }\n\n adapter.setMovies(movies);\n }\n });\n }", "@GetMapping(\"/favourites\")\n public ResponseEntity<List<Favourite>> getAll() {\n\n\n logger.info(\"The Favourite List is Successfully found.\");\n\n return new ResponseEntity<>( favouriteDao.getAll(), HttpStatus.OK);\n }", "@RequestMapping(value =\"/doctorId/{docId}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByDocId(@PathVariable Long docId) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByDocId(docId);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by doctor Id: \"+ docId);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "private List<Equipe> getFavoriteEquipes(List<Equipe> allEquipes) {\n\t\tList<Equipe> retain = new ArrayList<Equipe>(allEquipes.size());\n\t\tfor (Equipe equipe : allEquipes) {\n\t\t\tif (equipe.favorite) {\n\t\t\t\tretain.add(equipe);\n\t\t\t}\n\t\t}\n\t\treturn retain;\n\t}", "private void retrieveFavoritePhotos() {\n showProgress(this.mProgressBar, this.mRlContent);\n this.mFavoritePhotosViewModel.retrievePhotos();\n }", "public List<Instance> getJobInstances(String jobID) throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn Core.getJobInstances(jobID, getHttpMethodExecutor());\n\t}", "public cb.Careerbuilder.Job getJobs(int index) {\n return jobs_.get(index);\n }", "public List<Favorite> getFavorites(String signedInAccount) {\n String[] columns = {\n mDBAccountString, mDBTitleString, mDBDescString, mDBURLString\n };\n String[] selectArgs = {signedInAccount};\n\n Cursor cursor = mFavSQLiteDB.query(\n FAVORITES_TABLE,\n columns,\n mDBAccountString + \" = ?\",\n selectArgs,\n null,\n null,\n null\n );\n cursor.moveToFirst();\n List<Favorite> list = new ArrayList<>();\n for (int i = 0; i < cursor.getCount(); i++) {\n String account = cursor.getString(0);\n String title = cursor.getString(1);\n String desc = cursor.getString(2);\n String url = cursor.getString(3);\n Favorite favorite = new Favorite(account, title, desc, url);\n list.add(favorite);\n cursor.moveToNext();\n }\n cursor.close();\n return list;\n }", "@GetMapping(\"/job-bids\")\n @Timed\n public List<JobBid> getAllJobBids() {\n log.debug(\"REST request to get all JobBids\");\n return jobBidRepository.findAll();\n }", "cb.Careerbuilder.Job getJobs(int index);", "DataResult<List<Job>> getAll();", "com.google.cloud.talent.v4.Job getJobs(int index);", "public Jobs postedJobs()\n {\n return jobPosts;\n }", "ListWorkerFleetsResult listWorkerFleets(ListWorkerFleetsRequest listWorkerFleetsRequest);", "public ArrayList<Booking> getFutureBookingsHistory() throws NoBookingsException, NoFutureBookingsException {\n return profile.getFutureBookingsHistory(currentUser);\n }", "@Override\n public List<HistoryJobEntity> findExpiredJobs(Page page) {\n return Lists.newArrayList();\n }", "public Jobs jobs();", "public Faq[] findAll() throws FaqDaoException;", "cb.Careerbuilder.JobOrBuilder getJobsOrBuilder(\n int index);", "public List<MovieDetails> getAllFavoriteMovies() {\n SQLiteDatabase database = this.getWritableDatabase();\n List<MovieDetails> movieDetailses = new ArrayList<>();\n List<Integer> favoritesMovieId = new ArrayList<>();\n String selectQuery = \"SELECT * FROM \" + FavoriteMoviesEntry.TABLE_NAME;\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n int id = getIdFromCursor(cursor);\n String selectFavoriteMovieQuery = \"SELECT * FROM \" + MoviesDetailsEntry.TABLE_NAME + \"WHERE \" + MoviesDetailsEntry._ID + \"= \" + id;\n Cursor movieCursor = database.rawQuery(selectFavoriteMovieQuery, null);\n if (movieCursor.moveToFirst()) {\n do {\n MovieDetails movieDetails = getMovieDetailsFromCursor(movieCursor);\n movieDetailses.add(movieDetails);\n } while (movieCursor.moveToNext());\n }\n } while (cursor.moveToNext());\n }\n database.close();\n\n return movieDetailses;\n }", "private List<BatchJobInstance> getFailedJobs() {\r\n\t\tlog.info(\"Searching for failed jobs ...\");\r\n\t\tlog.info(\" \");\r\n\r\n\t\tList<BatchJobInstance> jobs = new ArrayList<BatchJobInstance>();\r\n\t\tConnection conn = null;\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tString qs = \"select id from batchjobinstance where status = 'Failed' and startDateTime > now() + interval -1 day\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\trs = stmt.executeQuery(qs);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tjobs.add(batchJobInstanceManager.findById(rs.getInt(\"id\")));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlog.error(\"Exception encountered while attempting to retrieve abandoned jobs: \" + e.toString() + \"; \" + e.getMessage(), e);\r\n\t\t\tlog.error(\"SQL statement: \" + qs);\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on rs.close(): \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\trs = null;\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on stmt.close(): \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\tstmt = null;\r\n\t\t\t}\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on conn.close(): : \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlog.info(jobs.size() + \" failed job(s) found\");\r\n\t\tlog.info(\" \");\r\n\r\n\t\treturn jobs;\r\n\t}", "java.util.List<? extends com.lvl6.proto.QuestProto.UserQuestJobProtoOrBuilder> \n getUserQuestJobsOrBuilderList();", "public List<byte[]> getAllJobInfo() {\n // Fetch a job list with protobuf bytes format from GCS.\n synchronized (GlobalStateAccessor.class) {\n validateGlobalStateAccessorPointer();\n return this.nativeGetAllJobInfo(globalStateAccessorNativePointer);\n }\n }", "@GetMapping(\"getAll\")\n\tpublic Collection<JobApplication> getAll(){\n\t\treturn jobAppRepo.findAll();\n\t}", "public cb.Careerbuilder.JobOrBuilder getJobsOrBuilder(\n int index) {\n return jobs_.get(index);\n }", "public void getFavoriteEateries(Integer account_id){\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_FAVORITES;\r\n this.makeVolleyRequest( url, params );\r\n }", "public synchronized Set<String> getFavorites() {\r\n return new HashSet<>(settings.getList(FAVORITES_SETTING));\r\n }", "java.util.List<org.tensorflow.proto.distruntime.JobDeviceFilters> \n getJobsList();", "public List<Job> loadJobs(Map<String, Object> cmap) {\n CriteriaBuilder builder = em.getCriteriaBuilder();\n CriteriaQuery<JobEntity> criteriaQuery = builder.createQuery(JobEntity.class);\n Root<JobEntity> jobRoot = criteriaQuery.from(JobEntity.class);\n criteriaQuery.select(jobRoot);\n\n List<Predicate> predicates = buildPredicatesFromConditions(cmap, builder, jobRoot);\n criteriaQuery.where(builder.and(predicates.toArray(new Predicate[0])));\n return getResultsFromQuery(criteriaQuery);\n }", "public java.util.List<com.lvl6.proto.QuestProto.UserQuestJobProto> getUserQuestJobsList() {\n if (userQuestJobsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(userQuestJobs_);\n } else {\n return userQuestJobsBuilder_.getMessageList();\n }\n }", "private Integer[] getAbandonedJobs() {\r\n\t\tlog.info(\"Searching for abandoned jobs ...\");\r\n\t\tlog.info(\" \");\r\n\r\n\t\tList<Integer> jobs = new ArrayList<Integer>();\r\n\t\tConnection conn = null;\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tString qs = \"select id from batchjobinstance where status = 'Running' and startDateTime < now() + interval -1 day\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\trs = stmt.executeQuery(qs);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tjobs.add(rs.getInt(\"id\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlog.error(\"Exception encountered while attempting to retrieve abandoned jobs: \" + e.toString() + \"; \" + e.getMessage(), e);\r\n\t\t\tlog.error(\"SQL statement: \" + qs);\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on rs.close(): \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\trs = null;\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on stmt.close(): \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\tstmt = null;\r\n\t\t\t}\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException sqle) {\r\n\t\t\t\t\tlog.error(\"SQL error on conn.close(): : \" + sqle.toString() + \"; \" + sqle.getMessage(), sqle);\r\n\t\t\t\t}\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlog.info(jobs.size() + \" abandoned job(s) found\");\r\n\t\tlog.info(\" \");\r\n\r\n\t\treturn jobs.toArray(new Integer[0]);\r\n\t}", "public Collection<BatchJobParameters> getCurrentJobs() {\n return runningJobs.values();\n }", "public ArrayList<AvailableJobModal> getAvailablejoblist() {\n return availablejoblist;\n }", "List<JmfTaskMqRef> selectAll();", "private void getFavData() {\n favouriteViewModel.getFavouritePostData().observe(this, result -> {\n if (result != null) {\n if (result.status == Status.SUCCESS) {\n if (this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n favouriteViewModel.setLoadingState(false);\n itemViewModel.setItemDetailObj(itemViewModel.itemId, itemViewModel.historyFlag, loginUserId);\n }\n\n } else if (result.status == Status.ERROR) {\n if (this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n favouriteViewModel.setLoadingState(false);\n }\n }\n }\n });\n }", "public List<? extends JobEntry> getScheduledJobs()\n {\n return schedulerService.listJobs();\n }", "public List<MLocoBoggie> getboogie() {\n\t\t\t\tList<MLocoBoggie> getboogies = new ArrayList<>();\n\t\t\t\tobj_boogierepo.findAll()\n\t\t\t\t.forEach(getboogies::add);\n\n\t\t\t\treturn getboogies;\t\t\t\t\n\t\t\t\t\t\t}", "public ArrayList<DetailModel> getPhonesFromFavorite(){\n\n return null;\n }", "public static Collection getAllActivities() throws EnvoyServletException\n {\n try\n {\n return ServerProxy.getJobHandler().getAllActivities();\n }\n catch (Exception e)\n {\n throw new EnvoyServletException(e);\n }\n }", "public List<ActivityLog> getJobLogs(Job job) throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn getJobLogs(job.getId());\n\t}", "@Override\n public Optional<List<FollowStateTracker>> getAllFSTByFollowable() {\n return this.getAllFSTByFollowableID(authenticationService.getCurrentUser().getId());\n }", "public List<JFrogPlatformInstance> getJfrogInstances() {\n List<JFrogPlatformInstance> jfrogInstances = new ArrayList<>(RepositoriesUtils.getJFrogPlatformInstances());\n ArtifactoryServer propertyServer = getArtifactoryServerFromPipeline();\n if (propertyServer != null) {\n jfrogInstances.add(new JFrogPlatformInstance(propertyServer));\n }\n return jfrogInstances;\n }", "@Override\n public List<ProductPojo> getProductFavouritesList(Map<String, Object> params) {\n return yourFavouritesDetaildao.getProductFavouritesList(params);\n }", "java.util.List<? extends org.tensorflow.proto.distruntime.JobDeviceFiltersOrBuilder> \n getJobsOrBuilderList();", "@Nullable\r\n public static List<Product> getFavoriteProducts(final Context context)\r\n {\r\n final SharedPreferencesManager sharedPreferencesManager = new SharedPreferencesManager(context);\r\n\r\n final User user = sharedPreferencesManager.retrieveUser();\r\n\r\n final String fixedURL = Utils.fixUrl(\r\n Properties.SERVER_URL + \":\" + Properties.SERVER_SPRING_PORT + \"/users/favorites/\" + user.getId());\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Conectando con: \" + fixedURL + \" para otener los productos favoritos\");\r\n\r\n RequestFuture<JSONArray> future = RequestFuture.newFuture();\r\n\r\n // Creamos una peticion.\r\n JsonArrayRequest jsonObjReq = new JsonArrayRequest(Request.Method.GET\r\n , fixedURL\r\n , null\r\n , future\r\n , future);\r\n\r\n // La mandamos a la cola de peticiones.\r\n VolleySingleton.getInstance(context).addToRequestQueue(jsonObjReq);\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLENTON] Petición creada y enviada\");\r\n\r\n try\r\n {\r\n JSONArray response = future.get(20, TimeUnit.SECONDS);\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLENTON] Se parsean los JSONs recibidos\");\r\n List<Product> favorites = JSONParser.convertJSONsToProducts(response);\r\n Set<Long> userFavorites = new HashSet<>();\r\n for (Product favorite : favorites)\r\n {\r\n userFavorites.add(favorite.getId());\r\n }\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLENTON] Se actualiza la lista de favoritos del usuario\");\r\n user.setFavoriteProducts(userFavorites);\r\n sharedPreferencesManager.insertUser(user);\r\n\r\n return favorites;\r\n\r\n } catch (ExecutionException | InterruptedException | TimeoutException e) {\r\n Log.e(Properties.TAG, \"[REST_CLIENT_SINGLETON] Error conectando con el servidor: \" + e.getMessage());\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n\r\n return null;\r\n\r\n } catch (JSONException e) {\r\n Log.e(Properties.TAG, \"[REST_CLIENT_SINGLETON] Error parseando los productos: \" + e.getMessage());\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n\r\n return null;\r\n }\r\n }", "Collection<Auction> getFutureAuctions();", "public List<Activity> getAllActivities();", "public java.util.List<? extends com.lvl6.proto.QuestProto.UserQuestJobProtoOrBuilder> \n getUserQuestJobsOrBuilderList() {\n if (userQuestJobsBuilder_ != null) {\n return userQuestJobsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(userQuestJobs_);\n }\n }", "public List< IJob > getJobs( int maxAmount )\n {\n String fileName;\n String refFileName;\n URI fileURI;\n byte[] referenceData = null;\n InputStream ISrefData = null;\n DocumentBuilderFactory docBuilderFactory;\n DocumentBuilder docBuilder = null;\n Document doc;\n \n docBuilderFactory = DocumentBuilderFactory.newInstance();\n try\n {\n docBuilder = docBuilderFactory.newDocumentBuilder();\n }\n catch( ParserConfigurationException pce )\n {\n log.error( pce.getMessage() );\n }\n doc = docBuilder.newDocument();\n \n List<IJob> list = new ArrayList<IJob>();\n for( int i = 0; i < maxAmount && iter.hasNext() ; i++ )\n {\n fileName = (String)iter.next();\n refFileName = fileName.substring( 0, fileName.lastIndexOf( \".\" ) ) + \".ref\";\n //System.out.println( String.format( \"created ref name %s for file %s\", refFileName, fileName ) );\n File refFile = FileHandler.getFile( refFileName );\n if ( refFile.exists() )\n {\n try\n {\n ISrefData = FileHandler.readFile( refFileName );\n }\n catch( FileNotFoundException fnfe )\n {\n log.error( String.format( \"File for path: %s couldnt be read\", refFileName ) );\n }\n try\n {\n doc = XMLUtils.getDocument( new InputSource( ISrefData ) );\n }\n catch( ParserConfigurationException ex )\n {\n log.error( ex.getMessage() );\n }\n catch( SAXException ex )\n {\n log.error( ex.getMessage() );\n }\n catch( IOException ex )\n {\n log.error( ex.getMessage() );\n }\n \n File theFile = FileHandler.getFile( fileName );\n \n list.add( (IJob) new Job( new FileIdentifier( theFile.toURI() ), doc ) );\n }\n else\n {\n log.warn( String.format( \"the file: %s has no .ref file\", fileName ) );\n i--;\n }\n }\n return list;\n \n }", "public Roster getListofFriends(){\n\n\t\treturn friendsList;\n\t}", "@Override\n public Optional<List<FollowStateTracker>> getAllFSTByFollower() {\n return this.getFSTByFollowerID(authenticationService.getCurrentUser().getId());\n }", "public List<Brand> findActives( )\n {\n List<Brand> result;\n\n //region Instrumentation\n _logger.debug( \"Entrando a BrandDAO.findActives\");\n //endregion\n\n try\n {\n CriteriaQuery<Brand> query = _builder.createQuery( Brand.class );\n Root<Brand> root = query.from( Brand.class );\n\n query.select( root );\n query.where( _builder.equal( root.get( \"_status\" ), MasterStatus.ACTIVE ) );\n\n result = _em.createQuery( query ).getResultList();\n }\n catch ( Exception e )\n {\n throw new FindAllException( e, e.getMessage() );\n }\n\n //region Instrumentation\n _logger.debug( \"Saliendo de BrandDAO.findActives result {}\", result );\n //endregion\n\n return result;\n }", "public ArrayList<Bot> getAllBots() {\n final String errorMessage = \"Error getting all bots\";\n ResultSet retrievedBots = dbConnector.selectQuery(\"SELECT c.name, bot_id, active_time, probability, activity_status\" +\n \" FROM Bots as b, Company as c WHERE b.company_id = c.company_id;\");\n ArrayList<Bot> bots = null;\n try {\n bots = new ArrayList<Bot>();\n while (retrievedBots.next()) {\n bots.add(toBot(retrievedBots));\n }\n } catch (SQLException e) {\n System.out.println(errorMessage);\n }\n return bots;\n }", "public ArrayList<String> loadFavorites() {\n\n\t\tSAVE_FILE = FAVORITE_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public boolean getHasMoreJobs() ;", "public Queue<SongEntry> getFavoritePL() {\r\n return favoritePL;\r\n }", "public ArrayList<Profile> getFriends()\n {\n\n return friendslist;\n }", "public List<FacturaCabecera> list(){ \n\t\t\treturn em.createQuery(\"SELECT c from FacturaCabecera c\", FacturaCabecera.class).getResultList();\n\t\t}", "public List<Fuente> obtenerListaFuentes() {\n\t\tString etiqueta = \"\";\n\t\tint id = 0;\n\t\tList<Fuente> listaFuentes = new ArrayList<Fuente>();\n\n\t\ttry {\n\n\t\t\trs = stmt.executeQuery(\"SELECT IDFUENTE, NOMBRE FROM FUENTE\");\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tid = rs.getInt(\"IDFUENTE\");\n\t\t\t\tetiqueta = rs.getString(\"NOMBRE\");\n\t\t\t\tFuente f = new Fuente(etiqueta, id, \"\", \"\");\n\t\t\t\tlistaFuentes.add(f);\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"No es posible recuperar la lista de fuentes\");\n\n\t\t}\n\n\t\treturn listaFuentes;\n\t}", "public List<CpAppliedJob> getAllDetails() {\n\n\t\tList<CpAppliedJob> details = new ArrayList<CpAppliedJob>();\n\t\ttry {\n\t\t\tdetailRepository.findAll().forEach(details::add);\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn details;\n\n\t}", "@ApiModelProperty(value = \"Array of Job IDs generated by this flow\")\n public List<Job> getJobs() {\n return jobs;\n }", "@Override\r\n\tpublic List<Applier> retrieveAllAppliers() {\n\t\treturn em.createQuery(\"Select a from Applier a\").getResultList();\r\n\t}" ]
[ "0.60395354", "0.5946368", "0.5943957", "0.58583343", "0.5711457", "0.57084495", "0.5682221", "0.56616277", "0.5637693", "0.5601327", "0.5599146", "0.55827", "0.5582051", "0.557791", "0.55392647", "0.5495702", "0.54720664", "0.544944", "0.5448552", "0.5442099", "0.54383", "0.5397565", "0.5392585", "0.53665984", "0.53343916", "0.5332184", "0.53176373", "0.5315257", "0.5307747", "0.53067935", "0.5282802", "0.52796066", "0.52694434", "0.52676165", "0.5259489", "0.525889", "0.52574205", "0.5257312", "0.5244166", "0.52407634", "0.5240586", "0.52327335", "0.5232586", "0.5217802", "0.5209104", "0.51906073", "0.51535106", "0.5147871", "0.5143547", "0.5142404", "0.51381826", "0.5121184", "0.5117327", "0.51048875", "0.50880444", "0.5084817", "0.5078996", "0.5048921", "0.50345683", "0.50248486", "0.50182384", "0.5017728", "0.50149816", "0.50077254", "0.49910176", "0.49681178", "0.49677998", "0.49515098", "0.49469557", "0.49454936", "0.49390444", "0.49361065", "0.49355623", "0.4927869", "0.49261656", "0.492544", "0.49247319", "0.49099615", "0.49042705", "0.4892633", "0.48870853", "0.48821223", "0.487183", "0.48707113", "0.4868816", "0.4867645", "0.48675025", "0.48598272", "0.48510647", "0.48434186", "0.4834918", "0.48334855", "0.48323125", "0.4827851", "0.48273903", "0.48273617", "0.48231322", "0.48207235", "0.48196054", "0.48138967" ]
0.6655204
0
Insert a single instance of FavouriteJob.
@RequestMapping(value = "/add", method = RequestMethod.POST) public void addFavouriteJob(@RequestBody FavouriteJobs favJob) { try { favJobService.addNewFavouriteJob(favJob); } catch(Exception e) { throw new ServerErrorException(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(EcsFavourableActivity record);", "int insert(MemberFav record);", "public boolean insertFavToDB(Favorite favorite) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(mDBAccountString, favorite.getAccount());\n contentValues.put(mDBTitleString, favorite.getTitle());\n contentValues.put(mDBDescString, favorite.getDescription());\n contentValues.put(mDBURLString, favorite.getUrl());\n long rowId = mFavSQLiteDB.insert(\"Favorites\", null, contentValues);\n return rowId != -1; //If insert fails, rowID will equal -1\n }", "public static void saveFavorite(CourseBean bean) {\n\t\tDatabaseHelper dbHelper = DatabaseHelper.getInstance(MainApplication.sContext);\n\t\tdb = dbHelper.getReadableDatabase();\n\t\tif (isExist(bean.getId())) {\n\t\t\tupdateCourse(bean);\n\t\t} else {\n\t\t\t//fuck the different schedule id.\n\t\t\t//insertCourse(bean, ConstVar.COURSE_SHOW_INFO);\n\t\t}\n\n\t}", "public void insertFavoriteBook(BookTable bookTable) {\n new InsertFavoriteBookAsyncTask(bookTableDAO).execute(bookTable);\n }", "public void insertJob(Job job) {\n\t\t\tJobDao jobDao=new JobDaoImpl();\n\t\t\tjobDao.insertJob(job);\n\t\t}", "public void add(FavoriteEntity obj)\n {\n super.add(obj);\n }", "public static void writeNewJob(Job job) {\n DatabaseReference database = FirebaseDatabase.getInstance().getReference();\n database.child(\"jobs\").push().setValue(job);\n }", "public void insert(Job job) throws DatabaseException, IllegalArgumentException;", "int insertSelective(MemberFav record);", "public void acceptJob(View v) {\n SittingJob job = currentJob;\n try {\n Controller.model.deleteJob(currentJob);\n Controller.model.openJobs.remove(currentJob);\n job.jobInfo.put(\"sitterIDKey\", \"\"+Controller.currentUser.accountInfo.get(\"ownerIDKey\"));\n Controller.model.createJob(job, false);\n Log.w(\"MA\", \"Success accepting job\");\n }\n catch(JSONException je) {\n Log.w(\"MA\", \"JSONException accepting a job\");\n }\n setContentView(R.layout.activity_sitter_page);\n setjobList();\n allJobsList();\n }", "public Boat insertBoat(Boat boat);", "@Override\n public void onClick(View v) {\n FavouriteDatabase fd = new FavouriteDatabase();\n fd.addToFavouritesList(catID);\n Toast.makeText(getContext(), \"Added to your Favourites\", Toast.LENGTH_SHORT).show();\n }", "public void addToFavorites() {\n\n // Create new content values object\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_ID, sMovie.getMovieId());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_TITLE, sMovie.getMovieTitle());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_ORIGINAL_TITLE, sMovie.getMovieOriginalTitle());\n contentValues.put(FavMovieEntry.COLUMN_POSTER_PATH, sMovie.getPoster());\n contentValues.put(FavMovieEntry.COLUMN_BACKDROP_PATH, sMovie.getMovieBackdrop());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_RELEASE_DATE, sMovie.getReleaseDate());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_RATING, sMovie.getVoteAverage());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_SYNOPSIS, sMovie.getPlotSynopsis());\n\n try {\n mCurrentMovieUri = getContentResolver().insert(FavMovieEntry.CONTENT_URI,\n contentValues);\n } catch (IllegalArgumentException e) {\n mCurrentMovieUri = null;\n Log.v(LOG_TAG, e.toString());\n }\n\n if (mCurrentMovieUri != null) {\n isAddedToFavorites();\n }\n\n }", "public void saveFavorite(){\n //make sure movie is NOT already a favorite\n if(!mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is a new favorite, favorite movie list status has changed\n mFavoriteChanged = true;\n\n //set movie item favorite status as true\n mMovie.setFavorite(true);\n\n //save movie to favorite database table\n mMovieValet.saveFavorite(mMovie);\n\n //add movie to favorite movie list buffer\n mMovieStaff.addFavorite(mMovie);\n }\n\n //check if movie list type is display a favorite list and if the device is a tablet\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mIsTablet){\n //both yes, get favorite movies to update poster fragment\n getMovieList(PosterHelper.NAME_ID_FAVORITE);\n }\n }", "public void addToFavorites(View view) {\n FirebaseUser currentUser = mAuth.getCurrentUser();\n String uid = currentUser.getUid();\n mDatabase = db.getReference(\"favorites\").child(uid);\n\n ValueEventListener postListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n favorites = dataSnapshot.getValue(Favorites.class);\n favorites.addVolume(currentVolume.getTitle(), currentVolume.getId());\n addToDatabase(favorites);\n Intent intent = new Intent(VolumeActivity.this, FavoritesActivity.class);\n startActivity(intent);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n // Getting Post failed, log a message\n Log.w(\"FavoritesActivity\", \"loadPost:onCancelled\", databaseError.toException());\n // ...\n }\n\n };\n mDatabase.addListenerForSingleValueEvent(postListener);\n }", "@Override\n\tpublic void insert(UserFlight userFlight) {\n\t\t\n\t}", "@Insert(onConflict = OnConflictStrategy.IGNORE)\n void insert(CatFact catFact);", "public long addFavPair(Pair pair) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues cv = new ContentValues();\n cv.put(FavoriteEntry.SHIRT_ID, pair.getShirt().getId());\n cv.put(FavoriteEntry.TROUSER_ID, pair.getTrouser().getId());\n\n try {\n return db.insertOrThrow(FavoriteEntry.TABLE_NAME, null, cv);\n } catch (SQLException e) {\n Log.d(TAG, \"Could not insert to database! \" + e);\n return -1;\n }\n }", "@PostMapping(\"/favourite-songs\")\n @Timed\n public ResponseEntity<FavouriteSong> createFavouriteSong(@RequestBody FavouriteSong favouriteSong) throws URISyntaxException {\n log.debug(\"REST request to save FavouriteSong : {}\", favouriteSong);\n if (favouriteSong.getId() != null) {\n throw new BadRequestAlertException(\"A new favouriteSong cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n FavouriteSong result = favouriteSongRepository.save(favouriteSong);\n return ResponseEntity.created(new URI(\"/api/favourite-songs/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@RequestMapping(value = \"/update/{favJobId}/\", method = RequestMethod.PUT)\n\tpublic void updateFavouriteJob(@PathVariable Long favJobId, @RequestBody FavouriteJobs favJob) {\n\t\ttry {\n\t\t\tfavJobService.updateFavouriteJob(favJobId, favJob);\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception to be handle\n\t\t}\n\t}", "public void saveMovieToFavorites() {\n Cursor moviecursor = this.getContentResolver().query(MovieContract.MovieEntry.CONTENT_URI, null, MovieContract.MovieEntry.COLUMN_NAME_MOVIE_ID + \" = \" + mMovie.getID(), null, null, null);\n if(moviecursor.getCount() == 0) { // first time this movie has been favorited insert record\n Uri movieUri = this.getContentResolver().insert(MovieContract.MovieEntry.CONTENT_URI, Constants.createMovieRecord(mMovie));\n long movieid = ContentUris.parseId(movieUri);\n int insertedTrailerCount = this.getContentResolver().bulkInsert(MovieContract.TrailerEntry.CONTENT_URI, Constants.createBulkTrailerValues(Constants.mTrailers, movieid));\n int insertedReviewCount = this.getContentResolver().bulkInsert(MovieContract.ReviewEntry.CONTENT_URI, Constants.createBulkReviewValues(Constants.mReviews, movieid));\n\n if(insertedTrailerCount < 1)\n Log.e(TAG,\"Trailer failed to insert\");\n\n if(insertedReviewCount < 1)\n Log.e(TAG, \" Review failed to insert\");\n }\n }", "int insert(JmfTaskMqRef record);", "public void addToWish( String product_id, String product_name,String product_brand, String product_img,\n String product_price,String product_desc, String product_discount, String product_varieties )\n {\n boolean isAdded = mDatabaseFavorite.insert(product_id, product_name,product_brand, product_img,\n product_price,product_discount);\n\n if (isAdded == true)\n {\n Toast.makeText(DetailActivity.this,\"Added to Favorite\",Toast.LENGTH_SHORT).show();\n\n }\n\n else {\n\n Toast.makeText(DetailActivity.this,\"Already present in favoriteList\",Toast.LENGTH_SHORT).show();\n\n }\n\n }", "public void saveJob(View v){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference mySavedJobsRef = database.getReference(\"Users\").child(currentUser.getUid().toString()).child(\"savedjobs\");\n //Dont save your own jobs\n if(!currentUser.getUid().toString().equals(jobPost.getUserid())) {\n mySavedJobsRef.addListenerForSingleValueEvent(\n new ToggleAddIDVEListener(ViewSingleJobActivity.this,jobPost.getPostid()));\n }\n }", "int insert(Kmffb record);", "public void addMovieToFavorites(Movie movie) {\n movie.setFavorite(true);\n isFavorite = true;\n //change the star from gray to yellow\n star.setImageResource(R.drawable.ic_grade_yellow_36px);\n //save the poster in local storage\n String imageName = saveMoviePoster();\n\n //load the necessary movie fields into the ContentValues object\n ContentValues values = new ContentValues();\n values.put(FavoriteMoviesContract.MovieEntry.MOVIEDB_ID, movie.getId());\n values.put(FavoriteMoviesContract.MovieEntry.AVERAGE_VOTE, movie.getVoteAverage());\n values.put(FavoriteMoviesContract.MovieEntry.ORIGINAL_TITLE, movie.getOriginalTitle());\n values.put(FavoriteMoviesContract.MovieEntry.RELEASE_YEAR, movie.getReleaseYear());\n values.put(FavoriteMoviesContract.MovieEntry.RUNTIME, movie.getRuntime());\n values.put(FavoriteMoviesContract.MovieEntry.SYNOPSIS, movie.getSynopsis());\n values.put(FavoriteMoviesContract.MovieEntry.POSTER_IMAGE_NAME, imageName);\n\n //insert the movie into the Favorites db\n Uri uri = getActivity().getContentResolver().\n insert(FavoriteMoviesContract.MovieEntry.CONTENT_URI, values);\n\n if (uri != null) {\n String successMessage = \"You have successfully added \" + movie.getOriginalTitle() +\n \" to the Favorites collection\";\n Toast.makeText(getActivity(), successMessage, Toast.LENGTH_LONG).show();\n }\n }", "public void addFavourite(RecipeDbItem1 recipeDbItem1)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID,recipeDbItem1.getID());\n values.put(KEY_TITLE,recipeDbItem1.getTitle());\n //insert a row\n db.insert(TABLE_FAVOURITES,null,values);\n db.close();\n //System.out.println(\"\\n Inserted into Favourites Table: \"+recipeDbItem1.getID()+\" \"+recipeDbItem1.getTitle());\n }", "public void addJob(String jobID, String jobTitle, String jobType,\n String salary, String jobDescription, String expirationDate,\n String contactEmail) {\n //Will check if the amount is less than 100 jobs added\n //then Will add the job to the end of the arrayList\n //will return true if added else return false\n currentJob = new Job(contactEmail, jobType, jobID, jobDescription, salary, jobTitle, expirationDate);\n if(jobs.size() <= 100)\n {\n jobs.add(currentJob);\n String success = String.format(\"================JOB POSTING SUCCESS================\\n\" +\n \"A new job has been posted with following details:\\n\" +\n \"Job ID: %s\\n\" +\n \"Job Name: %s\\n\" +\n \"Job Type: %s\\n\" +\n \"Salary: %s\\n\" +\n \"Job Description: %s\\n\" +\n \"Expiration Date: %s\\n\" +\n \"Contact email: %s\\n\", jobID, jobTitle, jobType, salary, jobDescription, expirationDate, contactEmail);\n\n System.out.println(success);\n } else {\n String success = String.format(\"================JOB POSTING FAILURE ================\\n\" +\n \"THERE ARE MORE THAN 100 JOBS IN THE SYSTEM:\\n\");\n System.out.println(success);\n }\n }", "int insert(FeedsUsersKey record);", "@Override\n protected void insertJobInQueueUponArrival (final J job, final double time)\n {\n addRealJobLocal (job);\n }", "int insert(ActivityHongbaoPrize record);", "public void insertTicket(Ticket t){if(!this.inProgress()){this.currentTicket = t;}}", "public void onFavouritesPress(View view) {\n\n favouritesDBHandler.addGame(game);\n Toast.makeText(getContext(), game.getName() + \" has been added to your favourites!\", Toast.LENGTH_SHORT).show();\n\n }", "boolean addJob(PrintJob job);", "@Test\n public void insertFavorite_Success() throws Exception {\n }", "@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}", "@Insert(onConflict = OnConflictStrategy.IGNORE)\n long insert(WellbeingQuestion wellbeingQuestion);", "int insert(HomeWork record);", "public void save() {\n JobNotificationDao dao = new JobNotificationDao();\n projectBean.getWorkload().getJobConfiguration().getNotifications().clear();\n for (JobNotification notification : notifications) {\n notification.copyTransient();\n notification = dao.saveOrUpdate(notification);\n projectBean.getWorkload().getJobConfiguration().getNotifications().add(notification);\n }\n }", "public void insert(Spot spot) { mRepository.insert(spot); }", "int insert(BachAlarmRole record);", "private void addToFavorites() {\n\n favoriteBool = true;\n preferencesConfig.writeAddFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Added to favorites.\", Toast.LENGTH_SHORT).show();\n\n }", "public void addPlayer(HeroClass newJob){job.add(newJob);}", "private void addToDatabase(Favorites favorites) {\n FirebaseUser currentUser = mAuth.getCurrentUser();\n String uid = currentUser.getUid();\n mDatabase = db.getReference();\n\n mDatabase.child(\"favorites\").child(uid).setValue(favorites);\n }", "@SuppressWarnings(\"unused\")\n\tprivate void insert(Ball ball) throws Exception {\n\t\tBallService ballService = new BallService();\n\t\tballService.insert(ball);\n\t}", "int insert(CmsActivity record);", "public long addMovieToFavorites(long movieId) {\n if (!isMovieIsFavorite(movieId)) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = insertFavoriteMovieIntoContentValues(movieId);\n long rowId = database.insert(FavoriteMoviesEntry.TABLE_NAME, null, values);\n database.close();\n return rowId;\n } else return 0;\n }", "public void submitJob(Job job) {\n\t\tthis.jobs.add(job);\n\t}", "public static boolean addJob(Job job, int recruiterId) throws RecruiterNotFoundException\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n stmt = conn.createStatement();\n String sql = String.format(\n \"INSERT INTO job (job_name, fee, category, recruiter_id) VALUES ('%s', %d, '%s', %d);\",\n job.getName(),\n job.getFee(),\n job.getCategory().name(),\n recruiterId\n );\n int res = stmt.executeUpdate(sql);\n stmt.close();\n conn.close();\n return res != 0;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n if(e.getMessage().matches(\"(?s).*recruiter_id.*not present.*\")) {\n throw new RecruiterNotFoundException(recruiterId);\n }\n return false;\n }\n }", "public void insertFoodItem(FoodItem f){\n int flag = 0;\n\t\tfor(int i=0; i<fooditem.length; i++){\n\n\t\t\tif (fooditem[i]!= null) {\n\t\t\t\tif (fooditem[i].getFid().equals(f.getFid())) {\n\t\t\t\t\tSystem.out.println(\"Opps! The Food ID already exists!\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(fooditem[i] == null){\n\t\t\t\tfooditem[i] = f;\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag == 1)\n\t\t{\n\t\t\tSystem.out.println(\"Food Dish Inserted\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Can Not Insert\");\n\t\t}\n\n }", "@Override\n\tpublic void save(Pizza pizza) {\n\t\tmongoTemplate.insert(pizza);\n\t}", "int insert(TBBearPer record);", "int insert(PrefecturesMt record);", "public void enqueJob(FJJob job, boolean sample) {\n if (FJSimulator.DEBUG) System.out.println(\"enqueJob(\"+job.path_log_id+\") \"+job.arrival_time);\n \n // only keep a reference to the job if the simulator tells us to\n job.setSample(sample);\n \n job_queue.add(job);\n feedWorkers(job.arrival_time);\n if (FJSimulator.DEBUG) System.out.println(\" queued a job. New queue length: \"+job_queue.size());\n }", "@Override\n\tpublic int insert(Staff record) {\n\t\treturn staffMapper.insert(record);\n\t}", "public long createFavorite(String title, String body) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_TITLE, title);\n initialValues.put(KEY_BODY, body);\n\n return mDb.insert(DATABASE_TABLE_FAVORITES, null, initialValues);\n }", "int insert(Promo record);", "public static synchronized void insert(JeyEvent e) {\n queue.addLast(e);\r\n EventQueue.class.notifyAll();\r\n }", "public void insert(KeyedItem newItem);", "public void saveAsMyFavorite(View v){\n\n MyFavoriteLocations myFavoriteLocation=new MyFavoriteLocations();\n myFavoriteLocation.setMyFavoriteLocations(new Locations(1,titleText, address, descriptionText, budgetText, lt, ln, \"df\"));\n\n myFavoriteLocation.save();\n }", "int insert(CxBasStaff record);", "@ApiMethod(name=\"beers.insert\")\n public Beer insertBeer(Beer beer) {\n PersistenceManager mgr = getPersistenceManager();\n try {\n mgr.makePersistent(beer);\n } finally {\n mgr.close();\n }\n addBeerToSearchIndex (beer);\n return beer;\n }", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "Integer insert(JzAct record);", "public FaqPk insert(Faq dto) throws FaqDaoException;", "@Insert(onConflict = OnConflictStrategy.REPLACE)\n void insert(MealOfDayEntry mealOfDay);", "int insert(BpmInstanciaHistorica record);", "public BookUser addItemInTable(BookUser item) throws ExecutionException, InterruptedException {\n BookUser entity = Azure.mbook.insert(item).get();\n return entity;\n }", "@Override\r\n\tpublic int insertFilm(Film film) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void saveCoach(Coach coach) {\n\t\tthis.getHibernateTemplate().save(coach);\n\t}", "int insert(LikeUser record);", "int insert(VoteList record);", "int insert(ActActivityRegister record);", "public void insertOffer(Offer o);", "@Override\n\tpublic boolean insertOne(finalDataBean t) throws Exception {\n\t\treturn false;\n\t}", "public LearningResultHasActivityPk insert(LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;", "@Override\n\tpublic void insert(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "private void addSongToDataBase(int position){\n ContentValues values = getSongData(position);\n Uri uri = mainActivity.getContentResolver().insert(\n FavoriteSongProvider.CONTENT_URI, values);\n Toast.makeText(mainActivity.getBaseContext(),\n uri.toString(), Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void addFavorit(FavorisImpl newfavorit) {\n\t\t\n\t}", "@Override\n public void addProductToFavorites(View view, Intent intent) {\n try {\n if(iProduct != null && view != null && intent != null){\n Context context = view.getContext();\n String jsonProduct = intent.getStringExtra(CommonPresenter.DETAIL_PRODUCT);\n Product product = CommonPresenter.getProductFromJSON(jsonProduct);\n CRUDFavorite crudFavorite = new CRUDFavorite(context);\n boolean isProductExists = crudFavorite.isProductExists(product.getProductId());\n if(isProductExists){\n crudFavorite.deleteByProductId(product.getProductId());\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_product_delete_to_favorite));\n iProduct.changeImageRightResource(R.drawable.ic_add_to_favorite_32dp);\n }\n else{\n crudFavorite.add(new Favorite(0, product));\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_product_add_to_favorite));\n iProduct.changeImageRightResource(R.drawable.ic_favorite_32dp);\n }\n }\n }\n catch (Exception ex){\n Log.e(\"TAG_ERROR\", \"ProductPresenter-->addProductToFavorites() : \"+ex.getMessage());\n }\n }", "int insert(CmsVoteTitle record);", "public boolean insert(FacturaCabecera facturaCabecera) {\n\t\ttry {\n\t\t\tem.persist(facturaCabecera);\n\t\t\treturn true;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "private void addMovieToDb() {\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(MovieColumns.ADULT,mMovie.getAdult());\n contentValues.put(MovieColumns.BACKDROP_PATH,mMovie.getBackdropPath());\n contentValues.put(MovieColumns.GENRE,Utils.arrayToString(mMovie.getGenreIds()));\n contentValues.put(MovieColumns.MOV_ID,mMovie.getMovieId());\n contentValues.put(MovieColumns.ORIGINAL_LANGUAGE,mMovie.getOrigLanguage());\n contentValues.put(MovieColumns.ORIGINAL_TITLE,mMovie.getOrigTitle());\n contentValues.put(MovieColumns.OVERVIEW,mMovie.getOverview());\n contentValues.put(MovieColumns.RELEASE_DATE,mMovie.getReleaseDate());\n contentValues.put(MovieColumns.POSTER_PATH,mMovie.getPosterPath());\n contentValues.put(MovieColumns.POPULARITY,mMovie.getPopularity());\n contentValues.put(MovieColumns.TITLE,mMovie.getTitle());\n contentValues.put(MovieColumns.VIDEO, mMovie.getVideo());\n contentValues.put(MovieColumns.VOTE_AVERAGE, mMovie.getVoteAverage());\n contentValues.put(MovieColumns.VOTE_COUNT, mMovie.getVoteCount());\n\n try {\n getActivity().getContentResolver().insert(MoviesProvider.Movies.MOVIES_URI, contentValues);\n Toast.makeText(getContext(),getString(R.string.movie_added_as_favorite),Toast.LENGTH_SHORT).show();\n }catch (Exception ex){\n if(ex instanceof SQLiteConstraintException){\n Toast.makeText(getContext(), getString(R.string.movie_already_added_as_favorite), Toast.LENGTH_SHORT).show();\n }else {\n Toast.makeText(getContext(), getString(R.string.movie_added_as_favorite_problem), Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\r\n\tpublic void storedBook(Book book) {\n\t\tticketDao.insertBook(book);\r\n\t}", "@Insert(onConflict = OnConflictStrategy.REPLACE)\n void insert(FlashCards flashCards);", "public void push(E newItem);", "public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "@Override\r\n\tpublic Integer insertHangar(Hangar hangar) {\n\t\tSession session= factory.openSession();\r\n\t\tInteger id=(Integer)session.save(hangar);\r\n\t\tsession.close();\r\n\t\treturn id;\r\n\t}", "int insert(Notifiction record);", "int insert(Task record);", "int insert(EvaluationRecent record);", "int insert(EventsWaitsSummaryByInstance record);", "public void insertFact(Fact fact);", "@Override\n\tpublic Basket addBasket(Basket basket) {\n\t\treturn br.save(basket);\n\t}", "public long insertFeedEntry(ActivityFeedEntity activityFeed) throws SQLException;", "int insert(TbJobProcessNodeRelationEntity record);", "@Insert\n long insert(Task task);", "public void insert(PersonEntity person){\n new Thread(new InsertRunnable(dao, person)).start();\n }", "public void enqueue(Person person) {\r\n saf.add(person);\r\n }" ]
[ "0.6332735", "0.57339215", "0.56000584", "0.55868506", "0.5572493", "0.5519144", "0.53836215", "0.5347526", "0.5315933", "0.5272557", "0.5256288", "0.5228662", "0.51991177", "0.51960003", "0.5170502", "0.5155686", "0.51527303", "0.5080883", "0.50797075", "0.5065238", "0.5063577", "0.50623935", "0.5050805", "0.5040385", "0.5031609", "0.5027674", "0.502284", "0.50134", "0.49704528", "0.49661064", "0.49414492", "0.49362528", "0.49329117", "0.4931887", "0.49224493", "0.49223477", "0.49103773", "0.49066594", "0.48893604", "0.48844716", "0.48823026", "0.48585767", "0.485194", "0.48450628", "0.48426905", "0.48424032", "0.48319763", "0.48289317", "0.48263472", "0.48225132", "0.48220903", "0.48166603", "0.48158938", "0.4805708", "0.47923455", "0.4791781", "0.47772747", "0.4770944", "0.4768183", "0.4753297", "0.47451252", "0.47350478", "0.47342956", "0.47181726", "0.47169563", "0.47164974", "0.47153422", "0.47153103", "0.4705217", "0.46969783", "0.46945545", "0.46933186", "0.46870175", "0.4671424", "0.46711951", "0.4670416", "0.467038", "0.46597424", "0.46575028", "0.46550533", "0.4654304", "0.464867", "0.46477786", "0.46465513", "0.46438813", "0.46427318", "0.4642369", "0.46394598", "0.46354234", "0.4633361", "0.4633142", "0.46304154", "0.46282217", "0.46142653", "0.4612221", "0.46103284", "0.4609451", "0.45998064", "0.4586652", "0.4586372" ]
0.63647306
0
Update Method: update a single instance of FavouriteJobs of given favJobId with given valid data.
@RequestMapping(value = "/update/{favJobId}/", method = RequestMethod.PUT) public void updateFavouriteJob(@PathVariable Long favJobId, @RequestBody FavouriteJobs favJob) { try { favJobService.updateFavouriteJob(favJobId, favJob); } catch(Exception e) { //TODO: Exception to be handle } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/delete/{favJobId}\", method = RequestMethod.DELETE)\n\tpublic void deleteFavouriteJob(@PathVariable Long favJobId) {\n\t\ttry {\n\t\t\tfavJobService.deleteFavouriteJob(favJobId);\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception to be handle\n\t\t}\n\t}", "@RequestMapping(value = \"/add\", method = RequestMethod.POST)\n\tpublic void addFavouriteJob(@RequestBody FavouriteJobs favJob) {\n\t\ttry {\n\t\t\tfavJobService.addNewFavouriteJob(favJob);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ServerErrorException(e.getMessage());\n\t\t}\n\t}", "int updateByPrimaryKey(EcsFavourableActivity record);", "public boolean updateFavorite(long rowId, String title, String body) {\n ContentValues args = new ContentValues();\n args.put(KEY_TITLE, title);\n args.put(KEY_BODY, body);\n\n return mDb.update(DATABASE_TABLE_FAVORITES, args, KEY_ROWID + \"=\" + rowId, null) > 0;\n }", "public JobApplyActivity updateJobId(JobApplyActivity jobApplyActivity, int newJobId) throws SQLException {\n\t\tString updateJobId = \"UPDATE JobApplyActivity SET JobId=? WHERE JobApplyActivityId=?;\";\n\t\tConnection connection = null;\n\t\tPreparedStatement updateStmt = null;\n\t\ttry {\n\t\t\tconnection = connectionManager.getConnection();\n\t\t\tupdateStmt = connection.prepareStatement(updateJobId);\n\t\t\tupdateStmt.setInt(1, newJobId);\n\t\t\tupdateStmt.setInt(2, jobApplyActivity.getJobApplyActivityId());\n\t\t\tupdateStmt.executeUpdate();\n\t\t\tJobDao jobDao = JobDao.getInstance();\n\t\t\tJob job = jobDao.getJobById(newJobId);\n\t\t\tjobApplyActivity.setJob(job);;\n\t\t\treturn jobApplyActivity;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif(connection != null) {\n\t\t\t\tconnection.close();\n\t\t\t}\n\t\t\tif(updateStmt != null) {\n\t\t\t\tupdateStmt.close();\n\t\t\t}\n\t\t}\n\t}", "public void updateFavorited(UserProfile up, String itemCode, Boolean madeIt) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n\n String query = \"UPDATE userItems \"\n + \"SET madeIt = ? \"\n + \"WHERE itemCode = ?\";\n try {\n ps = connection.prepareStatement(query);\n ps.setBoolean(1, madeIt);\n ps.setString(2, itemCode);\n\n ps.executeUpdate();\n } catch (SQLException se) {\n System.out.println(\"ERROR: Could not execute SQL statement in: \" + \"Item.changeRating()\");\n System.out.println(\"ERROR: Could not execute SQL statement: \" + se);\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n up.updateFav(itemCode, madeIt);\n }", "public UpdateClassificationJobRequest withJobId(String jobId) {\n setJobId(jobId);\n return this;\n }", "public void update(Job job) throws DatabaseException, IllegalArgumentException;", "int updateByPrimaryKey(MemberFav record);", "@WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/updateJobProgress\",\n operationName=\"updateJobProgress\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"updateJobProgress\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"updateJobProgressResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String updateJobProgress(@WebParam(mode = WebParam.Mode.IN, name=\"JobId\")\n String JobId) throws ServiceException;", "public void updateFeedItemAsFavorite(FeedItem item) {\n new updateFeedItemFavoriteAsync(itemDao).execute(item);\n }", "public void setJobId( int jobId ) ;", "@Override\r\n\tpublic SweetItem updateSweetItem(SweetItem SweetItem) throws SweetItemNotFoundException {\n\t\treturn null;\r\n\t}", "public void updateFaxJob(FaxClientSpi faxClientSpi,FaxJob faxJob,ProcessOutput processOutput,FaxActionType faxActionType);", "@RequestMapping(value =\"/jobCode/{jobCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByJobCode(@PathVariable String jobCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByJobCode(jobCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by job code: \" +jobCode);\n\t\t}\t\t\n\t\t\n\t\tif( favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "void setProjectFavourite(int accountId, int projectId, boolean favourite);", "protected void updateProfileFavorites(ActionRequest req, PageViewVO fav) throws ActionException {\n\t\tlog.debug(\"updateProfileFavorites...\");\n\n\t\tMyFavoritesAction mfa = new MyFavoritesAction(getActionInit());\n\t\tmfa.setAttributes(getAttributes());\n\t\tmfa.setDBConnection(dbConn);\n\n\t\tboolean isDelete = Convert.formatBoolean(req.getParameter(\"isDelete\"));\n\t\tif (isDelete) {\n\t\t\tmfa.deleteFavorite(req);\n\t\t} else {\n\t\t\t// set additional req params needed for inserts.\n\t\t\treq.setParameter(QuickLinksAction.PARAM_KEY_TYPE_CD, fav.getReferenceCode());\n\t\t\treq.setParameter(QuickLinksAction.PARAM_KEY_REL_ID, fav.getPageId());\n\t\t\tmfa.insertFavorite(req);\n\t\t}\n\n\t\tupdateSessionFavorites(req.getSession(),fav,isDelete);\n\n\t}", "public void setJobId(String jobId) {\n this.jobId = jobId;\n }", "public void setJobId(String jobId) {\n this.jobId = jobId;\n }", "public void setJobId(String jobId) {\n this.jobId = jobId;\n }", "int updateByPrimaryKeySelective(MemberFav record);", "@RequestMapping(value = UPDATE_API_JOB, method = PUT)\n @ResponseBody\n @ResponseStatus(ACCEPTED)\n public ResponseEntity<String> updateExistingJob(@RequestBody final QuartzDTO quartzDTO, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {\n return quartzService.updateExistingJob(quartzDTO, getCookie(httpServletRequest, X_AUTH_TOKEN));\n }", "public void updateStatus(JobStatus status, String userId) throws DatabaseException, IllegalArgumentException;", "public boolean applyForJob(int jobId) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tJobDetail jobDetail = this.getJob(jobId);\r\n\t\t\tjobDetail.setApplied(jobDetail.getApplied()+1);\r\n\t\t\tsessionfactory.getCurrentSession().update(jobDetail);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception Info: \"+e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void setJobId(int jobId) {\r\n\t\tthis.jobId = jobId;\r\n\t}", "public static void updateFavorite(String userId, final String foodId, final boolean option, final ImageButton favButton) {\n //get database reference\n final DatabaseReference dbref = FirebaseDatabase.getInstance().getReference(\"users\").child(userId);\n //add eventlistener to reference\n dbref.child(\"favoritesList\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n ArrayList<String> updated = new ArrayList<>();\n boolean exists = false;\n for (DataSnapshot favDataSnapshot : dataSnapshot.getChildren()) {\n String fav = favDataSnapshot.getValue(String.class);\n if (!option) {\n if (foodId.equals(fav))\n Log.d(\"favor\", \"this one should be deleted \");\n else\n updated.add(fav);\n } else {\n if (foodId.equals(fav)) {\n exists = true;\n updated.add(fav);\n } else\n updated.add(fav);\n }\n }\n if (!exists && option) {\n favButton.setImageResource(R.drawable.ic_favorite);\n updated.add(foodId);\n }\n else\n favButton.setImageResource(R.drawable.ic_favorite_empty);\n dbref.child(\"favoritesList\").setValue(updated);\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "public List<Pizza> updateFavoriteOrder(ObjectId customerId, List<Pizza> newFavorite) throws Exception{\n\t\tCustomer target;\n\t\ttry {\n\t\t\ttarget = custRepo.findBy_id(customerId);\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Target customer not found.\");\n\t\t}\n\t\t\n\t\ttarget.setFavoriteOrder(newFavorite);\n\t\ttarget = custRepo.save(target);\n\t\tif (target.getFavoriteOrder().equals(newFavorite)) {\n\t\t\treturn target.getFavoriteOrder();\n\t\t} else {\n\t\t\tthrow new Exception(\"Target customer's favorite order did not properly update.\");\n\t\t}\n\t}", "public void setJobId(String jobId) {\n\t\tthis.jobId = jobId;\n\t}", "@Override\n\tpublic int updateFavoriteVO(FavoriteVO vo) {\n\t\treturn 0;\n\t}", "ApplicantDetailsResponse applyJob(Integer applicantId, Integer jobId) throws ServiceException;", "private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }", "public void acceptJob(View v) {\n SittingJob job = currentJob;\n try {\n Controller.model.deleteJob(currentJob);\n Controller.model.openJobs.remove(currentJob);\n job.jobInfo.put(\"sitterIDKey\", \"\"+Controller.currentUser.accountInfo.get(\"ownerIDKey\"));\n Controller.model.createJob(job, false);\n Log.w(\"MA\", \"Success accepting job\");\n }\n catch(JSONException je) {\n Log.w(\"MA\", \"JSONException accepting a job\");\n }\n setContentView(R.layout.activity_sitter_page);\n setjobList();\n allJobsList();\n }", "void EditWorkerProfileUser(String uid, boolean isWorker, List<Skill> skills);", "public void updateJobCommand(JobCommand jobCommand) throws DatabaseException, IllegalArgumentException;", "private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void updateJob(Job job) {\n\t\t\tJobDao jobDao=new JobDaoImpl();\n\t\t\tjobDao.updateJob(job);\n\t\t}", "boolean assignJob(JobId jobId) throws RemoteException;", "public void setJobId(String jobId) {\n this.jobId = jobId == null ? null : jobId.trim();\n }", "public void update(FaqPk pk, Faq dto) throws FaqDaoException;", "@RequestMapping(value =\"/hospitalCode/{hospitalCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalCode(@PathVariable String hospitalCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalCode(hospitalCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital code: \" + hospitalCode);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@Override\n\tpublic void setJobId(long jobId) {\n\t\tmodel.setJobId(jobId);\n\t}", "@Modifying\n\t@Transactional\n\t@Query(value = \"UPDATE classes cl SET cl.class_name = :eclassName, cl.class_description = :eclassDescription, cl.schedule = :eschedule, cl.status = :estatus, cl.billboard = :ebillboard WHERE(cl.class_id = :classId)\", nativeQuery = true)\n\tpublic void submitEdit(@Param(\"classId\") int classId, @Param(\"eclassName\") String className, @Param(\"eclassDescription\") String classDescription, @Param(\"eschedule\") String schedule, @Param(\"estatus\") String status, @Param(\"ebillboard\") String billboard);", "public void saveAndUpdateJobStatus(AbstractPersistedAnalysisJob job) {\r\n job.setLastUpdateDate(new Date());\r\n getWorkspaceService().savePersistedAnalysisJob(job);\r\n updateJobStatus(job);\r\n }", "public RecommendationExportJob withJobId(String jobId) {\n setJobId(jobId);\n return this;\n }", "public void updateLocation(FavoriteLocation fl){\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_DES, fl.description);\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LAT, fl.latitude);\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LON, fl.longitude);\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_STREET, fl.street_info);\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY, fl.type); \n\t\t\n\t\tif(fl.image!=null){\n\t\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_PIC, BitmapArrayConverter.convertBitmapToByteArray(fl.image));\n\t\t}\n\t\t\n\t\tvalues.put(DBEntryContract.LocationEntry.COLUMN_NAME_TITLE, fl.title);\n\t\t\n\t\tdb.update(DBEntryContract.CategoryEntry.TABLE_NAME, values , \"_id = ?\", new String[]{String.valueOf(fl._id)});\n\t}", "@Override\n public void updateBacklog(ProductBacklog backlog) {\n ProductBacklog productBacklog = this.findProductBacklogById(backlog.get_id());\n if (productBacklog != null) {\n backlogRepository.save(backlog);\n } else {\n throw new BacklogNotFoundException(\"Backlog not found for the id-\" + backlog.get_id());\n }\n }", "public void setFavortieid(Integer favortieid) {\n this.favortieid = favortieid;\n }", "@Override\n\tpublic void update(Pizza pizzaUdate, String oldCode) throws UpdatesPizzaException {\n\n\t}", "public boolean modifyJob(String jobID, String jobTitle, String jobType,\n String salary, String jobDescription, String expirationDate,\n String contactEmail){\n //Will locate the job with the jobID\n //Then will move the user input for each input\n //to its respected fields\n //Will then return true if successful\n Job newJob = new Job(contactEmail, jobType, jobID, jobDescription, salary, jobTitle, expirationDate);\n for(int i = 0; i< jobs.size(); i++){\n this.currentJob = jobs.get(i);\n if(this.currentJob.getJobID().compareTo(newJob.getJobID())==0){\n jobs.set(i,newJob);\n String success = String.format(\"=========JOB POSTING MODIFICATION SUCCESS=========\\n\"+\n \"A new job has been posted with following details:\\n\"+\n \"Job ID: %s\\n\"+\n \"Job Name: %s\\n\"+\n \"Job Type: %s\\n\"+\n \"Salary: %s\\n\"+\n \"Job Description: %s\\n\"+\n \"Expiration Date: %s\\n\"+\n \"Contact email: %s\\n\", jobID,jobTitle,jobType,salary,jobDescription,expirationDate,contactEmail);\n System.out.println(success);\n return true;\n }\n }\n return false;\n }", "public void saveFavorite(){\n //make sure movie is NOT already a favorite\n if(!mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is a new favorite, favorite movie list status has changed\n mFavoriteChanged = true;\n\n //set movie item favorite status as true\n mMovie.setFavorite(true);\n\n //save movie to favorite database table\n mMovieValet.saveFavorite(mMovie);\n\n //add movie to favorite movie list buffer\n mMovieStaff.addFavorite(mMovie);\n }\n\n //check if movie list type is display a favorite list and if the device is a tablet\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mIsTablet){\n //both yes, get favorite movies to update poster fragment\n getMovieList(PosterHelper.NAME_ID_FAVORITE);\n }\n }", "public void update(LearningResultHasActivityPk pk, LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;", "public void update() {\n\n dbWork.cleanAll();\n\n List<DataFromServiceKudaGo> list = requestDataFromService();\n\n List<Film> films = new ArrayList<>();\n for (DataFromServiceKudaGo data : list) {\n Film film = new Film(list.indexOf(data), data.getNameMovie(), data.getPosterMoviePath(),\n data.getRunning_time(), data.getPrice(), data.getImax(),\n data.getCountryFilm(), data.getYearFilm(), data.getTrailerFilm(),\n data.getAgeFilm(), data.getDirectorFilm(), data.getNameCinema(),\n data.getAddressCinema(), data.getPhone(), data.getStationAboutCinema(),\n data.getPosterCinemaPath(), data.getBeginning_time(), data.getDescription());\n films.add(film);\n }\n\n dbWork.setFilms(films);\n\n fillShows();\n }", "int updateByPrimaryKey(Kmffb record);", "public void markJobAsSuccess(String jobId) {\n JobWrapper wrapper = jobs.remove(jobId);\n if (wrapper != null) {\n jobMetrics.runningJobs.decrementAndGet();\n LOGGER.info(\"job instance {} is success\", jobId);\n // mark job as success.\n jobConfDB.updateJobState(jobId, StateSearchKey.SUCCESS);\n }\n }", "public void updateFaxJobFromInputData(T inputData,FaxJob faxJob)\n {\n if(!this.initialized)\n {\n throw new FaxException(\"Fax bridge not initialized.\");\n }\n \n //get fax job\n this.updateFaxJobFromInputDataImpl(inputData,faxJob);\n }", "public void updateJob(int numeroticket, int chunkjustdone) {\n\t\tif (this.ticket == numeroticket)\n\t\t{\n\t\t\t//System.out.println(\"moi worker \" + id + \" ne doit plus faire \" + chunkjustdone);\n\t\t\tthis.chunkDone[chunkjustdone] = true;\n\t\t\t\n\t\t}\n\t}", "@ApiModelProperty(required = true, value = \"JobId of associated job\")\n public String getJobId() {\n return jobId;\n }", "public boolean update(Long failedActionParameterID, Long failedActionID, \n String actionParameterName, String failedActionParameterData) {\n\n if (failedActionParameterID == null) {\n throw new IllegalArgumentException(\"primary key null.\");\n }\n ContentValues args = new ContentValues();\n if (failedActionID != null) {\n args.put(KEY_FAILEDACTIONID, failedActionID);\n }\n if (actionParameterName != null) {\n args.put(KEY_ACTIONPARAMETERNAME, actionParameterName);\n }\n if (failedActionParameterData != null) {\n args.put(KEY_FAILEDACTIONPARAMETERDATA, failedActionParameterData);\n }\n\n if (args.size() > 0) {\n // Set whereArg to null here\n return database.update(DATABASE_TABLE, args, KEY_FAILEDACTIONPARAMETERID + \"=\"\n + failedActionParameterID, null) > 0;\n }\n return false;\n }", "@Override\n\tpublic void updateFilm(com.dutproject.cinemaproject.model.bean.Film film) throws SQLException {\n\t\t\n\t}", "public void setJobIDs(Collection<Integer> jobIds) {\n\t\tthis.jobsId.addAll(jobIds);\n\t}", "public CbmCItemFininceItem update(CbmCItemFininceItem entity);", "@Override\n\tpublic Result update(JobSeekerCVWebSite jobSeekerCVWebSite) {\n\t\treturn null;\n\t}", "protected abstract void updateFaxJobFromInputDataImpl(T inputData,FaxJob faxJob);", "public Builder setJobIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }", "public void updateItem(int id, String desc, String family, float price, int stock) {\n ContentValues values = new ContentValues();\n values.put(\"description\", desc);\n values.put(\"family\", family);\n values.put(\"price\", price);\n\n dbW.update(\"store\", values, \"_id=?\", new String[] { String.valueOf(id) });\n }", "public void updateAchievements(String username, String achievementTitle, Boolean achieved){\n ContentValues updatedAch = new ContentValues();\n updatedAch.put(\"USERNAME\", username);\n updatedAch.put(\"TITLE\", achievementTitle);\n updatedAch.put(\"ACHIEVED\", achieved);\n\n String where=\"username = ?\";\n db.update(\"Achievement\", updatedAch, where, new String[]{username});\n\n }", "public UpdateClassificationJobRequest withJobStatus(JobStatus jobStatus) {\n this.jobStatus = jobStatus.toString();\n return this;\n }", "protected abstract SQLQuery getFavoriteUpdateSQLQuery();", "public Job updateJob(Long jobId, Boolean isPrivate, boolean isActive)\n\t\t\tthrows IllegalOperation {\n\t\t// To DO : this function must return boolian... no need for a job\n\t\tPreparedStatement ps = null;\n\t\tString query = null;\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = setConnection();\n\t\t\tquery = \"update jobs\" + \" set isPrivate = ? \" + \" ,isActive = ? \"\n\t\t\t\t\t+ \"where jobId = ? \";\n\n\t\t\tps = conn.prepareStatement(query);\n\t\t\tps.setBoolean(1, isPrivate);\n\t\t\tps.setBoolean(2, isActive);\n\t\t\tps.setLong(3, jobId); // added by fareed\n\t\t\tps.execute();\n\n\t\t\treturn getJobByIdFromDB(jobId);\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalOperation(e.getStackTrace());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tps.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new IllegalOperation(e.getStackTrace());\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new IllegalOperation(e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "int updateByPrimaryKey(HomeWork record);", "public PositionDTO updateJobPosition(final PositionDTO positionDTO) throws ApplicationCustomException;", "public HrJBorrowcontract update(HrJBorrowcontract entity);", "public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\t\n\t\tUpdateJobForm updateJobForm = (UpdateJobForm) form;\n\t\tJobServiceImp jbs = (JobServiceImp) FactoryUtil.mapClassInstance.get(FactoryUtil.JOBSERVICEIMP);\n\t\tint jobId= updateJobForm.getId();\n\t\n\t\t\n\t\tHttpSession session = request.getSession();\n\t\tint uid= (int) session.getAttribute(\"uid\");\n\t\tboolean updated=jbs.updateChoosenParam(uid, jobId, updateJobForm.getJobTitle(), updateJobForm.getStartDate(), updateJobForm.getEndDate(),updateJobForm.getPayPerHour());\n\t\tif(updated)\n\t\treturn mapping.findForward(\"success\");\n\t\telse\n\t\t\treturn mapping.findForward(\"failure\");\t\n\t}", "public void makeFavorite(String title, int favorite)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n\n /* the execSQL Method simply executes this query on the Database, in this Query UPDATE is\n * used to specify the Table Name to Update, SET specifies the Column name to Update in this\n * case COL8 contains favorites and WHERE is the condition in this case it is to make sure\n * that the Movie Title Matches with the given title\n */\n db.execSQL(\n \"UPDATE \" + TABLE_NAME +\n \" SET \" + COL8 + \" = \" + favorite +\n \" WHERE \" + COL2 + \" = '\" + title + \"'\");\n }", "public void updateJobPrice(int job_ID, double total_price, double total_discount){\n try {\n Stm = conn.prepareStatement(\"UPDATE `bapers`.`Job` SET Total_discount = ?, Total_price = ? WHERE Job_ID = ?;\");\n Stm.setDouble(1, total_discount);\n Stm.setDouble(2,total_price);\n Stm.setInt(3, job_ID);\n Stm.executeUpdate();\n Stm.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public int updateTermFavouritedFlag (Term term, String table) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_FAVOURITED, term.getFavourited());\n\n // updating row\n return db.update(table, values, KEY_ID + \" = ?\", new String[] { String.valueOf(term.getId())});\n }", "@RequestMapping( value = \"/updateEmployer/{id}\" , method=RequestMethod.PUT)\n\tpublic EmployerPrfl updateEmployer(@PathVariable Long id, @RequestBody EmployerPrfl employerPrfl) {\n\t\tEmployerPrfl employerProfile = repository.findById(id).get();\n\t\tif(employerProfile!=null) {\n\t\t\temployerProfile.setCompanyName(employerPrfl.getCompanyName());\n\t\t\temployerProfile.setCity(employerPrfl.getCity());\n\t\t\temployerProfile.setEmail(employerPrfl.getEmail());\n\t\t\treturn repository.save(employerProfile);\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "int updateByPrimaryKey(TbJobProcessNodeRelationEntity record);", "public void pauseJob(String jobId);", "@Override\n\t\tpublic void onFavorite(User arg0, User arg1, Status arg2) {\n\t\t\t\n\t\t}", "public void update(SgfensBancoPk pk, SgfensBanco dto) throws SgfensBancoDaoException;", "@Override\n public void addProductToFavorites(View view, Intent intent) {\n try {\n if(iProduct != null && view != null && intent != null){\n Context context = view.getContext();\n String jsonProduct = intent.getStringExtra(CommonPresenter.DETAIL_PRODUCT);\n Product product = CommonPresenter.getProductFromJSON(jsonProduct);\n CRUDFavorite crudFavorite = new CRUDFavorite(context);\n boolean isProductExists = crudFavorite.isProductExists(product.getProductId());\n if(isProductExists){\n crudFavorite.deleteByProductId(product.getProductId());\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_product_delete_to_favorite));\n iProduct.changeImageRightResource(R.drawable.ic_add_to_favorite_32dp);\n }\n else{\n crudFavorite.add(new Favorite(0, product));\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_product_add_to_favorite));\n iProduct.changeImageRightResource(R.drawable.ic_favorite_32dp);\n }\n }\n }\n catch (Exception ex){\n Log.e(\"TAG_ERROR\", \"ProductPresenter-->addProductToFavorites() : \"+ex.getMessage());\n }\n }", "public void update(SgfensPedidoProductoPk pk, SgfensPedidoProducto dto) throws SgfensPedidoProductoDaoException;", "public void update(RelacionConceptoEmbalajePk pk, RelacionConceptoEmbalaje dto) throws RelacionConceptoEmbalajeDaoException;", "void update(Serializable objectId);", "public void updateActivity(ExoSocialActivity existingActivity) throws ActivityStorageException;", "public void updateEmp(Emp emp) {\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic Job updateJob(Job job) {\n\t\treturn null;\n\t}", "public void updateRow(Bundle map) {\n\n // Find the record\n int id = map.getInt(\"id\");\n int position = -1;\n for (mCursor.moveToFirst(); !mCursor.isAfterLast(); mCursor.moveToNext()) {\n if (mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX) == id) {\n position = mCursor.getPosition();\n break;\n }\n }\n if (position < 0) {\n return;\n }\n\n mCursor.moveToPosition(position);\n ContentValues values = new ContentValues();\n String title = map.getString(Browser.BookmarkColumns.TITLE);\n if (!title.equals(mCursor\n .getString(Browser.HISTORY_PROJECTION_TITLE_INDEX))) {\n values.put(Browser.BookmarkColumns.TITLE, title);\n }\n String url = map.getString(Browser.BookmarkColumns.URL);\n if (!url.equals(mCursor.\n getString(Browser.HISTORY_PROJECTION_URL_INDEX))) {\n values.put(Browser.BookmarkColumns.URL, url);\n }\n\n if (map.getBoolean(\"invalidateThumbnail\") == true) {\n values.put(Browser.BookmarkColumns.THUMBNAIL, new byte[0]);\n }\n if (values.size() > 0\n && mContentResolver.update(Browser.BOOKMARKS_URI, values,\n \"_id = \" + id, null) != -1) {\n refreshList();\n }\n }", "public void setJobDataMap(JobDataMap jobDataMap) {\n this.jobDataMap = jobDataMap;\n }", "@NonNull\n Completable editBookmark(@NonNull HistoryItem oldBookmark, @NonNull HistoryItem newBookmark);", "public void setJobID(int jobId) {\n\t\tthis.jobsId.add(jobId);\n\t}", "public void updateKanjiBookmark(KanjiDto dto, boolean bookmarkFlg, final CallBackListener<Boolean> callBack) {\n ContentResolver cr = mContext.getContentResolver();\n DaoAsyncQueryHandler queryHandler = new DaoAsyncQueryHandler(cr);\n ContentValues contentValues = new ContentValues();\n if (bookmarkFlg) {\n contentValues.put(\"is_bookmarked\", BookmarkEnum.IS_BOOKMARKED.toString());\n } else {\n contentValues.put(\"is_bookmarked\", BookmarkEnum.IS_NOT_BOOKMARKED.toString());\n }\n\n queryHandler.setOnUpdateCompleteListener(new DaoAsyncQueryHandler.OnUpdateCompleteListener() {\n @Override\n public void onUpdateComplete(int var1, int var2) {\n if (var2 > 0) {\n callBack.onSuccess(true);\n } else {\n callBack.onSuccess(false);\n }\n }\n });\n\n String selection =\"id='\" + dto.kid + \"'\";\n queryHandler.startUpdate(0, null, KanjiContentProvider.KANJI_URI, contentValues, selection, null);\n }", "public void setJobStatus(Integer jobStatus) {\n this.jobStatus = jobStatus;\n }", "public Film update(Film obj) {\n\t\t\n\t\tConnection.update(\"UPDATE film SET codeFilm ='\"+obj.getCodeFilm()+\"','\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t +obj.getNomFilm()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\"' WHERE idFilm=\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+obj.getId()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\";\");\n\t\tConnection.close();\n\t\treturn obj;\n\t}", "public void editStaffMember(){\n Intent intent = new Intent(this, EditStaffMemberActivity.class);\n intent.putExtra(\"SelectedStaffMemberID\", selectedStaffMember._id);\n intent.putExtra(\"SelectedStaffMemberName\", selectedStaffMember.name);\n intent.putExtra(\"SelectedStaffMemberSalary\", selectedStaffMember.salaryPerHour);\n intent.putExtra(\"SelectedStaffMemberEmail\", selectedStaffMember.email);\n startActivity(intent);\n}", "@PUT\r\n\t@Path(\"/\")\r\n\t@Consumes(MediaType.APPLICATION_JSON)\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String updateItem(String itemData)\r\n\t{\n\t JsonObject FunderObject = new JsonParser().parse(itemData).getAsJsonObject();\r\n\t//Read the values from the JSON object\r\n\t String funderID = FunderObject.get(\"funderID\").getAsString();\r\n\t String funderName = FunderObject.get(\"funderName\").getAsString();\r\n\t String funderNIC = FunderObject.get(\"funderNIC\").getAsString();\r\n\t String funderAddress = FunderObject.get(\"funderAddress\").getAsString();\r\n\t String funderEmail = FunderObject.get(\"funderEmail\").getAsString();\r\n\t String funderPhone = FunderObject.get(\"funderPhone\").getAsString();\r\n\t\r\n\t \r\n\t String output = FunderObj.updateItem(funderID,funderName,funderNIC,funderAddress,funderEmail,funderPhone);\r\n\t return output;\r\n\t}", "@Override\n\tpublic String updateBatch(List<Familynames> record, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}", "void updateFavor(HouseFavor houseFavor);" ]
[ "0.58968705", "0.5613752", "0.5484011", "0.52794504", "0.5184614", "0.5153094", "0.5124041", "0.50824326", "0.50071824", "0.49953324", "0.49952334", "0.49230993", "0.48721266", "0.48334485", "0.48333701", "0.48107448", "0.4779616", "0.47761235", "0.47761235", "0.47761235", "0.47483358", "0.47110352", "0.4690718", "0.4682565", "0.46756783", "0.46516418", "0.46207643", "0.46000436", "0.4596196", "0.45757583", "0.45678762", "0.45365575", "0.45277312", "0.4524048", "0.45201558", "0.4517405", "0.44665623", "0.44632187", "0.4451833", "0.44312367", "0.44212028", "0.43953627", "0.43899438", "0.4383726", "0.4381541", "0.43663657", "0.43624857", "0.4358492", "0.4347295", "0.43440795", "0.43298975", "0.43235502", "0.43234903", "0.43023136", "0.42994267", "0.4294884", "0.4276899", "0.4265568", "0.42636746", "0.42499453", "0.4244689", "0.42412403", "0.42348868", "0.42317048", "0.41966906", "0.41956276", "0.4188666", "0.417765", "0.41772723", "0.41764218", "0.41738802", "0.41692713", "0.41505796", "0.4150454", "0.41435987", "0.413958", "0.41265932", "0.4122187", "0.41068733", "0.41060472", "0.41060218", "0.41027826", "0.4101715", "0.41013718", "0.4101082", "0.41006616", "0.40931386", "0.4092375", "0.40909216", "0.40891305", "0.4077728", "0.4074932", "0.40745583", "0.40666917", "0.40639144", "0.40563393", "0.40560073", "0.40538526", "0.404863", "0.40461373" ]
0.8027469
0
Delete Method: delete a single instance of FavouriteJobs of given favJobId with given valid data.
@RequestMapping(value = "/delete/{favJobId}", method = RequestMethod.DELETE) public void deleteFavouriteJob(@PathVariable Long favJobId) { try { favJobService.deleteFavouriteJob(favJobId); } catch(Exception e) { //TODO: Exception to be handle } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteByJobId(Long jobId);", "public void deleteJob(String jobId);", "private void deletejob() {\n\t\tjob.delete(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"删除成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@RequestMapping(value = \"/update/{favJobId}/\", method = RequestMethod.PUT)\n\tpublic void updateFavouriteJob(@PathVariable Long favJobId, @RequestBody FavouriteJobs favJob) {\n\t\ttry {\n\t\t\tfavJobService.updateFavouriteJob(favJobId, favJob);\n\t\t} catch(Exception e) {\n\t\t\t//TODO: Exception to be handle\n\t\t}\n\t}", "Boolean deleteJob(String jobName, String groupName) throws GWTJahiaServiceException;", "public void delete(String jobId, String userId) throws DatabaseException, IllegalArgumentException;", "@Override\n\t@Transactional\n\tpublic void deleteJob(String jobId) {\n\n\t}", "void deleteFavorite(int id);", "private void runWithJobId() {\n if (jobName.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NAME);\n return;\n }\n if (numJobsToDelete.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_NUMBER_OF_JOBS);\n return;\n }\n if (daysOld.isPresent()) {\n handleBadRequest(ERROR_BOTH_JOB_ID_AND_DAYS_OLD);\n return;\n }\n response.setPayload(requestDeletion(ImmutableSet.of(jobId.get()), true /* verbose */));\n }", "@DELETE\n @Path(\"/job/{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response deleteJobEndpoint(@PathParam(\"id\") String jobId) {\n log.info(\"API Delete Job received \" + jobId);\n JSONObject ret = Utils.deleteJob(jobId);\n return Response.status(500).entity(ret.toString()).build();\n }", "private void deleteFav() {\n\n // Call the ContentResolver to delete the favourite at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentFavUri\n // content URI already identifies the fav that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentFavUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n\n // Close the activity\n finish();\n }", "@Override\n\tpublic int deleteFavoriteVO(FavoriteVO vo) {\n\t\treturn fsDao.deleteFavoriteVO(vo);\n\t}", "public void onCancelFavouriteDeletion();", "void deleteByProjectId(Long projectId);", "@CrossOrigin\n\t@RequestMapping(value=\"/deleteJob\", method= RequestMethod.POST)\n\tpublic JSONObject deleteJob(@RequestBody StatusRequestBodyMessage requestBody, @RequestHeader HttpHeaders headers) {\n\t\tHeadersManager.setHeaders(headers);\n\t\ttry {\n\t\t String jobId = requestBody.jobId;\n\t\t \n\t\t SimpleResultSet res = new SimpleResultSet();\n\t\t LoggerRestClient logger = LoggerRestClient.getInstance(log_prop);\n\t \tLoggerRestClient.easyLog(logger, \"Status Service\", \"deleteJob start\", \"JobId\", jobId);\n\t \tLocalLogger.logToStdOut(\"Status Service deleteJob start JobId=\" + jobId);\n\t\t try {\n\t\t \tJobTracker tracker = this.getTracker();\n\t\t \ttracker.deleteJob(jobId);\n\t\t\t res.setSuccess(true);\n\t\t\t \n\t\t } catch (Exception e) {\n\t\t \tres.setSuccess(false);\n\t\t \tres.addRationaleMessage(SERVICE_NAME, \"deleteJob\", e);\n\t\t\t LoggerRestClient.easyLog(logger, \"Status Service\", \"deleteJob exception\", \"message\", e.toString());\n\t\t\t LocalLogger.logToStdOut(\"Status Service deleteJob exception message=\"+ e.toString());\n\t\t } \n\t\t \n\t\t return res.toJson();\n\t\t \n\t\t} finally {\n\t \tHeadersManager.clearHeaders();\n\t }\n\t}", "public void onConfirmFavouriteDeletion();", "@DeleteMapping(\"/favourite-songs/{id}\")\n @Timed\n public ResponseEntity<Void> deleteFavouriteSong(@PathVariable Long id) {\n log.debug(\"REST request to delete FavouriteSong : {}\", id);\n favouriteSongRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "public void deletePost(View v){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n //remove the job from the list of all jobs with a listener\n DatabaseReference myJobRef = database.getReference(\"Jobs\");\n myJobRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this,jobPost.getPostid()));\n //remove the job from the users job list with a listener*\n DatabaseReference myUserJobsRef = database.getReference(\"Users\").child(jobPost.getUserid()).child(\"jobs\");\n myUserJobsRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this, jobPost.getPostid()));\n finish();\n }", "public void deleteFav(int itemId) {\n String selection = DbConstants.POST_ID + \"=?\";\n String[] selectionArgs = {String.valueOf(itemId)};\n\n db.delete(\n DbConstants.FAVOURITE_TABLE_NAME,\n selection,\n selectionArgs);\n }", "public static void removeFromFavourite(final AppDatabase db, final long favouriteMealFromDBId, final long userRoomId){\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n FavouriteMealUserJoin favouriteMealUserJoin = new FavouriteMealUserJoin(userRoomId, favouriteMealFromDBId);\n db.favouriteMealsDao().deleteFavouriteMealUserJoin(favouriteMealUserJoin);\n }\n });\n }", "@Test\n public void _05deleteJob() throws ApiException {\n OCRJobResponse response = api.deleteJob(ocrJob.getJobId());\n Assert.assertNotNull(response);\n Assert.assertNotNull(response.getJob());\n Assert.assertEquals(OCRJobResponse.StatusEnum.DELETED, response.getStatus());\n }", "private void runWithoutJobId() {\n if (numJobsToDelete.isPresent() && numJobsToDelete.get() <= 0) {\n handleBadRequest(ERROR_NON_POSITIVE_JOBS_TO_DELETE);\n return;\n }\n int defaultedDaysOld = daysOld.orElse(DEFAULT_DAYS_OLD);\n // Only generate the detailed response payload if there aren't too many jobs involved.\n boolean verbose =\n numJobsToDelete.isPresent() && (numJobsToDelete.get() <= DEFAULT_MAX_NUM_JOBS_TO_DELETE);\n StringBuilder payload = new StringBuilder();\n\n // Since findEligibleJobsByJobName returns only a certain number of jobs, we must loop through\n // until we find enough, requesting deletion as we go.\n int numJobsProcessed = 0;\n DateTime cutoffDate = clock.nowUtc().minusDays(defaultedDaysOld);\n Optional<String> cursor = Optional.empty();\n do {\n Optional<Integer> numJobsToRequest =\n Optional.ofNullable(\n numJobsToDelete.isPresent() ? numJobsToDelete.get() - numJobsProcessed : null);\n EligibleJobResults batch =\n mapreduceEntityCleanupUtil.findEligibleJobsByJobName(\n jobName.orElse(null), cutoffDate, numJobsToRequest, force.orElse(false), cursor);\n cursor = batch.cursor();\n // Individual batches can come back empty if none of the returned jobs meet the requirements\n // or if all jobs have been exhausted.\n if (!batch.eligibleJobs().isEmpty()) {\n String payloadChunk = requestDeletion(batch.eligibleJobs(), verbose);\n if (verbose) {\n payload.append(payloadChunk);\n }\n numJobsProcessed += batch.eligibleJobs().size();\n }\n // Stop iterating when all jobs have been exhausted (cursor is absent) or enough have been\n // processed.\n } while (cursor.isPresent()\n && (!numJobsToDelete.isPresent() || (numJobsProcessed < numJobsToDelete.get())));\n\n if (numJobsProcessed == 0) {\n logger.atInfo().log(\n \"No eligible jobs found with name '%s' older than %d days old.\",\n jobName.orElse(\"(any)\"), defaultedDaysOld);\n payload.append(\"No eligible jobs found\");\n } else {\n logger.atInfo().log(\"A total of %d job(s) processed.\", numJobsProcessed);\n payload.append(String.format(\"A total of %d job(s) processed\", numJobsProcessed));\n }\n response.setPayload(payload.toString());\n }", "public static void deleteJobWithTitleFromUser(final String title, final String uId) {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"jobs\");\n ref.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n if (snapshot.child(\"inquirerId\").getValue(String.class).equals(uId)\n && snapshot.child(\"jobTitle\").getValue(String.class).equals(title)) {\n System.out.println(\"removing \" + snapshot.getValue() + \" from database\");\n snapshot.getRef().removeValue();\n }\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "@DeleteMapping(\"/job-bids/{id}\")\n @Timed\n public ResponseEntity<Void> deleteJobBid(@PathVariable Long id) {\n log.debug(\"REST request to delete JobBid : {}\", id);\n\n jobBidRepository.deleteById(id);\n jobBidSearchRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@POST\n @Path(\"/jobs/delete\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response deleteJobs(String body) {\n log.info(\"API Delete Jobs received \" + body);\n JSONArray retVals = new JSONArray();\n String jobId;\n JSONObject params = Utils.getRequestParameters(request);\n try {\n JSONArray input_jobs = new JSONArray(body);\n for (int i = 0; i < input_jobs.length(); i++) {\n jobId = input_jobs.getString(i);\n try {\n log.info(\"Deleting job : \" + jobId);\n params.put(\"ids\", new JSONArray().put(jobId));\n JSONObject ret = Utils.deleteHelper(params);\n retVals.put(ret);\n } catch (Exception e) {\n JSONObject ret = new JSONObject();\n ret.put(\"error\", \"Job with the id \" + jobId + \" FAILED: \" + e.getMessage());\n ret.put(\"deleted\", false);\n retVals.put(ret);\n }\n }\n return Response.status(200).entity(retVals.toString()).build();\n }\n catch(Exception e) {\n e.printStackTrace();\n return Response.status(500).entity(retVals.toString()).build();\n }\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\tjob.deleteJob(list.get(arg2).getId());\n\t\t\t\t\t\t\t\t\t\tlist.remove(arg2);\n\t\t\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t}", "@RequestMapping(value =\"/jobCode/{jobCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByJobCode(@PathVariable String jobCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByJobCode(jobCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is not found by job code: \" +jobCode);\n\t\t}\t\t\n\t\t\n\t\tif( favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@Override\n\tpublic void delete(Long id) {\n\t\tlog.debug(\"Request to delete Jobs : {}\", id);\n\t\tjobsRepository.deleteById(id);\n\t}", "private void deleteFruit() {\n // Only perform the delete if this is an existing fruit.\n if (mCurrentFruitUri != null) {\n // Call the ContentResolver to delete the fruit at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentfruitUri\n // content URI already identifies the fruit that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentFruitUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_fruit_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_fruit_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n // Close the activity\n finish();\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete JobTitle : {}\", id);\n jobTitleRepository.deleteById(id);\n }", "int deleteByPrimaryKey(FeedsUsersKey key);", "@Override\n\tpublic void delete(String pizzaToDelete) throws DeletePizzaException {\n\n\t}", "public void delete(FaqPk pk) throws FaqDaoException;", "public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue);", "public void removeJob(int jNo);", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "public void delete(int TrainingId, int loggedInUserId) {\n\r\n\t}", "public void delete(BatchJob batchJob) {\r\n\t\tdao.delete(batchJob);\r\n\t}", "public void deleteProject(Long projectId);", "@Path(\"/api/job/delete\")\n\t@POST\n\t@ApiOperation(value = \"Delete the job\", notes = \"User can delete a job on his appliance.User with role Customer Admin or Customer User is allowed.\", response = ApiResponseDTO.class)\n\t@ApiResponses({ @ApiResponse(code = 200, message = \"The job with the given serial number has been deleted\") })\n\t@Transactional(rollbackFor = { NotAuthorizeException.class, CustomerNotFoundException.class,\n\t\t\tNodeNotFoundException.class, BaseException.class })\n\t@RequestMapping(value = \"/api/job/delete\", method = RequestMethod.POST)\n\t@PreAuthorize(\"hasAnyAuthority('Customer User','Customer Admin')\")\n\tpublic ApiResponseDTO deleteJob(\n\t\t\t@ApiParam(name = \"Job task object\", value = \"Job task object that needs to be deleted\", required = true) @Valid @RequestBody JobDeleteRequestDTO jobTaskDTO,\n\t\t\tHttpServletRequest request)\n\t\t\tthrows NotAuthorizeException, JobNotFoundException, BaseException, ValidationException {\n\t\tlogger.debug(\"Started JobsController.deleteJob() \");\n\t\tString message = null;\n\t\tString statusCode = HttpStatus.OK.toString();\n\t\tString uri = null;\n\t\tString jobName = null;\n\t\t// verify user associated with requested appliance\n\t\tString loginCustomerId = getLoggedInUserCustomerID(SecurityContextHolder.getContext().getAuthentication());\n\t\tString roleName = getLoggedInUserRoleName(SecurityContextHolder.getContext().getAuthentication());\n\t\tString loggedInEmail = getLoggedInUserEmail(SecurityContextHolder.getContext().getAuthentication());\n\t\tString userQAuthToken = getLoggedInUserAuthToken(SecurityContextHolder.getContext().getAuthentication());\n\t\tUser loggedInUser = userService.findUserByEmail(loggedInEmail);\n\n\t\t// User is associated with appliance\n\t\tif (!isCustomerAllowed(jobTaskDTO.getSerialNumber(), loginCustomerId)) {\n\t\t\tlogger.info(\"Appliance {} not owned by user {}\", jobTaskDTO.getSerialNumber(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\tJob job = createJobTaskDTOToJob(jobTaskDTO);\n\n\t\t// Customer admin can delete jobs created by himself and his\n\t\t// organization user jobs\n\t\tif (roleName.equalsIgnoreCase(ServicesConstants.CUSTOMER_ADMIN) && !isCustomerAllowedForJob(job, loginCustomerId)) {\n\t\t\tlogger.info(\"Job {} not owned by user {}\", job.getName(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\t// if user role is customer_user verify job owned by himself\n\t\tif (roleName.equalsIgnoreCase(ServicesConstants.CUSTOMER_USER)\n\t\t\t\t&& !isUserAllowedForJob(job, \"\" + loggedInUser.getId())) {\n\t\t\tlogger.info(\"Job {} not owned by user {}\", job.getName(), loggedInUser.getName());\n\t\t\tthrow new NotAuthorizeException(environment.getProperty(\"job.delete.operation.notallowed\"));\n\t\t}\n\n\t\tif (jobTaskDTO.getJobApiType() != null || !jobTaskDTO.getJobApiType().isEmpty()) {\n\t\t\tif (jobTaskDTO.getJobApiType().equalsIgnoreCase(MARATHON.toString())) {\n\t\t\t\turi = formatString(marathonUrl, MARATHON_V2_APPS);\n\t\t\t\tjobName = CHARACTER_SINGLE_FRONT_SLASH + jobTaskDTO.getAppId();\n\t\t\t} else if (jobTaskDTO.getJobApiType().equalsIgnoreCase(CHRONOS.toString())) {\n\t\t\t\turi = formatString(chronosUrlPrefix, CHRONOS_SCHEDULER_JOB);\n\t\t\t\tjobName = jobTaskDTO.getAppId();\n\t\t\t}\n\t\t\ttry {\n Node node = nodeService.findNodeBySerialNumber(jobTaskDTO.getSerialNumber());\n String nodeName=null;\n if(node != null){\n \tnodeName = node.getName();\n }\n\t\t\t\tjob.setIsDeleted(YES.toString());\n\t\t\t\tjobService.removeJob(job);\n\n\t\t\t\tboolean isDeletedSuccess = false;\n\n\t\t\t\tWSServerJobResponse wsServerJobResponse = JobsClient.deleteJob(websocketServerUrl,\n\t\t\t\t\t\tjobTaskDTO.getSerialNumber(), jobName, uri, loggedInUser.getUserName(), userQAuthToken);\n\t\t\t\tJobRetVal jobRetVal = JobsClient.convertWebsocketServerResponse(wsServerJobResponse,\n\t\t\t\t\t\tCHRONOS.toString());\n\t\t\t\tif (jobRetVal != null && jobRetVal.getStatus() != null\n\t\t\t\t\t\t&& jobRetVal.getStatus().equalsIgnoreCase(statusCode)\n\t\t\t\t\t\t|| jobRetVal != null && jobRetVal.getStatus() != null\n\t\t\t\t\t\t\t\t&& jobRetVal.getStatus().equalsIgnoreCase(HttpStatus.NO_CONTENT.toString())) {\n\t\t\t\t\tmessage = formatString(jobTaskDTO.getAppId(), JOB_DELETE_SUCCESS);\n\t\t\t\t\tisDeletedSuccess = true;\n\t\t\t\t} else {\n\t\t\t\t\tisDeletedSuccess = false;\n\t\t\t\t\tmessage = formatString(jobTaskDTO.getAppId(), JOB_NOT_DELETE_SUCCESS);\n\t\t\t\t\tstatusCode = HttpStatus.ACCEPTED.toString();\n\t\t\t\t\tjob.setIsDeleted(NO.toString());\n\t\t\t\t\tjobService.updateJob(job);\n\n\t\t\t\t}\n\t\t\t\tif (isDeletedSuccess == true) {\n\t\t\t\t\tjobService.deleteJob(job);\n\t\t\t\t}\n\t\t\t\tlogger.info(environment.getProperty(\"job.delete.sucess\"),loggedInUser.getUserName(),nodeName);\n\t\t\t} catch (JobNotFoundException e) {\n\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\tthrow new JobNotFoundException(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.error(\"Deleting a job failed with message {} \" + environment.getProperty(\"job.api.notnull\"));\n\t\t\tthrow new ValidationException(environment.getProperty(\"job.api.notnull\"));\n\t\t}\n\t\tApiResponseDTO response = new ApiResponseDTO(message, Integer.parseInt(statusCode));\n\t\tlogger.debug(\"Started JobsController.deleteJob() \");\n\t\treturn response;\n\t}", "void disjoinJob(long jobId, long joinedJobId);", "public static void deleteAzkabanJob(String sessionId, AzkabanProjectConfig azkabanProjectConfig)\n throws IOException {\n log.info(\"Deleting Azkaban project for: \" + azkabanProjectConfig.getAzkabanProjectName());\n\n // Delete project\n AzkabanAjaxAPIClient.deleteAzkabanProject(sessionId, azkabanProjectConfig);\n }", "private void deleteEmployee() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentPetUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@RequestMapping(value = \"/add\", method = RequestMethod.POST)\n\tpublic void addFavouriteJob(@RequestBody FavouriteJobs favJob) {\n\t\ttry {\n\t\t\tfavJobService.addNewFavouriteJob(favJob);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ServerErrorException(e.getMessage());\n\t\t}\n\t}", "public void deleteBookmark (long bookmarkId) throws BookMarkException;", "public void deleteJob(ConfigProperties cprop){\n\t\tjobs.remove(cprop.getProperty(\"PROJ.id\"));\n\t\tjlog.info(\"Delete Job \"+cprop.getProperty(\"PROJ.id\"));\n\t}", "public void deleteFavorites() {\n mFavSQLiteDB.delete(FAVORITES_TABLE, null, null);\n }", "@Override\r\n\tprotected void delete(Milestone schedule, String reason, RequestContext context) throws ResponseException {\n\t\t\r\n\t}", "public void deleteJob(String job_no) {\n\t\t\tJobDao jobDao=new JobDaoImpl();\n\t\t\tjobDao.deleteJob(job_no);\n\t\t}", "public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue,\n Expected... expected);", "@Delete\n void deleteEggDaily(EggDaily eggDaily);", "public boolean delete(Long failedActionID) {\n if (failedActionID == null) {\n throw new IllegalArgumentException(\"null\");\n }\n // Set the whereArgs to null here.\n return database.delete(DATABASE_TABLE, KEY_FAILEDACTIONID + \"=\" + failedActionID, null) > 0;\n }", "public static void removeByJobStatus(int jobStatus) {\n\t\tgetPersistence().removeByJobStatus(jobStatus);\n\t}", "public void delete(HrJBorrowcontract entity);", "void delete(@Nonnull String resumeId);", "@Override\r\n\tpublic void delete(Employee arg0) {\n\t\t\r\n\t}", "public void delete(Pizza pizza){\n for(Pizza p : pizzas){\n if(pizza.getID() == p.getID()){\n pizzas.remove(p);\n break;\n }\n }\n }", "public void deleteExistingProfile(Long projectId) {\n\t\tProjectExistingProfile profile=new ProjectExistingProfile();\n\t\tprofile.setProjectId(projectId);\n\t\t\n\t\tthis.delete(profile);\n\t}", "int deleteByPrimaryKey(Integer prefecturesId);", "@Override\n\tpublic void deleteTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "public static boolean removeJob(int id) throws JobNotFoundException\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n stmt = conn.createStatement();\n String sql = String.format(\n \"DELETE FROM job WHERE job_id = %d;\",\n id\n );\n int res = stmt.executeUpdate(sql);\n stmt.close();\n conn.close();\n if(res == 0) {\n throw new JobNotFoundException(id);\n } else {\n return true;\n }\n } catch (JobNotFoundException e) {\n throw e;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return false;\n }\n }", "@DeleteMapping(\"/deleteProject/{projectId}\")\r\n\tpublic void deleteProject(@PathVariable String projectId) {\r\n\r\n\t\tpersistenceService.deleteProject(projectId);\r\n\t}", "@Override\n\tpublic SchedulerJobEntity deleteJob(SchedulerJobEntity jobEntity) throws SchedulerException, GenericSchedulerException {\n\n\t\tJobKey jobKey = new JobKey(jobEntity.getJobName(), jobEntity.getJobGroup());\n\t\tJobDetail jobDetail = scheduler.getJobDetail(jobKey);\n\t\tif (jobDetail == null) {\n\t\t\tthrow new GenericSchedulerException(\"jobDetail cannot be found\");\n\t\t} else if (!scheduler.checkExists(jobKey)) {\n\t\t\tthrow new GenericSchedulerException(\"jobKey does not exist\");\n\t\t} else {\n\t\t\tscheduler.deleteJob(jobKey);\n\t\t\tschedulerRepository.deleteById(jobEntity.getId());\n\n\t\t\treturn jobEntity;\n\t\t}\n\t}", "public JobApplyActivity delete(JobApplyActivity jobApplyActivity) throws SQLException {\n\t\tString deleteJobApplyActivity = \"DELETE FROM JobApplyActivity WHERE JobApplyActivityId=?;\";\n\t\tConnection connection = null;\n\t\tPreparedStatement deleteStmt = null;\n\t\ttry {\n\t\t\tconnection = connectionManager.getConnection();\n\t\t\tdeleteStmt = connection.prepareStatement(deleteJobApplyActivity);\n\t\t\tdeleteStmt.setInt(1, jobApplyActivity.getJobApplyActivityId());\n\t\t\tdeleteStmt.executeUpdate();\n\t\t\treturn null;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif(connection != null) {\n\t\t\t\tconnection.close();\n\t\t\t}\n\t\t\tif(deleteStmt != null) {\n\t\t\t\tdeleteStmt.close();\n\t\t\t}\n\t\t}\n\t}", "int deleteByPrimaryKey(Integer fileId);", "public void deleteCompetition(CompetitionClassification contestToDelete) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tTypedQuery<CompetitionClassification> typedQuery = em.createQuery(\"SELECT c from CompetitionClassification c where c.id= :selectedId\", CompetitionClassification.class);\n\t\ttypedQuery.setParameter(\"selectedId\", contestToDelete.getId());\n\t\t\n\t\ttypedQuery.setMaxResults(1);\n\t\t\n\t\tCompetitionClassification result = typedQuery.getSingleResult();\n\t\t\n\t\tem.remove(result);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t\t\n\t}", "@Override\n\tpublic void deletePizzaById(int pizza_id) {\n\t\tmongoTemplate.remove(Query.query(Criteria.where(\"_id\").in(pizza_id)), Pizza.class);\n\t}", "@Subscribe\n public void onDeleteFavorite(DeleteFavoriteEvent event) {\n mApiService.deleteFavorite(event.neighbour);\n initListFavorite();\n }", "public void deleteMovieFromFavorites(int id) {\n movie.setFavorite(false);\n isFavorite = false;\n //change the star from yellow to gray\n star.setImageResource(R.drawable.ic_grade_gray_36px);\n //delete the poster from local storage\n deleteMoviePoster();\n String stringId = Integer.toString(id);\n Uri uri = FavoriteMoviesContract.MovieEntry.CONTENT_URI.buildUpon()\n .appendPath(stringId).build();\n String whereClause = \"moviedb_id=?\";\n String[] whereArgs = new String[]{stringId};\n\n int rowsDeleted = getActivity().getContentResolver().delete(uri, whereClause, whereArgs);\n if (rowsDeleted > 0) {\n String successMessage = \"You have successfully deleted \" + movie.getOriginalTitle() +\n \" from the Favorites collection\";\n Toast.makeText(getActivity(), successMessage, Toast.LENGTH_LONG).show();\n } else {\n String errorMessage = \"An error occurred while deleting \" + movie.getOriginalTitle() +\n \" from the Favorites collection\";\n Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_LONG).show();\n }\n }", "private void deleteItem(final DatabaseReference friendsReference) {\n /*look for the matching item*/\n Query deleteQuery = friendsReference.orderByChild(\"friendName\")\n .equalTo(\"Vicky Victoria\");\n deleteQuery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n /*get the data children*/\n Iterable<DataSnapshot> snapshotIterator = dataSnapshot.getChildren();\n Iterator<DataSnapshot> iterator = snapshotIterator.iterator();\n while (iterator.hasNext()) {\n DataSnapshot snapshot = iterator.next();\n Friend friend = snapshot.getValue(Friend.class);\n /*does it match what we're looking for?*/\n if (friend.getFriendName().equals(\"Vicky Victoria\")) {\n /*we found the item, now get its id*/\n String snapshotKey = snapshot.getKey();\n /*now delete it*/\n friendsReference.child(snapshotKey).removeValue();\n } else {\n /*no match*/\n Log.i(TAG, \"deleteItem(), no matching item to delete\");\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.i(TAG, \"deleteItem() - onCancelled(), error: \"\n + databaseError.getMessage());\n }\n });\n }", "int deleteByPrimaryKey(Integer fitemid);", "@RequestMapping(value =\"/hospitalCode/{hospitalCode}\", method = RequestMethod.GET, produces = { \"application/hal+json\" })\n\tpublic List<FavouriteJobs> getFavJobsByHospitalCode(@PathVariable String hospitalCode) {\n\t\tList<FavouriteJobs> favJobs = null;\n\t\ttry {\n\t\t\tfavJobs = favJobService.getFavJobsByHospitalCode(hospitalCode);\n\t\t} catch(Exception e) {\n\t\t\tthrow new ObjectNotFoundException(\"FavouriteJob is found by hospital code: \" + hospitalCode);\n\t\t}\t\t\n\t\t\n\t\tif(favJobs.isEmpty() || favJobs != null) {\n\t\t\t\n\t\t\tfor(FavouriteJobs favJob: favJobs) {\n\t\t\t\tLink selfLink = linkTo(FavouriteJobsController.class).slash(favJob.getFavJobId()).withSelfRel();\n\t\t\t\tfavJob.add(selfLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn favJobs;\n\t}", "@Override\n public void deleteEmployee(int employeeId) {\n\n }", "Feature delete(Long featureId);", "public void deleteJob(String jobInstancId) {\n JobWrapper jobWrapper = jobs.remove(jobInstancId);\n if (jobWrapper != null) {\n LOGGER.info(\"delete job instance with job id {}\", jobInstancId);\n jobWrapper.cleanup();\n getJobConfDb().deleteJob(jobInstancId);\n }\n }", "@DELETE(\"/attractions/{attractionId}/favorite\")\n Call<Void> unmarkFavoriteAttraction(\n @Path(\"attractionId\") int attractionId,\n @Header(\"Authorization\") String bearer\n );", "public void deleteWishlistItem(WishlistItem wishItem){\n fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishItem.getWishID()).delete().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n return;\n }\n });\n }", "public static void removeByJobStatus_U(long userId, int jobStatus) {\n\t\tgetPersistence().removeByJobStatus_U(userId, jobStatus);\n\t}", "public boolean delete(int userId);", "void delete(\n String resourceGroupName,\n String searchServiceName,\n String sharedPrivateLinkResourceName,\n UUID clientRequestId,\n Context context);", "public JSONObject handleCleanupJob(String jobId) {\n JSONObject retValue = new JSONObject();\n try {\n try {\n MapReduceState.getMapReduceStateFromJobID(ds, JobID.forName(jobId)).delete();\n retValue.put(\"status\", \"Successfully deleted requested job.\");\n } catch (IllegalArgumentException e) {\n retValue.put(\"status\", \"Couldn't find requested job.\");\n } catch (EntityNotFoundException e) {\n retValue.put(\"status\", \"Couldn't find requested job.\");\n }\n } catch (JSONException e) {\n throw new RuntimeException(\"Hard coded string is null\", e);\n }\n return retValue;\n }", "public void deleteEmployee(Long employeeId) throws ApiDemoBusinessException;", "private void deleteGoal() {\n // Only perform the delete if this is an existing goal.\n if (mCurrentGoalUri != null) {\n // Call the ContentResolver to delete the goal at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentGoalUri\n // content URI already identifies the goal that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentGoalUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_goal_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_goal_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n // Close the activity\n finish();\n }", "public DeleteItemOutcome deleteItem(PrimaryKey primaryKey);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "@Override\n\tpublic void deleteEmployee(Employee employee) {\n\t\t\n\t}", "private void deleteJob(int floorNumber){\n jobs.remove(floorNumber);\n }", "Boolean delete(Long id);", "public void delete(CbmCItemFininceItem entity);", "public int deleteFavPair(Pair pair) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n return db.delete(FavoriteEntry.TABLE_NAME,\n FavoriteEntry.SHIRT_ID + \" = ? AND \" + FavoriteEntry.TROUSER_ID + \" = ? \",\n new String[]{String.valueOf(pair.getShirt().getId()), String.valueOf(pair.getTrouser().getId())});\n }", "@Override\n\tpublic void deleteCoach(Coach coach) {\n\t\tthis.getHibernateTemplate().delete(coach);\n\t}", "boolean delete(int id, int userId);", "public Job deleteJobFromDB(Long jobId, Long userId) throws IllegalOperation {\n\t\ttry {\n\t\t\tJob toDeleteJob = getJobByIdFromDB(jobId);\n\t\t\tupdateJob(jobId, toDeleteJob.getIsPrivate(), false);\n\t\t\treturn toDeleteJob;\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalOperation(e.getStackTrace());\n\t\t}\n\t}", "public static void delete(Document passport,String objId) throws Exception {\n\t\tBookmark obj=BookmarkService.getInstance().get(toLong(objId));\n\t\tif (obj==null) throw new Exception(\"error.object.notfound\");\n\t\tACLManager.isAuthorize(passport,ACL_MODE, ACLManager.ACTION_DELETE, null, toDocument(obj));\n\t\tobj.setStatus(StatusService.getInstance().getByTypeandCode(\"Bookmark\", \"deleted\"));\n\t\tobj.setLastUpdatedDate(new Date());\n\t\tobj.setLastUpdatedBy(passport.getString(\"loginName\"));\n\t\tBookmarkService.getInstance().update(obj);\n\t}", "Integer deleteAllCompletedJobs() throws GWTJahiaServiceException;", "public void deleteByCustomerListId(Long customerListId);" ]
[ "0.67575854", "0.67070013", "0.5992669", "0.59597296", "0.59583724", "0.5808752", "0.57480896", "0.5688586", "0.56755066", "0.56378734", "0.5599112", "0.5586529", "0.5531163", "0.5492144", "0.54840916", "0.537452", "0.5360953", "0.5351077", "0.5345375", "0.53274816", "0.5322121", "0.53157884", "0.5300449", "0.5283636", "0.52506393", "0.52381593", "0.5171885", "0.516384", "0.5145032", "0.5139746", "0.51157224", "0.5111145", "0.50924647", "0.50914955", "0.50804764", "0.5071486", "0.50691116", "0.50626904", "0.50069284", "0.50022525", "0.50013787", "0.4997056", "0.49889416", "0.49581507", "0.4958102", "0.4942134", "0.49347702", "0.4932197", "0.49285907", "0.49181253", "0.49147725", "0.49124938", "0.49034157", "0.487897", "0.48781148", "0.48738185", "0.48595122", "0.48536718", "0.48497137", "0.483706", "0.48331589", "0.48315424", "0.48310944", "0.48270592", "0.4822423", "0.48167908", "0.48158535", "0.48122892", "0.47990113", "0.4782328", "0.47755924", "0.47747323", "0.47646108", "0.4762228", "0.4756322", "0.47552425", "0.47521877", "0.47406402", "0.47370532", "0.4735874", "0.4733277", "0.47309375", "0.47266325", "0.4724863", "0.47247827", "0.47247827", "0.47247827", "0.47247827", "0.47247827", "0.47177798", "0.47177452", "0.47086015", "0.47059783", "0.47050714", "0.47040954", "0.46891388", "0.46861824", "0.4684313", "0.46766055", "0.46761566" ]
0.8171992
0
Bundle b = getIntent().getExtras(); login = b.getString("auth"); Log.v("Authhere",login);
@Override public void onCreate(Bundle savedInstanceState) { boolean haveConnectedWifi=false; boolean haveConnectedMobile=false; ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo[] netInfo = cm.getAllNetworkInfo(); for (NetworkInfo ni : netInfo) { if (ni.getTypeName().equalsIgnoreCase("WIFI")) if (ni.isConnected()) haveConnectedWifi = true; if (ni.getTypeName().equalsIgnoreCase("MOBILE")) if (ni.isConnected()) haveConnectedMobile = true; } if (haveConnectedWifi==false && haveConnectedMobile==false) { Toast.makeText(getApplicationContext(), "Please connect to the internet to continue", Toast.LENGTH_LONG).show(); } // login = pref.getString("BYR_session", null); Log.v("login using shared pregs",login); super.onCreate(savedInstanceState); setContentView(R.layout.json); //HttpClient httpclient = new DefaultHttpClient(); try { Button tr1 = (Button) findViewById(R.id.button7); Button tr2 = (Button) findViewById(R.id.button6); differentthread1("http://www.ec2-54-212-221-3.us-west-2.compute.amazonaws.com/tournaments/520192c41a5932f6a6000001.json",tr2); Log.v("Sent","sent"); differentthread1("http://www.ec2-54-212-221-3.us-west-2.compute.amazonaws.com/tournaments.json",tr1); differentthread(); } catch (ClientProtocolException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (JSONException e) { Button tr1 = (Button) findViewById(R.id.button7); Button tr2 = (Button) findViewById(R.id.button6); //get.abort(); tr2.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { SharedPreferences pref = getApplicationContext().getSharedPreferences("TourPref", 0); // 0 - for private mode Editor editor = pref.edit(); editor.putString("tour", "http://www.ec2-54-212-221-3.us-west-2.compute.amazonaws.com/tournaments/520192c41a5932f6a6000001.json"); // Storing string editor.putString("id", "520192c41a5932f6a6000001"); // Storing string // editor.putString("log", "yes"); editor.commit(); String print = pref.getString("tour",null); Log.v("Act1",print); Intent i = new Intent(ReadJson4.this, Landing.class); startActivity(i); } }); tr1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { SharedPreferences pref = getApplicationContext().getSharedPreferences("TourPref", 0); // 0 - for private mode Editor editor = pref.edit(); editor.putString("tour", "http://www.ec2-54-212-221-3.us-west-2.compute.amazonaws.com/tournaments/520192dd1a59327bfe000002.json"); // Storing string editor.putString("id", "520192dd1a59327bfe000002"); // Storing string editor.commit(); String print = pref.getString("tour",null); Log.v("Act1",print); Intent i = new Intent(ReadJson4.this, Landing.class); startActivity(i); } }); Log.v("Well crashed", "well crasehed"); // TODO Auto-generated catch block e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_home);\n UserEmail = getIntent().getStringExtra(\"UserEmail\");\n Toast.makeText(this, \"Welcome\"+UserEmail, Toast.LENGTH_SHORT).show();\n\n }", "void getData() {\n Intent intent = this.getIntent();\n /* Obtain String from Intent */\n Sname = intent.getExtras().getString(\"name\");\n Sbloodbank = intent.getExtras().getString(\"bloodbank\");\n Sbranch = intent.getExtras().getString(\"branch\");\n Sdate = intent.getExtras().getString(\"date\");\n Stime = intent.getExtras().getString(\"time\");\n Sphone = intent.getExtras().getString(\"phone\");\n Log.d(\"userDetails received\", Sname + \",\" + Sphone ); //Don't ignore errors!\n }", "private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "@Override\n public void run() {\n Intent intent=new Intent(getApplicationContext(),OTPPage.class);\n\n //passing the data\n intent.putExtra(\"auth\",s);\n\n //start the intent\n startActivity(intent);\n\n }", "public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }", "public void checkLogUser()\n {\n //get User\n\n String s1 = sharedPreferences.getString(\"LogUser\",\"\");\n\n Log.i(TAG,s1);\n\n if(!(s1 == \"\"))\n {\n ///call the Home Screen ;\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n String myJson = gson.toJson(s1);\n intent.putExtra(\"user\", myJson);\n startActivity(intent);\n finish();\n\n }\n }", "@Override\n public void onClick(View v) {\n String userName = \"\";\n String userPass = \"\";\n userName = name.getEditText().getText().toString();\n userPass = pass.getEditText().getText().toString();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == 78 && resultCode == RESULT_OK ){\n\n user = data.getExtras().getString(\"usuarioP\");\n pass = data.getExtras().getString(\"contraseñaP\");\n correo = data.getExtras().getString(\"correoP\");\n\n // tTemporal2.setText(\"vengo de perfil\" + user + \"\\n\" + pass);\n }\n\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onClick(View v){\n backIntent.putExtra(\"username\", intent.getStringExtra(\"username\"));\n backIntent.putExtra(\"password\", intent.getStringExtra(\"password\"));\n backIntent.putExtra(\"name\", intent.getStringExtra(\"name\"));\n backIntent.putExtra(\"gender\", intent.getStringExtra(\"gender\"));\n backIntent.putExtra(\"age\", intent.getStringExtra(\"age\"));\n\n startActivity(backIntent);\n finish();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n Intent nextScreen2 = new Intent(getApplicationContext(), CreateAccount.class);\n System.out.println(\"IN ALRT\");\n System.out.println(login);\n nextScreen2.putExtra(\"login\", login);\n nextScreen2.putExtra(\"password1\", password);\n nextScreen2.putExtra(\"password2\", password2);\n nextScreen2.putExtra(\"email\", email);\n nextScreen2.putExtra(\"birth_date\", dob);\n\n\n startActivityForResult(nextScreen2, 0);\n\n }", "private String getStringExtra(Bundle savedInstanceState, String strWhich) {\n String strRet = (savedInstanceState != null ? savedInstanceState.getString(strWhich) : \"\");\r\n \r\n if (strRet == \"\") {\r\n \tBundle extras = getIntent().getExtras(); \r\n \tstrRet = (extras != null ? extras.getString(strWhich) : \"\");\r\n }\r\n \r\n return strRet;\r\n\r\n\t}", "private void getValues(){\n username = etUsername.getText().toString();\n password = etPassword.getText().toString();\n }", "public static String getExtraString(Activity context, String key) {\n \tString param = \"\";\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.getString(key);\n \t}\n \treturn param;\n\t}", "public Bundle getBundle() {\r\n\r\n\r\n Bundle args = new Bundle();\r\n args.putString(\"message\", \"takeAPicture\");\r\n\r\n return args;\r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (getArguments() != null) {\n username = getArguments().getString(ARG_PARAM1);\n mainUsername = getArguments().getString(ARG_PARAM2);\n authHead = getArguments().getString(ARG_PARAM3);\n pageType = getArguments().getString(ARG_PARAM4);\n }\n\n }", "private void BundleData(Intent intent) {\n bundle=new Bundle();\n bundle.putString(\"FNAME\",fname);\n bundle.putString(\"LNAME\",lname);\n bundle.putString(\"LOCALITY\",locality);\n bundle.putString(\"CITY\",city);\n bundle.putInt(\"PINCODE\",pincode);\n bundle.putString(\"TIME_TO_CALL\",timers);\n bundle.putString(\"PHONE\",phone);\n bundle.putString(\"ALTPHONE\",altphone);\n bundle.putString(\"EMAIL\",emailid);\n intent.putExtras(bundle);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n btn_login_dia= findViewById(R.id.btnLogin);\n btn_login_dia.setOnClickListener(this);\n btn_signup_dia= findViewById(R.id.btnSignup);\n btn_signup_dia.setOnClickListener(this);\n mAuth = FirebaseAuth.getInstance();\n sp=getSharedPreferences(\"details1\",0);\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tswitch (requestCode) {\r\n\t\tcase R.id.settingsButton:\r\n\t\t\tif (resultCode == RESULT_OK) {\r\n\t\t\t\tBundle extras = data.getExtras();\r\n\t\t\t\thttpuser = extras.getString(\"httpuser\");\r\n\t\t\t\thttppassword = extras.getString(\"httppassword\");\r\n\t\t\t}\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_appointment_contents);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n\n Intent intent = getIntent();\n user = (User) intent.getExtras().getSerializable(\"user\");\n chosedTime = intent.getStringExtra(\"chosed_time\");\n chosedDate = intent.getStringExtra(\"chosed_date\");\n lecturerName = intent.getStringExtra(\"lect_name\");\n\n }", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n Intent intent = getIntent();\n if (intent != null) {\n this.Z = intent.getStringExtra(\"extra_deep_link_ots\");\n this.Y = intent.getStringExtra(\"extra_deep_link_email\");\n }\n }", "public void pindah_ke_log(View v)\n {\n Intent dashboard = new Intent(DashboardUser.this,BuyerTransactionActivity.class) ;\n dashboard.putExtra(\"param1\",value1);\n dashboard.putExtra(\"param2\",value2);\n dashboard.putExtra(\"param3\",value3);\n dashboard.putExtra(\"param4\",value4);\n dashboard.putExtra(\"param5\",value5);\n// SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n// SharedPreferences.Editor editor = sharedPreferences.edit();\n// editor.putString(TEXT, value1);\n// editor.putString(SWITCH, value2);\n// editor.apply();\n startActivityForResult(dashboard, 100);\n }", "@Override\n public void onResponse(JSONObject response) {\n Toast.makeText(Verification_Activity.this, response.toString(), Toast.LENGTH_SHORT).show();\n System.out.println(\"------------------------------------------\");\n\n System.out.println(response.toString());\n if(response.toString().contains(\"200\")){\n if(response.toString().contains(\"password\")){\n String password=\"\";\n int i=46;\n while (true){\n password+=response.toString().charAt(i);\n i++;\n if(response.toString().charAt(i)=='\"')\n break;\n\n\n }\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"password\", password);\n editor.apply();\n }\n startActivity(new Intent(Verification_Activity.this, Public_register_Activity.class));\n }\n\n else {\n startActivity(new Intent(Verification_Activity.this, Singup_Activity.class));\n finish();\n\n }\n\n\n }", "@Override\n public void onResponse(JSONObject response) {\n Toast.makeText(Verification_Activity.this, response.toString(), Toast.LENGTH_SHORT).show();\n System.out.println(\"------------------------------------------\");\n\n System.out.println(response.toString());\n if(response.toString().contains(\"200\")){\n if(response.toString().contains(\"password\")){\n String password=\"\";\n int i=46;\n while (true){\n password+=response.toString().charAt(i);\n i++;\n if(response.toString().charAt(i)=='\"')\n break;\n\n\n }\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"password\", password);\n editor.apply();\n }\n startActivity(new Intent(Verification_Activity.this, Public_register_Activity.class));\n }\n\n else {\n startActivity(new Intent(Verification_Activity.this, Singup_Activity.class));\n finish();\n\n }\n\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEml=email.getText().toString();\n\t\t\t\tPass=password.getText().toString();\n\t\t\t\tDatabase db=new Database(ctx);\n\t\t\t\tCursor cr=db.getinfo(db);\n\t\t\t\tcr.moveToFirst();\n\t\t\t\tdo{\n\t\t\t\t\tif(Eml.equals(cr.getString(5))&&Pass.equals(cr.getString(6))){\n\t\t\t\t\t\tBundle bn=new Bundle();\n\t\t\t\t\t\tbn.putString(\"Email\",cr.getString(5));\n\t\t\t\t\t\tbn.putString(\"Password\",cr.getString(6));\n\t\t\t\t\t\tIntent u= new Intent(v.getContext(),Home.class);\n\t\t\t\t\t\tu.putExtras(bn);\n\t\t\t\t\t\tstartActivity(u);\n\t\t\t\t\t}\n\t\t\t\t}while(cr.moveToNext());\n\t\t\t\t\n\t\t\t}", "public void onClick(View v) {\n String userName=editTextUserName.getText().toString();\n String password=editTextPassword.getText().toString();\n\n// fetch the Password form database for respective user name\n String storedPassword = loginDataBaseAdapter.getSingleEntry(userName);\n\n// check if the Stored password matches with Password entered by user\n if(password.equals(storedPassword))\n {\n Intent intentMain = new Intent(getApplicationContext(),MainActivity.class);\n startActivity(intentMain);\n\n }\n else\n {\n Toast.makeText(SignINActivity.this, \"User Name or Password does not match\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_login);\n\t\tinit();\n\t\tString email=LocalStorage.getString(this, Constant.EMAIL);\n\t\tIntent intent=getIntent();\n\t\tintent.getStringExtra(Constant.RELOGIN);\n\t\tUserDao userdao=new UserDao(LoginActivity.this);\n\t\tString password=userdao.getPassord(email);\n\t\tif(intent.getStringExtra(Constant.RELOGIN)!=null&&intent.getStringExtra(Constant.RELOGIN).equals(Constant.RELOGIN)){\n\t\t\t email_login.setText(email);\t\t\t\n\t\t\t password_login.setText(password);\n\t\t}else if(email!=null&&!email.equals(\"\")){\n\t\t\t email_login.setText(email);\t\t\t\t\t \n\t\t\t password_login.setText(password);\n//\t\t\t if(status!=null&&status.equals(Constant.LOGINED)){\n//\t\t\t\t autologin(email, password);\n//\t\t\t }\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n\n\n\n String log, pass;\n log = login.getText().toString();\n pass = password.getText().toString();\n\n if (pass.equals(\"\") || log.equals(\"\")) {\n Toast.makeText(MainActivity.this, \"Заполните все поля\", Toast.LENGTH_SHORT).show();\n } else {\n SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"login\", log);\n if (checkBox.isChecked()) {\n editor.putString(\"pass\", pass);\n editor.putBoolean(\"isSave\", true);\n } else {\n editor.putBoolean(\"isSave\", false);\n }\n editor.apply();\n DataClient.login = log;\n DataClient.password = pass;\n Request request = new Request(\"AUTHORIZATION\", 101);\n Authorization authorization = new Authorization(request);\n authorization.execute();\n }\n\n }", "private void initIntent(Intent intent) {\n if (intent == null) {\n return;\n }\n\n\n String username = intent.getStringExtra(KEY_USERNAME);\n String password = intent.getStringExtra(KEY_PASSWORD);\n// Log.d(\"login activity\", \"string: \" + username);\n if (TextUtils.isEmpty(username) || TextUtils.isEmpty(password)) {\n return;\n }\n\n usernameEdt.setText(username);\n passwordEdt.setText(password);\n }", "private void redirectLoginScreen(Bundle bundle){\n Intent loginIntent = new Intent(PrivateUserRegActivity.this, LoginActivity.class);\n loginIntent.putExtras(bundle);\n startActivity(loginIntent);\n finish();\n }", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();", "public void loginToMain(View v){\n SharedPreferences.Editor editor = login.edit();\n editor.putString(\"LOGIN\", m_loginText.getText().toString());\n editor.commit();\n \n \n \tIntent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK && requestCode == REQUEST_CODE) {\n \t settings_params = data.getExtras().getString(\"api_params\");\n Toast.makeText(this, settings_params,\n Toast.LENGTH_LONG).show();\n\n }\n \n }", "public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }", "private void checkLogin() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String username = preferences.getString(\"username\", null);\n if(username==null){\n Intent intent = new Intent(this,LoginActivity.class);\n startActivity(intent);\n }\n else {\n /* if(preferences.getString(\"name\",null) ==null)\n Toast.makeText(HomeActivity.this, \"Hello \" +username, Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, \"Hello \" + preferences.getString(\"name\", \"username\"), Toast.LENGTH_SHORT).show();\n */}\n }", "protected String getAuthInfo ()\n\t{\n\t\treturn authInfo;\n\t}", "@Override\n public void onClick(View v) {\n gender = String.valueOf(spinnerGender.getSelectedItem().toString());\n birth = buttonBirth.getText().toString();\n System.out.println(birth);\n if(birth.isEmpty() || !isValidDate(birth)) {\n Toast.makeText(getApplicationContext(), \"Invalid Date\", Toast.LENGTH_LONG).show();\n return;\n }\n\n // next - authentication 2\n Intent intent = new Intent(getApplicationContext(), AuthenticationActivity_third.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n // pass data from Stage1\n intent.putExtra(\"username\", getIntent().getStringExtra(\"username\"));\n intent.putExtra(\"fullname\", getIntent().getStringExtra(\"fullname\"));\n intent.putExtra(\"email\", getIntent().getStringExtra(\"email\"));\n intent.putExtra(\"password\", getIntent().getStringExtra(\"password\"));\n\n // pass data from Stage2\n intent.putExtra(\"gender\", gender);\n intent.putExtra(\"birth\", birth);\n\n getApplicationContext().startActivity(intent);\n finish();\n }", "@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (!task.isSuccessful()) {\n //Log.d(\"Memorization Game\", \"Problem signing in: \" + task.getException());\n showErrorDialog(\"There was a problem signing in\");\n } else {\n //SharedPreferences mpreference = getSharedPreferences(\"user_email\", Context.MODE_PRIVATE);\n //mpreference.edit().putString(\"email\",email).apply();\n Intent intent = new Intent(Activity_login.this, Home.class);\n finish();\n startActivity(intent);\n }\n\n }", "@Override\n// this runs when the intent is sent to start the login function\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n// Setting the GUI to show\n setContentView(R.layout.activity_login);\n// setting all of the vairable values needed\n password=(EditText)findViewById(R.id.Password_Box);\n username=(EditText)findViewById(R.id.Username_Box);\n signIn = (Button) findViewById(R.id.Sign_In_Button);\n signIn.setOnClickListener(this);\n signUp = (Button) findViewById(R.id.Sign_Up_Button);\n signUp.setOnClickListener(this);\n progress = (TextView)findViewById(R.id.progress);\n }", "@Override\n public void onClick(View v) {\n String Password=login_password.getText().toString();\n String ID = login_id.getText().toString();\n\n String storedPassword=loginDataBaseAdapter.getSinlgeEntry(Password);\n String storedUSername=loginDataBaseAdapter.getSinlgeEntry2(ID);\n String storedEmail = loginDataBaseAdapter.getSinlgeEntryEmail(ID);\n if(Password.equals(\"123\")&&ID.equals(\"123\")){\n Toast.makeText(Login.this, \"Login Successfully\", Toast.LENGTH_LONG).show();\n Intent ii=new Intent(Login.this,MainActivity.class);\n startActivity(ii);\n }\n if(Password.equals(storedPassword)&&ID.equals(storedUSername))\n {\n Toast.makeText(Login.this, \"Login Successfully\", Toast.LENGTH_LONG).show();\n Intent ii=new Intent(Login.this,MainActivity.class);\n ii.putExtra(\"ID\",storedUSername);\n ii.putExtra(\"EMAIL\",storedEmail);\n startActivity(ii);\n }\n else\n if(Password.equals(\"\")||ID.equals(\"\")){\n Toast.makeText(Login.this, \"Please Enter Your id/Password\", Toast.LENGTH_LONG).show();\n }\n else\n {\n Toast.makeText(Login.this, \"incorect password/id\", Toast.LENGTH_LONG).show();\n }\n }", "private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}", "private void setBundles(Bundle bundle, Intent intent) {\n bundle.putString(getString(R.string.uuid_key), mUserId);\n bundle.putString(getString(R.string.password_key), mPasswordInput.getText().toString());\n intent.putExtra(getString(R.string.uuid_key), mUserId);\n intent.putExtra(getString(R.string.password_key), mPasswordInput.getText().toString());\n }", "@Override\n public void onClick(View arg) {\n mUsername = ((EditText) findViewById(R.id.username)).getText().toString();\n mPassword = ((EditText) findViewById(R.id.password)).getText().toString();\n // Validate the username and password for null or empty.\n if (!isValidInput()) {\n Toast.makeText(LoginScreenActivity.this, R.string.invalid_user_credentials, Toast.LENGTH_SHORT).show();\n return;\n }\n performOAuthLogin(arg);\n finish();\n\n }", "public void onClick(View v) {\n String mail=email.getText().toString();\n String password=pass.getText().toString();\n \n // fetch the Password form database for respective user name\n String storeddata=loginDataBaseAdapter.getSinlgeEntry(mail);\n \n // check if the Stored password matches with Password entered by user\n if(password.equals(storeddata))\n {\n // Toast.makeText(SignIn.this, \"Login Successfull\", Toast.LENGTH_LONG).show();\n launchRingDialog(v);\n Intent intent=new Intent(context,My_Dropbox.class);\n startActivity(intent);\n }\n \n else\n {\n \n Toast.makeText(SignIn.this, \"Invalid Email or Password\", Toast.LENGTH_LONG).show();\n }\n \n }", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_login);\n initViews();\n buttonRegister.setOnClickListener(this);\n buttonlog1.setOnClickListener(this);\n\n firebaseAuth = FirebaseAuth.getInstance();\n\n progressDialog = new ProgressDialog(this);\n\n users = FirebaseDatabase.getInstance().getReference(\"users\");\n\n //usuario = firebaseAuth.getCurrentUser().getEmail();\n\n String email = editTextEmail.getText().toString();\n String password= editTextPassword.getText().toString();\n }", "public void run() {\n Intent intent = new Intent(SignupActivity.this, HomeActivity.class);\n SignupActivity.this.startActivity(intent);\n\n Context context = getApplicationContext();\n CharSequence text = \"welcome \" + email;\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n finish();\n\n // onLoginFailed();\n progressDialog.dismiss();\n }", "String getExtra();", "@Override\n public void onClick(View v) {\n String emailUser,userPassword,userConfirm;\n emailUser = email.getText().toString().trim();\n userPassword = password.getText().toString().trim();\n userConfirm = confirmPassword.getText().toString().trim();\n }", "@Override\n public void onClick(View view) {\n SharedPreferences sharedPreferences = getSharedPreferences(USERNAME_KEY, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(username_key, null);\n editor.putString(password_key, null);\n editor.putString(email_key, null);\n editor.apply();\n\n //pindah ke signin activity\n Intent intent = new Intent(ProfilActivity.this, SigninActivity.class);\n startActivity(intent);\n finish();\n }", "public void getLocal(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n user = preferences.getString(\"Username\", \"\");\n email = preferences.getString(\"Email\", \"\").replace(\".\", \",\");\n role = preferences.getString(\"Role\", \"\");\n }", "private void receiveData()\n {\n Intent i = getIntent();\n loginStatus = i.getIntExtra(\"Login_Status\", 0);\n deviceStatus = i.getIntExtra(\"Device_Status\", 0);\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.secondxml);\r\n\t\tet1=(EditText)findViewById(R.id.editText2);\r\n\t\tIntent i=getIntent();\r\n\t\r\n\ts2= i.getStringExtra(IntentsActivity.EXTRA_MESSAGE);\r\n\t//i.setData(Uri.parse(et1.getText().toString()));\r\n\tToast.makeText(getBaseContext(),s2,Toast.LENGTH_LONG).show();\r\n\t\r\n\t Bundle receive=new Bundle();\r\n\t\treceive=getIntent().getExtras();\r\n\t\tname=receive.getString(\"key\");\r\n\t\tet1.setText(\"Welcome \"+name);\r\n\t \r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t//\tsetResult(RESULT_OK,i);\r\n\t\t//Toast.makeText(getBaseContext(), s2,Toast.LENGTH_SHORT).show();\r\n\t//\tTextView textView = new TextView(this);\r\n\t // textView.setTextSize(40);\r\n\t// textView.setText(\"my page\"+message);\r\n\t\t\r\n\t\t//setContentView(textView);\r\n\t}", "public void loginProcessing(RedActivity view){\n\n Log.d(\"franco\",\"insideloginProcess\");\n Log.d(\"franco\",\"validFlag: **\" + validFlag + \"**\");\n if (validFlag.equals(\"valid\")) {\n Intent goToIntent = new Intent(this, BlueActivity.class);\n startActivity(goToIntent);\n } else\n Toast.makeText(this, \"Wrong username or password, try again\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n pwd = (EditText)findViewById(R.id.pwd);\n Button submit= (Button)findViewById(R.id.submit);\n\n submit.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View arg0) {\n passwrd = pwd.getText().toString();\n if(passwrd.equals(\"neha\"))\n {\n Intent intent = new Intent(\"com.droid.todo.HOME\");\n startActivity(intent);\n finish();\n }\n else\n \n Toast.makeText(getApplicationContext(),\"Wrong password\",Toast.LENGTH_LONG).show();\n }\n });\n }", "public void authUser(){\n\n String emptyString = \"\";\n if(!(String.valueOf(userName.getText()).equals(emptyString) ||\n String.valueOf(userNumber.getText()).equals(emptyString))){\n\n SharedPreferences preferences = getApplicationContext().getSharedPreferences(\"user_info\", 0);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(getResources().getString(R.string.isLoggedIn), true);\n editor.putString(getResources().getString(R.string.userName), String.valueOf(userName.getText()));\n editor.putString(getResources().getString(R.string.userNumber), String.valueOf(userNumber.getText()));\n editor.apply();\n\n Intent intent = new Intent(getApplicationContext(), HomeScreen.class);\n\n startActivity(intent);\n }\n else{\n Toast.makeText(getApplicationContext(),\n \"Please enter compelete credentials..\", Toast.LENGTH_SHORT)\n .show();\n }\n\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n //startActivity(new Intent(MainActivity.this, VentanaInicio.class));\n Intent intent = new Intent(getApplicationContext(), VentanaInicio.class);\n\n intent.putExtra(\"string_usuario\", email);\n\n startActivity(intent);\n //finish es para que no pueda volver a la pantalla anterior\n finish();\n }\n //Si no\n else {\n Toast.makeText(MainActivity.this, \"No se pudo iniciar la sesión, compruebe los datos\", Toast.LENGTH_SHORT).show();\n }\n }", "public void onLoginSuccess() {\n loginButton.setEnabled(true);\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n intent.putExtra(\"email\", emailText.getText().toString());\n intent.putExtra(\"name\", loginDataBaseAdapter.getName(emailText.getText().toString()));\n startActivity(intent);\n //finish();\n }", "private void extractDataFromBundle() {\n Intent intent = getIntent();\n Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY);\n\n mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY);\n mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainActivity.GAME_PIECE_KEY);\n\n }", "public void customerLoginClicked(View view){\n if(empID==null || db == null){\n return;\n }\n try{\n int eID = Integer.parseInt(empID.getText().toString());\n String password = empPass.getText().toString();\n Employee emp = db.employeeDAO().getEmployee(eID);\n if(Objects.equals(emp.getPassword(), password))\n {\n Toast.makeText(this, \"Welcome \"+emp.getEmpName(),Toast.LENGTH_SHORT).show();\n //String ename = emp.getEmpName();\n Intent i = new Intent(this, LoggedInActivity.class);\n editor.putInt(\"empID\", eID);\n editor.commit();\n startActivity(i);\n }\n else\n {\n throw new Exception();\n }\n }catch (Exception e){\n e.printStackTrace();\n Toast.makeText(this, \"Unable to login. Please check your ID! and password\",Toast.LENGTH_SHORT).show();\n }\n }", "private void signInUidPass(){\n mAuth.signInWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(Constants.TAG, \"signInwithEmail: onComplete:\" + task.isSuccessful());\n if(!task.isSuccessful()){\n Log.w(Constants.TAG, \"signInwithEmail: failed\", task.getException());\n }\n }\n });\n }", "public void login(View view) throws JSONException{\n final String username = txtID.getText().toString().trim();\n final String password = txtPassword.getText().toString().trim();\n\n //Creating a string request\n StringRequest stringRequest = new StringRequest(Request.Method.POST, Config.LOGIN_URL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //If we are getting success from server\n Log.d(\"tag\", \"onResponse: \"+ response);\n JSONObject responseJSON = null;\n try {\n responseJSON = new JSONObject(response);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n String status = null;\n try {\n if (responseJSON != null) {\n status = responseJSON.getString(\"status\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n // String userName = responseJSON.getString(\"user\");\n if(status.equalsIgnoreCase(Config.LOGIN_SUCCESS)) {\n\n String first_name = responseJSON.getString(\"firstName\");\n String last_name = responseJSON.getString(\"lastName\");\n String age = responseJSON.getString(\"age\");\n String doctor_id = responseJSON.getString(\"doctor_id\");\n\n\n //Creating a shared preference\n //SharedPreferences sharedPreferences = Login_Activity.this.getSharedPreferences(Config.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n\n //Creating editor to store values to shared preferences\n //SharedPreferences.Editor editor = sharedPreferences.edit();\n\n //Adding values to editor\n //editor.putBoolean(Config.LOGGEDIN_SHARED_PREF, true);\n //editor.putString(Config.USER_SHARED_PREF, username);\n //Saving values to editor\n //editor.commit();\n //Starting profile activity\n // Toast.makeText(Login_Activity.this,\"Success from params\", Toast.LENGTH_LONG).show();\n\n Intent intent = new Intent(Login_Activity.this, User_Activity.class);\n intent.putExtra(\"ID\", username);\n intent.putExtra(\"firstName\", first_name);\n intent.putExtra(\"lastName\", last_name);\n intent.putExtra(\"age\", age);\n intent.putExtra(\"doctor_id\", doctor_id);\n startActivity(intent);\n }else{\n //If the server response is not success\n //Displaying an error message on toast\n Toast.makeText(Login_Activity.this, \"Invalid username or password\", Toast.LENGTH_LONG).show();\n }\n }\n catch (JSONException e) {\n e.printStackTrace();}\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n //You can handle error here if you want\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> params = new HashMap<>();\n //Adding parameters to request\n params.put(Config.KEY_USERNAME, username);\n params.put(Config.KEY_PASSWORD, password);\n\n //returning parameter\n return params;\n }\n\n @Override\n public byte[] getBody() throws AuthFailureError {\n JSONObject jsonObject = new JSONObject();\n try {\n jsonObject.put(Config.KEY_USERNAME, username);\n jsonObject.put(Config.KEY_PASSWORD, password);\n }catch(JSONException e)\n {\n\n }\n\n return jsonObject.toString().getBytes() ;\n }\n @Override\n public String getBodyContentType() {\n return \"application/json\";\n }\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n }", "private void performOAuthLogin(View arg) {\n hideKeyboard(arg);\n // Pass the username and password to the OAuth login activity for OAuth login.\n // Once the login is successful, we automatically check in the merchant in the OAuth activity.\n Intent intent = new Intent(LoginScreenActivity.this, OAuthLoginActivity.class);\n intent.putExtra(\"username\", mUsername);\n intent.putExtra(\"password\", mPassword);\n String serverName = mServerName;\n if(null != serverName && serverName.equals(PayPalHereSDK.ControlledSandbox)){\n serverName = PayPalHereSDK.Live;\n }\n intent.putExtra(\"servername\",serverName);\n startActivity(intent);\n\n }", "public void onClicked(View check, View emailTxt, View passwordTxt) {\n\n try {\n email = ((EditText) emailTxt).getText().toString();\n password = ((EditText) passwordTxt).getText().toString();\n CheckBox checkbox = ((CheckBox) check);\n\n\n if (!email.isEmpty() && !password.isEmpty()) {\n\n SharedPreference_Login login=new SharedPreference_Login(activity);\n\n //check the auth data saved\n if (new SharedPreference_Auth(activity).IsExpired()\n && (email.equals(login.emailOriginal())&&password.equals(login.passwordOriginal())))\n {\n\n Intent intent = new Intent(activity, ActivityMain.class);\n activity.startActivity(intent);\n activity.finish();\n\n\n } else {\n JsonReceiver jsonReceiver = new JsonReceiver(activity, \"https://puresoftware.org/user/en/oauth2/access/token.json\");\n Map<String, String> parser = new HashMap<String, String>();\n parser.put(\"grant_type\", \"password\");\n parser.put(\"username\", email);\n parser.put(\"password\", password);\n parser.put(\"scope\", \"climax\");\n jsonReceiver.post(parser,processor);\n }\n } else {\n checkbox.setChecked(false);\n ((EditText) emailTxt).getText().clear();\n ((EditText) passwordTxt).getText().clear();\n Toast.makeText(activity, \"please fill text boxes\", Toast.LENGTH_LONG).show();\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void displayLogin(View view,String resp_content){\n\n try{\n arrayLogin = restProcess.getJsonData(resp_content);\n\n if (arrayLogin.get(0).get(\"var_result\").equals(\"1\")){\n Intent main_intent = new Intent(LoginActivity.this, MainActivity.class);\n startActivity(main_intent);\n finish();\n\n } else if (arrayLogin.get(0).get(\"var_result\").equals(\"0\")){\n Toast.makeText(LoginActivity.this,\"Koneksi Gagal ! 3\",Toast.LENGTH_LONG).show();\n\n }\n\n } catch (JSONException e) {\n Toast.makeText(LoginActivity.this,\"Koneksi Gagal ! 4\",Toast.LENGTH_LONG).show();\n }\n\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode==RESULT_OK){\n try{\n String returnLogin = data.getStringExtra(\"LOGIN\");\n String returnPass = data.getStringExtra(\"PASSWORD\");\n setExisting(returnLogin, returnPass);\n }catch (NullPointerException e){\n Log.d(\"ACTIVITY_TRANSITION\",\"Register Activity return null data.\");\n }\n }else if(resultCode==RESULT_CANCELED){\n Log.d(\"ACTIVITY_TRANSITION\", \"Registration cancelled\");\n }\n }", "@Override\n public void onClick(View v) {\n SharedPreferences sharedPreferences = getSharedPreferences( USERNAME_KEY, MODE_PRIVATE );\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString( USERNAME_key, null );\n editor.apply();\n\n //berpindah activity\n Intent gotohome = new Intent(My_ProfilAct.this,SignInAct.class);\n startActivity( gotohome );\n finish();\n }", "public void onClick(View view){\n String name = Name.getText().toString();\n String age = Age.getText().toString();\n\n // Change Main Activity into NewActivity in screen through intent.\n Intent intent = new Intent(getApplicationContext(), NewActivity.class);\n\n // Send data values that name and age .\n intent.putExtra(\"loginName\", name);\n intent.putExtra(\"loginAge\", age);\n\n startActivity(intent);\n }", "public static String getOAuth(final Bundle bundle) {\n return bundle.getString(Constants.BUNDLE_STRING_OAUTH, null);\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n //check password and username before proceeding to login page\n Intent intent = new Intent(MainActivity.this, LoginSuccessActivity.class);\n intent.putExtra(\"USERNAME\", inputUsername);\n intent.putExtra(\"PASSWORD\", inputPassword);\n startTrackerService();\n startActivityForResult(intent, 1);\n } else {\n // password does not match email\n Toast.makeText(MainActivity.this, \"Invalid Password\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public void signInUser(){\n Intent intent = new Intent(this, AuthUiActivity.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n Intent intent = new Intent(methodWithdrawal.this, AccessCode.class);\r\n amt =Float.parseFloat(getIntent().getExtras().getString(\"amount\"));\r\n acc_type=getIntent().getExtras().getString(\"acc_type\");\r\n pin=Integer.parseInt(getIntent().getExtras().getString(\"pin\"));\r\n acc=Integer.parseInt(getIntent().getExtras().getString(\"acc\"));\r\n method_used=\"access\";\r\n System.out.println(\"pin=\"+pin);\r\n System.out.println(\"amt=\"+amt);\r\n System.out.println(\"acc=\"+acc);\r\n System.out.println(\"acc_type=\"+acc_type);\r\n\r\n\r\n\r\n intent.putExtra(\"amount\",String.valueOf(amt));\r\n intent.putExtra(\"pin\",String.valueOf(pin));\r\n intent.putExtra(\"acc_type\",acc_type);\r\n intent.putExtra(\"acc\",String.valueOf(acc));\r\n intent.putExtra(\"method_used\",method_used);\r\n startActivity(intent);\r\n }", "public static Pair<String, String> getLoginInfo(Context context) {\n SharedPreferences sharePreference = context.getSharedPreferences(preferenceName, Context.MODE_PRIVATE);\n byte[] emailRaw = Base64.decode(sharePreference.getString(KEY_EMAIL, \"\"), Base64.DEFAULT);\n byte[] pwdRaw = Base64.decode(sharePreference.getString(KEY_PWD, \"\"), Base64.DEFAULT);\n return new Pair<>(new String(emailRaw), new String(pwdRaw));\n }", "@Override\n public void onClick(View v) {\n Bundle bdl = new Bundle();\n String emailid = txt_Body.getText().toString().trim();\n String Subject = txt_Subject.getText().toString().trim();\n bdl.putString(\"body\", EmailBody);\n bdl.putString(\"subject\", Subject);\n Intent intent1 = new Intent(Emails_DetailsActivity.this,\n Email_Forword_Activity.class);\n intent1.putExtras(bdl);\n startActivity(intent1);\n }", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(DriverPrefrActivity.this, SearchParkActivity.class);\n //Creating a bundle\n Bundle bundle = new Bundle();\n //Adding values to bundle\n bundle.putString(\"driverlargecar\", String.valueOf(largecar));\n bundle.putString(\"drivertype\", String.valueOf(type));\n bundle.putString(\"driverprice\", String.valueOf(price));\n bundle.putString(\"driverdistancepklot\", String.valueOf(distpklot));\n\n myIntent.putExtra(\"mybundle\", bundle);\n startActivity(myIntent);\n }", "public void login(View view) {\n\n validateLogin(email.getText().toString(), pw.getText().toString());\n\n/*\n Intent i = new Intent(LoginActivity.this, MainActivity.class);\n startActivity(i);\n finish();\n\n */\n\n }", "@Override\n public void onClick(View v) {\n GREETER=edit.getText().toString();\n\n //Acceder al segundo Activity y mandarle un string\n Intent intent=new Intent(MainActivity.this,SecondActivity.class);\n intent.putExtra(\"greeter\",GREETER); //ID + dato a enviar a Second Acitivty\n startActivity(intent);\n }", "@Override\n public void onClick(View v)\n {\n String inputEmail = email.getText().toString();\n String inputPasswd = passwd.getText().toString();\n // Login\n fbAuth\n .signInWithEmailAndPassword(inputEmail, inputPasswd)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>()\n {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task)\n {\n // Login error\n if (!task.isSuccessful())\n {\n // Snackbar\n Snackbar.make(\n btnLog,\n getString(R.string.error_ema_or_pass),\n Snackbar.LENGTH_LONG\n // OK button in the Snackbar\n ).setAction(R.string.action_ok, new View.OnClickListener()\n {\n @Override\n public void onClick(View v)\n {\n // Dismiss the Snackbar\n }\n\n }).show();\n } else\n {\n // UID of logged-in user\n String uid = fbAuth.getCurrentUser().getUid();\n // Firebase Instance\n fbDatabase = FirebaseDatabase.getInstance();\n // Reference to logged-in user\n DatabaseReference userReference = fbDatabase.getReference()\n .child(\"usuarios/\" + uid);\n\n userReference.addListenerForSingleValueEvent(new ValueEventListener()\n {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot)\n {\n if (dataSnapshot.hasChildren())\n {\n // Get logged user data\n /*User user = dataSnapshot.getValue(User.class);\n // Crate a Bundle\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"_user\", user);*/\n // Main Activity\n Intent intent = new Intent(\n LoginActivity.this,\n MainActivity.class\n );\n // Storage data in the Intent\n /*intent.putExtras(bundle);*/\n // Launch the intent\n startActivity(intent);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError)\n {\n\n }\n });\n }\n }\n });\n }", "@Override\r\n public void onClick(View v) {\n Intent i = new Intent(verify_list.this, Verify_a_donor.class);\r\n i.putExtra(\"name\", name_text);\r\n i.putExtra(\"username\", username_text);\r\n i.putExtra(\"blood\", bloodtext);\r\n i.putExtra(\"phno\", phnotext);\r\n i.putExtra(\"admin\", admin);\r\n startActivity(i);\r\n }", "@Override\n public void onClick(View view) {\n if(MainActivity.userID==null) {\n Intent intent = new Intent(SignupActivity.this, LoginActivity.class);\n startActivityForResult(intent,2000);\n }\n else{\n //마이페이지 고고\n Intent intent = new Intent(SignupActivity.this, MypageActivity.class);\n //intent.putExtra(\"sauce name\",name );\n //intent.putExtra(\"userID\",userID);\n startActivity(intent);\n }\n }", "private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }", "@Override\n public void onResponse(Call call, Response response) throws IOException {\n Log.d(\"OUTY\", response.body().string());\n\n\n if (response.isSuccessful()){\n try{\n startActivity(newIntent);\n JSONObject ob = new JSONObject(response.body().string());\n\n // Check submission status and inform user\n if(ob.get(\"status\").equals(\"submissionSuccess\")){\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n status.setText(\"Login Success\");\n\n // Move to next Activity\n startActivity(newIntent);\n }\n });\n\n } else {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n status.setText(\"Submission Fail\");\n }\n });\n }\n\n }catch (Exception e){\n System.out.println(e);\n }\n }\n }", "private void handleResult(GoogleSignInResult result)\n {\n // If login success\n if(result.isSuccess())\n {\n // Obtain user properties from sign in\n GoogleSignInAccount account = result.getSignInAccount();\n String name = account.getDisplayName();\n String email = account.getEmail();\n String imageUrl = account.getPhotoUrl().toString();\n\n // Pass the values to the landing page\n Intent intent = new Intent(MainActivity.this, LandingPageActivity.class);\n intent.putExtra(IntentConstants.INTENT_SIGNIN_NAME, name);\n intent.putExtra(IntentConstants.INTENT_SIGNIN_EMAIL, email);\n intent.putExtra(IntentConstants.INTENT_SIGNIN_PHOTO, imageUrl);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }\n else\n {\n Toast.makeText(getApplicationContext(), \"Unable to sign in. Try again\", Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n pseudo = (EditText)findViewById(R.login.pseudo);\n mdp = (EditText)findViewById(R.login.password);\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t\tString ac=account.getText().toString();\r\n\t\t\tString ppString=pwd.getText().toString();\r\n\t\t\tif (ac.equals(\"admin\") && ppString.equals(\"123456\")) {\r\n\t\t\t\teditor=preferences.edit();\r\n\t\t\t\tif (reBox.isChecked()) {\r\n\t\t\t\t\teditor.putBoolean(\"remeber\", true);\r\n\t\t\t\t\teditor.putString(\"account\", ac);\r\n\t\t\t\t\teditor.putString(\"pwd\", ppString);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\teditor.clear();\r\n\t\t\t\t}\r\n\t\t\t\teditor.commit();\r\n\t\t\t\tIntent intent=new Intent(LoginActivity.this,MainActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\tfinish();\r\n\t\t\t}else {\r\n\t\t\t\tToast.makeText(LoginActivity.this, \"²»ÕýÈ·\", 1).show();\r\n\t\t\t}\r\n\t\t}", "public java.lang.String getAuthId(){\r\n return localAuthId;\r\n }", "@Override\n public void onClick(View v) {\n\n userN =firstname.getText().toString();\n userL =lastName.getText().toString();\n gender = spin.getSelectedItem().toString();\n problem = reason.getText().toString();\n\n Intent intentsend = new Intent(getApplication(),profile.class);\n intentsend.putExtra(\"userN\",firstname.getText().toString());\n intentsend.putExtra(\"userL\", lastName.getText().toString());\n intentsend.putExtra(\"gender\",spin.getSelectedItem().toString());\n intentsend.putExtra(\"problem\",reason.getText().toString());\n startActivity(intentsend);\n }", "public void onClickAuthentication(View view) {\n Intent i = new Intent(this, TestActivity.class);\n i.putExtra(\"providerType\", ProviderType.AUTHENTICATION);\n startActivity(i);\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n //get the retrieved data\n Uri twitURI = intent.getData();\n //make sure the url is correct\n if (twitURI != null && twitURI.toString().startsWith(TWIT_URL)) {\n //is verifcation - get the returned data\n String oaVerifier = twitURI.getQueryParameter(\"oauth_verifier\");\n new RetrieveAuthData().execute(oaVerifier);\n }\n }", "@Override\r\n public void onClick(View v) {\n String email = editTextEmail.getText().toString().trim();\r\n String password = editTextPassword.getText().toString().trim();\r\n //predefined users\r\n User admin = new User(\"admin2\",\"admin2\",\"admin2\");\r\n User testuser1 = new User(\"testuser1\",\"testuser1\",\"testuser1\");\r\n db.insert(admin);\r\n db.insert(testuser1);\r\n //getting user from login\r\n User user = db.getUser(email, password);\r\n\r\n //checking if there is a user\r\n if (user != null) {\r\n Intent i = new Intent(MainActivity.this, HomeActivity.class);\r\n i.putExtra(ACTIVE_USER_KEY, user);\r\n startActivity(i);\r\n //finish();\r\n }else{\r\n Toast.makeText(MainActivity.this, \"Unregistered user, or incorrect password\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listview);\n intit = false; \n Bundle extras = getIntent().getExtras();\n if (extras != null) {\n ipaddress = extras.getString(\"IPaddress\");\n user = extras.getString(\"username\");\n pass = extras.getString(\"password\");\n }\n \n text1 = (TextView)findViewById(R.id.infoTV);\n \n \n Log.i(\"MyHome\", user + \" \" + pass + \" \" + ipaddress);\n \n \n ServerThread srvThread = new ServerThread(this);\n srvThread.execute(\"init\");\n\n }", "public void viewdata() {\n\n login.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Cursor res = mydb.getData(user.getText().toString(), p.getText().toString());\n\n if (res.getCount() == 0) {\n\n showmessage(\"ERROR\", \"INVALID USER NAME OR PASSWORD\");\n user.setText(\"\");\n p.setText(\"\");\n return;\n\n }\n\n Intent i = new Intent(MainActivity.this,Details.class);\n i.putExtra(\"name\",user.getText().toString());\n i.putExtra(\"pwd\",p.getText().toString());\n user.setText(\"\");\n p.setText(\"\");\n startActivity(i);\n }\n });\n\n }", "@Override\n public void run() {\n\n intent = new Intent(getApplicationContext(), UserMenuActivity.class);\n intent.putExtra(\"EMAIL_ID\", txtloginEmail.getText().toString());\n intent.putExtra(\"CLIENT_ID\", clientId.toString());\n startActivity(intent);\n dialogObject.dismiss();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.main_login);\r\n\r\n\t\t// 获取附加码\r\n\t\tloaderData();\r\n\r\n\t\t// 显示附加码\r\n\t\tshowec = (TextView) findViewById(R.id.loginbox).findViewById(R.id.extraCode);\r\n\t\tshowec.setText(extraCode);\r\n\t\t\r\n\t\t//刷新附加码\r\n\t\tshowec.setOnClickListener(new OnClickListener() {\r\n\t\t\t\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\t\r\n\t\t\t\t// 获取附加码\r\n\t\t\t\tloaderData();\r\n\t\t\t\t\r\n\t\t\t\t// 显示附加码\r\n\t\t\t\tshowec.setText(extraCode);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tuserid = (EditText) findViewById(R.id.login_box).findViewById(R.id.nameEdit);\r\n\t\tpassword = (EditText) findViewById(R.id.login_box).findViewById(R.id.passwdEdit);\r\n\t\textracode = (EditText) findViewById(R.id.login_box).findViewById(R.id.pyramidEdit);\r\n\r\n\t\t// 登录按钮\r\n\t\tbtn_login = (Button) findViewById(R.id.login_box).findViewById(R.id.btn_userlogin);\r\n\t\tbtn_login.setOnClickListener(new 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\tuserId = userid.getText().toString();\r\n\t\t\t\tpassWord = password.getText().toString();\r\n\t\t\t\tInputCode = extracode.getText().toString();\r\n\t\t\t\tif (InputCode.equals(extraCode)) {\r\n\r\n\t\t\t\t\tif (!userId.equals(\"\")) {\r\n\r\n\t\t\t\t\t\tif (!passWord.equals(\"\")) {\r\n\r\n\t\t\t\t\t\t\tif (EHelper.hasInternet(Login.this)) {\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t// 将用户名和密码发送到服务端进行验证\r\n\t\t\t\t\t\t\t\t\tJSONObject json = ConnectWs.connect(Login.this, EAccType.NULL,\r\n\t\t\t\t\t\t\t\t\t\t\tEOperation.LOGIN, userId, passWord, InputCode);\r\n\t\t\t\t\t\t\t\t\t// 将JSON数据转换为boolean型\r\n\t\t\t\t\t\t\t\t\tloginflag = EHelper.toBoolean(json);\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\tif (loginflag) {\r\n\t\t\t\t\t\t\t\t\t\t// 登录成功\r\n\t\t\t\t\t\t\t\t\t\tFinanceAss.loginstatus = true;\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (EHelper.hasInternet(Login.this)) {\r\n\t\t\t\t\t\t\t\t\t\t\ttry {\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\tJSONObject json2 = ConnectWs.connect(Login.this, EAccType.NULL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tEOperation.GET_USER_INFO, userId);\r\n\t\t\t\t\t\t\t\t\t\t\t\t// 将JSON数据转换为MAP型\r\n\t\t\t\t\t\t\t\t\t\t\t\tMap<String, String> userinfo = EHelper.toMap(json2);\r\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(json2.toString());\r\n\t\t\t\t\t\t\t\t\t\t\t\tuserName = userinfo.get(\"userName\").toString();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlogintimes = userinfo.get(\"loginTimes\").toString();\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(Login.this, \"对不起,服务器未连接\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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} else {\r\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(Login.this, \"没有连接网络\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tintent.putExtra(\"logintimes\", logintimes);\r\n\t\t\t\t\t\t\t\t\t\tintent.setClass(Login.this, BankMain.class);\r\n\t\t\t\t\t\t\t\t\t\tLogin.this.startActivity(intent);\r\n\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t// 登录失败\r\n\t\t\t\t\t\t\t\t\t\tMyDialogOne dialog = new MyDialogOne(Login.this, R.style.dialog);\r\n\t\t\t\t\t\t\t\t\t\tdialog.setTitleAndInfo(\"登录手机银行\", \"\\n登录失败!\\n用户名或密码输入错误!\");\r\n\t\t\t\t\t\t\t\t\t\tdialog.show();\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t\tToast.makeText(Login.this, \"对不起,服务器未连接\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tToast.makeText(Login.this, \"没有连接网络\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t// 用Dialog提示密码为空\r\n\t\t\t\t\t\t\tMyDialogOne dialog = new MyDialogOne(Login.this, R.style.dialog);\r\n\t\t\t\t\t\t\tdialog.setTitleAndInfo(\"登录手机银行\", \"\\n\\n密码不能为空!\");\r\n\t\t\t\t\t\t\tdialog.show();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t// 用Dialog提示用户名为空\r\n\t\t\t\t\t\tMyDialogOne dialog = new MyDialogOne(Login.this, R.style.dialog);\r\n\t\t\t\t\t\tdialog.setTitleAndInfo(\"登录手机银行\", \"\\n\\n用户号不能为空!\");\r\n\t\t\t\t\t\tdialog.show();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// 用Dialog提示附加码不正确\r\n\t\t\t\t\tMyDialogOne dialog = new MyDialogOne(Login.this, R.style.dialog);\r\n\t\t\t\t\tdialog.setTitleAndInfo(\"登录手机银行\", \"\\n\\n附加码不正确!\");\r\n\t\t\t\t\tdialog.show();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// 设置底部选项卡\r\n\t\tbankmain = (ImageView) findViewById(R.id.mainbelow).findViewById(R.id.btnMain);\r\n\t\tbankmain.setImageResource(R.drawable.main_sjyh);\r\n//\t\tbankmain.setImageResource(R.drawable.main_sjyh2);\r\n\t\tbankmain.setOnClickListener(new 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\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbankhelp = (ImageView) findViewById(R.id.mainbelow).findViewById(R.id.btnHelper);\r\n\t\tbankhelp.setImageResource(R.drawable.main_jrzs);\r\n//\t\tbankhelp.setImageResource(R.drawable.main_jrzs2);\r\n\t\tbankhelp.setOnClickListener(new 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\r\n\t\t\t\tintent = new Intent(Login.this, FinanceAss.class);\r\n\t\t\t\tintent.addFlags(intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\t\t\tLogin.this.startActivity(intent);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n progressBar.dismiss();\n setSnackBar(linearLayout,\"Check Your Email and Password\");\n // there was an error\n } else {\n progressBar.dismiss();\n session.createLoginSession(loginemail,loginpassword);\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n editor = settings.edit();\n editor.putString(\"password\", loginpassword);\n editor.putString(\"email\",loginemail);\n String key = loginemail.replace(\"@\",\"1\");\n String uniqkey = key.replace(\".\",\"2\");\n editor.putString(\"uid\", uniqkey);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // Add new Flag to start new Activity\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n Toasty.success(LoginActivity.this,\"Login Successfull\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "@Override\n public void onClick(View v) {\n username = mUsernameView.getText().toString();\n password = mPasswordView.getText().toString();\n login();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_login);\n\n// try{\n// Bundle bundle = this.getIntent().getExtras();//新页面接收数据\n// flag = bundle.getBoolean(\"flag\");\n// }catch (Exception e){\n// e.printStackTrace();\n// }\n\n et_user = (EditText) findViewById(R.id.et_user);\n et_pass = (EditText) findViewById(R.id.et_pass);\n rememberPass = (CheckBox) findViewById(R.id.cb_rememberPass);\n autoLogin = (CheckBox) findViewById(R.id.cb_autoLogin);\n login = (Button) findViewById(R.id.btn_login);\n reg = (Button) findViewById(R.id.btn_reg);\n\n sharedPreferences = getSharedPreferences(\"user\", Context.MODE_PRIVATE);\n editor = sharedPreferences.edit();\n et_user.setText(sharedPreferences.getString(\"username\",null));\n et_pass.setText(sharedPreferences.getString(\"password\",null));\n rememberPass.setChecked(sharedPreferences.getBoolean(\"remember\",false));\n boolean auto_login = sharedPreferences.getBoolean(\"autoLogin\",false);\n// if(auto_login == true){\n// Intent intent = new Intent(LoginActivty.this,MainActivity.class);\n// startActivity(intent);\n// finish();\n// }\n\n login.setOnClickListener(new View.OnClickListener(){\n\n @Override\n public void onClick(View v) {\n String username = et_user.getText().toString();\n String password = et_pass.getText().toString();\n\n dbHelper = new DBHelper(getApplicationContext());\n\n boolean state = dbHelper.login(username,password);\n\n if(state == true){\n Toast.makeText(LoginActivty.this, \"用户名密码正确\", Toast.LENGTH_SHORT).show();\n\n if(rememberPass.isChecked()){\n editor.putString(\"username\",username);\n editor.putString(\"password\",password);\n editor.putBoolean(\"remember\",true);\n editor.commit();\n if(autoLogin.isChecked()){\n editor.putBoolean(\"autoLogin\",true);\n editor.commit();\n }\n }\n Intent intent = new Intent(LoginActivty.this,MainActivity.class);\n MainActivity.flag = true;\n startActivity(intent);\n finish();\n }else {\n Toast.makeText(LoginActivty.this, \"用户名或密码错误\", Toast.LENGTH_SHORT).show();\n //et_user.setText(\"\");\n et_pass.setText(\"\");\n }\n }\n });\n\n reg.setOnClickListener(new View.OnClickListener(){\n\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(LoginActivty.this,RegActivity.class);\n startActivity(intent);\n }\n });\n\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n Toast.makeText(getApplicationContext(), new String(response),\n Toast.LENGTH_SHORT).show();\n pDialog.dismiss();\n Log.e(\"response\", new String(response));\n\n SharedPreferences.Editor editor = getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE).edit();\n editor.putString(\"user\", user);\n editor.putString(\"pass\", pass);\n editor.putBoolean(\"done\", true);\n editor.commit();\n\n startActivity(new Intent(LoginActivity.this, MainActivity.class));\n\n finish();\n }", "@Override\r\n public void onClick(View v) {\n String un = user_name.getText().toString();\r\n String pwd = pass_wrd.getText().toString();\r\n\r\n System.out.println(un + \" \" + pwd);\r\n if(db.validCredentials(un, pwd)){\r\n Intent secondActivity = new Intent(getApplicationContext(), UserAreaActivity.class);\r\n startActivity(secondActivity);\r\n } else{\r\n invalid.setVisibility(View.VISIBLE);\r\n }\r\n }" ]
[ "0.67046726", "0.65329117", "0.6373902", "0.6312941", "0.6276355", "0.6269151", "0.6239315", "0.6159337", "0.60864645", "0.6023126", "0.6020545", "0.6001222", "0.59763455", "0.5910656", "0.59080315", "0.5884729", "0.58666825", "0.58454156", "0.58435243", "0.5842851", "0.5815261", "0.5815248", "0.5791989", "0.5791989", "0.5784714", "0.5776351", "0.5756833", "0.57502306", "0.57454294", "0.5727582", "0.5713914", "0.5713914", "0.5713914", "0.5710688", "0.57098573", "0.56992227", "0.5684101", "0.56807584", "0.5671454", "0.5655252", "0.5654223", "0.5649934", "0.56437474", "0.56402", "0.56353956", "0.5628949", "0.56284225", "0.5626878", "0.5624223", "0.56140584", "0.56121933", "0.5601738", "0.5595399", "0.5587596", "0.55805004", "0.557712", "0.5565804", "0.55564517", "0.55546767", "0.55497766", "0.55455965", "0.5543864", "0.5541406", "0.55372274", "0.55368316", "0.55323744", "0.5529486", "0.55293816", "0.5528943", "0.5524503", "0.5522086", "0.55132353", "0.55116636", "0.55111355", "0.55084246", "0.55075055", "0.5505051", "0.5504866", "0.549714", "0.5495048", "0.54931366", "0.5492232", "0.5492224", "0.5491438", "0.54841727", "0.5480532", "0.54788435", "0.54759896", "0.547548", "0.54728353", "0.5472301", "0.547199", "0.54704326", "0.5468201", "0.5461597", "0.545947", "0.54561365", "0.5455558", "0.5454066", "0.5453416", "0.5443324" ]
0.0
-1
simple interface for data access
public interface HelloDao { public void insertHello(Hello h); public Hello selectHello(String helloId); public List<Hello> selectHelloList(String dateMMDDYYYY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DataAccessor {\n}", "protected abstract void retrievedata();", "interface Retrieve {}", "public interface DataAccessObject {\n\n}", "public interface Mypersent {\n void getData();\n}", "public interface DataAccess {\n String USER_PATH = \"user/%s\";\n String CARS_PATH = USER_PATH + \"/cars/%s\";\n String FUELENTRY_PATH = CARS_PATH + \"/fuel_entries/%s\";\n String REPAIRENTRY_PATH = CARS_PATH + \"/repair_entries/%s\";\n String OTHERENTRY_PATH = CARS_PATH + \"/other_entries/%s\";\n String REMINDERENTRY_PATH = USER_PATH + \"/reminders/%s\";\n\n\n void update(String path, Object object);\n void push(String path, Object object);\n void delete(String path);\n\n <T> void getAll(String path, MyList<T> list, Type typeOfT);\n\n String getUid();\n}", "public abstract Object getData();", "public interface DataManager {\n\n void saveData(String key, String value);\n\n String getData(String key);\n}", "public interface DataManager {\n void saveData(String key, String data);\n String getData(String key);\n}", "Object getData();", "Object getData();", "public IData getStoreddata();", "public interface IModel {\n void getData(String uid,String pid);\n}", "DataStore getDataStore ();", "public interface DataProvider<T> {\n T getData(String key);\n}", "public interface DataProvider {\n /**\n * @param userName\n * @param password\n * @return Authenticated used.\n */\n User authenticate(String userName, String password);\n\n ArrayList<POI> getPois();\n}", "public void otherRead(IDataHolder dc);", "PersistentDataHolder getDataHolder();", "public Object getData();", "public interface loadDataService {\n public List<Row> getComboContent( String sType,String comboType, Map<String,String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public Result getGridContent(PagingObject po, String gridType,Map<String,String[]> parameterMap,String searchText , usersInfo loggedUser,String statusID,String from,String where ) throws Exception;\n public List<listInfo> loadStrukturList(String partID,long langID) throws Exception;\n public finalInfo getOrgInfo(long treeID) throws Exception;\n public categoryFinalInfo getCategoryInfo(long treeID) throws Exception;\n public carriersInfo getCariesInfo(long carryID) throws Exception;\n public carriersInfo getOrganizationInfo(long carryID) throws Exception;\n public List<contact> getOrgContacts(long treeID) throws Exception;\n public person getEmployeeInfo( long empId) throws Exception;\n public List<examples> getExamplesInfo(long exmpID,String langID) throws Exception;\n public List<contact> getPersonContact(long perID) throws Exception;\n public List<docList> loadQRphoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> loadPhoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> getExamplesPictures(Connection cc, long relID, long relType) throws Exception;\n public List<examples> getExamplesOperation(Connection cc, long relID, long langID) throws Exception;\n public int checkUser(String uName) throws Exception;\n public int checkDictRecord(String text, int dictType,String org,String pos) throws Exception ;\n public usersInfo loadUserInfo(String pID) throws Exception;\n public List<person> loadEmpList( int OrgID) throws Exception;\n public List<Row> getSelectContent( String type, Map<String, String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public List<subjElement> getADVSearchMenuList(String partID) throws Exception;\n public String getADVInfo(String paramID,String paramVal,String val,String cond,String typ)throws Exception;\n public List<listInfo> loadComboForAdvancedSearch(String prmID,long parametr) throws Exception;\n public List<docList> loadRightPanelPhoto(long realID, int iType) throws Exception;\n public List<categoryFinalInfo> getCategoryStructure(long catID, int id) throws Exception;\n}", "public DataStorage getDataStorage();", "public interface DBHelper {\n\n boolean insertUserData(String username);\n\n\n String getData();\n\n}", "public interface DataDao {\r\n\t/*\r\n\t * Get the latest data of a specific device despite of sensor data type.\r\n\t */\r\n\tpublic DataValue getLastDataByDeviceIdSortedByTimestamp(String deviceId) throws Exception;\r\n\t/*\r\n\t * Get the latest data of a specific device and a sensor data type.\r\n\t */\r\n\tpublic DataValue getLastDataByDeviceIdAndSensorTypeSortedByTimestamp(SensorValue sensorVal) throws Exception;\r\n\t/*\r\n\t * Get the data information list from database that is between a specific time interval.\r\n\t */\r\n\tpublic List<DataValue> getDataListByDeviceIdAndSensorTypeAndDateSortedByTimestamp(DataValue dataVal) throws Exception;\r\n\t/*\r\n\t * Insert new sensor data into database.\r\n\t */\r\n\tpublic int insertSensorData(DataValue dataVal) throws Exception;\r\n\t/*\r\n\t * Get the greatest data value of a specific sensor type.\r\n\t */\r\n\tpublic DataValue getGreatestDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;\r\n\t/*\r\n\t * Get the least data value of a specific sensor type.\r\n\t */\r\n\tpublic DataValue getLeastDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;\r\n}", "public interface DataAPI {\n\t// Query\n\tDataTree getDataHierarchy(); // Tree List of Data and Datatypes\n\t\n\tDataTree getDatatypeHierarchy(); // Tree List of Datatypes\n\n\tDataTree getMetricsHierarchy(); // Tree List of Metrics and Metric\n\t\t\t\t\t\t\t\t\t\t\t// types\n\n\tArrayList<String> getAllDatatypeIds();\n\n\tMetadataProperty getMetadataProperty(String propid);\n\n\tArrayList<MetadataProperty> getMetadataProperties(String dtypeid, boolean direct);\n\n\tArrayList<MetadataProperty> getAllMetadataProperties();\n\n\tDataItem getDatatypeForData(String dataid);\n\n\tArrayList<DataItem> getDataForDatatype(String dtypeid, boolean direct);\n\n\tString getTypeNameFormat(String dtypeid);\n\n\tString getDataLocation(String dataid);\n\n\tArrayList<MetadataValue> getMetadataValues(String dataid, ArrayList<String> propids);\n\n\t// Write\n\tboolean addDatatype(String dtypeid, String parentid);\n\n\tboolean removeDatatype(String dtypeid);\n\n\tboolean renameDatatype(String newtypeid, String oldtypeid);\n\n\tboolean moveDatatypeParent(String dtypeid, String fromtypeid, String totypeid);\n\n\tboolean addData(String dataid, String dtypeid);\n\n\tboolean renameData(String newdataid, String olddataid);\n\n\tboolean removeData(String dataid);\n\n\tboolean setDataLocation(String dataid, String locuri);\n\n\tboolean setTypeNameFormat(String dtypeid, String format);\n\n\tboolean addObjectPropertyValue(String dataid, String propid, String valid);\n\n\tboolean addDatatypePropertyValue(String dataid, String propid, Object val);\n\n\tboolean addDatatypePropertyValue(String dataid, String propid, String val, String xsdtype);\n\n\tboolean removePropertyValue(String dataid, String propid, Object val);\n\n\tboolean removeAllPropertyValues(String dataid, ArrayList<String> propids);\n\n\tboolean addMetadataProperty(String propid, String domain, String range);\n\t\n\tboolean addMetadataPropertyDomain(String propid, String domain);\n\n\tboolean removeMetadataProperty(String propid);\n\t\n\tboolean removeMetadataPropertyDomain(String propid, String domain);\n\n\tboolean renameMetadataProperty(String oldid, String newid);\n\n\t// Sync/Save\n\tboolean save();\n\t\n\tvoid end();\n\t\n\tvoid delete();\n}", "DataHandler getDataHandler();", "public interface DataManager {\n List<String> fetchNews(NewsType newsType);\n}", "public interface DatabaseTool {\r\n\r\n\t\r\n\t/**\r\n\t * Get all objects from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will default follow\r\n\t * complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed..\r\n\t * @param clazz to be retrieved.\r\n\t * @return of all classes that is retrieved.\r\n\t */\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> clazz);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param id of the object to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(Class<E> clazz, int id);\r\n\t\r\n\t/**\r\n\t * Set a single object from the values. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> void setObject(String sql, E e);\r\n\t\r\n\t/**\r\n\t * Get all objects from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed..\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return of all classes that is retrieved.\r\n\t */\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param id of the object to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(Class<E> clazz, int id, boolean follow);\r\n\t\r\n\t/**\r\n\t * Set a single object from the values. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> void setObject(String sql, E e, boolean follow);\r\n\t\r\n\t/**\r\n\t * This will help write a object to a persistent store. \r\n\t * \r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Writeable> void storeObject(String sql, E e);\r\n\t\r\n\t/**\r\n\t * This will remove a object from the database. \r\n\t * \r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Writeable> void write(String sql);\r\n\r\n\t/**\r\n\t * Read from the database. It will return a cached result set. This result set is closed\r\n\t * and does not keep connection to the database.\r\n\t * \r\n\t * @param sql to be executed.\r\n\t * @return a cached result set.\r\n\t */\r\n\tpublic <E extends Writeable> ResultSet read(CharSequence sql);\r\n\t\r\n\t/**\r\n\t * Read from the database. It will first create a prepared statement before doing the read.\r\n\t * \r\n\t * @param sql to be executed. It must contain the amount ? as the length of the objects.\r\n\t * @return a cached result set.\r\n\t */\r\n\tpublic <E extends Retrievable> ResultSet read(CharSequence sql, Object... objects);\r\n\t\r\n\tpublic <E extends Retrievable> List<E> getObjects(ResultSet resultSet, Class<E> clazz, boolean follow);\r\n\t\r\n\tpublic <E extends Retrievable> E getObject(ResultSet resultSet, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * @param sql that is update/insert or both\r\n\t * @param objects that is to be used in store as parameters to the sql..\r\n\t * @return number of rows updated.\r\n\t */\r\n\tpublic int write(String sql, Object... objects);\r\n\t\r\n\tpublic int writeGetID(String sql, Object... objects);\r\n\t\r\n\tpublic QueryRunner getQueryRunner();\r\n\t\r\n\tpublic Retriver getRetriver();\r\n\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz, Object... objects);\r\n\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> class1, Object... objects);\r\n\r\n\tpublic <E> E getValue(final String sql, final Class<E> clazz, final String column, final Object... objects);\r\n\t\r\n\tpublic List<Object> getValues(final String sql, final Object... objects);\r\n\t\r\n\tpublic String getServer();\r\n}", "public interface DataBase {\n public void save(BuzzTalkData data);\n\n public ArrayList<OpenCalaisTag> getAllTags();\n\n public ArrayList<Publication> getAllPublications();\n}", "abstract public Object getUserData();", "public interface MysqldataQueryDao {\n public List<Map<String, Object>> Querydata(String sql);\n public List<Map<String, Object>> Querymaindata(String sql);\n\n}", "public interface QuestionnaireDAO {\r\n /**\r\n * Loads questionnaire data\r\n *\r\n * @return\r\n */\r\n public Questionnaire load();\r\n}", "public interface CinemaDAO {\n\n ArrayList<Cinema> selectData();\n void insertData(Cinema cinema);\n}", "public interface UsageDAO {\n \n /**\n * Find by id.\n *\n * @param id the id\n * @return the optional\n */\n public Optional<UsageData> findById(Long id);\n\n \n /**\n * Creates the.\n *\n * @param ud the ud\n * @return the usage data\n */\n public UsageData create(UsageData ud);\n\n /**\n * Find all.\n *\n * @return the list\n */\n public List<UsageData> findAll();\n}", "DataFactory getDataFactory();", "public interface DataAccess {\n\n /**\n * Given a user name, retrieves a list of tokens identifying which permissions the specified user has been granted.\n * \n * @param login the user name\n * @return a list of tokens conveying the information on which permissions have been granted\n * @throws IOException\n */\n public List<String> getUserPermissions(String login) throws IOException;\n\n /**\n * Disposes of the data access.\n */\n public void dispose();\n\n}", "public interface modeloDAO {\n void insert(Object obj);\n void update(Object obj);\n void delete(Object obj);\n ArrayList<Object> get();\n}", "public Object getUserData();", "public interface LocalDataSource {\n\n void saveUserName(String userName);\n\n void saveWxId(String wxId);\n\n void saveHead(String head);\n\n void saveBalance(String balance);\n\n void saveBankCard(BankCard bankCard);\n\n void saveDai(boolean dai);\n\n void saveLoan(Loan loan);\n\n String getUserName();\n\n String getWxId();\n\n String getHead();\n\n String getBalance();\n\n List<BankCard> getAllBankCard();\n\n boolean getDai();\n\n Loan getLoan();\n}", "public interface LobbyDataAccess {\n\n public void addLobby(String lobby, String id) throws Exception;\n\n public List<String> getLobbies()throws Exception;\n\n public void removeLobbies(String lobbyID) throws Exception;\n\n public void clear() throws Exception;\n\n public void addDeltas(String command, String lobbyID) throws Exception;\n\n public List<String> getDeltas(String id) throws Exception;\n public void clearDeltas() throws Exception;\n\n}", "public interface DataSource extends DataSourceBase {\n /***\n * @param authenticationInfo A HashMap of any authentication information that came through in the request headers from the mobile client\n * @param params a HashMap of the URL parameters included in the request.\n * @return The data source response that contains the list of data set items you want to return\n */\n DataSet getDataSet(AuthenticationInfo authenticationInfo, Parameters params);\n\n /***\n *\n * @param id The ID of the item to fetch\n * @param authenticationInfo a HashMap of any authentication information that came through in the request headers from the mobile client\n * @param parameters a HashMap of the URL parameters included in the request\n * @return The data source response that contains the data set item with the requested ID\n */\n\n DataSetItem getRecord(String id, AuthenticationInfo authenticationInfo, Parameters parameters);\n\n\n /**\n * @param queryDataItem The data set item containing the values to be searched on\n * @param authenticationInfo a HashMap of any authentication parameters that came through in the request headers\n * @param params a HashMap of the URL parameters included in the request\n * @return The data source response that contains the list of data set items which meet the search criteria\n */\n default DataSet queryDataSet(DataSetItem queryDataItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Search is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be created\n * @param authenticationInfo a Hashmap of any authentication parameters that came through the request headers\n * @param params a HashMap of the URL parameters included in the request\n * @return The data source response that contains the newly created data set item\n */\n default RecordActionResponse createRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Create is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be updated\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request headers\n * @param params a Hashmap of the URL parameters included in the request\n * @return The DataSet that contains a single item that represents the updated item.\n */\n\n default RecordActionResponse updateRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Update is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be validated\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request headers\n * @param params a Hashmap of the URL parameters included in the request\n * @return The DataSet that contains a single item that represents the validated item.\n */\n\n default RecordActionResponse validateRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Validation is not supported on this web service\");\n }\n\n /**\n * @param dataSetItemID the data set item ID that the event is related to\n * @param event the ATEvent object\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request\n * @param params a Parameters object of any URL parameters from the request\n */\n default Response updateEventForDataSetItem(String dataSetItemID, Event event, AuthenticationInfo authenticationInfo, Parameters params) {\n return Response.success();\n }\n\n /**\n * This will update a list of data set items according to the given data set item\n *\n * @param primaryKeys a list of data set item IDs to update\n * @param dataSetItem the data set item values used to update. IMPORTANT: Only the attributes that are getting bulk updated will be included.\n * @param authenticationInfo a HashMap of any authentication parameters sent in the request\n * @param params a Parameters object of any URL parameters from the request\n * @return an DataSourceResponse\n */\n default DataSet bulkUpdateDataSetItems(List<String> primaryKeys, DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Bulk update is not supported by this web service\");\n }\n\n /**\n * @param dataSetItemID the ID of the data set item to delete\n * @param authenticationInfo a HashMap of any authentication parameters sent in the request\n * @param params a Parameters object of any URL parameters from the request\n * @return\n */\n default RecordActionResponse deleteRecord(String dataSetItemID, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Delete is not supported on this web service\");\n }\n\n\n\n}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "public interface DatastoreText {\n\n /**\n * Stores a property.. The kind, name and property can be thought of as\n * corresponding roughly to table,column, row key.\n * \n * @param kind\n * @param name\n * @param property\n * @param value\n */\n void put(String kind, String name, String property, String value);\n\n /**\n * Returns a property value keyed by kind,name and property.\n * \n * @param kind\n * @param name\n * @param property\n * @return\n */\n String get(String kind, String name, String property);\n\n}", "public interface IUserData {\n public void insert(User user);\n public User getUserByName(String userName);\n}", "Object getCurrentData();", "Object getUserData();", "public MusicDataAccessor() {\n\t\n\t\t// load the data into the table\n\t\tload();\n\t}", "public interface Data {\n\n String getContent();\n\n}", "public void GetDataBaseData() {\n }", "public interface CoffeeProcessorDbService {\n void loadData();\n}", "public interface UserDataHelper {\n\n // 格式:\"username\", \"password\", \"name\", \"gender\", \"phone\", \"member_type\", \"level\", \"birthday\", \"enterprise\"\n\n\n /**\n * 在user表中插入一条用户信息\n * @param userInfo\n * @return\n */\n public ResultMessage insertToSQL(ArrayList<Object> userInfo);\n\n /**\n * 在user表中删除一条用户信息\n * @param username\n * @return\n */\n public ResultMessage deleteFromSQL(String username);\n\n /**\n * 在user表中更新一条用户信息\n * @param userInfo\n * @return\n */\n public ResultMessage updateFromSQL(ArrayList<Object> userInfo);\n\n /**\n * 查找user表中的所有用户信息\n * @return\n */\n public ArrayList<ArrayList<Object>> findFromSQL();\n\n /**\n * 根据用户名在user表中查找一条用户信息\n * @param username\n * @return\n */\n public ArrayList<Object> findByIDFromSQL(String username);\n\n\n}", "public interface LoadDataService {\npublic void execute();\n}", "public interface Data {\n String getContent();\n}", "public interface Data<type> {\n public type get() throws Exception;\n public void set(ResultSet data) throws Exception;\n}", "public interface DataAnalyseService {\n JSONArray getDataOperateTimesInDay(String dataName,String month,String year);\n JSONArray getDataOperateTimesInMonth(String dataName,String year);\n JSONArray getDataOperateTimesInYear(String dataName);\n JSONArray getDataOperateTimesByType(String dataName);\n\n JSONObject getHotData();\n JSONObject getLikeData(String dataName);\n\n JSONObject getUserRecommendData(String userName);\n}", "public interface StudentDAO {\n\n\tpublic List<Student> listStudent();\n\t\n}", "public interface Data {\n\t/* nothing special at the moment */\n}", "Object getDB();", "public interface IGetDataView extends IBaseView {\n void getDataSuccess(Cursor cursor);\n void getDataFail();\n}", "public interface IACORecordDao extends IDao\n{\n\t/**\n\t * \n\t * @return a <code>ACORecordDataModel</code>\n\t */\n\tpublic ACORecordDataModel getACORecord();\n\n}", "public interface StockDAO {\n public int getAmountAvailable(String stockName); //Retrieves amount of stock available from stock_initial table\n public List<StockItem> getStockList(); //Retrieves list of stocks for initial wallet values\n}", "public interface BaseDataInterface {\r\n}", "public interface ExampleDAO {\n\n ArrayList<ExamplePojo> getAllPojos() throws IOException;\n\n}", "public interface IPersistence {\n\n ArrayList<String> loadData(String pathFile);\n}", "public interface OpenNetworkDB extends Database, CRUD<OpenNetwork, Integer>{\r\n\r\n Collection<OpenNetwork> getAllFromCity( String city ) throws DatabaseException;\r\n}", "public interface RiceDataDictionaryServiceInfc {\n\n /**\n * Get the RICE data object for the specified entry key\n * \n * @param entryKey\n * @return null if entry key not found\n */\n public DataObjectEntry getDataObjectEntry(String entryKey);\n}", "protected abstract T fetch();", "public interface DBAccessInterface {\r\n\tpublic ConnectionPoolDataSource getDataSource () throws DBAccessException ;\r\n\t//public PooledConnection getDataSource () throws DBAccessException ;\r\n\tpublic Connection getConnection() throws DBAccessException;\r\n\tpublic void reconnect()throws DBAccessException;\r\n\tpublic void dbConnect()throws DBAccessException;\r\n\t\r\n}", "public interface DataSource<T> {\n\t/**\n\t * open data source.\n\t */\n\tpublic void open();\n\t/**\n\t * Get the next data object.\n\t * @return data object.\n\t */\n\tpublic T next();\n\t/**\n\t * move vernier to head.\n\t * @return\n\t */\n\tpublic void head();\n\t/**\n\t * close data source.\n\t */\n\tpublic void close();\n\t/**\n\t * get attributes. \n\t * @return\n\t */\n\tpublic Map<String, Object> attributes();\n}", "public interface PersonDAO {\n public void add(Person p);\n public void delete(Person p);\n public List<Person> getList();\n public void update(Person p);\n public Person getPerson(int ID);\n\n}", "public interface DNSDao {\n public List<DNS> getDNS() throws DataAccessException;\n public DNS getDNS(String dominio) throws DataAccessException;\n public void insertDNS(DNS dns);\n public void setTime(DNS dns);\n public void updateTime(DNS dns);\n public void remove(DNS dns);\n public boolean getRobots(String dominio);\n public List<DNS> getRobots() throws DataAccessException;\n}", "public interface ColumnDAO {\r\n public List queryObjs(Map condition) throws Exception;\r\n public List queryObjs(Map condition, int offset, int limit) throws Exception;\r\n public Column queryObj(String colid) throws Exception;\r\n public int queryCountObjs(Map condition) throws Exception;\r\n public int queryCountObj(String colid) throws Exception;\r\n public void execInsert(Column column) throws Exception;\r\n public void execUpdate(Column column) throws Exception;\r\n public void execDelete(String colid) throws Exception;\r\n}", "public interface WebHotpointsDAO{\n public int getVersion() throws IOException;\n public int getNrHotpoints() throws IOException;\n public Hotpoint getNextHotpoint() throws IOException;\n}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public abstract Statement queryToRetrieveData();", "public interface DBDao {\n /**\n * 添加本地缓存\n * @param url 插入的数据的url\n * @param content 插入的数据的json串\n */\n public void insertData(String url,String content,String time);\n\n /**\n * 删除指定的本地存储数据\n * @param url 指定url\n */\n public void deleteData(String url);\n\n /**\n * 更新本地缓存数据\n * @param url 指定url\n * @param content 需要更新的内容\n * @param time 更新的时间\n */\n public void updateData(String url,String content,String time);\n\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据content\n */\n public String queryData(String url);\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据的存储时间\n */\n public String queryDataTime(String url);\n}", "public interface WikiDao<K,V> {\n V getDataWithId(K id);\n <V> List<V> getDataWithName(K name);\n}", "interface Data {\n}", "public interface IDataIslem {\n <T> void addOrUpdate(T data, String serviceUrl,\n EnumUtil.SendingDataType dataType, Context ctx);\n\n <T> List<T> get(String serviceUrl, Class clazz, Context ctx);\n\n <T> void updateDeleteCreateProcess(EnumUtil.SendingDataType sendingDataType, String message, Context context,\n T data, String serviceUrl);\n}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public interface DataView {\n\n /**\n * The name of the data store.\n * \n * @return\n */\n String getName();\n\n /**\n * Returns the value mapped to the given key.\n * \n * @param key\n * @return\n */\n <T> T getValue(DataKey<T> key);\n\n Object getValueRaw(String id);\n\n Collection<DataKey<?>> getDataKeysWithValues();\n\n Collection<String> getKeysWithValues();\n\n default Object getValueRaw(DataKey<?> key) {\n return getValueRaw(key.getName());\n }\n\n /**\n * \n * @param key\n * @return true if the store contains a value for the given key\n */\n <T> boolean hasValue(DataKey<T> key);\n\n /**\n * \n * @return the objects mapped to the key ids\n */\n // Map<String, Object> getValuesMap();\n\n public static DataView newInstance(DataStore dataStore) {\n return new DefaultCleanSetup(dataStore);\n }\n\n public static DataView empty() {\n return new DataView() {\n\n @Override\n public <T> T getValue(DataKey<T> key) {\n return null;\n }\n\n @Override\n public String getName() {\n return \"<empty>\";\n }\n\n // @Override\n // public Map<String, Object> getValuesMap() {\n // return Collections.emptyMap();\n // }\n\n @Override\n public <T> boolean hasValue(DataKey<T> key) {\n return false;\n }\n\n @Override\n public Object getValueRaw(String id) {\n return null;\n }\n\n @Override\n public Collection<DataKey<?>> getDataKeysWithValues() {\n return Collections.emptyList();\n }\n\n @Override\n public Collection<String> getKeysWithValues() {\n return Collections.emptyList();\n }\n };\n }\n\n default DataStore toDataStore() {\n return DataStore.newInstance(this);\n }\n}", "public interface IPersonDAO {\n int insertUser(Person person);\n void deletePerson(int personID);\n void selectAllPerson();\n void selectPersonByName();\n}", "public abstract interface DataBaseCore {\n\n\n public void obtenerPuntuacion(String score);\n\n}", "public interface FiInfoDAO {\n public FiInfo getFiInfo(String fiId);\n public void postFiInfo(FiInfo fiInfo);\n public void updateLastFbUpdateTime(String fiId, long fbUpdateTime);\n public List<FiInfo> getAllFiInfo();\n public List<String> getAllFiId();\n}", "public interface Data {\n\n String getRequest();\n\n}", "public interface DataShowService {\n\n List<Map<String,Object>> getCitySessionSummary(Map<String,Object> params);\n\n List<Map<String, Object>> getCitys();\n\n List<Integer> getCitySessions(Integer city_id);\n\n List<String> getCitySrcs(Integer city_id);\n\n List<Map<String, Object>> getSrcdatabySessions(Map<String,Object> params);\n}", "public interface DataSet {\n\n /**\n * Set an attribute value.\n *\n * @param key Key of the attribute.\n * @param value Value to set.\n */\n void set(String key, Object value);\n\n /**\n * Check whether an attribute can be set or not. It is not mandatory that an attribute is settable.\n *\n * @param key Key of the attribute.\n * @return True/false.\n */\n boolean canSet(String key);\n\n /**\n * Get the value for the given attribute.\n *\n * @param key Key of the attribute.\n * @return Value of the attribute.\n */\n Object get(String key);\n\n /**\n * Get the keys a list.\n *\n * @return Keys.\n */\n StringList keys();\n\n /**\n * Add an attribute key.\n *\n * @param key Key to be added.\n */\n void add(String key);\n\n /**\n * Remove an attribute key.\n *\n * @param key Key to be removed.\n */\n void remove(String key);\n\n /**\n * Get the value-type of the given attribute.\n *\n * @param key Key of the attribute.\n * @return Value-type of the attribute.\n */\n default Class<?> getType(String key) {\n Object v = get(key);\n return v == null ? null : v.getClass();\n }\n}", "public abstract Object getCustomData();", "public interface DataBasePresent {\n void setDistrict(List<Name_Id> list);\n\n void setLocalBodyType(List<Name_Id> list);\n\n void setLocalBodyName(List<LocalBody> list);\n\n List<Name_Id> getDistrict();\n\n List<Name_Id> getLocalBodyType();\n\n List<LocalBody> getLocalBodyName(String districId ,String locatType);\n}", "public interface RepoDataView {\n}", "public interface TestDao {\n\n List query();\n\n}", "T getData();", "public interface LocalResultSet {\n\n public boolean next();\n public int getInt(String fldname);\n public String getString(String fldname);\n public LocalMetaData getMetaData();\n public void close();\n}", "public User getUserData();", "public interface Backend {\n\t\n\t/**\n\t * read a user from storage into memory\n\t * @param id - the user's id to be read from storage\n\t * @return \n\t */\n\tpublic User read(String id);\n\t\n\t/**\n\t * write a user to storage\n\t * @param id - the user's id to be written to storage\n\t */\n\tpublic void write(String id);\n\t\n\t/**\n\t * add an user\n\t * @param user - the user to be added\n\t * @return true on success, false otherwise\n\t */\n\tpublic boolean addUser(User user);\n\t/**\n\t * delete an user\n\t * @param id - the id of user to be deleted\n\t * @return true on success, false otherwise\n\t */\n\tpublic boolean deleteUser(String id);\n\t\n\t\n\t/**\n\t * @return a list of existing users\n\t */\n\tpublic List<User> getUsers();\n}", "public interface IIndexDataInfo {\n Index_DataInfo getDataInfo();// 获取首页的整体对象\n List<Index_DataInfo.InfoBean.FocusBean> getFocusDataFromServer();// 首页图片轮播\n List<Index_DataInfo.InfoBean.BannerBean> getBannerDataFromServer();// 首页轮播下选项\n}", "public interface Data {\n\n int DATA_TYPE_HEADER = 1;\n int DATA_TYPE_ITEM = 2;\n\n String getData();\n void setData(String data);\n int getDataType();\n long getTime();\n}", "public interface PortionedDAO {\n\n String getDataPortion() throws DAOException;\n\n}", "public interface DBManager {\n\n\t// Populate Data can have different Implementations\n\tvoid populateData();\n}", "public interface ISYview {\n void getADInfoData(ADBean adBean);\n void getSYRecycleInfoData(SYRecycleBean bean);\n}", "public interface Dataloader {\n public void dataload(HashMap<Integer,List<Item>> itemsHashmap);\n}", "public Object consultar(int id) throws Exception {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }" ]
[ "0.73452324", "0.71060884", "0.70828074", "0.7022808", "0.6960056", "0.6899041", "0.676502", "0.6733443", "0.6724844", "0.6682666", "0.6682666", "0.6606157", "0.65997034", "0.65768147", "0.65727395", "0.65708685", "0.6554527", "0.6553625", "0.65411735", "0.6531457", "0.65244985", "0.65178955", "0.64975566", "0.64855975", "0.64698905", "0.64454585", "0.6440487", "0.6425916", "0.64200795", "0.6378594", "0.6365699", "0.6350764", "0.63456935", "0.63338643", "0.63329667", "0.6325561", "0.6320487", "0.6313233", "0.63118935", "0.63107973", "0.63105404", "0.6308311", "0.63065207", "0.6300495", "0.6294153", "0.6292983", "0.6280805", "0.62740725", "0.62555945", "0.6251966", "0.6247919", "0.62471026", "0.623995", "0.6233473", "0.6230608", "0.62186813", "0.62160426", "0.6209867", "0.6205809", "0.61936224", "0.6189994", "0.61820656", "0.61714804", "0.6169844", "0.61685544", "0.61664724", "0.6156116", "0.6155338", "0.6150107", "0.61459774", "0.6137694", "0.6134104", "0.6131355", "0.613082", "0.6130806", "0.61263376", "0.6126203", "0.6124834", "0.6123847", "0.61162233", "0.61147106", "0.6112955", "0.6105912", "0.610108", "0.60967726", "0.6096225", "0.60957104", "0.60937047", "0.60837376", "0.6077687", "0.6071713", "0.6067902", "0.60671264", "0.60663205", "0.6063867", "0.6059526", "0.6052954", "0.6045585", "0.6039349", "0.60363275", "0.60333014" ]
0.0
-1
(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.
public interface IBitmapTextureAtlasSource extends ITextureAtlasSource { // =========================================================== // Final Fields // =========================================================== // =========================================================== // Methods // =========================================================== @Override public IBitmapTextureAtlasSource deepCopy(); public Bitmap onLoadBitmap(final Config pBitmapConfig); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getZOrder();", "void mo57278c();", "void mo57277b();", "void mo72113b();", "private static void zza(com.google.android.gms.internal.gtm.zzug r2, java.lang.Object r3) {\n /*\n com.google.android.gms.internal.gtm.zzre.checkNotNull(r3)\n int[] r0 = com.google.android.gms.internal.gtm.zzqu.zzaxr\n com.google.android.gms.internal.gtm.zzul r2 = r2.zzrs()\n int r2 = r2.ordinal()\n r2 = r0[r2]\n r0 = 1\n r1 = 0\n switch(r2) {\n case 1: goto L_0x0040;\n case 2: goto L_0x003d;\n case 3: goto L_0x003a;\n case 4: goto L_0x0037;\n case 5: goto L_0x0034;\n case 6: goto L_0x0031;\n case 7: goto L_0x0028;\n case 8: goto L_0x001e;\n case 9: goto L_0x0015;\n default: goto L_0x0014;\n }\n L_0x0014:\n goto L_0x0043\n L_0x0015:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzsk\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrn\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x001e:\n boolean r2 = r3 instanceof java.lang.Integer\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrf\n if (r2 == 0) goto L_0x0043\n L_0x0026:\n r1 = 1\n goto L_0x0043\n L_0x0028:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzps\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof byte[]\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x0031:\n boolean r0 = r3 instanceof java.lang.String\n goto L_0x0042\n L_0x0034:\n boolean r0 = r3 instanceof java.lang.Boolean\n goto L_0x0042\n L_0x0037:\n boolean r0 = r3 instanceof java.lang.Double\n goto L_0x0042\n L_0x003a:\n boolean r0 = r3 instanceof java.lang.Float\n goto L_0x0042\n L_0x003d:\n boolean r0 = r3 instanceof java.lang.Long\n goto L_0x0042\n L_0x0040:\n boolean r0 = r3 instanceof java.lang.Integer\n L_0x0042:\n r1 = r0\n L_0x0043:\n if (r1 == 0) goto L_0x0046\n return\n L_0x0046:\n java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException\n java.lang.String r3 = \"Wrong object type used with protocol message reflection.\"\n r2.<init>(r3)\n goto L_0x004f\n L_0x004e:\n throw r2\n L_0x004f:\n goto L_0x004e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.gtm.zzqt.zza(com.google.android.gms.internal.gtm.zzug, java.lang.Object):void\");\n }", "void mo21076g();", "void mo21072c();", "protected boolean func_70814_o() { return true; }", "void mo72114c();", "void mo41083a();", "void mo21073d();", "void mo41086b();", "void mo80457c();", "private final zzgy zzgb() {\n }", "void mo119582b();", "void m8368b();", "void mo60893b();", "public abstract void mo56925d();", "private void m50366E() {\n }", "void mo80455b();", "void mo56163g();", "public void skystonePos4() {\n }", "public abstract int mo9742g();", "void zmniejszBieg();", "void mo80452a();", "private zza.zza()\n\t\t{\n\t\t}", "public abstract void mo6549b();", "void mo3194r();", "public abstract void mo70713b();", "void mo28717a(zzc zzc);", "void mo88524c();", "void mo27575a();", "void mo17012c();", "void mo54405a();", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "public abstract void mo27386d();", "void mo67924c();", "public abstract String mo118046b();", "public abstract void mo27385c();", "private static int zza(byte[] r1, int r2, int r3, com.google.android.gms.internal.clearcut.zzfl r4, java.lang.Class<?> r5, com.google.android.gms.internal.clearcut.zzay r6) throws java.io.IOException {\n /*\n r0 = com.google.android.gms.internal.clearcut.zzdt.zzgq;\n r4 = r4.ordinal();\n r4 = r0[r4];\n switch(r4) {\n case 1: goto L_0x0085;\n case 2: goto L_0x0080;\n case 3: goto L_0x0073;\n case 4: goto L_0x0066;\n case 5: goto L_0x0066;\n case 6: goto L_0x005d;\n case 7: goto L_0x005d;\n case 8: goto L_0x0054;\n case 9: goto L_0x0047;\n case 10: goto L_0x0047;\n case 11: goto L_0x0047;\n case 12: goto L_0x003c;\n case 13: goto L_0x003c;\n case 14: goto L_0x002f;\n case 15: goto L_0x0024;\n case 16: goto L_0x0019;\n case 17: goto L_0x0013;\n default: goto L_0x000b;\n };\n L_0x000b:\n r1 = new java.lang.RuntimeException;\n r2 = \"unsupported field type.\";\n r1.<init>(r2);\n throw r1;\n L_0x0013:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2, r6);\n goto L_0x0099;\n L_0x0019:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zza(r2);\n goto L_0x0042;\n L_0x0024:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zzm(r2);\n goto L_0x004d;\n L_0x002f:\n r4 = com.google.android.gms.internal.clearcut.zzea.zzcm();\n r4 = r4.zze(r5);\n r1 = zza(r4, r1, r2, r3, r6);\n goto L_0x0099;\n L_0x003c:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n L_0x0042:\n r2 = java.lang.Long.valueOf(r2);\n goto L_0x0051;\n L_0x0047:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n L_0x004d:\n r2 = java.lang.Integer.valueOf(r2);\n L_0x0051:\n r6.zzff = r2;\n goto L_0x0099;\n L_0x0054:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzf(r1, r2);\n r1 = java.lang.Float.valueOf(r1);\n goto L_0x006e;\n L_0x005d:\n r3 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2);\n r1 = java.lang.Long.valueOf(r3);\n goto L_0x007b;\n L_0x0066:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzc(r1, r2);\n r1 = java.lang.Integer.valueOf(r1);\n L_0x006e:\n r6.zzff = r1;\n r1 = r2 + 4;\n goto L_0x0099;\n L_0x0073:\n r3 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2);\n r1 = java.lang.Double.valueOf(r3);\n L_0x007b:\n r6.zzff = r1;\n r1 = r2 + 8;\n goto L_0x0099;\n L_0x0080:\n r1 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2, r6);\n goto L_0x0099;\n L_0x0085:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r4 = 0;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x0093;\n L_0x0091:\n r2 = 1;\n goto L_0x0094;\n L_0x0093:\n r2 = 0;\n L_0x0094:\n r2 = java.lang.Boolean.valueOf(r2);\n goto L_0x0051;\n L_0x0099:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(byte[], int, int, com.google.android.gms.internal.clearcut.zzfl, java.lang.Class, com.google.android.gms.internal.clearcut.zzay):int\");\n }", "private stendhal() {\n\t}", "void mo119581a();", "zzafe mo29840Y() throws RemoteException;", "void mo57275a();", "void mo1943l();", "public void method_4270() {}", "private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }", "public abstract String mo13682d();", "private static void zza(String object, Object object2, StringBuffer stringBuffer, StringBuffer stringBuffer2) throws IllegalAccessException, InvocationTargetException {\n if (object2 == null) return;\n if (object2 instanceof zzfjs) {\n n2 = stringBuffer.length();\n if (object != null) {\n stringBuffer2.append(stringBuffer).append(zzfjt.zzty((String)object)).append(\" <\\n\");\n stringBuffer.append(\" \");\n }\n class_ = object2.getClass();\n object5 = class_.getFields();\n n4 = ((Field[])object5).length;\n } else {\n object = zzfjt.zzty((String)object);\n stringBuffer2.append(stringBuffer).append((String)object).append(\": \");\n if (object2 instanceof String) {\n object = object2 = (String)object2;\n if (!object2.startsWith(\"http\")) {\n object = object2;\n if (object2.length() > 200) {\n object = String.valueOf(object2.substring(0, 200)).concat(\"[...]\");\n }\n }\n object = zzfjt.zzgr((String)object);\n stringBuffer2.append(\"\\\"\").append((String)object).append(\"\\\"\");\n } else if (object2 instanceof byte[]) {\n zzfjt.zza((byte[])object2, stringBuffer2);\n } else {\n stringBuffer2.append(object2);\n }\n stringBuffer2.append(\"\\n\");\n return;\n }\n for (n = 0; n < n4; ++n) {\n object6 = object5[n];\n n3 = object6.getModifiers();\n object4 = object6.getName();\n if (\"cachedSize\".equals(object4) || (n3 & 1) != 1 || (n3 & 8) == 8 || object4.startsWith(\"_\") || object4.endsWith(\"_\")) continue;\n object3 = object6.getType();\n object6 = object6.get(object2);\n if (object3.isArray() && object3.getComponentType() != Byte.TYPE) {\n n3 = object6 == null ? 0 : Array.getLength(object6);\n for (i = 0; i < n3; ++i) {\n zzfjt.zza((String)object4, Array.get(object6, i), stringBuffer, stringBuffer2);\n }\n continue;\n }\n zzfjt.zza((String)object4, object6, stringBuffer, stringBuffer2);\n }\n object4 = class_.getMethods();\n n3 = ((Method[])object4).length;\n n = 0;\n do {\n block20: {\n if (n >= n3) {\n if (object == null) return;\n stringBuffer.setLength(n2);\n stringBuffer2.append(stringBuffer).append(\">\\n\");\n return;\n }\n object5 = object4[n].getName();\n if (!object5.startsWith(\"set\")) break block20;\n object3 = object5.substring(3);\n object5 = String.valueOf(object3);\n object5 = object5.length() != 0 ? \"has\".concat((String)object5) : new String(\"has\");\n if (!((Boolean)(object5 = class_.getMethod((String)object5, new Class[0])).invoke(object2, new Object[0])).booleanValue()) ** GOTO lbl81\n {\n catch (NoSuchMethodException noSuchMethodException) {}\n }\n try {\n block22: {\n block21: {\n object5 = String.valueOf(object3);\n if (object5.length() == 0) break block21;\n object5 = \"get\".concat((String)object5);\n break block22;\n break block20;\n }\n object5 = new String(\"get\");\n }\n object5 = class_.getMethod((String)object5, new Class[0]);\n }\n catch (NoSuchMethodException noSuchMethodException) {}\n zzfjt.zza((String)object3, object5.invoke(object2, new Object[0]), stringBuffer, stringBuffer2);\n }\n ++n;\n } while (true);\n }", "void m1864a() {\r\n }", "void mo12638c();", "void mo17021c();", "void m8367a();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "void mo33732Px();", "public boolean func_145773_az() { return true; }", "void mo7353b();", "void mo88521a();", "private final synchronized void zza(com.google.android.gms.internal.cast.zzcp r10) {\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r10.zzwy;\t Catch:{ all -> 0x008b }\n r1 = 1;\n if (r0 != r1) goto L_0x0007;\n L_0x0006:\n goto L_0x0008;\n L_0x0007:\n r1 = 0;\n L_0x0008:\n r0 = r9.zzwa;\t Catch:{ all -> 0x008b }\n r9.zzwb = r0;\t Catch:{ all -> 0x008b }\n if (r1 == 0) goto L_0x0016;\n L_0x000e:\n r0 = r10.zzxk;\t Catch:{ all -> 0x008b }\n if (r0 == 0) goto L_0x0016;\n L_0x0012:\n r0 = r10.zzxk;\t Catch:{ all -> 0x008b }\n r9.zzvy = r0;\t Catch:{ all -> 0x008b }\n L_0x0016:\n r0 = r9.isInitialized();\t Catch:{ all -> 0x008b }\n if (r0 != 0) goto L_0x001e;\n L_0x001c:\n monitor-exit(r9);\n return;\n L_0x001e:\n r6 = new java.util.ArrayList;\t Catch:{ all -> 0x008b }\n r6.<init>();\t Catch:{ all -> 0x008b }\n r0 = r10.zzxe;\t Catch:{ all -> 0x008b }\n r0 = r0.iterator();\t Catch:{ all -> 0x008b }\n L_0x0029:\n r1 = r0.hasNext();\t Catch:{ all -> 0x008b }\n if (r1 == 0) goto L_0x0050;\n L_0x002f:\n r1 = r0.next();\t Catch:{ all -> 0x008b }\n r1 = (com.google.android.gms.internal.cast.zzcs) r1;\t Catch:{ all -> 0x008b }\n r2 = r1.getPlayerId();\t Catch:{ all -> 0x008b }\n r3 = new com.google.android.gms.internal.cast.zzcr;\t Catch:{ all -> 0x008b }\n r4 = r1.getPlayerState();\t Catch:{ all -> 0x008b }\n r1 = r1.getPlayerData();\t Catch:{ all -> 0x008b }\n r5 = r9.zzvv;\t Catch:{ all -> 0x008b }\n r5 = r5.containsKey(r2);\t Catch:{ all -> 0x008b }\n r3.<init>(r2, r4, r1, r5);\t Catch:{ all -> 0x008b }\n r6.add(r3);\t Catch:{ all -> 0x008b }\n goto L_0x0029;\n L_0x0050:\n r0 = new com.google.android.gms.internal.cast.zzcq;\t Catch:{ all -> 0x008b }\n r2 = r10.zzxd;\t Catch:{ all -> 0x008b }\n r3 = r10.zzxc;\t Catch:{ all -> 0x008b }\n r4 = r10.zzxg;\t Catch:{ all -> 0x008b }\n r5 = r10.zzxf;\t Catch:{ all -> 0x008b }\n r1 = r9.zzvy;\t Catch:{ all -> 0x008b }\n r7 = r1.zzeo();\t Catch:{ all -> 0x008b }\n r1 = r9.zzvy;\t Catch:{ all -> 0x008b }\n r8 = r1.getMaxPlayers();\t Catch:{ all -> 0x008b }\n r1 = r0;\n r1.<init>(r2, r3, r4, r5, r6, r7, r8);\t Catch:{ all -> 0x008b }\n r9.zzwa = r0;\t Catch:{ all -> 0x008b }\n r0 = r9.zzwa;\t Catch:{ all -> 0x008b }\n r1 = r10.zzxh;\t Catch:{ all -> 0x008b }\n r0 = r0.getPlayer(r1);\t Catch:{ all -> 0x008b }\n if (r0 == 0) goto L_0x0089;\n L_0x0076:\n r0 = r0.isControllable();\t Catch:{ all -> 0x008b }\n if (r0 == 0) goto L_0x0089;\n L_0x007c:\n r0 = r10.zzwy;\t Catch:{ all -> 0x008b }\n r1 = 2;\n if (r0 != r1) goto L_0x0089;\n L_0x0081:\n r0 = r10.zzxh;\t Catch:{ all -> 0x008b }\n r9.zzwc = r0;\t Catch:{ all -> 0x008b }\n r10 = r10.zzxb;\t Catch:{ all -> 0x008b }\n r9.zzwd = r10;\t Catch:{ all -> 0x008b }\n L_0x0089:\n monitor-exit(r9);\n return;\n L_0x008b:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.cast.zzcb.zza(com.google.android.gms.internal.cast.zzcp):void\");\n }", "public abstract int mo9754s();", "public abstract Object mo26777y();", "zzang mo29839S() throws RemoteException;", "void mo21070b();", "private void m50367F() {\n }", "void mo12637b();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "void mo21074e();", "public abstract String mo41079d();", "public abstract void mo30696a();", "void mo17023d();", "void mo28306a();", "private void zzbJ(int r6) {\n /*\n r5 = this;\n r0 = 8;\n if (r6 != r0) goto L_0x0035;\n L_0x0004:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n if (r0 == 0) goto L_0x0030;\n L_0x000b:\n r2 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n r5.mArray = r2;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n mTwiceBaseCache = r0;\t Catch:{ all -> 0x0067 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0067 }\n r2[r0] = r4;\t Catch:{ all -> 0x0067 }\n r0 = mTwiceBaseCacheSize;\t Catch:{ all -> 0x0067 }\n r0 = r0 + -1;\n mTwiceBaseCacheSize = r0;\t Catch:{ all -> 0x0067 }\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n L_0x002f:\n return;\n L_0x0030:\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n r0 = com.google.android.gms.internal.zzkq.a;\t Catch:{ ClassCastException -> 0x006a }\n if (r0 == 0) goto L_0x006d;\n L_0x0035:\n r0 = 4;\n if (r6 != r0) goto L_0x006d;\n L_0x0038:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mBaseCache;\t Catch:{ all -> 0x0064 }\n if (r0 == 0) goto L_0x006c;\n L_0x003f:\n r2 = mBaseCache;\t Catch:{ all -> 0x0064 }\n r5.mArray = r2;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n mBaseCache = r0;\t Catch:{ all -> 0x0064 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0064 }\n r2[r0] = r4;\t Catch:{ all -> 0x0064 }\n r0 = mBaseCacheSize;\t Catch:{ all -> 0x0064 }\n r0 = r0 + -1;\n mBaseCacheSize = r0;\t Catch:{ all -> 0x0064 }\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n goto L_0x002f;\n L_0x0064:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n throw r0;\n L_0x0067:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n throw r0;\n L_0x006a:\n r0 = move-exception;\n throw r0;\n L_0x006c:\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n L_0x006d:\n r0 = new int[r6];\n r5.mHashes = r0;\n r0 = r6 << 1;\n r0 = new java.lang.Object[r0];\n r5.mArray = r0;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.zzbJ(int):void\");\n }", "public void m23075a() {\n }", "public void mo21877s() {\n }", "public void skystonePos3() {\n }", "public abstract int mo9747l();", "private void init() {\n\n\n\n }", "private NativeSupport() {\n\t}", "public final boolean zza() {\n boolean z = false;\n if (!this.zza.zza()) {\n return false;\n }\n this.zzx = this.zza.zzb();\n this.zzy = this.zza.zzb();\n this.zzz = this.zzy & 255;\n int i = this.zzx;\n if (i < this.zzq) {\n this.zzq = i;\n }\n int i2 = this.zzx;\n if (i2 > this.zzr) {\n this.zzr = i2;\n }\n if (this.zzz == zzgod.MAP.zza()) {\n this.zzs++;\n } else if (this.zzz >= zzgod.DOUBLE_LIST.zza() && this.zzz <= zzgod.GROUP_LIST.zza()) {\n this.zzt++;\n }\n this.zzw++;\n if (zzgqn.zza(this.zzq, this.zzx, this.zzw)) {\n this.zzv = this.zzx + 1;\n this.zzu = this.zzv - this.zzq;\n } else {\n this.zzu++;\n }\n if ((this.zzy & 1024) != 0) {\n int[] iArr = this.zzn;\n int i3 = this.zzp;\n this.zzp = i3 + 1;\n iArr[i3] = this.zzx;\n }\n if (zzd()) {\n this.zzaa = this.zza.zzb();\n if (this.zzz == zzgod.MESSAGE.zza() + 51 || this.zzz == zzgod.GROUP.zza() + 51) {\n zza(this.zzx, (Class) zzp());\n } else if (this.zzz == zzgod.ENUM.zza() + 51 && zzq()) {\n zza(this.zzx, (zzgop) zzp());\n }\n } else {\n this.zzac = zza(this.zzc, (String) zzp());\n if (zzh()) {\n this.zzab = this.zza.zzb();\n }\n if (this.zzz == zzgod.MESSAGE.zza() || this.zzz == zzgod.GROUP.zza()) {\n zza(this.zzx, this.zzac.getType());\n } else if (this.zzz == zzgod.MESSAGE_LIST.zza() || this.zzz == zzgod.GROUP_LIST.zza()) {\n zza(this.zzx, (Class) zzp());\n } else if (this.zzz == zzgod.ENUM.zza() || this.zzz == zzgod.ENUM_LIST.zza() || this.zzz == zzgod.ENUM_LIST_PACKED.zza()) {\n if (zzq()) {\n zza(this.zzx, (zzgop) zzp());\n }\n } else if (this.zzz == zzgod.MAP.zza()) {\n int i4 = this.zzx;\n Object zzp2 = zzp();\n if (this.zzaf == zzgol.zza()) {\n this.zzaf = new zzgol<>();\n }\n this.zzaf.zza(i4, zzp2);\n if ((this.zzy & 2048) != 0) {\n z = true;\n }\n if (z) {\n zza(this.zzx, (zzgop) zzp());\n }\n }\n }\n return true;\n }", "public void skystonePos6() {\n }", "void mo17013d();", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "int getMagic();", "private void init() {\n\n\t}", "public final int zza(com.google.android.gms.internal.ads.zzno r8, com.google.android.gms.internal.ads.zznt r9) throws java.io.IOException, java.lang.InterruptedException {\n /*\n r7 = this;\n r0 = 0\n r7.zzaoo = r0\n r1 = 1\n r2 = 1\n L_0x0005:\n if (r2 == 0) goto L_0x003c\n boolean r3 = r7.zzaoo\n if (r3 != 0) goto L_0x003c\n com.google.android.gms.internal.ads.zzob r2 = r7.zzazx\n boolean r2 = r2.zzb(r8)\n if (r2 == 0) goto L_0x0005\n long r3 = r8.getPosition()\n boolean r5 = r7.zzaob\n if (r5 == 0) goto L_0x0025\n r7.zzaod = r3\n long r3 = r7.zzaoc\n r9.zzahv = r3\n r7.zzaob = r0\n L_0x0023:\n r3 = 1\n goto L_0x0039\n L_0x0025:\n boolean r3 = r7.zzbam\n if (r3 == 0) goto L_0x0038\n long r3 = r7.zzaod\n r5 = -1\n int r3 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r3 == 0) goto L_0x0038\n long r3 = r7.zzaod\n r9.zzahv = r3\n r7.zzaod = r5\n goto L_0x0023\n L_0x0038:\n r3 = 0\n L_0x0039:\n if (r3 == 0) goto L_0x0005\n return r1\n L_0x003c:\n if (r2 == 0) goto L_0x003f\n return r0\n L_0x003f:\n r8 = -1\n return r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzod.zza(com.google.android.gms.internal.ads.zzno, com.google.android.gms.internal.ads.zznt):int\");\n }", "public abstract int mo123248g();", "@Override\r\n\tpublic void zjedz(Seno s) {\n\t}", "@Override\n\tpublic int getZ() {\n\t\treturn 1000;\n\t}", "void mo28307a(zzgd zzgd);", "public final boolean zza(int r2, android.os.Parcel r3, android.os.Parcel r4, int r5) {\n /*\n r1 = this;\n switch(r2) {\n case 1: goto L_0x00ee;\n case 2: goto L_0x00db;\n case 3: goto L_0x00c7;\n case 4: goto L_0x00b3;\n case 5: goto L_0x009c;\n case 6: goto L_0x008d;\n case 7: goto L_0x0081;\n case 8: goto L_0x006c;\n case 9: goto L_0x0058;\n case 10: goto L_0x004c;\n case 11: goto L_0x0047;\n case 12: goto L_0x003b;\n case 13: goto L_0x0032;\n case 14: goto L_0x0029;\n case 15: goto L_0x0014;\n case 16: goto L_0x000f;\n case 17: goto L_0x000a;\n case 18: goto L_0x0005;\n default: goto L_0x0003;\n }\n L_0x0003:\n r2 = 0\n return r2\n L_0x0005:\n java.lang.String r2 = r1.getAppIdOrigin()\n goto L_0x0050\n L_0x000a:\n java.lang.String r2 = r1.getCurrentScreenClass()\n goto L_0x0050\n L_0x000f:\n java.lang.String r2 = r1.getCurrentScreenName()\n goto L_0x0050\n L_0x0014:\n android.os.IBinder r2 = r3.readStrongBinder()\n com.google.android.gms.dynamic.IObjectWrapper r2 = com.google.android.gms.dynamic.IObjectWrapper.Stub.asInterface(r2)\n java.lang.String r5 = r3.readString()\n java.lang.String r3 = r3.readString()\n r1.zzb(r2, r5, r3)\n goto L_0x00f9\n L_0x0029:\n java.lang.String r2 = r3.readString()\n r1.endAdUnitExposure(r2)\n goto L_0x00f9\n L_0x0032:\n java.lang.String r2 = r3.readString()\n r1.beginAdUnitExposure(r2)\n goto L_0x00f9\n L_0x003b:\n long r2 = r1.generateEventId()\n r4.writeNoException()\n r4.writeLong(r2)\n goto L_0x00fc\n L_0x0047:\n java.lang.String r2 = r1.getGmpAppId()\n goto L_0x0050\n L_0x004c:\n java.lang.String r2 = r1.getAppInstanceId()\n L_0x0050:\n r4.writeNoException()\n r4.writeString(r2)\n goto L_0x00fc\n L_0x0058:\n java.lang.String r2 = r3.readString()\n java.lang.String r3 = r3.readString()\n java.util.List r2 = r1.getConditionalUserProperties(r2, r3)\n r4.writeNoException()\n r4.writeList(r2)\n goto L_0x00fc\n L_0x006c:\n java.lang.String r2 = r3.readString()\n java.lang.String r5 = r3.readString()\n android.os.Parcelable$Creator r0 = android.os.Bundle.CREATOR\n android.os.Parcelable r3 = com.google.android.gms.internal.ads.zzgv.zza((android.os.Parcel) r3, r0)\n android.os.Bundle r3 = (android.os.Bundle) r3\n r1.clearConditionalUserProperty(r2, r5, r3)\n goto L_0x00f9\n L_0x0081:\n android.os.Parcelable$Creator r2 = android.os.Bundle.CREATOR\n android.os.Parcelable r2 = com.google.android.gms.internal.ads.zzgv.zza((android.os.Parcel) r3, r2)\n android.os.Bundle r2 = (android.os.Bundle) r2\n r1.setConditionalUserProperty(r2)\n goto L_0x00f9\n L_0x008d:\n java.lang.String r2 = r3.readString()\n int r2 = r1.getMaxUserProperties(r2)\n r4.writeNoException()\n r4.writeInt(r2)\n goto L_0x00fc\n L_0x009c:\n java.lang.String r2 = r3.readString()\n java.lang.String r5 = r3.readString()\n boolean r3 = com.google.android.gms.internal.ads.zzgv.zza(r3)\n java.util.Map r2 = r1.getUserProperties(r2, r5, r3)\n r4.writeNoException()\n r4.writeMap(r2)\n goto L_0x00fc\n L_0x00b3:\n java.lang.String r2 = r3.readString()\n java.lang.String r5 = r3.readString()\n android.os.IBinder r3 = r3.readStrongBinder()\n com.google.android.gms.dynamic.IObjectWrapper r3 = com.google.android.gms.dynamic.IObjectWrapper.Stub.asInterface(r3)\n r1.zza(r2, r5, r3)\n goto L_0x00f9\n L_0x00c7:\n java.lang.String r2 = r3.readString()\n java.lang.String r5 = r3.readString()\n android.os.Parcelable$Creator r0 = android.os.Bundle.CREATOR\n android.os.Parcelable r3 = com.google.android.gms.internal.ads.zzgv.zza((android.os.Parcel) r3, r0)\n android.os.Bundle r3 = (android.os.Bundle) r3\n r1.logEvent(r2, r5, r3)\n goto L_0x00f9\n L_0x00db:\n android.os.Parcelable$Creator r2 = android.os.Bundle.CREATOR\n android.os.Parcelable r2 = com.google.android.gms.internal.ads.zzgv.zza((android.os.Parcel) r3, r2)\n android.os.Bundle r2 = (android.os.Bundle) r2\n android.os.Bundle r2 = r1.performActionWithResponse(r2)\n r4.writeNoException()\n com.google.android.gms.internal.ads.zzgv.zzb(r4, r2)\n goto L_0x00fc\n L_0x00ee:\n android.os.Parcelable$Creator r2 = android.os.Bundle.CREATOR\n android.os.Parcelable r2 = com.google.android.gms.internal.ads.zzgv.zza((android.os.Parcel) r3, r2)\n android.os.Bundle r2 = (android.os.Bundle) r2\n r1.performAction(r2)\n L_0x00f9:\n r4.writeNoException()\n L_0x00fc:\n r2 = 1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzbge.zza(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }", "int reproduce();", "static synchronized int[] zzeT(java.lang.String r13) {\n /*\n r8 = com.google.android.gms.internal.zzaqx.class;\n monitor-enter(r8);\n r1 = 0;\n r9 = r13.length();\t Catch:{ all -> 0x001c }\n r0 = 0;\n r6 = 0;\n r4 = 0;\n r3 = 0;\n r5 = r6;\n r6 = r0;\n L_0x000e:\n if (r1 >= r9) goto L_0x0205;\n L_0x0010:\n r0 = 2045; // 0x7fd float:2.866E-42 double:1.0104E-320;\n if (r6 <= r0) goto L_0x001f;\n L_0x0014:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Pattern is too large!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x001c:\n r0 = move-exception;\n monitor-exit(r8);\n throw r0;\n L_0x001f:\n r0 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r2 = 0;\n switch(r0) {\n case 42: goto L_0x00e1;\n case 43: goto L_0x0109;\n case 46: goto L_0x0131;\n case 91: goto L_0x0044;\n case 92: goto L_0x0143;\n case 93: goto L_0x0071;\n case 123: goto L_0x00a2;\n case 125: goto L_0x00ce;\n default: goto L_0x0027;\n };\t Catch:{ all -> 0x001c }\n L_0x0027:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n L_0x0030:\n if (r6 == 0) goto L_0x0191;\n L_0x0032:\n if (r0 == 0) goto L_0x015f;\n L_0x0034:\n r0 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r0[r2] = r4;\t Catch:{ all -> 0x001c }\n r0 = 0;\n r2 = r3;\n L_0x003c:\n r2 = r2 + 1;\n r3 = r0;\n r4 = r5;\n r5 = r6;\n r6 = r1;\n r1 = r2;\n goto L_0x000e;\n L_0x0044:\n if (r5 == 0) goto L_0x0050;\n L_0x0046:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x0050:\n r0 = r1 + 1;\n r0 = r13.charAt(r0);\t Catch:{ all -> 0x001c }\n r2 = 94;\n if (r0 != r2) goto L_0x0069;\n L_0x005a:\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = r6 + 1;\n r5 = -2;\n r2[r6] = r5;\t Catch:{ all -> 0x001c }\n r1 = r1 + 1;\n L_0x0063:\n r1 = r1 + 1;\n r6 = 1;\n r5 = r6;\n r6 = r0;\n goto L_0x000e;\n L_0x0069:\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = r6 + 1;\n r5 = -1;\n r2[r6] = r5;\t Catch:{ all -> 0x001c }\n goto L_0x0063;\n L_0x0071:\n if (r5 != 0) goto L_0x007d;\n L_0x0073:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x007d:\n r3 = zzbip;\t Catch:{ all -> 0x001c }\n r5 = r6 + -1;\n r3 = r3[r5];\t Catch:{ all -> 0x001c }\n r5 = -1;\n if (r3 == r5) goto L_0x0089;\n L_0x0086:\n r5 = -2;\n if (r3 != r5) goto L_0x0091;\n L_0x0089:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"You must define characters in a set.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x0091:\n r3 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r5 = -3;\n r3[r6] = r5;\t Catch:{ all -> 0x001c }\n r5 = 0;\n r3 = 0;\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x00a2:\n if (r5 != 0) goto L_0x021b;\n L_0x00a4:\n if (r6 == 0) goto L_0x00b2;\n L_0x00a6:\n r4 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + -1;\n r4 = r4[r7];\t Catch:{ all -> 0x001c }\n r4 = zzjL(r4);\t Catch:{ all -> 0x001c }\n if (r4 == 0) goto L_0x00ba;\n L_0x00b2:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x00ba:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r4 = r6 + 1;\n r10 = -5;\n r7[r6] = r10;\t Catch:{ all -> 0x001c }\n r6 = r1 + 1;\n r1 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r6;\n r6 = r5;\n r5 = r1;\n r1 = r2;\n r2 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x00ce:\n if (r4 == 0) goto L_0x021b;\n L_0x00d0:\n r4 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r10 = -6;\n r4[r6] = r10;\t Catch:{ all -> 0x001c }\n r4 = 0;\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x00e1:\n if (r5 != 0) goto L_0x021b;\n L_0x00e3:\n if (r6 == 0) goto L_0x00f1;\n L_0x00e5:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r10 = r6 + -1;\n r7 = r7[r10];\t Catch:{ all -> 0x001c }\n r7 = zzjL(r7);\t Catch:{ all -> 0x001c }\n if (r7 == 0) goto L_0x00f9;\n L_0x00f1:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x00f9:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -7;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0109:\n if (r5 != 0) goto L_0x021b;\n L_0x010b:\n if (r6 == 0) goto L_0x0119;\n L_0x010d:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r10 = r6 + -1;\n r7 = r7[r10];\t Catch:{ all -> 0x001c }\n r7 = zzjL(r7);\t Catch:{ all -> 0x001c }\n if (r7 == 0) goto L_0x0121;\n L_0x0119:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x0121:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -8;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0131:\n if (r5 != 0) goto L_0x021b;\n L_0x0133:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -4;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0143:\n r0 = r1 + 1;\n if (r0 < r9) goto L_0x014f;\n L_0x0147:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Escape found at end of pattern!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x014f:\n r2 = r1 + 1;\n r0 = r13.charAt(r2);\t Catch:{ all -> 0x001c }\n r1 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x015f:\n r1 = r3 + 2;\n if (r1 >= r9) goto L_0x0182;\n L_0x0163:\n r1 = r3 + 1;\n r1 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r7 = 45;\n if (r1 != r7) goto L_0x0182;\n L_0x016d:\n r1 = r3 + 2;\n r1 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r7 = 93;\n if (r1 == r7) goto L_0x0182;\n L_0x0177:\n r0 = 1;\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r7[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3 + 1;\n goto L_0x003c;\n L_0x0182:\n r1 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r2 + 1;\n r1[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r7 + 1;\n r2[r7] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3;\n goto L_0x003c;\n L_0x0191:\n if (r5 == 0) goto L_0x01fa;\n L_0x0193:\n r1 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r4 = r13.indexOf(r1, r3);\t Catch:{ all -> 0x001c }\n if (r4 >= 0) goto L_0x01a3;\n L_0x019b:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Range not ended with '}'\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x01a3:\n r1 = r13.substring(r3, r4);\t Catch:{ all -> 0x001c }\n r3 = 44;\n r7 = r1.indexOf(r3);\t Catch:{ all -> 0x001c }\n if (r7 >= 0) goto L_0x01c7;\n L_0x01af:\n r1 = java.lang.Integer.parseInt(r1);\t Catch:{ NumberFormatException -> 0x01be }\n r3 = r1;\n L_0x01b4:\n if (r3 <= r1) goto L_0x01e7;\n L_0x01b6:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ NumberFormatException -> 0x01be }\n r1 = \"Range quantifier minimum is greater than maximum\";\n r0.<init>(r1);\t Catch:{ NumberFormatException -> 0x01be }\n throw r0;\t Catch:{ NumberFormatException -> 0x01be }\n L_0x01be:\n r0 = move-exception;\n r1 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r2 = \"Range number format incorrect\";\n r1.<init>(r2, r0);\t Catch:{ all -> 0x001c }\n throw r1;\t Catch:{ all -> 0x001c }\n L_0x01c7:\n r3 = 0;\n r3 = r1.substring(r3, r7);\t Catch:{ NumberFormatException -> 0x01be }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r1.length();\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r10 + -1;\n if (r7 != r10) goto L_0x01dc;\n L_0x01d8:\n r1 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n goto L_0x01b4;\n L_0x01dc:\n r7 = r7 + 1;\n r1 = r1.substring(r7);\t Catch:{ NumberFormatException -> 0x01be }\n r1 = java.lang.Integer.parseInt(r1);\t Catch:{ NumberFormatException -> 0x01be }\n goto L_0x01b4;\n L_0x01e7:\n r7 = zzbip;\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r2 + 1;\n r7[r2] = r3;\t Catch:{ NumberFormatException -> 0x01be }\n r3 = zzbip;\t Catch:{ NumberFormatException -> 0x01be }\n r2 = r10 + 1;\n r3[r10] = r1;\t Catch:{ NumberFormatException -> 0x01be }\n r3 = r0;\n r1 = r4;\n r4 = r5;\n r5 = r6;\n r6 = r2;\n goto L_0x000e;\n L_0x01fa:\n if (r1 == 0) goto L_0x0217;\n L_0x01fc:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r7[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3;\n goto L_0x003c;\n L_0x0205:\n if (r5 == 0) goto L_0x020f;\n L_0x0207:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Set was not terminated!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x020f:\n r0 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = java.util.Arrays.copyOf(r0, r6);\t Catch:{ all -> 0x001c }\n monitor-exit(r8);\n return r0;\n L_0x0217:\n r1 = r2;\n r2 = r3;\n goto L_0x003c;\n L_0x021b:\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzaqx.zzeT(java.lang.String):int[]\");\n }", "private static int zzd(android.content.Context r8, java.lang.String r9, boolean r10) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n if (r10 == 0) goto L_0x000d\n java.lang.String r10 = \"api_force_staging\"\n goto L_0x000f\n L_0x0006:\n r8 = move-exception\n goto L_0x00ad\n L_0x0009:\n r8 = move-exception\n r9 = r0\n goto L_0x009e\n L_0x000d:\n java.lang.String r10 = \"api\"\n L_0x000f:\n java.lang.String r1 = \"content://com.google.android.gms.chimera/\"\n java.lang.String r1 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r2 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + 1\n java.lang.String r3 = java.lang.String.valueOf(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.String r3 = java.lang.String.valueOf(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.<init>(r2) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r10 = \"/\"\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r9 = r3.toString() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.net.Uri r2 = android.net.Uri.parse(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.content.ContentResolver r1 = r8.getContentResolver() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n android.database.Cursor r8 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n if (r8 == 0) goto L_0x0096\n boolean r9 = r8.moveToFirst() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 == 0) goto L_0x0096\n r9 = 0\n int r9 = r8.getInt(r9) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 <= 0) goto L_0x0087\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r10 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r10) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r1 = 2\n java.lang.String r1 = r8.getString(r1) // Catch:{ all -> 0x0084 }\n zzaSI = r1 // Catch:{ all -> 0x0084 }\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.Object r10 = r10.get() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n com.google.android.gms.dynamite.DynamiteModule$zza r10 = (com.google.android.gms.dynamite.DynamiteModule.zza) r10 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r10 == 0) goto L_0x0087\n android.database.Cursor r1 = r10.zzaSR // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r1 != 0) goto L_0x0087\n r10.zzaSR = r8 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r8 = r0\n goto L_0x0087\n L_0x0084:\n r9 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x0087:\n if (r8 == 0) goto L_0x008c\n r8.close()\n L_0x008c:\n return r9\n L_0x008d:\n r9 = move-exception\n r0 = r8\n r8 = r9\n goto L_0x00ad\n L_0x0091:\n r9 = move-exception\n r7 = r9\n r9 = r8\n r8 = r7\n goto L_0x009e\n L_0x0096:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.String r10 = \"Failed to connect to dynamite module ContentResolver.\"\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r0) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x009e:\n boolean r10 = r8 instanceof com.google.android.gms.dynamite.DynamiteModule.zzc // Catch:{ all -> 0x00ab }\n if (r10 == 0) goto L_0x00a3\n throw r8 // Catch:{ all -> 0x00ab }\n L_0x00a3:\n com.google.android.gms.dynamite.DynamiteModule$zzc r10 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00ab }\n java.lang.String r1 = \"V2 version check failed\"\n r10.<init>(r1, r8, r0) // Catch:{ all -> 0x00ab }\n throw r10 // Catch:{ all -> 0x00ab }\n L_0x00ab:\n r8 = move-exception\n r0 = r9\n L_0x00ad:\n if (r0 == 0) goto L_0x00b2\n r0.close()\n L_0x00b2:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzd(android.content.Context, java.lang.String, boolean):int\");\n }", "void mo54435d();", "zzand mo29852bb() throws RemoteException;", "private final void zzb(T r21, com.google.android.gms.internal.clearcut.zzfr r22) throws java.io.IOException {\n /*\n r20 = this;\n r0 = r20;\n r1 = r21;\n r2 = r22;\n r3 = r0.zzmo;\n if (r3 == 0) goto L_0x0021;\n L_0x000a:\n r3 = r0.zzmy;\n r3 = r3.zza(r1);\n r5 = r3.isEmpty();\n if (r5 != 0) goto L_0x0021;\n L_0x0016:\n r3 = r3.iterator();\n r5 = r3.next();\n r5 = (java.util.Map.Entry) r5;\n goto L_0x0023;\n L_0x0021:\n r3 = 0;\n r5 = 0;\n L_0x0023:\n r6 = -1;\n r7 = r0.zzmi;\n r7 = r7.length;\n r9 = zzmh;\n r10 = r5;\n r5 = 0;\n r11 = 0;\n L_0x002c:\n if (r5 >= r7) goto L_0x0521;\n L_0x002e:\n r12 = r0.zzag(r5);\n r13 = r0.zzmi;\n r13 = r13[r5];\n r14 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r14 = r14 & r12;\n r14 = r14 >>> 20;\n r15 = r0.zzmq;\n r16 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n if (r15 != 0) goto L_0x0061;\n L_0x0042:\n r15 = 17;\n if (r14 > r15) goto L_0x0061;\n L_0x0046:\n r15 = r0.zzmi;\n r17 = r5 + 2;\n r15 = r15[r17];\n r8 = r15 & r16;\n if (r8 == r6) goto L_0x0059;\n L_0x0050:\n r18 = r5;\n r4 = (long) r8;\n r11 = r9.getInt(r1, r4);\n r6 = r8;\n goto L_0x005b;\n L_0x0059:\n r18 = r5;\n L_0x005b:\n r4 = r15 >>> 20;\n r5 = 1;\n r8 = r5 << r4;\n goto L_0x0064;\n L_0x0061:\n r18 = r5;\n r8 = 0;\n L_0x0064:\n if (r10 == 0) goto L_0x0083;\n L_0x0066:\n r4 = r0.zzmy;\n r4 = r4.zza(r10);\n if (r4 > r13) goto L_0x0083;\n L_0x006e:\n r4 = r0.zzmy;\n r4.zza(r2, r10);\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0081;\n L_0x0079:\n r4 = r3.next();\n r4 = (java.util.Map.Entry) r4;\n r10 = r4;\n goto L_0x0064;\n L_0x0081:\n r10 = 0;\n goto L_0x0064;\n L_0x0083:\n r4 = r12 & r16;\n r4 = (long) r4;\n switch(r14) {\n case 0: goto L_0x0510;\n case 1: goto L_0x0502;\n case 2: goto L_0x04f4;\n case 3: goto L_0x04e6;\n case 4: goto L_0x04d8;\n case 5: goto L_0x04ca;\n case 6: goto L_0x04bc;\n case 7: goto L_0x04ae;\n case 8: goto L_0x049f;\n case 9: goto L_0x048c;\n case 10: goto L_0x047b;\n case 11: goto L_0x046c;\n case 12: goto L_0x045d;\n case 13: goto L_0x044e;\n case 14: goto L_0x043f;\n case 15: goto L_0x0430;\n case 16: goto L_0x0421;\n case 17: goto L_0x040e;\n case 18: goto L_0x03fc;\n case 19: goto L_0x03ea;\n case 20: goto L_0x03d8;\n case 21: goto L_0x03c6;\n case 22: goto L_0x03b4;\n case 23: goto L_0x03a2;\n case 24: goto L_0x0390;\n case 25: goto L_0x037e;\n case 26: goto L_0x036d;\n case 27: goto L_0x0358;\n case 28: goto L_0x0347;\n case 29: goto L_0x0334;\n case 30: goto L_0x0323;\n case 31: goto L_0x0312;\n case 32: goto L_0x0301;\n case 33: goto L_0x02f0;\n case 34: goto L_0x02df;\n case 35: goto L_0x02cd;\n case 36: goto L_0x02bb;\n case 37: goto L_0x02a9;\n case 38: goto L_0x0297;\n case 39: goto L_0x0285;\n case 40: goto L_0x0273;\n case 41: goto L_0x0261;\n case 42: goto L_0x024f;\n case 43: goto L_0x023d;\n case 44: goto L_0x022b;\n case 45: goto L_0x0219;\n case 46: goto L_0x0207;\n case 47: goto L_0x01f5;\n case 48: goto L_0x01e3;\n case 49: goto L_0x01ce;\n case 50: goto L_0x01c3;\n case 51: goto L_0x01b2;\n case 52: goto L_0x01a1;\n case 53: goto L_0x0190;\n case 54: goto L_0x017f;\n case 55: goto L_0x016e;\n case 56: goto L_0x015d;\n case 57: goto L_0x014c;\n case 58: goto L_0x013b;\n case 59: goto L_0x012a;\n case 60: goto L_0x0115;\n case 61: goto L_0x0102;\n case 62: goto L_0x00f2;\n case 63: goto L_0x00e2;\n case 64: goto L_0x00d2;\n case 65: goto L_0x00c2;\n case 66: goto L_0x00b2;\n case 67: goto L_0x00a2;\n case 68: goto L_0x008e;\n default: goto L_0x0089;\n };\n L_0x0089:\n r12 = r18;\n L_0x008b:\n r14 = 0;\n goto L_0x051d;\n L_0x008e:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0096:\n r4 = r9.getObject(r1, r4);\n r5 = r0.zzad(r12);\n r2.zzb(r13, r4, r5);\n goto L_0x008b;\n L_0x00a2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00aa:\n r4 = zzh(r1, r4);\n r2.zzb(r13, r4);\n goto L_0x008b;\n L_0x00b2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00ba:\n r4 = zzg(r1, r4);\n r2.zze(r13, r4);\n goto L_0x008b;\n L_0x00c2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00ca:\n r4 = zzh(r1, r4);\n r2.zzj(r13, r4);\n goto L_0x008b;\n L_0x00d2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00da:\n r4 = zzg(r1, r4);\n r2.zzm(r13, r4);\n goto L_0x008b;\n L_0x00e2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00ea:\n r4 = zzg(r1, r4);\n r2.zzn(r13, r4);\n goto L_0x008b;\n L_0x00f2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00fa:\n r4 = zzg(r1, r4);\n r2.zzd(r13, r4);\n goto L_0x008b;\n L_0x0102:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x010a:\n r4 = r9.getObject(r1, r4);\n r4 = (com.google.android.gms.internal.clearcut.zzbb) r4;\n r2.zza(r13, r4);\n goto L_0x008b;\n L_0x0115:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x011d:\n r4 = r9.getObject(r1, r4);\n r5 = r0.zzad(r12);\n r2.zza(r13, r4, r5);\n goto L_0x008b;\n L_0x012a:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0132:\n r4 = r9.getObject(r1, r4);\n zza(r13, r4, r2);\n goto L_0x008b;\n L_0x013b:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0143:\n r4 = zzi(r1, r4);\n r2.zzb(r13, r4);\n goto L_0x008b;\n L_0x014c:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0154:\n r4 = zzg(r1, r4);\n r2.zzf(r13, r4);\n goto L_0x008b;\n L_0x015d:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0165:\n r4 = zzh(r1, r4);\n r2.zzc(r13, r4);\n goto L_0x008b;\n L_0x016e:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0176:\n r4 = zzg(r1, r4);\n r2.zzc(r13, r4);\n goto L_0x008b;\n L_0x017f:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0187:\n r4 = zzh(r1, r4);\n r2.zza(r13, r4);\n goto L_0x008b;\n L_0x0190:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0198:\n r4 = zzh(r1, r4);\n r2.zzi(r13, r4);\n goto L_0x008b;\n L_0x01a1:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x01a9:\n r4 = zzf(r1, r4);\n r2.zza(r13, r4);\n goto L_0x008b;\n L_0x01b2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x01ba:\n r4 = zze(r1, r4);\n r2.zza(r13, r4);\n goto L_0x008b;\n L_0x01c3:\n r12 = r18;\n r4 = r9.getObject(r1, r4);\n r0.zza(r2, r13, r4, r12);\n goto L_0x008b;\n L_0x01ce:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r5 = r0.zzad(r12);\n com.google.android.gms.internal.clearcut.zzeh.zzb(r8, r4, r2, r5);\n goto L_0x008b;\n L_0x01e3:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r13 = 1;\n com.google.android.gms.internal.clearcut.zzeh.zze(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x01f5:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzj(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0207:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzg(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0219:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzl(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x022b:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzm(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x023d:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzi(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x024f:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzn(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0261:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzk(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0273:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzf(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0285:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzh(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0297:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzd(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x02a9:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzc(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x02bb:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzb(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x02cd:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zza(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x02df:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r13 = 0;\n com.google.android.gms.internal.clearcut.zzeh.zze(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x02f0:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzj(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x0301:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzg(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x0312:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzl(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x0323:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzm(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x0334:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzi(r8, r4, r2, r13);\n L_0x0344:\n r14 = r13;\n goto L_0x051d;\n L_0x0347:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzb(r8, r4, r2);\n goto L_0x008b;\n L_0x0358:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r5 = r0.zzad(r12);\n com.google.android.gms.internal.clearcut.zzeh.zza(r8, r4, r2, r5);\n goto L_0x008b;\n L_0x036d:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zza(r8, r4, r2);\n goto L_0x008b;\n L_0x037e:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r14 = 0;\n com.google.android.gms.internal.clearcut.zzeh.zzn(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x0390:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzk(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03a2:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzf(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03b4:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzh(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03c6:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzd(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03d8:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzc(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03ea:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzb(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03fc:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zza(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x040e:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0414:\n r4 = r9.getObject(r1, r4);\n r5 = r0.zzad(r12);\n r2.zzb(r13, r4, r5);\n goto L_0x051d;\n L_0x0421:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0427:\n r4 = r9.getLong(r1, r4);\n r2.zzb(r13, r4);\n goto L_0x051d;\n L_0x0430:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0436:\n r4 = r9.getInt(r1, r4);\n r2.zze(r13, r4);\n goto L_0x051d;\n L_0x043f:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0445:\n r4 = r9.getLong(r1, r4);\n r2.zzj(r13, r4);\n goto L_0x051d;\n L_0x044e:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0454:\n r4 = r9.getInt(r1, r4);\n r2.zzm(r13, r4);\n goto L_0x051d;\n L_0x045d:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0463:\n r4 = r9.getInt(r1, r4);\n r2.zzn(r13, r4);\n goto L_0x051d;\n L_0x046c:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0472:\n r4 = r9.getInt(r1, r4);\n r2.zzd(r13, r4);\n goto L_0x051d;\n L_0x047b:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0481:\n r4 = r9.getObject(r1, r4);\n r4 = (com.google.android.gms.internal.clearcut.zzbb) r4;\n r2.zza(r13, r4);\n goto L_0x051d;\n L_0x048c:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0492:\n r4 = r9.getObject(r1, r4);\n r5 = r0.zzad(r12);\n r2.zza(r13, r4, r5);\n goto L_0x051d;\n L_0x049f:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04a5:\n r4 = r9.getObject(r1, r4);\n zza(r13, r4, r2);\n goto L_0x051d;\n L_0x04ae:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04b4:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzl(r1, r4);\n r2.zzb(r13, r4);\n goto L_0x051d;\n L_0x04bc:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04c2:\n r4 = r9.getInt(r1, r4);\n r2.zzf(r13, r4);\n goto L_0x051d;\n L_0x04ca:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04d0:\n r4 = r9.getLong(r1, r4);\n r2.zzc(r13, r4);\n goto L_0x051d;\n L_0x04d8:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04de:\n r4 = r9.getInt(r1, r4);\n r2.zzc(r13, r4);\n goto L_0x051d;\n L_0x04e6:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04ec:\n r4 = r9.getLong(r1, r4);\n r2.zza(r13, r4);\n goto L_0x051d;\n L_0x04f4:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04fa:\n r4 = r9.getLong(r1, r4);\n r2.zzi(r13, r4);\n goto L_0x051d;\n L_0x0502:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0508:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzm(r1, r4);\n r2.zza(r13, r4);\n goto L_0x051d;\n L_0x0510:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0516:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzn(r1, r4);\n r2.zza(r13, r4);\n L_0x051d:\n r5 = r12 + 4;\n goto L_0x002c;\n L_0x0521:\n if (r10 == 0) goto L_0x0538;\n L_0x0523:\n r4 = r0.zzmy;\n r4.zza(r2, r10);\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0536;\n L_0x052e:\n r4 = r3.next();\n r4 = (java.util.Map.Entry) r4;\n r10 = r4;\n goto L_0x0521;\n L_0x0536:\n r10 = 0;\n goto L_0x0521;\n L_0x0538:\n r3 = r0.zzmx;\n zza(r3, r1, r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zzb(java.lang.Object, com.google.android.gms.internal.clearcut.zzfr):void\");\n }", "public void gored() {\n\t\t\n\t}", "protected abstract String getZ();", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "long getUnknown2();" ]
[ "0.54923147", "0.5483229", "0.54578924", "0.5417423", "0.539852", "0.53969365", "0.53937477", "0.5377312", "0.5364112", "0.53411996", "0.53387606", "0.5333474", "0.53298706", "0.52935153", "0.52745974", "0.52623117", "0.52598", "0.5231566", "0.5224493", "0.5223591", "0.52120733", "0.52100915", "0.51967925", "0.5180201", "0.5178338", "0.51738", "0.51496303", "0.5142901", "0.51379186", "0.5133843", "0.51305026", "0.5120301", "0.511864", "0.51119864", "0.5110687", "0.5105506", "0.51031727", "0.51007843", "0.5089099", "0.50876445", "0.50803226", "0.5079987", "0.50712645", "0.50705093", "0.506884", "0.50619274", "0.50588334", "0.50512695", "0.503816", "0.50251955", "0.5020509", "0.5018846", "0.501464", "0.5011659", "0.5010475", "0.50072616", "0.50019515", "0.5000464", "0.49979445", "0.4991351", "0.49875215", "0.49857464", "0.49817073", "0.49814653", "0.49779788", "0.4970903", "0.49666616", "0.4964802", "0.4961966", "0.49554074", "0.4952201", "0.49511412", "0.49471337", "0.4944838", "0.49365544", "0.49364096", "0.49353588", "0.49334773", "0.4930629", "0.4930435", "0.4927617", "0.49248996", "0.4920848", "0.4918042", "0.4917101", "0.4916783", "0.49165714", "0.4914824", "0.49146858", "0.49146235", "0.49138618", "0.49064988", "0.49051207", "0.49049363", "0.49027056", "0.49023178", "0.48950824", "0.48939958", "0.48927057", "0.48906288", "0.4888684" ]
0.0
-1
=========================================================== Final Fields =========================================================== =========================================================== Methods ===========================================================
@Override public IBitmapTextureAtlasSource deepCopy();
{ "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}", "private stendhal() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void init() {\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}", "private void init() {\n\n\n\n }", "@Override\n public void init() {\n\n }", "private Rekenhulp()\n\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\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private void initialize() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@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 initData() {\n\t\t\n\t}", "private TMCourse() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {}", "public void init() {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void init() {\n }", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "protected void mo6255a() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void init() {\r\n\r\n\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void init() {\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\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo4359a() {\n }", "private Singletion3() {}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n protected void getExras() {\n }", "private void m50366E() {\n }", "@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}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public void init()\n { \t\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}" ]
[ "0.655715", "0.64738506", "0.6412928", "0.64116406", "0.6361187", "0.63541526", "0.6350796", "0.63492125", "0.6299544", "0.6294755", "0.6286012", "0.6286012", "0.6286012", "0.6286012", "0.6286012", "0.62831604", "0.6272395", "0.626106", "0.6260074", "0.6260074", "0.6260074", "0.6256265", "0.6244772", "0.6238637", "0.6238637", "0.62331575", "0.6222482", "0.6222482", "0.62168926", "0.6215844", "0.6197003", "0.61965835", "0.61958796", "0.619517", "0.619517", "0.619517", "0.61769116", "0.6175022", "0.6170564", "0.6170564", "0.6170564", "0.6170564", "0.6170564", "0.6170564", "0.6161718", "0.615724", "0.61551046", "0.61527973", "0.6150346", "0.6148887", "0.6146381", "0.6146381", "0.6144538", "0.6141107", "0.6130275", "0.6130275", "0.6127205", "0.6113141", "0.6098429", "0.609829", "0.60960877", "0.6065184", "0.60598415", "0.60575664", "0.60575664", "0.60575664", "0.6054407", "0.6053506", "0.60428137", "0.60401124", "0.6039557", "0.60377234", "0.60359645", "0.6034724", "0.6034626", "0.6032693", "0.6031108", "0.6028364", "0.6028364", "0.6019491", "0.60162544", "0.60075384", "0.60009426", "0.5997463", "0.5978873", "0.59777206", "0.5977083", "0.5977083", "0.5977083", "0.5977083", "0.5977083", "0.5977083", "0.59648055", "0.5963311", "0.5963311", "0.5963311", "0.5963311", "0.596256", "0.595798", "0.5946905", "0.59400225" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void setData(DataStream dataStream) throws IOException { }
{ "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
converts Data to internal FeatureData object
public interface ReaderI { /** * reads from an Reader Object and creates a FeatureData Object * from the given Data * @param r Reader Object containing data to be read * @return FeatureData Object * @throws IOException throws caught IOExceptions and * Exceptions if Reader Object is empty * @throws DataFormatException throws an DataFormatException * if it detects inconsistencies in the data representation * of the file */ public FeatureData read(Reader r) throws IOException, DataFormatException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UMFeature convertFeatureDataBeanToFeatureModel(FeatureDataBean featureData) throws UMUserManagementException {\n UMFeature uMFeature = new UMFeature();\n\n uMFeature.setName(featureData.getName());\n if (featureData.getParent() != null) {\n uMFeature.setParent(featureService.getFeatureByFeatureId(featureData.getParent()));\n } else {\n uMFeature.setParent(null);\n }\n uMFeature.setDescription(featureData.getDescription());\n uMFeature.setMenuLabel(featureData.getMenuLable());\n uMFeature.setPrecedence(featureData.getPrecedence());\n uMFeature.setMenuType(featureData.getMenuType());\n uMFeature.setFeatureUrl(featureData.getFeatureURL());\n uMFeature.setWebserviceUrl(featureData.getWebserviceURL());\n uMFeature.setSeqNo(featureData.getSeqNo());\n uMFeature.setIsCrud(featureData.getCrud());\n uMFeature.setIsActive(featureData.getActive());\n uMFeature.setCreatedBy(loginDataBean.getId());\n\n return uMFeature;\n }", "public List<FeatureDataBean> convertFeatureDataBeanToFeatureModel(List<UMFeature> uMFeature) {\n List<FeatureDataBean> result = new ArrayList<>();\n\n for (UMFeature uMFeature1 : uMFeature) {\n FeatureDataBean featureDataBean1 = new FeatureDataBean();\n\n featureDataBean1.setId(uMFeature1.getId());\n featureDataBean1.setName(uMFeature1.getName());\n featureDataBean1.setDescription(uMFeature1.getDescription());\n featureDataBean1.setFeatureURL(uMFeature1.getFeatureUrl());\n featureDataBean1.setWebserviceURL(uMFeature1.getWebserviceUrl());\n featureDataBean1.setActive(uMFeature1.getIsActive());\n featureDataBean1.setCrud(uMFeature1.getIsCrud());\n featureDataBean1.setMenuLable(uMFeature1.getMenuLabel());\n featureDataBean1.setMenuType(uMFeature1.getMenuType());\n\n result.add(featureDataBean1);\n }\n return result;\n }", "public FeatureData read(Reader r) throws IOException, DataFormatException;", "@Override\n\tpublic Data toData() {\n\t\treturn null;\n\t}", "protected Map<String, String> getFeatureAttrs(Map<String, Object> data) {\n\t\treturn null;\n\t}", "interface Feature <T> {\n /**\n * @return original source of data.\n */\n Source source();\n\n /**\n * @return feature's data.\n */\n T data();\n }", "public IDataSet extractFeatures(String featureType);", "FData createFData();", "private void convertData() {\n m_traces = new ArrayList<Trace>();\n\n for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {\n m_traces.add(new Trace(trace));\n }\n\n m_module.getContent().getTraceContainer().addListener(m_traceListener);\n\n m_functions = new ArrayList<Function>();\n\n for (final INaviFunction function :\n m_module.getContent().getFunctionContainer().getFunctions()) {\n m_functions.add(new Function(this, function));\n }\n\n for (final Function function : m_functions) {\n m_functionMap.put(function.getNative(), function);\n }\n\n m_views = new ArrayList<View>();\n\n for (final INaviView view : m_module.getContent().getViewContainer().getViews()) {\n m_views.add(new View(this, view, m_nodeTagManager, m_viewTagManager));\n }\n\n createCallgraph();\n }", "public Object getDataObject() {\n return dataObject;\n }", "public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "public FurniData toFurniData ()\n {\n FurniData furni = new FurniData();\n furni.id = furniId;\n furni.itemType = itemType;\n furni.itemId = itemId;\n furni.media = SceneUtil.createMediaDesc(mediaHash, mediaType);\n furni.loc = new MsoyLocation(x, y, z, 0);\n furni.layoutInfo = layoutInfo;\n furni.scaleX = scaleX;\n furni.scaleY = scaleY;\n furni.rotation = rotation;\n furni.hotSpotX = hotSpotX;\n furni.hotSpotY = hotSpotY;\n furni.actionType = actionType;\n furni.actionData = actionData;\n return furni;\n }", "private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }", "public Object getData() \n {\n return data;\n }", "private void parseData() {\n\t\t\r\n\t}", "public T getData() {\n return mData;\n }", "public Object getData() {\n\t\treturn data;\n\t}", "@Override\n public FlotillaData getData() {\n FlotillaData data = new FlotillaData();\n data.setName(name);\n data.setLocation(reference);\n data.setBoats(getBoatNames(boats));\n\n return data;\n }", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T convertData(Data data, Class<T> targetClass) {\n\t\tif (data.getType().getName().equals(\"string\")) {\n\t\t\tString string;\n\t\t\ttry {\n\t\t\t\tstring = new DataInputStream(data.getValue()).readUTF();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"Fix this IOException passing\", e);\n\t\t\t}\n\t\t\tif (targetClass.equals(String.class)) {\n\t\t\t\treturn (T) string;\n\t\t\t} else if (targetClass.equals(Integer.class) || targetClass.equals(Integer.TYPE)) {\n\t\t\t\treturn (T) Integer.valueOf(string);\n\t\t\t} else if (targetClass.equals(Double.class) || targetClass.equals(Double.TYPE)) {\n\t\t\t\treturn (T) Double.valueOf(string);\n\t\t\t}\n\t\t} else if (data.getType().getName().equals(\"int32\")) {\n\t\t\tint integer;\n\t\t\ttry {\n\t\t\t\tinteger = new DataInputStream(data.getValue()).readInt();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"Fix this IOException passing\", e);\n\t\t\t}\n\t\t\tif (targetClass.equals(String.class)) {\n\t\t\t\treturn (T) String.valueOf(integer);\n\t\t\t} else if (targetClass.equals(Integer.class) || targetClass.equals(Integer.TYPE)) {\n\t\t\t\treturn (T) Integer.valueOf(integer);\n\t\t\t} else if (targetClass.equals(Double.class) || targetClass.equals(Double.TYPE)) {\n\t\t\t\treturn (T) Double.valueOf(integer);\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"Conversion for \" + data.getType().getName() + \" to \" + targetClass\n\t\t\t\t+ \" not implemented yet\");\n\t}", "public Data getData() {\n return data;\n }", "public Data getData() {\n return data;\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tFeature<T, ?> convertFeature(Feature<T,?> feature) {\n\t\tFeature<T, ?> convertedFeature = feature;\n\t\tif (feature.getFeatureType().equals(StringFeature.class) && !(feature instanceof StringFeature)) {\n\t\t\tconvertedFeature = new StringFeatureWrapper(feature);\n\t\t} else if (feature.getFeatureType().equals(BooleanFeature.class) && !(feature instanceof BooleanFeature)) {\n\t\t\tconvertedFeature = new BooleanFeatureWrapper(feature);\n\t\t} else if (feature.getFeatureType().equals(DoubleFeature.class) && !(feature instanceof DoubleFeature)) {\n\t\t\tconvertedFeature = new DoubleFeatureWrapper(feature);\n\t\t} else if (feature.getFeatureType().equals(IntegerFeature.class) && !(feature instanceof IntegerFeature)) {\n\t\t\tconvertedFeature = new IntegerFeatureWrapper(feature);\n\t\t} else {\n\t\t\tconvertedFeature = this.convertFeatureCustomType(feature);\n\t\t\tif (convertedFeature==null)\n\t\t\t\tconvertedFeature = feature;\n\t\t}\n\t\treturn convertedFeature;\n\t}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "public T getData() {\r\n return data;\r\n }", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "final public Object getDataObject() {\n return this.dataObject;\n }", "public Object getData() {\n return dataArray;\n }", "public Object getData();", "public void addData(F dataObject) {\r\n this.data = dataObject;\r\n }", "DataTypeInstance getDataInstance();", "Object getData();", "Object getData();", "public interface GeoData{\r\n /**\r\n * Most geodata sets contain features for which there is no data, or the data is missing.<br>\r\n * In these cases a specific value is often used to represent these special cases.<p>\r\n * The static final value MISSING is the default value used by GeoDatas to represent\r\n * these cases.\r\n * @see #setMissingValueCode\r\n * @see #getMissingValueCode\r\n */\r\n public static final double MISSING = Double.NaN;\r\n\r\n\t\t/** \r\n\t\t * All geodata have a type - this is particularly important when\r\n\t\t * interfacing with other data sources/formats.\r\n\t\t * @see #setDataType\r\n\t\t * @see #getDataType\r\n\t\t */\r\n\t\tpublic static final int CHARACTER = 0;\r\n\t\tpublic static final int INTEGER = 1;\r\n\t\tpublic static final int FLOATING = 2;\r\n \r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n * @author James Macgill JM\r\n * @return String The name associated with this GeoData.\r\n */\r\n String getName();\r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param name_ The name to be associated with this GeoData.\r\n */\r\n void setName(String name_);\r\n \r\n \r\n /**\r\n * looks up and matches a value to the specifed feature id.<br>\r\n * Used for example by shaders to obtain vaules for thematic mapping.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature id to retreve a value for.\r\n * @return double The value for the specified id, if no id matches the one given then the value specifed by setMissingValue should be returned.\r\n * @see #setMissingValue\r\n */\r\n double getValue(int id);\r\n \r\n /**\r\n * Looks up and retreves a string for the specifed feature id.<br>\r\n * Used for example by the ToolTip feature in Themes to provide tool tip text for each feature.\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature to retreve the text for.\r\n * @return String A piece of text for the chosen feature id. If no id matches then an empty string should be returned \" \"\r\n */\r\n String getText(int id);\r\n \r\n /**\r\n * In order to allow systems to iterate through all of the data contained within the GeoData object this\r\n * method provides a list of all of the IDs which have associated values stored.\r\n *\r\n * @author James Macgill JM\r\n * @return Enumeration An enumeration of all of the IDs which can then be iterated through.\r\n */\r\n Enumeration getIds();\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * By default that value is set to MISSING, however this behavoir can be changed by calling this method with a new value.<br>\r\n * \r\n * @see #getMissingValueCode\r\n * @author James Macgill JM\r\n * @param mv A double containing the new value to represent missing data.\r\n */\r\n public void setMissingValueCode(double mv);\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * A call to this method will return the current code in use to represent that situation.<br>\r\n *\r\n * @see #setMissingValueCode\r\n * @author James Macgill JM\r\n * @return double The current value representing missing data.\r\n */ \r\n public double getMissingValueCode();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The largest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMax();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The smallest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMin();\r\n \r\n /**\r\n * The total number of stored id/value pairs stored in this GeoData.\r\n * @author James Macgill JM\r\n * @return int The number of values stored in this GeoData.\r\n */\r\n int getSize();\r\n \r\n /**\r\n * The total number of stored values stored in this GeoData which equal the missing value code.\r\n * @author James Macgill JM\r\n * @return int The number of missing values stored in this GeoData.\r\n */\r\n int getMissingCount();\r\n\r\n\t\t/** \r\n\t\t * Gets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.CHARACTER</li> \r\n\t\t * <li>Integer - GeoData.INTEGER</li>\r\n\t\t * <li>Double - GeoData.FLOATING</li></ul>\r\n\t\t */\r\n\t\t int getDataType();\r\n\t\t/** \r\n\t\t * Sets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.character</li> \r\n\t\t * <li>Integer - GeoData.integer</li>\r\n\t\t * <li>Double - GeoData.float</li></ul>\r\n\t\t */\r\n\t\t void setDataType(int type );\r\n}", "public float[] getAsFloats() {\n return (float[])data;\n }", "public LightData (String dataTypeName, Float dataPoint, float max, float min, boolean nightMode){\n\n this.numberOfDataPoints = 1;\n this.dataTypeName = dataTypeName;\n this.max = max;\n this.min = min;\n this.nightMode = nightMode;\n\n dataPoints.add(dataPoint);\n scaledDataPoints.add(scale(dataPoint));\n\n }", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "public PointData translate(PointData data) {\n return data;\n }", "public Object getData(){\n\t\treturn this.data;\n\t}", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "Object getRawData();", "DataFactory getDataFactory();", "public final Layers getData()\r\n {\r\n return _theData;\r\n }", "public Object getUnderlyingObject() {\n return feature;\n }", "public D getData() {\n return data;\n }", "public D getData() {\n return data;\n }", "public E getData() { return data; }", "public synchronized Object getData() {\n return data;\n }", "public DataWrapProxy(float data) {\n this.data = data;\n }", "public T getData()\n\t{ \treturn this.data; }", "T getData() {\n\t\treturn data;\n\t}", "public IData getData() {\n return data;\n }", "public static Instances transformDataset(Instances dataset, ArrayList<Integer> featureList, String datasetName) {\n\n\t\t//Step 1. Create attribute set for new transformed dataset from featureList array\n\t\tFastVector attributes = new FastVector();\n\t\tfor(int i =0; i< featureList.size(); i++) {\n\t\t\t// Attribute att = new Attribute(\"F\"+terminalNodes.get(i));\n\t\t\tAttribute att = (Attribute) dataset.attribute(featureList.get(i)).copy();\n\t\t\tattributes.addElement(att);\n\t\t}\n\n\t\tAttribute attCls = dataset.classAttribute().copy(\"nclass\");\n\t\tattributes.addElement(attCls);\n\n\t\t//Step 2. Create new transformed dataset\n\t\tInstances transfDataset = new Instances(datasetName, attributes, 0 );\n\t\ttransfDataset.setClassIndex(featureList.size());\n\n\t\t//Step 3. Copy values from instances into new transform dataset\n\t\tfor(int i =0; i< dataset.numInstances(); i++) {\n\t\t\t//Step 3.1. Copy selected features' values into an array\n\t\t\tdouble[] new_inst_value = new double[featureList.size()+1];\n\t\t\tfor(int j = 0; j< featureList.size(); j++)\n\t\t\t\tnew_inst_value[j] = dataset.instance(i).value(featureList.get(j));\n\t\t\t//Step 3.2 Copy class label\n\t\t\tnew_inst_value[featureList.size()] = dataset.instance(i).classValue();\n\n\t\t\t//Step 3.3. Form the new instance and add it to transform dataset\n\t\t\tInstance new_inst = new Instance(1, new_inst_value);\n\t\t\ttransfDataset.add(new_inst);\n\t\t\tnew_inst.setDataset(transfDataset);\n\t\t}\n\n\t\treturn transfDataset;\n\t}", "protected abstract Object[] getData();", "public Object data() {\n return this.data;\n }", "private TicketData Ticket2TicketData(Ticket t) {\n\n\t\tBuilder ticketBuilder = TicketData.newBuilder();\n\t\tticketBuilder.setDescription(t.getDescription());\n\t\tticketBuilder.setId(t.getId());\n\t\tticketBuilder.setPriority(de.uniba.rz.io.rpc.TicketData.Priority.values()[t.getPriority().ordinal()]);\n\t\tticketBuilder.setReporter(t.getReporter());\n\t\tticketBuilder.setStatus(de.uniba.rz.io.rpc.TicketData.Status.values()[t.getStatus().ordinal()]);\n\t\tticketBuilder.setTopic(t.getTopic());\n\t\tticketBuilder.setType(de.uniba.rz.io.rpc.TicketData.Type.values()[t.getType().ordinal()]);\n\n\t\treturn ticketBuilder.build();\n\n\t}", "public abstract Object getData();", "public D getData(){\n\t\treturn data;\n\t}", "T getData();", "public void setData(Object oData) { m_oData = oData; }", "protected abstract D createData();", "@Override\n public void init(float[] data) {\n this.data = data;\n\n //\n shapeArr = new Rectangle2D.Float[data.length];\n colorArr = new Color[data.length];\n pointArr = new Point2D.Float[data.length];\n }", "@Override\n\tpublic Data getDataModelVariables() {\n\t\treturn new Data();\n\t}", "Collection getData();", "public A getData()\n\t{\n\t\treturn data;\n\t}", "@Override\r\n\tpublic E getData() {\n\t\treturn data;\r\n\t}", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "public Data() {}", "public Object convertToCatalyst (Object a, org.apache.spark.sql.catalyst.types.DataType dataType) ;", "@Override\r\n\tpublic FloatMat data() { return this.data; }", "public T getData(){\n return this.data;\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}", "public T getData() {\n return this.data;\n }", "private static void ProcessObsValData(byte[] data) throws Exception{\n\t\tFloatType ft = new FloatType(0xFF000270);\n\t\t//System.out.println(\" byteValue: \" + getHexString(data));\n\t\tSystem.out.println(\" Value: \" + ft);\n\t}", "public void setValue(List<T> convertData) {\n this.data = convertData;\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public java.util.List getData() {\r\n return data;\r\n }", "public Layer[] reconstruct(){\r\n ArrayList<String[]> rawData = pullFromText(location);\r\n return rawData != null ? reformat(rawData) : null;\r\n }", "protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "public List<Data> getData() {\n return data;\n }", "void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}", "public E getData(){\n\t\t\treturn data;\n\t\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "public T getData() {\r\n\t\t\treturn t;\r\n\t\t}", "public final DataSet getData() {\n return data;\n }", "public int[] convertDataBytes(int[] points, byte[] dataBuffer) {\n\t\t//noop due to previous parsed CSV data\n\t\treturn points;\n\t}", "public DataImpl getData() {\n RealTupleType domain = overlay.getDomainType();\n TupleType range = overlay.getRangeType();\n \n float[][] setSamples = nodes;\n float r = color.getRed() / 255f;\n float g = color.getGreen() / 255f;\n float b = color.getBlue() / 255f;\n float[][] rangeSamples = new float[3][setSamples[0].length];\n Arrays.fill(rangeSamples[0], r);\n Arrays.fill(rangeSamples[1], g);\n Arrays.fill(rangeSamples[2], b);\n \n FlatField field = null;\n try {\n GriddedSet fieldSet = new Gridded2DSet(domain,\n setSamples, setSamples[0].length, null, null, null, false);\n FunctionType fieldType = new FunctionType(domain, range);\n field = new FlatField(fieldType, fieldSet);\n field.setSamples(rangeSamples);\n }\n catch (VisADException exc) { exc.printStackTrace(); }\n catch (RemoteException exc) { exc.printStackTrace(); }\n return field;\n }", "public E getData() {\r\n\t\treturn data;\r\n\t}", "public String getDataString() {\r\n return formatoData.format(data);\r\n }", "@Override\r\n\tpublic void initData() {\n\t}", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "public T getData()\n\t{\n\t\treturn this.data;\n\t}", "public DataItem getData() {\n return data;\n }", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}" ]
[ "0.68139637", "0.60174423", "0.58542806", "0.570595", "0.57058835", "0.5673746", "0.5655685", "0.5633717", "0.56335604", "0.55993265", "0.5594411", "0.55823725", "0.5567985", "0.5541264", "0.55181587", "0.5512613", "0.54861826", "0.54807967", "0.5479435", "0.5477926", "0.54703814", "0.5411944", "0.5411944", "0.54102683", "0.53937995", "0.5371491", "0.53691286", "0.5364663", "0.5360115", "0.53589565", "0.53507465", "0.53468823", "0.534524", "0.534524", "0.53142947", "0.53110504", "0.53072673", "0.53045064", "0.5298701", "0.52909964", "0.52887243", "0.5280149", "0.52786785", "0.5273171", "0.52718174", "0.52301365", "0.52301365", "0.5229984", "0.5222667", "0.5210776", "0.52076715", "0.5206815", "0.5203225", "0.51977146", "0.5182106", "0.5181453", "0.51797163", "0.5168794", "0.51638126", "0.51636535", "0.51628244", "0.51602757", "0.51582944", "0.5156439", "0.5153087", "0.51308155", "0.5116724", "0.5113742", "0.5112387", "0.51057154", "0.5104272", "0.5095536", "0.5089511", "0.5088062", "0.5076765", "0.5066823", "0.5065008", "0.5058907", "0.5047155", "0.50406224", "0.50373375", "0.5036955", "0.5036955", "0.50353986", "0.50352865", "0.5023106", "0.5008115", "0.50073755", "0.500718", "0.5005357", "0.5004402", "0.49890646", "0.49870878", "0.49855053", "0.4983498", "0.49808046", "0.49789208", "0.49789208", "0.4973023", "0.49726745", "0.49701083" ]
0.0
-1
reads from an Reader Object and creates a FeatureData Object from the given Data
public FeatureData read(Reader r) throws IOException, DataFormatException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ReaderI {\n\t\n\t/**\n\t * reads from an Reader Object and creates a FeatureData Object\n\t * from the given Data\n\t * @param r Reader Object containing data to be read\n\t * @return FeatureData Object\n\t * @throws IOException throws caught IOExceptions and\n\t * Exceptions if Reader Object is empty\n\t * @throws DataFormatException throws an DataFormatException\n\t * \t\t if it detects inconsistencies in the data representation\n\t * of the file\n\t */\n\tpublic FeatureData read(Reader r) throws IOException, DataFormatException;\n}", "public UMFeature convertFeatureDataBeanToFeatureModel(FeatureDataBean featureData) throws UMUserManagementException {\n UMFeature uMFeature = new UMFeature();\n\n uMFeature.setName(featureData.getName());\n if (featureData.getParent() != null) {\n uMFeature.setParent(featureService.getFeatureByFeatureId(featureData.getParent()));\n } else {\n uMFeature.setParent(null);\n }\n uMFeature.setDescription(featureData.getDescription());\n uMFeature.setMenuLabel(featureData.getMenuLable());\n uMFeature.setPrecedence(featureData.getPrecedence());\n uMFeature.setMenuType(featureData.getMenuType());\n uMFeature.setFeatureUrl(featureData.getFeatureURL());\n uMFeature.setWebserviceUrl(featureData.getWebserviceURL());\n uMFeature.setSeqNo(featureData.getSeqNo());\n uMFeature.setIsCrud(featureData.getCrud());\n uMFeature.setIsActive(featureData.getActive());\n uMFeature.setCreatedBy(loginDataBean.getId());\n\n return uMFeature;\n }", "public IDataSet extractFeatures(String featureType);", "public FeatureReader<SimpleFeatureType, SimpleFeature> getFeatureReader(final String typeName)\n throws IOException {\n \treturn new DelegateFeatureReader<SimpleFeatureType, SimpleFeature>( getSchema(typeName), collection.features() );\n }", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "FData createFData();", "Feature loadFeature(Integer id);", "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}", "DataFactory getDataFactory();", "interface Feature <T> {\n /**\n * @return original source of data.\n */\n Source source();\n\n /**\n * @return feature's data.\n */\n T data();\n }", "public void init(BinaryDataReader dataReader) throws IOException\n\t{\n\t}", "public static Block createBlock(String edfRecord, String data) throws UnsupportedEncodingException {\r\n\t\tString[] values = edfRecord.split(\",\");\r\n\t\tTemporalProperties temporalProperties = new TemporalProperties(reformatDatetime(values[7]));\r\n\t\tSpatialProperties spatialProperties = new SpatialProperties(parseFloat(values[24]), parseFloat(values[25]));\r\n\t\tFeatureSet features = new FeatureSet();\r\n\t\tfeatures.put(new Feature(\"platform_id\", values[0]));\t\t\r\n\t\tfeatures.put(new Feature(\"date\", values[1]));\r\n\t\tfeatures.put(new Feature(\"time\", values[2]));\r\n\t\tfeatures.put(new Feature(\"datetime\", values[3]));\r\n\t\tfeatures.put(new Feature(\"frac_days_since_jan1\", parseFloat(values[4])));\r\n\t\tfeatures.put(new Feature(\"frac_hrs_since_jan1\", parseFloat(values[5])));\r\n\t\tfeatures.put(new Feature(\"julian_days\", parseFloat(values[6])));\r\n\t\tfeatures.put(new Feature(\"epoch_time\", reformatDatetime(values[7])));\r\n\t\tfeatures.put(new Feature(\"alarm_status\", parseFloat(values[8])));\r\n\t\tfeatures.put(new Feature(\"inst_status\", parseFloat(values[9])));\r\n\t\tfeatures.put(new Feature(\"cavity_pressure\", parseFloat(values[10])));\r\n\t\tfeatures.put(new Feature(\"cavity_temp\", parseFloat(values[11])));\r\n\t\tfeatures.put(new Feature(\"das_temp\", parseFloat(values[12])));\r\n\t\tfeatures.put(new Feature(\"etalon_temp\", parseFloat(values[13])));\r\n\t\tfeatures.put(new Feature(\"warm_box_temp\", parseFloat(values[14])));\r\n\t\tfeatures.put(new Feature(\"species\", parseFloat(values[15])));\r\n\t\tfeatures.put(new Feature(\"mvp_position\", parseFloat(values[16])));\r\n\t\tfeatures.put(new Feature(\"outlet_valve\", parseFloat(values[17])));\r\n\t\tfeatures.put(new Feature(\"solenoid_valves\", parseFloat(values[18])));\r\n\t\tfeatures.put(new Feature(\"co2\", parseFloat(values[19])));\r\n\t\tfeatures.put(new Feature(\"co2_dry\", parseFloat(values[20])));\r\n\t\tfeatures.put(new Feature(\"ch4\", parseFloat(values[21])));\r\n\t\tfeatures.put(new Feature(\"ch4_dry\", parseFloat(values[22])));\r\n\t\tfeatures.put(new Feature(\"h2o\", parseFloat(values[23])));\r\n\t\tfeatures.put(new Feature(\"gps_abs_lat\", parseFloat(values[24])));\r\n\t\tfeatures.put(new Feature(\"gps_abs_lon\", parseFloat(values[25])));\r\n\t\tfeatures.put(new Feature(\"gps_fit\", parseFloat(values[26])));\r\n\t\tfeatures.put(new Feature(\"gps_time\", parseFloat(values[27])));\r\n\t\tfeatures.put(new Feature(\"ws_wind_lon\", parseFloat(values[28])));\r\n\t\tfeatures.put(new Feature(\"ws_wind_lat\", parseFloat(values[29])));\r\n\t\tfeatures.put(new Feature(\"ws_cos_heading\", parseFloat(values[30])));\r\n\t\tfeatures.put(new Feature(\"ws_sin_heading\", parseFloat(values[31])));\r\n\t\tfeatures.put(new Feature(\"wind_n\", parseFloat(values[32])));\r\n\t\tfeatures.put(new Feature(\"wind_e\", parseFloat(values[33])));\r\n\t\tfeatures.put(new Feature(\"wind_dir_sdev\", parseFloat(values[34])));\r\n\t\tfeatures.put(new Feature(\"ws_rotation\", parseFloat(values[35])));\r\n\t\tfeatures.put(new Feature(\"car_speed\", parseFloat(values[36])));\r\n\t\tfeatures.put(new Feature(\"postal_code\", values[37]));\r\n\t\tfeatures.put(new Feature(\"locality\", values[38]));\r\n\t\tfeatures.put(new Feature(\"s2_30_int\", parseLong(values[39])));\r\n\t\t\t\r\n\t\tMetadata metadata = new Metadata();\r\n\t\tmetadata.setName(GeoHash.encode(parseFloat(values[24]), parseFloat(values[25]), 7));\r\n\t\tmetadata.setTemporalProperties(temporalProperties);\r\n\t\tmetadata.setsIndex(new SearchIndex(\"24\",\"25\",\"7\"));\r\n\t\tmetadata.setSpatialProperties(spatialProperties);\r\n\t\tmetadata.setSpatialHint(new SpatialHint(\"gps_abs_lat\", \"gps_abs_lon\"));\r\n\t\tmetadata.setAttributes(features);\r\n\t\t\r\n\t\treturn new Block(\"airview\", metadata, data.getBytes(\"UTF-8\"));\r\n\t}", "public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "public static FeatureSetView LoadFeatureSetViewFromFile(BufferedReader reader) throws IOException\n\t{\n\t\tString strFeatureSetInfo = reader.readLine();\n\t\tFeatureSetInfo featureSet = createFeatureSetFromString(strFeatureSetInfo);\n\t\tFeatureSetView featureSetView = new FeatureSetView(featureSet);\n\t\t//必须严格按照写入顺序读取\n\t\tfeatureSetView.ItemCount = (int) GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.MaxFeatureId = GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.MaxFeatureValue = (int) GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.MinFeatureId = GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.MinFeatureValue = (int) GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.TotalFeatureCount = (int) GetPropertyValue(reader.readLine());\n\t\treader.readLine();\n\t\twhile(true)\n\t\t{\n\t\t\tString line = reader.readLine();\n\t\t\tif(line == null || line.trim() == _featureSetSplitLine)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] fields = line.split(\":\");\n\t\t\tif (fields.length < 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong featureId = Long.parseLong(fields[0]);\n\t\t\tint featureImp = Integer.parseInt(fields[1]);\n\t\t\tfeatureSetView.FeatureCount.put(featureId, new FeatureImpInfo(featureId,featureImp));\n\t\t}\n\t\treturn featureSetView;\n\t\t\n\t}", "Feature createFeature();", "public List<Feature> process(String tag, String data);", "private List<GeneralResultRow> getData(FeatureSource<?, ?> featureSource)\n\t\t\tthrows Exception {\n\t\tif (featureSource == null) {\n\t\t\tException mple = new Exception(\"featureSource is null\");\n\t\t\tmple.printStackTrace();\n\t\t\tthrow mple;\n\t\t}\n\t\tthis.crs=featureSource.getSchema()\n\t\t\t\t.getCoordinateReferenceSystem();\n\t\tString crs = org.geotools.gml2.bindings.GML2EncodingUtils\n\t\t\t\t.epsgCode(this.crs);\n\t\tif (crs == null) {\n\t\t\tcrs = \"\" + Config.EPSG_CODE + \"\";\n\t\t}else{\n\t\t\ttry {\n\t\t\t\tint code=CRS.lookupEpsgCode(featureSource.getSchema().getCoordinateReferenceSystem(), true);\n\t\t\t\t//System.out.println(\"the code is: \"+code);\n\t\t\t\tcrs = String.valueOf(code);\n\t\t\t} catch (FactoryException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tthis.crsstring=crs;\n\t\t\n\t\tFeatureCollection<?, ?> collection = featureSource.getFeatures();\n\t\tFeatureIterator<?> iterator = collection.features();\n\t\tList<GeneralResultRow> resultlist = new ArrayList<GeneralResultRow>();\n\t\ttry {\n\t\t\tdouble total_thematic_duration=0.0;\n\t\t\tdouble total_duration_geom=0.0;\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\n\t\t\t\tlong startTime = System.nanoTime();\n\t\t\t\tFeature feature = iterator.next();\n\t\t\t\tGeneralResultRow newrow = new GeneralResultRow(); // new row\n\t\t\t\tfor (Property p : feature.getProperties()) {\n\t\t\t\t\tnewrow.addPair(p.getName().getLocalPart(), p.getValue());\n\t\t\t\t}\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tdouble duration = (endTime - startTime) / 1000000; // divide by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1000000 to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// milliseconds.\n\t\t\t\ttotal_thematic_duration += duration;\n\t\t\t\tPrintTimeStats.printTime(\"Read Thematic from file\", duration);\n\t\t\t\t\n\t\t\t\tnewrow.addPair(primarykey, KeyGenerator.Generate()); // Add\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// primary\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// key\n\t\t\t\tstartTime = System.nanoTime();\n\t\t\t\tGeometryAttribute sourceGeometryAttribute = feature\n\t\t\t\t\t\t.getDefaultGeometryProperty();\n\t\t\t\tendTime = System.nanoTime();\n\t\t\t\tduration = (endTime - startTime) ; // divide by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1000000 to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// milliseconds.\n\t\t\t\ttotal_duration_geom+= duration;\n\t\t\t\tPrintTimeStats.printTime(\"Read Geometry from file\", duration);\n\t\t\t\t\n\n\t\t\t\t//RowHandler.handleGeometry(newrow, (Geometry)sourceGeometryAttribute.getValue(), crs);\n\t\t\t\tresultlist.add(newrow);\n\t\t\t}\n\t\t\tPrintTimeStats.printTime(\"Read Thematic data (total) from file\", total_thematic_duration);\n\t\t\tPrintTimeStats.printTime(\"Read Geometries (total) from file\", total_duration_geom);\n\t\t} finally {\n\t\t\titerator.close();\n\t\t}\n\n\t\treturn resultlist;\n\t}", "protected Dataset readDatasetX(Reader datasetReader) throws IOException {\n List<Clause> clauses = new ArrayList<Clause>();\n List<String> classifications = new ArrayList<String>();\n readExamples(datasetReader, clauses, classifications);\n MemoryBasedDataset dataset = new MemoryBasedDataset();\n for (int i = 0; i < clauses.size(); i++){\n dataset.addExample(new Example(clauses.get(i)), classifications.get(i));\n }\n return dataset;\n }", "public List<FeatureDataBean> convertFeatureDataBeanToFeatureModel(List<UMFeature> uMFeature) {\n List<FeatureDataBean> result = new ArrayList<>();\n\n for (UMFeature uMFeature1 : uMFeature) {\n FeatureDataBean featureDataBean1 = new FeatureDataBean();\n\n featureDataBean1.setId(uMFeature1.getId());\n featureDataBean1.setName(uMFeature1.getName());\n featureDataBean1.setDescription(uMFeature1.getDescription());\n featureDataBean1.setFeatureURL(uMFeature1.getFeatureUrl());\n featureDataBean1.setWebserviceURL(uMFeature1.getWebserviceUrl());\n featureDataBean1.setActive(uMFeature1.getIsActive());\n featureDataBean1.setCrud(uMFeature1.getIsCrud());\n featureDataBean1.setMenuLable(uMFeature1.getMenuLabel());\n featureDataBean1.setMenuType(uMFeature1.getMenuType());\n\n result.add(featureDataBean1);\n }\n return result;\n }", "DataObject loadObject(XMLStreamReader reader) throws XMLStreamException, IllegalStateException;", "public FeatureDictionary(Element e) throws BoxerXMLException {\n\tif (!e.getTagName().equals(XML.FEATURES)) {\n\t throw new BoxerXMLException(\"FeatureDictionary can only be deserialized from an XML element named `\" + XML.FEATURES + \"'\");\n\t}\n\n\tfor(Node n = e.getFirstChild(); n!=null; n = n.getNextSibling()) {\n\t int type = n.getNodeType();\n\t //System.out.println(\"Node Name = \" + n.getNodeName()+ \t\t\t\t \", type=\" + type + \", val= \" + val);\n\t \n\t boolean found = false;\n\t if (type == Node.COMMENT_NODE) { // skip \n\t } else if (type == Node.TEXT_NODE) {\n\t\tString val = n.getNodeValue().trim();\n\t\tif (val.length()==0) { \t\t//skip\n\t\t} else {\n\t\t if (found) throw new BoxerXMLException(\"FeatureDictionary deserializer expects only one non-empty TEXT element in the XML element being parsed\");\n\t\t found = true;\n\t\t String[] tokens = val.split(\"\\\\s+\");\n\t\t if (ADD_DUMMY_COMPONENT && \n\t\t\t(tokens.length==0 || !tokens[0].equals(DUMMY_LABEL))) {\n\t\t\tthrow new BoxerXMLException(\"FeatureDictionary deserializer: ADD_DUMMY_COMPONENT flag is on, but the feature list in the XML element does not start with \" + DUMMY_LABEL);\n\t\t }\n\t\t id2label.setSize(tokens.length);\n\n\t\t for(int i=0; i<tokens.length; i++) {\n\t\t\tif (!IDValidation.validateFeatureName(tokens[i])) {\n\t\t\t throw new BoxerXMLException(\"Can't add feature with the name '\"+ tokens[i]+\"' to the feature dictionary, because this is not a legal name\");\n\t\t\t}\n\t\t\tid2label.set( i, tokens[i]);\n\t\t\tlabel2id.put( tokens[i], i);\n\t\t }\n\t\t}\n\t } else {\n\t\tthrow new IllegalArgumentException(\"FeatureDictionary deserializer: encountered unexpected node type \" + type);\n\t }\n\t}\n }", "@Override\n public void setFeatures(FeatureReader<SimpleFeatureType, SimpleFeature> reader)\n throws IOException {\n TransformFeatureReaderWrapper rr = new TransformFeatureReaderWrapper(reader, invertedTransformer);\n store.setFeatures(rr);\n }", "public ArrayList<Instance> read() throws IOException{\n ArrayList<Instance> instances;\n instances = new ArrayList<>();\n String s;\n String[] c;\n Instance i;\n while(reader.ready()){\n s = getInstanceFromFile();\n i = new Instance();\n c = s.split(\",\");\n for(int j = 0; j < c.length - 1; j++)\n i.addFeature(Double.parseDouble(c[j]));\n // The last part of a line is the class label\n // See dataset that is used\n i.setClassification(c[c.length - 1]);\n instances.add(i);\n }\n return instances;\n }", "private static CSVData getReader(){\n\t\tCSVData csv = null;\n\t\ttry {\n\t\t\tcsv = new CSVData();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn csv;\n\t}", "public Input readData() {\n JSONParser jsonParser = new JSONParser();\n List<Consumer> consumers = new ArrayList<>();\n List<Distributor> distributors = new ArrayList<>();\n List<Producer> producers = new ArrayList<>();\n List<MonthlyUpdates> monthlyUpdates = new ArrayList<>();\n long numberOfTurns;\n\n try {\n // Parsing the contents of the JSON file\n JSONObject jsonObject = (JSONObject) jsonParser.parse(new FileReader(inputPath));\n numberOfTurns = (long) (jsonObject.get(\"numberOfTurns\"));\n JSONObject initialData = (JSONObject) jsonObject.get(\"initialData\");\n JSONArray jsonConsumers = (JSONArray) initialData.get(\"consumers\");\n JSONArray jsonDistributors = (JSONArray) initialData.get(\"distributors\");\n JSONArray jsonProducers = (JSONArray) initialData.get(\"producers\");\n\n if (jsonConsumers != null) {\n ConsumerFactory consumerFactory = ConsumerFactory.getInstance();\n for (Object jsonConsumer : jsonConsumers) {\n consumers.add(consumerFactory.createConsumer(\n (long) ((JSONObject) jsonConsumer).get(\"id\"),\n (long) ((JSONObject) jsonConsumer).get(\"initialBudget\"),\n (long) ((JSONObject) jsonConsumer).get(\"monthlyIncome\")));\n }\n }\n\n if (jsonDistributors != null) {\n DistributorFactory distributorFactory = DistributorFactory.getInstance();\n for (Object jsonDistributor : jsonDistributors) {\n distributors.add(distributorFactory.createDistributor(\n (long) ((JSONObject) jsonDistributor).get(\"id\"),\n (long) ((JSONObject) jsonDistributor).get(\"contractLength\"),\n (long) ((JSONObject) jsonDistributor).get(\"initialBudget\"),\n (long) ((JSONObject) jsonDistributor).get(\"initialInfrastructureCost\"),\n (long) ((JSONObject) jsonDistributor).get(\"energyNeededKW\"),\n EnergyChoiceStrategyType.valueOf(((JSONObject) jsonDistributor).\n get(\"producerStrategy\").toString())));\n }\n }\n\n if (jsonProducers != null) {\n for (Object jsonProducer : jsonProducers) {\n producers.add(new Producer(((long) ((JSONObject) jsonProducer).get(\"id\")),\n EnergyType.valueOf(((JSONObject) jsonProducer).\n get(\"energyType\").toString()),\n (long) ((JSONObject) jsonProducer).get(\"maxDistributors\"),\n (double) ((JSONObject) jsonProducer).get(\"priceKW\"),\n (long) ((JSONObject) jsonProducer).get(\"energyPerDistributor\")));\n }\n }\n\n JSONArray jsonUpdates = (JSONArray) jsonObject.get(\"monthlyUpdates\");\n\n for (JSONObject monthlyUpdate : (Iterable<JSONObject>) jsonUpdates) {\n MonthlyUpdates update = new MonthlyUpdates();\n JSONArray newConsumers = (JSONArray) monthlyUpdate.get(\"newConsumers\");\n for (JSONObject newConsumer : (Iterable<JSONObject>) newConsumers) {\n update.getNewConsumers().add(new Consumer(Long.parseLong(newConsumer.get(\"id\").\n toString()),\n Long.parseLong(newConsumer.get(\"initialBudget\").toString()),\n Long.parseLong(newConsumer.get(\"monthlyIncome\").toString())));\n }\n org.json.simple.JSONArray costsChanges = (JSONArray) monthlyUpdate.\n get(\"distributorChanges\");\n for (JSONObject costsChange : (Iterable<JSONObject>) costsChanges) {\n update.getCostsChanges().add(new CostsChanges(Long.parseLong(costsChange.\n get(\"id\").toString()),\n Long.parseLong(costsChange.get(\"infrastructureCost\").toString())));\n }\n monthlyUpdates.add(update);\n }\n return new Input(numberOfTurns, consumers, distributors, producers, monthlyUpdates);\n\n } catch (ParseException | IOException e) {\n e.printStackTrace();\n }\n\n return new Input(0, consumers, distributors, producers, monthlyUpdates);\n\n }", "private void testDataReader() {\n File csv = new File(pathTest);\n try (FileReader fr = new FileReader(csv); BufferedReader bfr = new BufferedReader(fr)) {\n Logger.printInfo(\"Reading test data\");\n for (String line; (line = bfr.readLine()) != null; ) {\n String[] split = line.split(\",\");\n String data = textCleaner(split[indexData].toLowerCase());\n int label = Integer.parseInt(split[indexLabel].toLowerCase());\n\n linesTest.add(data);\n labelsTest.add(label);\n Logger.print(\"Reading size: \" + linesTest.size());\n }\n for (String l : linesTest) {\n matrixTest.add(wordVectorizer(l));\n }\n } catch (IOException ex) {\n Logger.printError(\"!! Test Data Not Reading !!\");\n System.exit(0);\n }\n }", "private static Data getDataObject(final String dataset) throws IOException {\n \n final Data data = Data.create(dataset, StandardCharsets.UTF_8, ';');\n \n // Read generalization hierachies\n final FilenameFilter hierarchyFilter = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n if (name.matches(dataset.substring(dataset.lastIndexOf(\"/\") + 1, dataset.length() - 4) + \"_hierarchy_(.)+.csv\")) {\n return true;\n } else {\n return false;\n }\n }\n };\n \n final File testDir = new File(dataset.substring(0, dataset.lastIndexOf(\"/\")));\n final File[] genHierFiles = testDir.listFiles(hierarchyFilter);\n final Pattern pattern = Pattern.compile(\"_hierarchy_(.*?).csv\");\n \n for (final File file : genHierFiles) {\n final Matcher matcher = pattern.matcher(file.getName());\n if (matcher.find()) {\n \n final CSVHierarchyInput hier = new CSVHierarchyInput(file, StandardCharsets.UTF_8, ';');\n final String attributeName = matcher.group(1);\n \n // use all found attribute hierarchies as qis\n data.getDefinition().setAttributeType(attributeName, Hierarchy.create(hier.getHierarchy()));\n \n }\n }\n \n return data;\n }", "public static FileData CreateFromFile(String pathWithFileName) throws Exception\n {\n FileData fileData = new FileData();\n fileData.ReadFrom(pathWithFileName);\n return fileData;\n }", "private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }", "public abstract StatDataFileReader createReaderInstance(Object extension)\n throws IOException;", "static public List<Product> productReader() throws IOException {\n BufferedReader csvReader = new BufferedReader(new FileReader(PRODUCTS_REFERENCE_FILE));\n String row;\n List<Product> dataList = new ArrayList<>();\n\n row = csvReader.readLine();\n while ((row = csvReader.readLine()) != null){\n\n Product data = new Product();\n //I separate the row data by a separator, a coma in this case and add all the data in the class\n String[] datas = row.split(SEPARATOR_COLON);\n\n data.setProduct_id(Integer.parseInt(datas[0]));\n data.setName(datas[1]);\n data.setDescription(datas[2]);\n data.setCategory_id(Integer.parseInt(datas[3]));\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/dd/yyyy\");\n\n //Since some dates had just one number for the month, I had to use this to add a 0\n //to make all the dates the same length after getting rid of the 0:01 that was not necessary\n String[] creationDate = datas[4].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setCreation_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[5].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setUpdate_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[6].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setLast_purchased_date(LocalDate.parse(creationDate[0], formatter));\n\n dataList.add(data);\n\n }\n return dataList;\n\n }", "private Product readProduct(JsonReader reader) throws IOException {\n\t\tint id = 0;\n\t\tString name = null;\n\t\tfloat price = (float) 0.0;\n\n\t\treader.beginObject();\n\t\twhile(reader.hasNext()){\n\t\t\tString item = reader.nextName();\n\t\t\tif(item.equals(\"id\")){\n\t\t\t\tid = reader.nextInt();\n\t\t\t}else if(item.equals(\"name\")){\n\t\t\t\tname = reader.nextString();\n\t\t\t}else if(item.equals(\"price\")){\n\t\t\t\tprice = (float) reader.nextDouble();\n\t\t\t}\n\t\t}\n\t\treader.endObject();\n\n\t\treturn new Product(id, name, price);\n\t}", "public Object parseAndClose(Reader reader, Type dataType) throws IOException {\n return mMapper.readValue(reader, dataType.getClass());\n }", "Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;", "void readData(String fileName, boolean [] data, String wName){\n\t\tworld = new File(wName);\n\t\tDataProcessing dp = new DataProcessing(fileName, data);\n\t\tdp.findHotspots();\n\n\t\ttempVals = dp.hotspots;\n\t\t\t\n\t\t\t// create randomly permuted list of indices for traversal \n\t\t\tgenPermute(); \n\t\t\t\n\t\t\t// generate greyscale tempVals field image\n\t\t\tderiveImage();\n\n\t}", "@Test\n\tpublic void testReader2() {\n\t\tFile file = new File(\"examples/testing/FMs/fmTestReader2.fml\");\n\t\ttry {\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(file));\n\t\t\tBufferedReader br = new BufferedReader(new StringReader(_fm));\n\t\t\tString str;\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\tbw.write(str);\n\t\t\t}\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\n\t\t}\n\t\tFeatureModel fm = new FMLFeatureModelReader().parseFile(file);\n\t\tFeatureModelStringBuilder visitor = new FeatureModelStringBuilder(fm);\n\t\tString produced = visitor.toString();\n\t\tassertEquals(_fm, produced);\n\n\t\t// fm to XMI\n\t\tXMIResource xmi = new FMLFeatureModelWriter(fm)\n\t\t\t\t.toXMI(\"examples/testing/FMs/fmTestReader2ecore\");\n\t\t// XMI to fm\n\t\tFeatureModel fm3 = new FMLFeatureModelReader().parseXMIFile(xmi);\n\t\tFeatureModelStringBuilder visitor3 = new FeatureModelStringBuilder(fm3);\n\t\tString produced2 = visitor3.toString();\n\n\t\tassertEquals(_fm, produced2);\n\n\t}", "public void deserialize(RevisionDataInput dataInput, ReaderType target) throws IOException {\n deserialize(dataInput.getBaseStream(), target);\n }", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public MetaInfoReader(String dataset) {\n this(dataset, \"../output/tracker_data/\");\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "private <T> CsvToBean<T> getData(Reader reader, Class<T> type) {\n return new CsvToBeanBuilder<T>(reader)\n .withSeparator(',')\n .withIgnoreLeadingWhiteSpace(true)\n .withIgnoreEmptyLine(true)\n .withType(type)\n .build();\n }", "public LightData (String dataTypeName, Float dataPoint, float max, float min, boolean nightMode){\n\n this.numberOfDataPoints = 1;\n this.dataTypeName = dataTypeName;\n this.max = max;\n this.min = min;\n this.nightMode = nightMode;\n\n dataPoints.add(dataPoint);\n scaledDataPoints.add(scale(dataPoint));\n\n }", "private void readFields() throws IOException, ClassFormatException {\n final int fields_count = dataInputStream.readUnsignedShort();\n fields = new Field[fields_count];\n for (int i = 0; i < fields_count; i++) {\n fields[i] = new Field(dataInputStream, constant_pool);\n }\n }", "private void readActorData(String[] lineData)\n {\n int actorCodeIdx = 0;\n int actorFileNameIdx = 1;\n int actorIngameNameIdx = 2;\n int sprite_statusIdx = 3;\n int sensor_statusIdx = 4;\n int directionIdx = 5;\n\n Direction direction = Direction.of(lineData[directionIdx]);\n ActorData actorData = new ActorData(lineData[actorFileNameIdx], lineData[actorIngameNameIdx], lineData[sprite_statusIdx], lineData[sensor_statusIdx], direction);\n actorDataMap.put(lineData[actorCodeIdx], actorData);\n\n //Player start position is not based on tile schema\n if (actorData.actorFileName.equals(ACTOR_DIRECTORY_PATH + \"player\"))\n createPlayer(actorData);\n else\n loadedTileIdsSet.add(lineData[actorCodeIdx]);//Player is not defined by layers\n }", "public InputData getData() throws IOException {\n\n ObjectMapper mapper = new ObjectMapper();\n return mapper.readValue(Paths.get(inFile).toFile(), InputData.class);\n }", "public <T extends Serializable> List<T> reader(String readPath, String splitChareckter,\n Class<T> clazz) {\n List<T> lstData = new LinkedList<>();\n String line = \"\";\n\n try (BufferedReader br = new BufferedReader(new FileReader(readPath))) {\n while ((line = br.readLine()) != null) {\n\n String[] readerArray = line.split(splitChareckter);\n int sayac = 0;\n T data = clazz.newInstance();\n for (Field field : clazz.getDeclaredFields()) {\n try {\n if (field.isAnnotationPresent(DataMatch.class)) {\n // elimizde bulunan datadaki bazı colomnları kullanmak istemiyorum\n // fakat datayı da bozmak istemediğim için kendi custom anotationumu yazdım\n DataMatch dataMatch = field.getAnnotation(DataMatch.class);\n int tempCount = 0;\n // burada da esas işlemi yaptık :) bunu anlayığ yaznana ladar 9 ayım geçmişti eferinnnnn\n\n\n // hemen nasıl anladın ya :))) b\n\n //uuuuuuuuuuuuuuuuuuuuuuuu //sorgulamayacaksın :D şaka yapıyom ya şuan kulağımın ağrısından kafm pek almıyo açıkcası\n //inşallah bi sorun çıkmaz abi git ya doktora devam ederse mecbur gidecem tabi\n\n // dusdan çıkınca iyice kulağını temizle su kalmasın :) //olur abisi :D\n\n\n ////boğazımda aprıyo toptan bi grip olucam anlaşılan gel vatandaş batan geminin malları bunlar :)) :)\n // şimdi ne drumdayız son olarak dur bi bakayım\n\n\n // son datayı yazarken bi problem olmuş onun dışında uçusa hazır :D\n if (dataMatch.index() != -1) {\n tempCount = dataMatch.index();\n } else {\n tempCount = sayac;\n }\n if (readerArray[tempCount].contains(\"K\")) {\n String valueOfNoneK = readerArray[tempCount].replace(\".\", \"\").replace(\"K\", \"\");\n Double realValue = Double.valueOf(valueOfNoneK) * 1000;\n readerArray[tempCount] = Double.toString(realValue);\n }\n setField(data, field.getName(), readerArray[tempCount]);\n }\n sayac++;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n lstData.add(data);\n\n }\n\n return lstData;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return null;\n }", "private static List<Feature> getFeatures(List<String> row) {\n\t\tString sex = row.get(0);\n\t\tdouble length = Double.parseDouble(row.get(1));\n double diameter = Double.parseDouble(row.get(2));\n double height = Double.parseDouble(row.get(3));\n// double whole_height = Double.parseDouble(row.get(4));\n// double shucked_height = Double.parseDouble(row.get(5));\n double viscera_weight = Double.parseDouble(row.get(6));\n double shell_weight = Double.parseDouble(row.get(7));\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tfeatures.add(new NominalFeature(sex));\n\t\tfeatures.add(new ContinuousFeature(length));\n\t\tfeatures.add(new ContinuousFeature(diameter));\n\t\tfeatures.add(new ContinuousFeature(height));\n//\t\tfeatures.add(new ContinuousFeature(whole_height));\n//\t\tfeatures.add(new ContinuousFeature(shucked_height));\n\t\tfeatures.add(new ContinuousFeature(viscera_weight));\n\t\tfeatures.add(new ContinuousFeature(shell_weight));\n\t\treturn features;\n\t}", "private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }", "@Override\n\tpublic Persona decode(Reader reader) throws DecodeException, IOException {\n\t\tPersona persona = new Persona();\n\t\t\n\t\ttry {\n\t\t\tJSONStringer json = new JSONStringer();\n\t\t\t\n\t\t\tjson.object();\n\t\t\tString codigo = json.key(\"codigo\").value(persona.getCodigo()).toString();\n\t\t\tString nombre = json.key(\"nombre\").value(persona.getNombre()).toString();\n\t\t\tString apellido = json.key(\"apellido\").value(persona.getApellido()).toString();\n\t\t\tString dni = json.key(\"DNI\").value(persona.getDni()).toString();\n\t\t\t\n\t\t\tpersona.setCodigo(codigo);\n\t\t\tpersona.setNombre(nombre);\n\t\t\tpersona.setApellido(apellido);\n\t\t\tpersona.setDni(dni);\n\t\t\treturn persona;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}", "public TreeNode readDataFile() {\n\t\tdata = new ArrayList<Instance>();\n\t\ttry {\n\t\t\tScanner s = new Scanner(new File(testFile));\n\t\t\t// took these lines from helper-code\n\t\t\tScanner l = new Scanner(s.nextLine());\n\t\t\tfor (int i = 0; l.hasNext(); i++) {\n\t\t\t\tif (!l.next().equals(classifierNames.get(i))) {\n\t\t\t\t\tSystem.err.println(\"This data file does not use the same category names as the training file.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tl.close();\n\t\t\tl = new Scanner(s.nextLine());\n\t\t\tfor (int i = 0; l.hasNext(); i++) {\n\t\t\t\tif (!l.next().equals(attributeNames.get(i))) {\n\t\t\t\t\tSystem.err.println(\"This data file does not match the attributes of the training file.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tl.close();\n\t\t\tSystem.out.println(\"Read attributes \"+attributeNames.toString()+\".\");\n\t\t\treadFile(s,data);\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"Training file not found, you should have put tests for this in main.\");\n\t\t\tSystem.err.println(\"Attempted to read \"+testFile+\".\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tArrayList<Boolean> attrs = new ArrayList<Boolean>();\n\t\tfor (int i = 0; i < attributeNames.size(); i++) {\n\t\t\tattrs.add(false);\n\t\t}\n\t\tTreeNode root = BuildTree(instances, attrs);\n\t\treturn root;\n\t}", "private void createFeatures() {\n\t\tfeatures = new Feature[NUM_FEATURES];\n\n\t\t// Create dummy feature\n\t\tfeatures[0] = new DummyFeature(width, height, 0, 0 - THRESHOLD);\n\n\t\t// Create the rest of the features\n\t\tfor (int i = 1; i < NUM_FEATURES; i++) {\n\t\t\tfeatures[i] = new Feature(width, height, i);\n\t\t}\n\t}", "public void read()\r\n\t{\r\n\t\tScanner input = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint i = 0;\r\n\r\n\t\t\tinput = new Scanner(new File(\"netflix.csv\")).useDelimiter(\"[,\\r\\n]\");\r\n\r\n\t\t\twhile (input.hasNext())\r\n\t\t\t{\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tString title = input.next();\r\n\r\n\t\t\t\tString rating = input.next();\r\n\r\n\t\t\t\tint year = Integer.parseInt(input.next());\r\n\r\n\t\t\t\tint score = Integer.parseInt(input.next());\r\n\t\t\t\tMovie a = new Movie(title, rating, year, score);\r\n\t\t\t\tdata[i] = a;\r\n\t\t\t\ti++;\r\n\t\t\t\tactualSize++;\r\n\r\n\t\t\t}\r\n\t\t\tinput.close();\r\n\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public Feature createFeature(Feature.Template ft)\n throws BioException, ChangeVetoException;", "public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }", "private void trainFeatures() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.FEATURE);\n\t\tSystem.out.println(\"Starting reading Feature Trainingset ..\");\n\t\tPipe serialpipe = getFeaturePipe();\n\t\tInstanceList feature_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Feature Trainingset ..\");\n\t\tfeature_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Feature Training set : \" + feature_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(feature_instances, Train + \"F.bin\");\n\t\tSystem.out.println(\"Saving Features data ..\");\n\t\tfeature_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"feature.dat\")));\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Feature training set ..\");\n\t\tClassifier classifier = trainer.train(feature_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Feature_Train);\n\t\tSystem.out.println(\"Feature classifier saved to : \" + Feature_Train);\n\t}", "public static void read(String fname){\r\n\t\t\t\r\n\t\t\tString line = \"\";\r\n\t\t\ttry {\r\n\t // FileReader reads text files in the default encoding.\r\n\t FileReader fileReader = new FileReader(fname);\r\n\t \r\n\t // Always wrap FileReader in BufferedReader.\r\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n\t header=bufferedReader.readLine();\r\n\t \r\n\t data = new ArrayList<alldata>();\r\n\r\n\t while((line = bufferedReader.readLine()) != null) {\r\n\t \t\r\n\t //parse line and divide data by comma\r\n\t \r\n\t \t\r\n\t \tString[] lineStr = line.split(\",\");\r\n\t \t\r\n\t //create object row into which data from each line is stored and then added to array list\t\r\n\t \t\r\n\t if(lineStr.length >0) {\r\n\t \talldata row = new alldata();\r\n\t \trow.Name = lineStr[0]+ \",\" + lineStr[1];\r\n\t \trow.Num = lineStr[2];\r\n\t \trow.State = lineStr[3];\r\n\t \trow.Zip = lineStr[4];\r\n\t \trow.Age = Integer.parseInt(lineStr[6]);\r\n\t \trow.Sex = lineStr[7];\r\n\t \t\r\n\t \tdata.add(row);\r\n\t }\r\n\t \r\n\t \r\n\t } \r\n\t bufferedReader.close(); // Always close files. \r\n\t }catch(FileNotFoundException ex) {\r\n\t System.out.println(\"Unable to open file '\" + fname + \"'\"); \r\n\t }catch(IOException ex) {\r\n\t System.out.println(\"Error reading file '\" + fname + \"'\"); \r\n\t }\r\n\t\t\tSystem.out.println(\"Finish reading data from file \"+ fname);\r\n\t\t}", "public FieldInfoReader(String path) throws Exception {\n\t\tthis(new URI(path));\n\t}", "private HashMap<String, double[]> readFeature(String featurePath, int currCount){\n HashMap<String, double[]> fList = new HashMap<>();\n try{\n FileReader fr = new FileReader(featurePath);\n BufferedReader br = new BufferedReader(fr);\n\n String line = br.readLine();\n while(line != null){\n\n String[] split = line.trim().split(\"\\t\");\n if (split.length < 2)\n continue;\n double[] fs = new double[split.length - 1];\n for (int i = 1; i < split.length; i ++){\n fs[i-1] = Double.valueOf(split[i]);\n }\n\n fList.put(split[0], fs);\n \n // Update ProgressBar\n SoundEffectDemo.s_progressBar.setValue(currCount);\n \t\tdouble currPercentage = ((double) currCount / ((double) s_numTrainingData * 4.0)) * 100.0;\n \t\tSoundEffectDemo.s_progressBar.setString(String.format(\"%.2f\", currPercentage) + \"%\");\n \t\tcurrCount++;\n \t\t\n line = br.readLine();\n }\n br.close();\n\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return fList;\n }", "public Data (String name, int type) {\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tstream = new MyReader();\n\t}", "public MetaInfoReader(String dataset, String basePath) {\n String baseFileName = basePath + dataset + \"/metainfo.txt\";\n data = new ArrayList<>();\n readFile(baseFileName);\n MetaDataManager.getInstance(data);\n }", "public static ParsedData arffFileReader(File file) throws Exception {\n\n ParsedData data;\n String line = null;\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n ArrayList<Attribute> attributes = new ArrayList<>();\n boolean attributeTest = true;\n int attributeNumber = 0;\n ArrayList<String> datasetList = new ArrayList<>();\n String relName = \"\";\n\n int rows = 0;\n int columns = 0;\n\n while ((line = br.readLine()) != null) {\n\n line = line.trim();\n\n if (attributeTest) {\n if(line.startsWith(\"@relation\")){\n relName = line.split(\" \")[1];\n }\n\n if (line.startsWith(\"@attribute\")) {\n attributes.add(parseAttribute(line, attributeNumber));\n attributeNumber++;\n }\n } else {\n String[] instance = parseInstance(line);\n if(instance.length != attributes.size()) {\n System.out.println(\"Skip illegal line: \" + Utils.concatStringArray(instance));\n continue;\n }\n for (int i = 0; i < instance.length; i++) {\n datasetList.add(instance[i]);\n }\n rows++;\n }\n if (line.startsWith(\"@data\")) {\n attributeTest = false;\n }\n\n }\n columns = attributes.size();\n\n String[] datasetArray = new String[datasetList.size()];\n for (int i = 0; i < datasetList.size(); i++) {\n datasetArray[i] = datasetList.get(i);\n }\n\n DataSet dataset = new DataSet(datasetArray, rows, columns);\n data = new ParsedData(dataset, attributes, relName);\n return data;\n\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tText writableCandidate = new Text();\n\t\tDoubleWritable doubleWritable = new DoubleWritable();\n\t\t\n\t\twritableCandidate.readFields(in);\n\t\t\n\t\t//extract the candidate\n\t\tcandidate = (T)StringUtils.fromString(writableCandidate.toString());\n\t\t\n\t\t//extract the fitness value\n\t\tdoubleWritable.readFields(in);\n\t\tfitness = doubleWritable.get();\n\t}", "private final Field makeField(String data) {\n Field result = null;\n\n if (termVector == null) {\n result = new Field(label, data, store, index);\n }\n else {\n result = new Field(label, data, store, index, termVector);\n }\n\n return result;\n }", "public void init(IndexReader indexReader, String params) throws IOException\n {\n // Record the input\n this.params = params;\n \n // Break the string of params into a list of fields.\n StringTokenizer t = new StringTokenizer(params, \" \\t,;|\");\n String[] fields = new String[t.countTokens()];\n for (int i = 0; i < fields.length; i++)\n fields[i] = t.nextToken();\n \n // And fetch the doc/tag data for those fields.\n data = FRBRData.getCachedTags(indexReader, fields);\n }", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "protected abstract D createData();", "@Override\n public FlotillaData getData() {\n FlotillaData data = new FlotillaData();\n data.setName(name);\n data.setLocation(reference);\n data.setBoats(getBoatNames(boats));\n\n return data;\n }", "public void readToCsv() {\r\n\r\n String seperator = \";\";\r\n\r\n try (BufferedReader reader = new BufferedReader(\r\n new FileReader(\"Products.csv\"))){\r\n\r\n String line = null;\r\n for(int i=1; (line = reader.readLine()) != null; i++) {\r\n String[] fields = line.split(seperator, -1);\r\n\r\n // For nutrients objects to read\r\n if(fields.length ==5){\r\n Nutrient object= new Nutrient();\r\n object.name = fields[0];\r\n object.price = Double.parseDouble(fields[1]);\r\n object.tag=fields[2];\r\n object.content = fields[3];\r\n object.numOfProduct = Integer.parseInt(fields[4]);\r\n //object.addFeatures(object.name,object.price,object.size,object.gender,object.tag,object.content,object.numOfProduct);\r\n NutrientList.add(object);\r\n allProducts.add(object);\r\n }\r\n // For Cosmetics objects to read\r\n if (fields.length==6){\r\n Cosmetics object2=new Cosmetics();\r\n object2.name = fields[0];\r\n object2.price = Double.parseDouble(fields[1]);\r\n object2.gender = fields[2];\r\n object2.tag=fields[3];\r\n object2.content = fields[4];\r\n object2.numOfProduct = Integer.parseInt(fields[5]);\r\n //object2.addFeatures(object2.name,object2.price,object2.size,object2.gender,object2.tag,object2.content,object2.numOfProduct);\r\n CosmeticsList.add(object2);\r\n allProducts.add(object2);\r\n }\r\n // For clothes objects to read\r\n if(fields.length ==7){\r\n\r\n Clothes object3=new Clothes();\r\n object3.name = fields[0];\r\n object3.price = Double.parseDouble(fields[1]);\r\n object3.size= fields[2];\r\n object3.tag=fields[4];\r\n object3.content = fields[5];\r\n object3.numOfProduct = Integer.parseInt(fields[6]);\r\n object3.addFeatures(object3.name,object3.price,object3.size,\"E\",object3.tag,object3.content,object3.numOfProduct);\r\n ClothesList.add(object3);\r\n allProducts.add(object3);\r\n }\r\n\r\n }}\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static Facts parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n Facts object =\r\n new Facts();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"Facts\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (Facts) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n java.util.ArrayList list1 = new java.util.ArrayList();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"fact\").equals(reader.getName())) {\r\n\r\n\r\n // Process the array and step past its final element's end.\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n list1.add(null);\r\n reader.next();\r\n } else {\r\n list1.add(Fact.Factory.parse(reader));\r\n }\r\n //loop until we find a start element that is not part of this array\r\n boolean loopDone1 = false;\r\n while (!loopDone1) {\r\n // We should be at the end element, but make sure\r\n while (!reader.isEndElement())\r\n reader.next();\r\n // Step out of this element\r\n reader.next();\r\n // Step to next element event.\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n if (reader.isEndElement()) {\r\n //two continuous end elements means we are exiting the xml structure\r\n loopDone1 = true;\r\n } else {\r\n if (new javax.xml.namespace.QName(\"\", \"fact\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n list1.add(null);\r\n reader.next();\r\n } else {\r\n list1.add(Fact.Factory.parse(reader));\r\n }\r\n } else {\r\n loopDone1 = true;\r\n }\r\n }\r\n }\r\n // call the converter utility to convert and set the array\r\n\r\n object.setFact((Fact[])\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\r\n Fact.class,\r\n list1));\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "private static Customer readCustomerString(String data) throws ApplicationException\r\n\t{\r\n\t\tString[] elements = data.split(FIELD_DELIMITER);\r\n\t\tif (elements.length != Customer.ATTRIBUTE_COUNT)\r\n\t\t{\r\n\t\t\tthrow new ApplicationException(\r\n\t\t\t\t\tString.format(\"Expected %d but got %d: %s\", Customer.ATTRIBUTE_COUNT, elements.length, Arrays.toString(elements)));\r\n\t\t}\r\n\r\n\t\tint index = 0;\r\n\t\tlong id = Integer.parseInt(elements[index++]);\r\n\t\tString firstName = elements[index++];\r\n\t\tString lastName = elements[index++];\r\n\t\tString street = elements[index++];\r\n\t\tString city = elements[index++];\r\n\t\tString postalCode = elements[index++];\r\n\t\tString phone = elements[index++];\r\n\t\tString emailAddress = elements[index++];\r\n\t\tString yyyymmdd = elements[index];\r\n\r\n\t\tint year = Integer.parseInt(yyyymmdd.substring(0, 4));\r\n\t\tint month = Integer.parseInt(yyyymmdd.substring(4, 6));\r\n\t\tint day = Integer.parseInt(yyyymmdd.substring(6, 8));\r\n\r\n\t\treturn new Customer.Builder(id, phone).setFirstName(firstName).setLastName(lastName).setStreet(street).setCity(city).setPostalCode(postalCode)\r\n\t\t\t\t.setEmailAddress(emailAddress).setJoinedDate(year, month, day).build();\r\n\t}", "abstract Feature createFeature(boolean enabled, int count);", "private Behaeltnis getObject(String data) {\r\n\t\tint firstSemi = data.indexOf(\"\" + ';');\r\n\t\tint secondSemi = data.indexOf(\"\" + ';', firstSemi + 1);\r\n\t\tString brand = data.substring(firstSemi + 1, secondSemi);\r\n\t\tdouble vol = Double.parseDouble(\r\n\t\t\t\tdata.substring(secondSemi + 1, data.indexOf(\"\" + ';', secondSemi + 1)).replaceAll(\",\", \".\"));\r\n\t\tif (data.toLowerCase().contains(\"plastik\")) {\r\n\t\t\treturn new Plastik(brand, vol);\r\n\t\t} else if (data.toLowerCase().contains(\"glas\")) {\r\n\t\t\tif (data.contains(\"0,08\")) {\r\n\t\t\t\treturn new Glas(false, brand, vol);\r\n\t\t\t} else {\r\n\t\t\t\treturn new Glas(true, brand, vol);\r\n\t\t\t}\r\n\t\t} else if (data.toLowerCase().contains(\"dose\")) {\r\n\t\t\treturn new Dose(brand, vol);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private FeatureCollection makeFeatureCollection(Request request,\r\n Entry entry)\r\n throws Exception {\r\n\r\n EsriShapefile shapefile =\r\n new EsriShapefile(entry.getFile().toString());\r\n DbaseFile dbfile = shapefile.getDbFile();\r\n DbaseDataWrapper nameField = null;\r\n String schemaName;\r\n String schemaId;\r\n List<DbaseDataWrapper> fieldDatum = null;\r\n HashMap props = new HashMap<String, Object>();\r\n props.put(\"dbfile\", dbfile);\r\n props.put(\"shapefile\", shapefile);\r\n Metadata colorBy = null;\r\n List<Metadata> metadataList;\r\n metadataList = getMetadataManager().findMetadata(request, entry,\r\n \"shapefile_color\", true);\r\n if ((metadataList != null) && (metadataList.size() > 0)) {\r\n colorBy = metadataList.get(0);\r\n props.put(\"colorby\", colorBy);\r\n }\r\n\r\n String balloonTemplate = null;\r\n\r\n metadataList = getMetadataManager().findMetadata(request, entry,\r\n \"shapefile_display\", true);\r\n if ((metadataList != null) && (metadataList.size() > 0)) {\r\n Metadata kmlDisplay = metadataList.get(0);\r\n schemaName = schemaId = kmlDisplay.getAttr1();\r\n balloonTemplate = kmlDisplay.getAttr2();\r\n if ( !Utils.stringDefined(balloonTemplate)) {\r\n balloonTemplate = null;\r\n }\r\n } else {\r\n schemaId = schemaName = entry.getId();\r\n }\r\n\r\n\r\n if (dbfile != null) {\r\n fieldDatum = getDatum(request, entry, dbfile);\r\n int firstChar = -1;\r\n for (int i = 0; i < fieldDatum.size(); i++) {\r\n DbaseDataWrapper dbd = fieldDatum.get(i);\r\n if (dbd.getType() == DbaseData.TYPE_CHAR) {\r\n if (firstChar < 0) {\r\n firstChar = i;\r\n }\r\n if (dbd.getName().toLowerCase().indexOf(\"name\") >= 0) {\r\n if (nameField == null) {\r\n nameField = dbd;\r\n }\r\n }\r\n }\r\n }\r\n if ((nameField == null) && (firstChar >= 0)) {\r\n nameField = fieldDatum.get(firstChar);\r\n }\r\n }\r\n\r\n\r\n\r\n props.putAll(getRepository().getPluginProperties());\r\n\r\n if (dbfile != null) {\r\n props.put(FeatureCollection.PROP_SCHEMANAME, schemaName);\r\n props.put(FeatureCollection.PROP_SCHEMAID, schemaId);\r\n props.put(FeatureCollection.PROP_STYLEID, schemaId);\r\n if (balloonTemplate != null) {\r\n props.put(FeatureCollection.PROP_BALLOON_TEMPLATE,\r\n balloonTemplate);\r\n }\r\n HashMap<String, String[]> schema = new HashMap<String,\r\n String[]>();\r\n for (DbaseDataWrapper dbd : fieldDatum) {\r\n String[] attrs = new String[4];\r\n String dtype = null;\r\n switch (dbd.getType()) {\r\n\r\n case DbaseData.TYPE_BOOLEAN :\r\n dtype = \"bool\";\r\n\r\n break;\r\n\r\n case DbaseData.TYPE_CHAR :\r\n dtype = \"string\";\r\n\r\n break;\r\n\r\n case DbaseData.TYPE_NUMERIC :\r\n dtype = \"double\";\r\n\r\n break;\r\n }\r\n attrs[0] = KmlUtil.ATTR_TYPE;\r\n attrs[1] = dtype;\r\n attrs[2] = KmlUtil.ATTR_NAME;\r\n attrs[3] = dbd.getName();\r\n schema.put(dbd.getName(), attrs);\r\n }\r\n props.put(FeatureCollection.PROP_SCHEMA, schema);\r\n }\r\n FeatureCollection fc = new FeatureCollection(entry.getName(),\r\n entry.getDescription(),\r\n (HashMap<String, Object>) props,\r\n fieldDatum);\r\n\r\n List features = shapefile.getFeatures();\r\n List<Feature> fcfeatures = new ArrayList<Feature>(features.size());\r\n for (int i = 0; i < features.size(); i++) {\r\n EsriShapefile.EsriFeature gf =\r\n (EsriShapefile.EsriFeature) features.get(i);\r\n String type = getGeometryType(gf, gf.getNumParts());\r\n if (type == null) {\r\n System.err.println(\"Can't handle feature type \"\r\n + gf.getClass().toString());\r\n\r\n continue;\r\n }\r\n List<float[][]> parts =\r\n new ArrayList<float[][]>(gf.getNumParts());\r\n java.util.Iterator pi = gf.getGisParts();\r\n while (pi.hasNext()) {\r\n GisPart gp = (GisPart) pi.next();\r\n double[] xx = gp.getX();\r\n double[] yy = gp.getY();\r\n // TODO: Why are we down casting to floats?\r\n // pts is in x,y order\r\n float[][] pts = new float[2][xx.length];\r\n for (int ptIdx = 0; ptIdx < xx.length; ptIdx++) {\r\n pts[0][ptIdx] = (float) xx[ptIdx];\r\n pts[1][ptIdx] = (float) yy[ptIdx];\r\n }\r\n parts.add(pts);\r\n }\r\n Geometry geom = new Geometry(type, parts);\r\n String name = \"\";\r\n if (dbfile != null) {\r\n if (nameField != null) {\r\n name = nameField.getString(i).trim();\r\n }\r\n }\r\n HashMap<String, Object> fprops = new HashMap<String, Object>();\r\n if (dbfile != null) {\r\n fprops.put(FeatureCollection.PROP_SCHEMANAME, schemaName);\r\n fprops.put(FeatureCollection.PROP_SCHEMAID, schemaId);\r\n HashMap<String, Object> schemaData =\r\n new HashMap<String, Object>(fieldDatum.size());\r\n for (int j = 0; j < fieldDatum.size(); j++) {\r\n // since shapefile parser makes no distinction between ints & doubles,\r\n // this hack will fix that.\r\n Object data = fieldDatum.get(j).getData(i);\r\n if (data instanceof Double) {\r\n double d = ((Double) data).doubleValue();\r\n if ((int) d == d) {\r\n data = new Integer((int) d);\r\n }\r\n }\r\n schemaData.put(fieldDatum.get(j).getName(), data);\r\n }\r\n fprops.put(FeatureCollection.PROP_SCHEMADATA, schemaData);\r\n }\r\n Feature feature = new Feature(name, geom, fprops, props);\r\n fcfeatures.add(feature);\r\n }\r\n fc.setFeatures(fcfeatures);\r\n //System.out.println(fc.toGeoJson());\r\n\r\n return fc;\r\n\r\n }", "private static void readFridgeData() throws FileNotFoundException, InvalidDateException,\n InvalidQuantityException, EmptyDescriptionException,\n RepetitiveFoodIdentifierException, InvalidFoodCategoryException, InvalidFoodLocationException {\n File file = new File(DATA_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n populateFridge(line);\n }\n scanner.close();\n }", "private MyPersonModelProvider(String inputdata) {\n\t\t\tList<String> contents = UtilFile.readFile(inputdata);\n\t\t\tList<List<String>> tableContents = UtilFile.convertTableContents(contents);\n\n\t\t\tpersons = new ArrayList<MyPerson>();\n\t\t\tfor (List<String> iList : tableContents) {\n\t\t\t\tpersons.add(new MyPerson(iList.get(0), iList.get(1), iList.get(2), Boolean.valueOf(iList.get(3))));\n\t\t\t}\n\t\t}", "private Film getFilmFromData(String[] line){\n \n Director director = this.getDirectorFromData(line); //Director object created using data from line array\n Actor actor = this.getActorFromData(line); //Actor object created using data from line array\n //filmID, filmName etc. give the index number for their respective values, NOT the values themselves\n Film film = new Film(line[AppVariables.filmID].trim(), \n line[AppVariables.filmName].trim(),\n line[AppVariables.imdbRating].trim(),\n line[AppVariables.filmYear].trim());\n film.directors.add(director);\n film.actors.add(actor);\n \n return film; \n }", "private static void fillDataset(Dataset d){\n try{\n\n BufferedReader in = new BufferedReader(new FileReader(\"src/points.txt\"));\n String str;\n while ((str = in.readLine()) != null){\n String[] tmp=str.split(\",\");\n d.addPoint(new Point(Double.parseDouble(tmp[0]), Double.parseDouble(tmp[1])));\n }\n in.close();\n }\n catch (IOException e){\n System.out.println(\"File Read Error\");\n }\n }", "public FeatureExtraction() {\n\t}", "public void loadFeatures() throws IOException {\n final File apiKeyFile = new File(System.getProperty(\"user.home\") + \"/.datarank-api-key\");\n final DataRank dataRank = new DataRank(new DataRankConfiguration(IOUtils.toString(new FileInputStream(apiKeyFile)).trim()));\n final List<FeatureSet> features = DataRankTopicFeatureExtractor.downloadComments(dataRank, \"tide-pods\", 1000);\n FeatureLoader.write(features, \"/tmp/tide-pods.csv\");\n }", "public static void main(String[] args) throws IOException\r\n\t{\n\t\tReadData readdataobj = new ReadData();\r\n\t\treaddataobj.readData();\r\n\t}", "public interface GeoData{\r\n /**\r\n * Most geodata sets contain features for which there is no data, or the data is missing.<br>\r\n * In these cases a specific value is often used to represent these special cases.<p>\r\n * The static final value MISSING is the default value used by GeoDatas to represent\r\n * these cases.\r\n * @see #setMissingValueCode\r\n * @see #getMissingValueCode\r\n */\r\n public static final double MISSING = Double.NaN;\r\n\r\n\t\t/** \r\n\t\t * All geodata have a type - this is particularly important when\r\n\t\t * interfacing with other data sources/formats.\r\n\t\t * @see #setDataType\r\n\t\t * @see #getDataType\r\n\t\t */\r\n\t\tpublic static final int CHARACTER = 0;\r\n\t\tpublic static final int INTEGER = 1;\r\n\t\tpublic static final int FLOATING = 2;\r\n \r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n * @author James Macgill JM\r\n * @return String The name associated with this GeoData.\r\n */\r\n String getName();\r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param name_ The name to be associated with this GeoData.\r\n */\r\n void setName(String name_);\r\n \r\n \r\n /**\r\n * looks up and matches a value to the specifed feature id.<br>\r\n * Used for example by shaders to obtain vaules for thematic mapping.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature id to retreve a value for.\r\n * @return double The value for the specified id, if no id matches the one given then the value specifed by setMissingValue should be returned.\r\n * @see #setMissingValue\r\n */\r\n double getValue(int id);\r\n \r\n /**\r\n * Looks up and retreves a string for the specifed feature id.<br>\r\n * Used for example by the ToolTip feature in Themes to provide tool tip text for each feature.\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature to retreve the text for.\r\n * @return String A piece of text for the chosen feature id. If no id matches then an empty string should be returned \" \"\r\n */\r\n String getText(int id);\r\n \r\n /**\r\n * In order to allow systems to iterate through all of the data contained within the GeoData object this\r\n * method provides a list of all of the IDs which have associated values stored.\r\n *\r\n * @author James Macgill JM\r\n * @return Enumeration An enumeration of all of the IDs which can then be iterated through.\r\n */\r\n Enumeration getIds();\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * By default that value is set to MISSING, however this behavoir can be changed by calling this method with a new value.<br>\r\n * \r\n * @see #getMissingValueCode\r\n * @author James Macgill JM\r\n * @param mv A double containing the new value to represent missing data.\r\n */\r\n public void setMissingValueCode(double mv);\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * A call to this method will return the current code in use to represent that situation.<br>\r\n *\r\n * @see #setMissingValueCode\r\n * @author James Macgill JM\r\n * @return double The current value representing missing data.\r\n */ \r\n public double getMissingValueCode();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The largest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMax();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The smallest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMin();\r\n \r\n /**\r\n * The total number of stored id/value pairs stored in this GeoData.\r\n * @author James Macgill JM\r\n * @return int The number of values stored in this GeoData.\r\n */\r\n int getSize();\r\n \r\n /**\r\n * The total number of stored values stored in this GeoData which equal the missing value code.\r\n * @author James Macgill JM\r\n * @return int The number of missing values stored in this GeoData.\r\n */\r\n int getMissingCount();\r\n\r\n\t\t/** \r\n\t\t * Gets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.CHARACTER</li> \r\n\t\t * <li>Integer - GeoData.INTEGER</li>\r\n\t\t * <li>Double - GeoData.FLOATING</li></ul>\r\n\t\t */\r\n\t\t int getDataType();\r\n\t\t/** \r\n\t\t * Sets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.character</li> \r\n\t\t * <li>Integer - GeoData.integer</li>\r\n\t\t * <li>Double - GeoData.float</li></ul>\r\n\t\t */\r\n\t\t void setDataType(int type );\r\n}", "public Instances openARFF(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.dataset = new Instances(new BufferedReader(new FileReader(path)));\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn this.dataset;\n\t}", "public void addData(F dataObject) {\r\n this.data = dataObject;\r\n }", "public void readTrainingFile() {\n\t\ttry {\n\t\t\tFile file = new File(trainingFile);\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tSystem.out.print(\"Read training data >>>\\t\");\n\t\t\t// read first line to get attribute names\n\t\t\tString line = reader.readLine();\n\t\t\t// find delimiter\n\t\t\tdelimiter = findDelimiter(line);\n\t\t\t// get all attributes\n\t\t\tallAttributes = line.split(delimiter);\n\t\t\t// target attribute is at the last position\n\t\t\tint targetIndex = allAttributes.length - 1;\n\t\t\t\n\t\t\ttrainingTuples = new ArrayList<String[]>();\n\t\t\tclassLabels = new HashSet<String>();\n\t\t\tmapAttrValue = new HashMap<String, Set<String>>();\n\t\t\twhile((line = reader.readLine()) != null) {\n\t\t\t\tif(line.isEmpty() == true) {\n\t\t\t\t\t//if the line is empty\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// read one tuple\n\t\t\t\tString[] tuple = line.split(delimiter);\n\t\t\t\ttrainingTuples.add(tuple);\n\t\t\t\t// add attribute value to mapAttrValue\n\t\t\t\tfor(int i = 0; i < targetIndex; i++) {\n\t\t\t\t\tString attribute = allAttributes[i];\n\t\t\t\t\tString value = tuple[i];\n\t\t\t\t\tSet<String> valueSet = mapAttrValue.get(attribute);\n\t\t\t\t\tif(valueSet == null) {\n\t\t\t\t\t\tvalueSet = new HashSet<String>();\n\t\t\t\t\t\tmapAttrValue.put(attribute, valueSet);\n\t\t\t\t\t}\n\t\t\t\t\tvalueSet.add(value);\n\t\t\t\t}\n\t\t\t\t// get class label\n\t\t\t\tclassLabels.add(tuple[targetIndex]);\n\t\t\t}\t\t\t\n\t\t\treader.close();\n\t\t\tSystem.out.println(\"Complete!\");\t\n\t\t} catch(FileNotFoundException e) {\n\t\t\tSystem.out.println(\"No such file!\");\n\t\t\te.printStackTrace();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public DataImpl getData() {\n RealTupleType domain = overlay.getDomainType();\n TupleType range = overlay.getRangeType();\n \n float[][] setSamples = nodes;\n float r = color.getRed() / 255f;\n float g = color.getGreen() / 255f;\n float b = color.getBlue() / 255f;\n float[][] rangeSamples = new float[3][setSamples[0].length];\n Arrays.fill(rangeSamples[0], r);\n Arrays.fill(rangeSamples[1], g);\n Arrays.fill(rangeSamples[2], b);\n \n FlatField field = null;\n try {\n GriddedSet fieldSet = new Gridded2DSet(domain,\n setSamples, setSamples[0].length, null, null, null, false);\n FunctionType fieldType = new FunctionType(domain, range);\n field = new FlatField(fieldType, fieldSet);\n field.setSamples(rangeSamples);\n }\n catch (VisADException exc) { exc.printStackTrace(); }\n catch (RemoteException exc) { exc.printStackTrace(); }\n return field;\n }", "public static Feature get(int id) throws SQLException {\r\n\t\tString featureIdColumnName = \"FEATURE_ID\";\r\n\t\tResultSet rs = operation.getRow(\"FEATURE\", featureIdColumnName, id);\r\n\t\tFeature feature = new Feature();\r\n\t\t\r\n\t\twhile (rs.next()) {\r\n\t\t\tfeature.setFeatureId(rs.getString(\"FEATURE_ID\"))\r\n\t\t\t\t.setVideoId(rs.getString(\"VIDEO_ID\"))\r\n\t\t\t\t.setFeatureName(rs.getString(\"FEATURE_NAME\"))\r\n\t\t\t\t.setFeatureVector(rs.getString(\"FEATURE_VECTOR\"))\r\n\t\t\t\t.setCreationDate(rs.getString(\"CREATION_DATE\"));\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Name: \" + feature.getFeatureName());\r\n\t\treturn feature;\r\n\t}", "public void read () throws IOException, ClassNotFoundException {\n BufferedReader reader = FileManager.getReader\n (JerboaProperties.getString(\"KeyFeatureContainer.filename\"));\n double kThreshold = JerboaProperties.getDouble(\"KeyFeatureContainer.keyThreshold\",0.0);\n double fThreshold = JerboaProperties.getDouble(\"KeyFeatureContainer.featureThreshold\",0.0);\n\n String line;\n String[] tokens;\n double x;\n line = reader.readLine();\n tokens = line.split(\"\\\\t\");\n \n sf = Double.parseDouble(tokens[2]);\n\n while ((line = reader.readLine()) != null) {\n tokens = line.split(\"\\\\t\");\n if (tokens.length == 2) {\n if ((! filterKeys) || kTable.containsKey(tokens[0])) {\n x = Double.parseDouble(tokens[1]);\n if (x >= kThreshold)\n kTable.put(tokens[0],x);\n else if (filterKeys)\n kTable.remove(tokens[0]);\n }\n } else {\n x = Double.parseDouble(tokens[1]);\n if (x >= fThreshold) {\n kfTable.put(tokens[0],x);\n fTable.put(tokens[0],Double.parseDouble(tokens[2]));\n }\n }\n }\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void readFields(DataInput dataInput) throws IOException {\n }", "public TargetType deserialize(BufferView data) throws IOException {\n return deserialize(data.getReader());\n }", "private void setTrainingData() throws IOException {\r\n\t\ttrainIdBodyMap = readInIdBodiesMap(new File(TRAIN_BODIES_CSV_LOCATION));\r\n\t\ttrainStances = readStances(new File(TRAIN_STANCES_CSV_LOCATION));\r\n\r\n\t}", "public static Fact parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n Fact object =\r\n new Fact();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"Fact\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (Fact) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"attributes\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n object.setAttributes(null);\r\n reader.next();\r\n\r\n reader.next();\r\n\r\n } else {\r\n\r\n object.setAttributes(FactAttributes.Factory.parse(reader));\r\n\r\n reader.next();\r\n }\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"identifier\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n object.setIdentifier(null);\r\n reader.next();\r\n\r\n reader.next();\r\n\r\n } else {\r\n\r\n object.setIdentifier(FactIdentifier.Factory.parse(reader));\r\n\r\n reader.next();\r\n }\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"name\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setName(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n\r\n } else {\r\n\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"source\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setSource(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n\r\n } else {\r\n\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public Sample load(BufferedReader r) throws IOException {\n\tString line = r.readLine();\n\tif (line==null || !line.startsWith(\"HEADER:\"))\n\t throw new WrongFiletypeException(); // no HEADER: found\n\n\t// new sample, with given filename\n\tSample s = new Sample();\n\n\t// don't know end, yet\n\tYear end = null;\n\tint length = -1;\n\n\t// metadata\n\tfor (;;) {\n\t // read a line\n\t line = r.readLine();\n\n\t // got to data, stop\n\t if (line.startsWith(\"DATA:\"))\n\t\tbreak;\n\n\t // parse line as \"variable = value\", and put into s.meta\n\t int i = line.indexOf(\"=\");\n\t if (i == -1)\n\t\tthrow new WrongFiletypeException();\n\t String tag = line.substring(0, i);\n\t String value = line.substring(i+1);\n\n\t // got end-date.\n\t if (tag.equals(\"DateEnd\"))\n\t\tend = new Year(value);\n\t \n\t if (tag.equals(\"Length\"))\n\t \tlength = Integer.parseInt(value);\n\n\t // WRITE ME: parse other tags and interpret metadata as\n\t // intelligently as possible\n\t}\n\n\ts.count = new ArrayList();\n\ts.incr = new ArrayList();\n\ts.decr = new ArrayList();\n\n\t// data -- i'll assume all data is (width,count,up,down)\n\tStreamTokenizer t = new StreamTokenizer(r);\n\tint idx = 0;\n\t\n\tfor (;;) {\n\t // parse (datum, count, up, dn)\n\t\tint datum, count, up, dn;\n\t\ttry {\n\t\t\t\tt.nextToken();\n\t\t\t\tdatum = (int) t.nval;\n\t\t\t\tt.nextToken();\n\t\t\t\tcount = (int) t.nval;\n\t\t\t\tt.nextToken();\n\t\t\t\tup = (int) t.nval;\n\t\t\t\tt.nextToken();\n\t\t\t\tdn = (int) t.nval;\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new WrongFiletypeException();\n\t\t}\n\n\t // (0,0,0,0) seems to mean end-of-sample\n\t if (datum == 0)\n\t \tbreak;\n\n\t // add to lists\n\t s.data.add(new Integer(datum));\n\t s.count.add(new Integer(count));\n\t s.incr.add(new Integer(up));\n\t s.decr.add(new Integer(dn));\n\t \n\t idx++;\n\t \n\t // break out if we have 'length' samples\n\t if(idx == length)\n\t \tbreak;\n\t}\n\n\t// no end? die.\n\tif (end == null)\n\t throw new WrongFiletypeException();\n\n\t// set range, and return\n\ts.range = new Range(end.add(1 - s.data.size()), end);\n\treturn s;\n }", "public abstract void readData(DataInput din) throws IOException;", "public int loadData(Reader csv, KeywordFactory kwf) \n throws InterruptedException, IOException\n {\n return loadData(csv, kwf, false);\n }", "public static void readDataFile(String INPUT_FILENAME) {\r\n File dataFile = new File(INPUT_FILENAME);\r\n Scanner fileScanner = null;\r\n String oneLine;\r\n String [] lineValues;\r\n int lineCount = 0;\r\n \r\n System.out.println(\"Reading data file...\");\r\n System.out.println();\r\n \r\n try {\r\n fileScanner = new Scanner(dataFile);\r\n }\r\n catch (FileNotFoundException e) {\r\n System.err.println(\"FILE NOT FOUND: \" + INPUT_FILENAME);\r\n System.exit(1);\r\n }\r\n \r\n while (fileScanner.hasNextLine()) {\r\n oneLine = fileScanner.nextLine();\r\n lineValues = oneLine.split(\",\");\r\n lineCount++;\r\n \r\n if (lineValues[0].equalsIgnoreCase(\"REALTOR\")) {\r\n if (lineValues[1].equalsIgnoreCase(\"ADD\")) {\r\n addRealtor(lineValues);\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"formatted correctly to ADD an object.\");\r\n }\r\n } else if (lineValues[0].equalsIgnoreCase(\"PROPERTY\")) {\r\n if (lineValues[1].equalsIgnoreCase(\"ADD\")) {\r\n addProperty(lineValues);\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"formatted correctly to ADD an object.\");\r\n }\r\n } else {\r\n System.out.println(\" ERROR: A line in the file is not \"\r\n + \"designated as REALTOR or PROPERTY.\");\r\n }\r\n }\r\n \r\n //Close data file\r\n fileScanner.close();\r\n \r\n System.out.println();\r\n System.out.println(\"Data Read Finished: Read \" + lineCount \r\n + \" lines of data.\");\r\n System.out.println();\r\n }", "public Backend(Reader r) throws IOException {\r\n GradeDataReader reader = new GradeDataReader();\r\n List<Grade> data = null;\r\n // read data\r\n try {\r\n data = reader.readDataSet(r);\r\n } catch (IOException | DataFormatException e) {\r\n System.out.println(\"Error parsing file\");\r\n }\r\n // input into rbt\r\n for (int i = 0; i < data.size(); i++) {\r\n rbt.insert(data.get(i));\r\n }\r\n }", "@SuppressWarnings(\"deprecation\")\n protected Object getRicherData(DataFlavor flavor) throws UnsupportedFlavorException {\n if (richText == null) {\n return null;\n }\n\n if (String.class.equals(flavor.getRepresentationClass())) {\n return richText;\n } else if (Reader.class.equals(flavor.getRepresentationClass())) {\n return new StringReader(richText);\n } else if (InputStream.class.equals(flavor.getRepresentationClass())) {\n return new StringBufferInputStream(richText);\n }\n throw new UnsupportedFlavorException(flavor);\n }", "void loadData() throws SerializerException;" ]
[ "0.64693195", "0.5926896", "0.5761405", "0.56407964", "0.5611352", "0.55934644", "0.5451939", "0.53392804", "0.5279353", "0.5245541", "0.52391773", "0.52314943", "0.5210096", "0.52042836", "0.51978534", "0.5194442", "0.5184733", "0.51716095", "0.5161768", "0.5142806", "0.511796", "0.51098716", "0.5096012", "0.5092972", "0.50850725", "0.50849205", "0.50742227", "0.5066246", "0.50280994", "0.5026986", "0.5013614", "0.5005951", "0.49800456", "0.49746668", "0.49701944", "0.4933857", "0.49241856", "0.49070895", "0.49041575", "0.48989248", "0.48865113", "0.4882509", "0.48814347", "0.48746437", "0.48742893", "0.4861471", "0.48321357", "0.48283342", "0.48199055", "0.48143843", "0.48073578", "0.47984815", "0.4793456", "0.47808334", "0.4778389", "0.47663385", "0.4762419", "0.47462428", "0.47446957", "0.47445402", "0.47440493", "0.47357145", "0.47351453", "0.47134227", "0.47126797", "0.4709662", "0.4707031", "0.46951717", "0.46872917", "0.46871808", "0.46852636", "0.46589828", "0.4645813", "0.4644382", "0.46400148", "0.4636338", "0.46341205", "0.46334794", "0.4628894", "0.46077043", "0.46027368", "0.46022862", "0.46017057", "0.4595914", "0.45949546", "0.45935372", "0.45885897", "0.45876002", "0.45841357", "0.45841137", "0.45748746", "0.4571721", "0.4567917", "0.45643955", "0.45636755", "0.45632747", "0.4557472", "0.45559162", "0.4554809", "0.45495522" ]
0.79787046
0
Construct a coordinate system.
public CoordinateSystem( final String name ) { super( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CoordinateSystem() {\r\n\t\torigin = new GuiPoint(0, 0);\r\n\t\tzoomFactor = 1f;\r\n\t}", "Coordinate createCoordinate();", "void addCoordinateSystem(CoordinateSystem cs);", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "Coordinate(int Xposition, int Yposition) {\n\t\tthis.X = Xposition;\n\t\tthis.Y = Yposition;\n\n\t}", "java.util.List<CoordinateSystem> getCoordinateSystems();", "private void initShape()\n\t{\n\t\tcoords = new int[4][2];\n\t\tcoordsTable = new int [][][] \n\t\t{\n { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },\n { { 0, -1 }, { 0, 0 }, { -1, 0 }, { -1, 1 } },\n { { 0, -1 }, { 0, 0 }, { 1, 0 }, { 1, 1 } },\n { { 0, -1 }, { 0, 0 }, { 0, 1 }, { 0, 2 } },\n { { -1, 0 }, { 0, 0 }, { 1, 0 }, { 0, 1 } },\n { { 0, 0 }, { 1, 0 }, { 0, 1 }, { 1, 1 } },\n { { -1, -1 }, { 0, -1 }, { 0, 0 }, { 0, 1 } },\n { { 1, -1 }, { 0, -1 }, { 0, 0 }, { 0, 1 } }\n\t\t};\n\t\t\n\t\tsetShape (Tetromino.NOSHAPE);\n\t}", "Position createPosition();", "org.hl7.fhir.Integer getCoordinateSystem();", "public PointImpl( CoordinateSystem crs ) {\n super( crs );\n position = new PositionImpl();\n empty = true;\n centroid = this;\n }", "public Coordinates() {\n\t\t\n\t\txPosition = 0;\t\t\t// Sets the x integer to zero\n\t\tyPosition = 0;\t\t\t// Sets the y integer to zero\n\t}", "public Spatial(Location tr)\r\n {\r\n this(new Location.Location2D(0, 0), tr);\r\n }", "@SuppressWarnings(\"unused\")\n public Coordinate() {}", "public Coordinate generatePosition() {\n Random rng = new Random();\n return new Coordinate(rng.nextFloat(), rng.nextFloat());\n }", "public Coordinate() { row = col = -1; }", "public Position2D(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public HorizontalCoords() {\n }", "protected Coord() {\n\t}", "public Coordinates(int x, int y)\r\n {\r\n xCoord = x;\r\n yCoord = y;\r\n }", "private void initialize() {\n //Asteroid Shape (8 sided)\n polygon = new Vector2f[]{new Vector2f(400, -800), new Vector2f(-400, -800), new Vector2f(-800, -400),\n new Vector2f(-800, 400), new Vector2f(-400, 800), new Vector2f(400, 800), new Vector2f(800, 400), new Vector2f(800, -400)};\n //Translation variables\n this.tx = spawnX;\n this.ty = spawnY; //Start above screen to gain momentum\n this.velocity = new Vector2f();\n\n //World initialize\n this.world = new Matrix3x3f();\n\n }", "public static SquareCoordinate makeCoordinate(int x, int y)\n {\n \treturn new SquareCoordinate(x, y);\n }", "public static GeoPoint create(double latitude, double longitude, CoordinateSystem coordinateSystem) {\n return create(latitude, longitude).setCoordinateSystem(coordinateSystem);\n }", "public Coordinates(int x, int y){\n this.x = x;\n this.y = y;\n }", "private GM_Object createGeometry(ByteArrayOutputStream bos,\r\n CS_CoordinateSystem srs) throws Exception {\r\n Debug.debugMethodBegin( this, \"createGeometry\" ); \r\n \r\n byte[] wkb = bos.toByteArray();\r\n bos.close(); \r\n \r\n String crs = srs.getName();\r\n crs = crs.replace(' ',':');\r\n crs = StringExtend.replace(crs, \":\", \".xml#\", true ); \r\n \r\n StringBuffer sb = null;\r\n GM_Object geo = null; \r\n \r\n // create geometries from the wkb considering the geomerty typ\r\n switch ( getGeometryType( wkb ) ) {\r\n case 1: geo = factory.createGM_Point( wkb, srs ); break;\r\n case 2: geo = factory.createGM_Curve( wkb, srs); break;\r\n case 3: geo = factory.createGM_Surface( wkb, srs, \r\n new GM_SurfaceInterpolation_Impl(1)); break;\r\n case 4: geo = factory.createGM_MultiPoint( wkb, srs ); break;\r\n case 5: geo = factory.createGM_MultiCurve( wkb, srs ); break;\r\n case 6: geo = factory.createGM_MultiSurface( wkb, srs, \r\n new GM_SurfaceInterpolation_Impl(1) ); break;\r\n default: geo = null;\r\n }\r\n \r\n ((GM_Object_Impl)geo).setCoordinateSystem( srs );\r\n \r\n updateBoundingBox(geo);\r\n \r\n Debug.debugMethodEnd();\r\n return geo;\r\n }", "public Location() {\n\t\t\n\t\txCoord=0;\n\t\tyCoord=0;\n\t\t\n\t}", "public Coordinate(int x,int y)\n {\n this.x = x;\n this.y = y;\n }", "public MbCoordDpto() {\r\n \r\n }", "public Coordinate(double x, double y, double z, double m) {\r\n this.x = x;\r\n this.y = y;\r\n this.z = z;\r\n this.m = m;\r\n }", "public Position(final int xPos, final int yPos) {\n this.posX = xPos;\n this.posY = yPos;\n this.charAlg = PositionTraductor.getAlgebraicNotation(posX, posY);\n }", "public Position() {\n xCoord = 0;\n yCoord = 0;\n zCoord = 0;\n }", "private static Coordinate createRoomOrigin(int roomID) {\n\t\tint offsetX = ROOM_WIDTH + ROOM_PADDING;\n\t\tint offsetY = ROOM_HEIGHT + ROOM_PADDING;\n\t\tint yCoord = roomID / _totalSideRooms;\n\t\tint xCoord = roomID % _totalSideRooms;\n\t\treturn new Coordinate(yCoord * offsetY + ROOM_PADDING, xCoord * offsetX\n\t\t\t\t+ ROOM_PADDING);\n\t}", "public World(double width, double height) {\n this.width = width;\n this.height = height;\n\n\n shapes = new Shape[3]; // an array of references (change to non-zero size)\n // Create the actual Shape objects (sub types)\n // ....\n\n shapes[0] = new Line(50,100,50,50, Color.BLUE);\n shapes[1] = new Circle(75,75,30,Color.BLACK);\n shapes[2] = new Rectangle(40,50,40,40,Color.GREEN);\n\n\n }", "public Position(double x, double y, double z) {\n xCoord = x;\n yCoord = y;\n zCoord = z;\n }", "public Coordonnees(double _latitude, double _longitude) {\r\n\t\tsuper();\r\n\t\tthis._latitude = _latitude;\r\n\t\tthis._longitude = _longitude;\r\n\t}", "public CoordinateObjects(List<T> points) {\n this.points = new ArrayList<>(points);\n }", "public Position( int xCoordinate, int yCoordinate ) {\n xPosition = xCoordinate;\n yPosition = yCoordinate;\n }", "public PointImpl( double x, double y, double z, CoordinateSystem crs ) {\n super( crs );\n position = new PositionImpl( x, y, z );\n empty = false;\n centroid = this;\n }", "private Environment(int rows, int columns)\r\n\t{\r\n\t\tthis.rows = rows;\r\n\t\tthis.columns = columns;\r\n\t\tcells = new Cell[rows][columns];\r\n\t\tfor (int i = 0; i < rows; i++)\r\n\t\t\tfor (int j = 0; j < columns; j++)\r\n\t\t\t\tcells[i][j] = new Cell();\r\n\t}", "public static CoordinateImpl makeCoordinate(int rank, int file) {\n return new CoordinateImpl(rank, file);\n }", "public CoordinateAxes(GL2 gl, GLUT glut) {\n\t\tthis.gl = gl;\n\t\tthis.glut = glut;\n\t}", "private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }", "public Asteroid() {\n\t\t// create, seed random number\n\t\trandomNumber = new Random();\n\n\t\t// random location\n\t\tlocation = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE);\n\n\t\t// random movement vector\n\t\tmovement = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED,\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED);\n\t\t\n\t\t// random radius\n\t\tsize = randomNumber.nextInt() % 20 + 1;\n\t\t\n\t\t// create Sphere\n\t\tsphere = new Sphere(size, location);\n\n\t}", "@Override\n protected GeodeticCRS create(final String[] columns) throws FactoryException {\n final GeodeticDatum datum = datums.get(columns[4]);\n if (datum != null) {\n final boolean westOriented;\n switch (columns[6].toLowerCase()) {\n case \"west\": westOriented = true; break;\n case \"east\": westOriented = false; break;\n default: throw fail(\"Unrecognized axis direction: \" + columns[6]);\n }\n final Map<String,?> properties = properties(columns);\n final CRSFactory crsFactory = getCRSFactory();\n switch (columns[5].toLowerCase()) {\n case \"spherical\": {\n final SphericalCS cs = westOriented ? sphericalWestOriented : sphericalEastOriented;\n return crsFactory.createGeocentricCRS(properties, datum, cs);\n }\n case \"ellipsoidal\": {\n final EllipsoidalCS cs = westOriented ? ellipsoidalWestOriented : ellipsoidalEastOriented;\n return crsFactory.createGeographicCRS(properties, datum, cs);\n }\n default: {\n throw fail(\"Unrecognized coordinate system type: \" + columns[5]);\n }\n }\n }\n return null;\n }", "public Gate(int centerX, int centerY, Grid grid){\r\n this.angle = Math.random()*6.28; //create a random initial angle\r\n this.rotationSpeed = 0.05;\r\n this.length = 150;\r\n this.centerX = centerX;\r\n this.centerY = centerY;\r\n this.xSpeed = 1;\r\n this.ySpeed = 1;\r\n this.grid = grid;\r\n \r\n /*Determine the x and y of each end point based on the length and angle (using cosine and sine to calculate its\r\n * position relative to the center*/\r\n int x1 = centerX + (int)((length / 2)*(Math.cos(angle)));\r\n int y1 = centerY + (int)((length / 2)*(Math.sin(angle)));\r\n int x2 = centerX - (int)((length / 2)*(Math.cos(angle)));\r\n int y2 = centerY - (int)((length / 2)*(Math.sin(angle)));\r\n \r\n //Give the end points those x and y coordinates\r\n this.p1 = new Point(x1, y1);\r\n this.p2 = new Point(x2, y2);\r\n }", "public CoordinateSystem getCoordinateSystem() {\n System.out.println(\"BaseCatalog: getCoordinateSystem() \");\n CoordinateSystem cs = null;\n if (_layout.getMapElementCount() >0 ) {\n MapElement mapEle = (MapElement)_layout.getMapElements().next();\n cs = mapEle.getMap().getCoordinateSystem();\n }\n System.out.println(\"BaseCatalog: getCoordinateSystem() \" + cs);\n return cs;\n }", "public static OrglRoot makeCoordinateSpace(CoordinateSpace cs) {\n\t/* This should definitely be cached!! We make them all the time probably. */\n\tSomeone.thingToDo();\n\tAboraBlockSupport.enterConsistent(4);\n\ttry {\n\t\treturn new EmptyOrglRoot(cs);\n\t}\n\tfinally {\n\t\tAboraBlockSupport.exitConsistent();\n\t}\n/*\nudanax-top.st:9824:OrglRoot class methodsFor: 'creation'!\nmake.CoordinateSpace: cs {CoordinateSpace}\n\t\"create a new orgl root\"\n\t\"This should definitely be cached!! We make them all the time probably.\"\n\tself thingToDo.\n\tDiskManager consistent: 4 with:\n\t\t[^EmptyOrglRoot create: cs]!\n*/\n}", "public Coordenada() {\n }", "public Spatial(Location bl, Location br, Location tl, Location tr)\r\n {\r\n this.bl = (Location.Location2D)bl;\r\n this.br = (Location.Location2D)br;\r\n this.tl = (Location.Location2D)tl;\r\n this.tr = (Location.Location2D)tr;\r\n }", "private AffineTransform buildWorldToNDXform(int width, int height, int winLeft, int winBottom) {\n\t\tAffineTransform t = new AffineTransform();\n\t\tt.scale(width, height);\n\t\tt.translate(winLeft, winBottom);\n\t\treturn null;\n\t}", "public GridNode(Grid grid, GridCoord coord, float x, float y, float z, ShipSystem system) {\n this(grid, coord, x, y, z, true);\n this.system = system;\n }", "public LSystemBuilderImpl() {\n\t\tthis.commands = new Dictionary();\n\t\tthis.productions = new Dictionary();\n\t\tunitLength = 0.1;\n\t\tunitLengthDegreeScaler = 1;\n\t\torigin = new Vector2D(0, 0);\n\t\tangle = 0;\n\t\taxiom = \"\";\n\t}", "public Entity(Point position, int gridSize) {\n this.position = new Point(position);\n this.gridSize = gridSize;\n direction = UP;\n\n // without this dummy node, rotation does not work properly\n getChildren().add(new Rectangle(gridSize, gridSize, Color.TRANSPARENT));\n\n update();\n }", "public ImmutableList<CoordinateSystem> getCoordinateSystems() {\n return (coordSys == null) ? ImmutableList.of() : ImmutableList.copyOf(coordSys);\n }", "public EarthGeometry(){\n\t\tgcl1 = new GeodeticCalculator();\n\t\trnd1 = new Random(56789);\n\t}", "private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }", "public Position create() {\n\t\tfinal Actor actorLogged = this.actorService.findActorLogged();\n\t\tAssert.notNull(actorLogged);\n\t\tthis.actorService.checkUserLoginCompany(actorLogged);\n\n\t\tPosition result;\n\n\t\tresult = new Position();\n\t\tfinal Collection<Problem> problems = new HashSet<>();\n\t\tfinal Collection<Application> applications = new HashSet<>();\n\n\t\t// R4\n\t\tfinal String ticker = \"\"; //Será generado en el reconstruct\n\n\t\tresult.setTicker(ticker);\n\t\tresult.setProblems(problems);\n\t\tresult.setApplications(applications);\n\t\tresult.setIsFinalMode(false);\n\t\tresult.setIsCancelled(false);\n\n\t\treturn result;\n\t}", "public static Coordinate create2D(double x, double y) {\r\n return new Coordinate(x, y, Double.NaN, Double.NaN);\r\n }", "Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }", "public static void main(String[] args) {\n\t\tCylindrical cylA = new Cylindrical(5, Math.PI * Math.sqrt(3) / 2, 3);\n\t\tSystem.out.println(cylA.getPosition());\n\t\t\n\t\tSpherical sphA;\n\t\tsphA = cylA.toSpherical();\n\t\tSystem.out.println(sphA.getPosition());\n\t\t\n\t\tRectangular recA = sphA.toRectangular();\n\t\tSystem.out.println(recA.getPosition());\n\t\t\n\t\tcylA = recA.toCylindrical();\n\t\tSystem.out.println(cylA.getPosition());\n\t\t\n\t\t\n\t\t// Test that all other conversions work cyl->rec->sph->cyl\n\t\tCylindrical cylB = new Cylindrical(5, Math.PI * Math.sqrt(3) / 2, 3);\n\t\tSystem.out.println(\"\\n\" + cylB.getPosition());\n\t\t\n\t\tRectangular recB = cylB.toRectangular();\n\t\tSystem.out.println(recB.getPosition());\n\t\t\n\t\tSpherical sphB = recB.toSpherical();\n\t\tSystem.out.println(sphB.getPosition());\n\t\t\n\t\tcylB = sphB.toCylindrical();\n\t\tSystem.out.println(cylB.getPosition());\n\t}", "public Coordinates(int x, int y) {\n\t\t\n\t\txPosition = x;\t\t\t// Assigns the x integer\n\t\tyPosition = y;\t\t\t// Assigns the y integer\n\t}", "public Coordinate (double longitude, double latitude) {\n this.longitude = new BigDecimal(longitude);\n this.latitude = new BigDecimal(latitude);\n }", "public Coordinate() {\n this.xCoordinate = -1;\n this.yCoordinate = -1;\n }", "City(int 1_x_coordinate, int 1_y_coordinate, String name_coordinate){\n x_coordinate = 1_x_coordinate;\n y_coordinate = 1_y_coordinate;\n city_name = name_coordinate;\n }", "public Point2D project(double longitudeInRadians, double latitudeInRadians);", "public Square() {\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (# of coordinate values * 4 bytes per float)\n squareCoords.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareCoords);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(\n // (# of coordinate values * 2 bytes per short)\n drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n\n // prepare shaders and OpenGL program\n int vertexShader = MyGLRenderer.loadShader(\n GLES20.GL_VERTEX_SHADER,\n vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(\n GLES20.GL_FRAGMENT_SHADER,\n fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram); // create OpenGL program executables\n }", "public void createLocations() {\n createAirports();\n createDocks();\n createEdges();\n createCrossroads();\n }", "public Spatial(Location bl, Location tr)\r\n {\r\n this(bl, \r\n new Location.Location2D(tr.getX(), bl.getY()),\r\n new Location.Location2D(bl.getX(), tr.getY()),\r\n tr);\r\n }", "public Origin(int north, int south, int east, int west){\n this.north = north;\n this.south = south;\n this.east = east;\n this.west = west;\n }", "public void addCoordinateSystem(CoordinateSystem cs) {\n if (cs == null)\n throw new RuntimeException(\"Attempted to add null CoordinateSystem to var \" + forVar.getFullName());\n\n if (coordSys == null)\n coordSys = new ArrayList<>(5);\n coordSys.add(cs);\n }", "public Coordinate(double xCoordinate, double yCoordinate) {\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n }", "public PointImpl( double x, double y, CoordinateSystem crs ) {\n super( crs );\n position = new PositionImpl( x, y );\n empty = false;\n centroid = this;\n }", "public Coordinate(int x, int y, int identity){\r\n\t\tsuper(x,y);\r\n\t\tthis.identity = identity;\r\n\t}", "private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n addSystem(cameraSystem);\n addSystem(new ZoomSystem());\n //Physics System\n addSystem(new PhysicsSystem());\n //Player movement system\n addSystem(new PlayerMovementSystem());\n\n addSystem(new CannonFiringSystem());\n addSystem(new CollisionSystem());\n addSystem(new KillSystem());\n addSystem(new HealthSystem());\n addSystem(new StatisticSystem());\n addSystem(new EnemySpawningSystem());\n addSystem(new InventorySystem());\n addSystem(new CurrencySystem());\n\n GUISystem guiSystem = new GUISystem();\n InputSystem inputSystem = new InputSystem(guiSystem);\n\n //Input System\n addSystem(inputSystem);\n //Entity Render System\n addSystem(new EntityRenderSystem());\n //Particle System\n addSystem(new ParticleSystem());\n addSystem(new PlayerActionSystem(guiSystem));\n addSystem(new MapRenderSystem());\n addSystem(new HUDSystem());\n //Debug Render System\n addSystem(new DebugRendererSystem());\n //GUI System\n addSystem(guiSystem);\n\n return this;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}", "Room(int y, int x){\n\t\tthis.area = new String[y][x];\n\t\tthis.position = new int[y][x];\n\t\tthis.Garret = new int[y][x];\n\t\tthis.Ari = new int[y][x];\n\t\tthis.Items = new Item[y][x];\n\t\tthis.Door = new int[y][x];\n\t\tthis.Stairs = new int[y][x];\n\t}", "@Override\n\tprotected GeoPointND newGeoPoint(Construction cons1) {\n\t\tpolar2D = new GeoPoint(cons1);\n\t\tpolarCoords = new double[3];\n\n\t\t// create 3D line\n\t\treturn new GeoPoint3D(cons1);\n\t}", "public Location(int x, int y) {\r\n\t\txCoord = x;\r\n\t\tyCoord = y;\r\n\t}", "public RobotWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n prepare();\n }", "public Object2D(double xs,double ys,Dimension sizes)\r\n\t{\r\n\t\tx = xs;\r\n\t\ty = ys;\r\n\t\twidth = (int)sizes.getHeight();\r\n\t\theight= (int)sizes.getWidth();\r\n\t}", "public Coordenada (Datum _d, double x, double y, double z,\r\n\t\t byte _zona, boolean _hemisferio_N)\r\n {\r\n d = _d;\r\n X = x;\r\n Y = y;\r\n Z = z; // Altura ortometrica, sobre NMMA\r\n zona = _zona;\r\n zona_ori = _zona;\r\n hemisferio_N = _hemisferio_N;\r\n GenerarCoordenadasGeograficas();\r\n }", "public Position(double x, double y) {\n\t\txCoord = x;\n\t\tyCoord = y;\n\t}", "private GridNode(Grid grid, GridCoord coord, float x, float y, float z) {\n this(grid, coord);\n point = new Point(x, y, z);\n }", "private SquareCoordinate(int x, int y)\n {\n \tthis.x = x;\n \tthis.y = y;\n }", "public static Coordinates createEntity(EntityManager em) {\n Coordinates coordinates = new Coordinates()\n .lognitude(DEFAULT_LOGNITUDE)\n .latitude(DEFAULT_LATITUDE);\n return coordinates;\n }", "@Override\n\tpublic LSystem build() {\n\t\t\n\t\t/**\n\t\t * Nested class which implements the LSystem and provides two essential methods\n\t\t * for building the LSystem: draw and generate.\n\t\t * @author Alen Carin\n\t\t *\n\t\t */\n\t\tclass LSystemImpl implements LSystem {\n\n\t\t\t/**\n\t\t\t * Method used for drawing the Lyndermayer system.\n\t\t\t * Calls method generate to generate all of the productions and \n\t\t\t * executes all the commands that are in the generated string.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void draw(int depth, Painter painter) {\n\t\t\t\tTurtleState state = new TurtleState(\n\t\t\t\t\t\torigin.copy(), \n\t\t\t\t\t\tnew Vector2D(1, 0).rotated(angle), \n\t\t\t\t\t\tColor.BLACK,\n\t\t\t\t\t\tunitLength * Math.pow(unitLengthDegreeScaler, depth)\n\t\t\t\t\t\t);\n\t\t\t\tContext context = new Context();\n\t\t\t\tcontext.pushState(state);\n\t\t\t\tchar[] sequence = generate(depth).toCharArray();\n\t\t\t\t\n\t\t\t\texecuteAllCommands(context, painter, sequence);\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Recursive method which generates a string of actions \n\t\t\t * which are generated from productions for the given depth.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic String generate(int depth) {\n\t\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\t\tif(depth == 0) {\n\t\t\t\t\treturn axiom;\n\t\t\t\t}\n\t\t\t\tbuilder.append(generate(depth-1));\n\t\t\t\t\n\t\t\t\tchar[] array = builder.toString().toCharArray();\n\t\t\t\tString result = new String();\n\t\t\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\t\t\tString production = (String) productions.get(array[i]);\n\t\t\t\t\tif(production != null) {\n\t\t\t\t\t\tresult += production;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tresult += array[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn new LSystemImpl();\n\t}", "public World makeWorld() {\n World world = new World(1000, 1000);\n world.createEntity().addComponent(new CursorComponent());\n \n ProjectileSystem projectileSystem = new ProjectileSystem();\n world.addSystem(projectileSystem, 1);\n \n return world;\n }", "public Grid(Location tr, int divisions)\r\n {\r\n this(new Location.Location2D(0, 0), tr, divisions);\r\n }", "public mGrid(float width) {\r\n\t\tthis.width = width;\r\n\t\tthis.pos = new mPoint3(0,0,0);\r\n\t\tmPoint3[] points = new mPoint3[17];\r\n\t\tpoints[0] = pos;\r\n\t\tfor(int i=-2;i<=2;i++){\r\n\t\t\tpoints[2*i+5] = new mPoint3(2*width,i*width,0);\r\n\t\t\tpoints[2*i+6] = new mPoint3(-2*width,i*width,0);\r\n\t\t}\r\n\t\tfor(int i=-1;i<=1;i++){\r\n\t\t\tpoints[2*i+13] = new mPoint3(i*width,2*width,0);\r\n\t\t\tpoints[2*i+14] = new mPoint3(i*width,-2*width,0);\r\n\t\t}\r\n\t\tthis.shape = new mShape();\r\n\t\tshort[][] lp = new short[2][10];\r\n\t\tshort i;\r\n\t\tfor(i=0;i<5;i++){\r\n\t\t\tlp[0][i] = (short)(i*2+1);\r\n\t\t\tlp[1][i] = (short)(2*i+2);\r\n\t\t}\r\n\t\tlp[0][5] = 2;\r\n\t\tlp[1][5] = 10;\r\n\t\tlp[0][9] = 1;\r\n\t\tlp[1][9] = 9;\r\n\t\tfor(i=0;i<3;i++){\r\n\t\t\tlp[0][i+6] = (short)(2*i+11);\r\n\t\t\tlp[1][i+6] = (short)(2*i+12);\r\n\t\t}\r\n\t\tshort[][] tp = new short[1][0];\r\n\t\tthis.shape.set(points,lp,tp);\r\n\t}", "public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }", "public void buildWorld() {\n buildBoundaryWall();\n buildDiscreteWorld();\n removeBoundaryWall();\n reorganizeNote();\n connectWorld();\n buildWall();\n }", "public PositionComponent(float x, float y) {\n\t\tthis(x, y, 0);\n\t}", "public SpaceThing() {\n\t\tlocation = new Location();\n\t\tvector = new Vector();\n\t\tcenterX = centerY = 0;\n\t}", "public Shape(Vector2f... points) {\n\t\tthis.points = points;\n\t\tprocessPoints();\n\t}", "public static void main(String[] args) {\n\t\tPoint point = new Point(2, 3, CoordinateSystem.CARTESIAN);\n\n\t\t// singleton access\n\t\tPoint origin = Point.ORIGIN;\n\n\t\t// Inner factory class\n\t\tPoint innerFactoryClass = Point.Factory.newCartesianPoint(1, 2);\n\n\t\t// External factory class\n\t\tPoint externalFactoryClass = PointFactory.newCartesianPoint(1, 2);\n\n\t}", "Position_Position createPosition_Position();", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }", "public Coordinates(double[] coors) {\n\t\tif (coors == null)\n\t\t\tthrow new IllegalArgumentException(\"Coordinates can't be empty.\");\n\t\telse\n\t\t\tthis.coors = coors;\n\t}", "public zCoordinates(int x, int y){\n this.x = x;\n this.y = y;\n }", "public Coordinate(double latitude, double longitude) {\n this(latitude, longitude, null);\n }" ]
[ "0.6866211", "0.6654808", "0.60935855", "0.6054705", "0.56267196", "0.55813056", "0.5525417", "0.5398878", "0.53684694", "0.5368192", "0.5345857", "0.5335953", "0.5328283", "0.53083587", "0.5288674", "0.5236113", "0.5231851", "0.52224404", "0.521876", "0.52119505", "0.5211277", "0.51968455", "0.5194008", "0.5180401", "0.51764065", "0.51722705", "0.5167093", "0.5166845", "0.5164716", "0.5122283", "0.5117553", "0.5111286", "0.510997", "0.50977904", "0.509512", "0.5086837", "0.50838405", "0.50822425", "0.50805914", "0.5072964", "0.5071667", "0.50436956", "0.5036302", "0.5033491", "0.5031948", "0.50290203", "0.5023988", "0.5020397", "0.5018773", "0.5015887", "0.4988681", "0.49862862", "0.4978228", "0.49748403", "0.49658102", "0.49651265", "0.49617037", "0.49404383", "0.49312106", "0.491948", "0.49192458", "0.49176618", "0.49160963", "0.49095312", "0.49091533", "0.49078527", "0.49064988", "0.49040183", "0.48985827", "0.4890225", "0.4888106", "0.48868826", "0.4873417", "0.4868928", "0.4867894", "0.48644915", "0.48619717", "0.4861722", "0.48604754", "0.48603", "0.48564067", "0.48523286", "0.48450074", "0.48272622", "0.48260382", "0.48245677", "0.4817557", "0.48118255", "0.48090646", "0.48037764", "0.48007864", "0.47969976", "0.47961533", "0.47946137", "0.479383", "0.47827798", "0.4781795", "0.47741967", "0.47721323", "0.4765455" ]
0.6146552
2
Make sure there is no axis among the same direction (e.g. two north axis, or a east and a west axis). This methods may be invoked from subclasses constructors.
final void checkAxis( final DatumType type ) throws IllegalArgumentException { final int dimension = getDimension(); for ( int i = 0; i < dimension; i++ ) { AxisOrientation check = getAxis( i ).orientation; if ( type != null && !type.isCompatibleOrientation( check ) ) { throw new IllegalArgumentException( Resources.format( ResourceKeys.ERROR_ILLEGAL_AXIS_ORIENTATION_$2, check.getName( null ), Utilities.getShortClassName( this ) ) ); } check = check.absolute(); if ( !check.equals( AxisOrientation.OTHER ) ) { for ( int j = i + 1; j < dimension; j++ ) { if ( check.equals( getAxis( j ).orientation.absolute() ) ) { final String nameI = getAxis( i ).orientation.getName( null ); final String nameJ = getAxis( j ).orientation.getName( null ); throw new IllegalArgumentException( Resources.format( ResourceKeys.ERROR_COLINEAR_AXIS_$2, nameI, nameJ ) ); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkAxis(int axis) {\n if (axis == HORIZONTAL) {\n throw new IllegalStateException(\n \"Baseline must be used along vertical axis\");\n }\n }", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public interface AxisAngleBasics extends AxisAngleReadOnly, Orientation3DBasics, Clearable\n{\n /**\n * Gets the reference to the axis part of this axis-angle.\n *\n * @return the reference to the axis vector.\n */\n @Override\n UnitVector3DBasics getAxis();\n\n /**\n * Sets a new angle to this axis-angle.\n *\n * @param angle the new angle.\n */\n void setAngle(double angle);\n\n /**\n * Sets a new x-component for the axis of this axis-angle.\n *\n * @param x the new axis x-component.\n */\n default void setX(double x)\n {\n getAxis().setX(x);\n }\n\n /**\n * Sets a new y-component for the axis of this axis-angle.\n *\n * @param y the new axis y-component.\n */\n default void setY(double y)\n {\n getAxis().setY(y);\n }\n\n /**\n * Sets a new z-component for the axis of this axis-angle.\n *\n * @param z the new axis z-component.\n */\n default void setZ(double z)\n {\n getAxis().setZ(z);\n }\n\n /**\n * Sets the components of this axis-angle to represent a \"zero\" rotation. After calling the axis is\n * equal to {@link Axis3D#X} and the angle to 0.\n */\n @Override\n default void setToZero()\n {\n getAxis().set(Axis3D.X);\n setAngle(0.0);\n }\n\n /**\n * Sets the components of this axis-angle to {@link Double#NaN}.\n */\n @Override\n default void setToNaN()\n {\n getAxis().setToNaN();\n setAngle(Double.NaN);\n }\n\n /**\n * Tests if this axis-angle contains a {@link Double#NaN}.\n *\n * @return {@code true} if this axis-angle contains a {@link Double#NaN}, {@code false} otherwise.\n */\n @Override\n default boolean containsNaN()\n {\n return AxisAngleReadOnly.super.containsNaN();\n }\n\n /**\n * Sets each component of this axis-angle to its absolute value.\n */\n default void absolute()\n {\n getAxis().absolute();\n setAngle(Math.abs(getAngle()));\n }\n\n /**\n * Negates each component of this axis-angle.\n */\n default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }\n\n /** {@inheritDoc} */\n @Override\n default void invert()\n {\n setAngle(-getAngle());\n }\n\n /**\n * Normalizes the axis of this axis-angle such that its norm is equal to 1 after calling this method\n * and its direction remains unchanged.\n * <p>\n * Edge cases:\n * <ul>\n * <li>if this axis-angle contains {@link Double#NaN}, this method is ineffective.\n * </ul>\n * </p>\n */\n @Override\n default void normalize()\n {\n getAxis().normalize();\n }\n\n /**\n * Multiplies the angle of this axis-angle by the given {@code scale}.\n *\n * @param scale the scaling factor to apply to the angle of this axis-angle.\n */\n default void scaleAngle(double scale)\n {\n setAngle(scale * getAngle());\n }\n\n /**\n * Sets this axis-angle to represent a new rotation of axis ({@code x}, {@code y}, {@code z}) and\n * angle of {@code angle}.\n *\n * @param x x-component of the new axis.\n * @param y y-component of the new axis.\n * @param z z-component of the new axis.\n * @param angle the new angle.\n */\n default void set(double x, double y, double z, double angle)\n {\n getAxis().set(x, y, z);\n setAngle(angle);\n }\n\n /** {@inheritDoc} */\n @Override\n default void set(Orientation3DReadOnly orientation3DReadOnly)\n {\n if (orientation3DReadOnly instanceof AxisAngleReadOnly)\n set((AxisAngleReadOnly) orientation3DReadOnly);\n else\n orientation3DReadOnly.get(this);\n }\n\n /**\n * Sets the axis and the angle of this axis-angle.\n *\n * @param axis the new axis. Not modified.\n * @param angle the new angle.\n */\n default void set(Vector3DReadOnly axis, double angle)\n {\n getAxis().set(axis);\n setAngle(angle);\n }\n\n /**\n * Sets this axis-angle to the same value as the given axis-angle {@code other}.\n *\n * @param other the other axis-angle. Not modified.\n */\n default void set(AxisAngleReadOnly other)\n {\n getAxis().set(other.getAxis());\n setAngle(other.getAngle());\n }\n\n /**\n * Sets this axis-angle to {@code other} and then calls {@link #negate()}.\n *\n * @param other the other axis-angle to copy the values from. Not modified.\n */\n default void setAndNegate(AxisAngleReadOnly other)\n {\n set(other);\n negate();\n }\n\n /**\n * Copies the values in the given array into this axis-angle as follows:\n * <ul>\n * <li>{@code this.setX(axisAngleArray[0]);}\n * <li>{@code this.setY(axisAngleArray[1]);}\n * <li>{@code this.setZ(axisAngleArray[2]);}\n * <li>{@code this.setAngle(axisAngleArray[3]);}\n * </ul>\n *\n * @param axisAngleArray the array containing the new values for this axis-angle. Not modified.\n */\n default void set(double[] axisAngleArray)\n {\n set(0, axisAngleArray);\n }\n\n /**\n * Copies the values in the given array into this axis-angle as follows:\n * <ul>\n * <li>{@code this.setX(axisAngleArray[startIndex + 0]);}\n * <li>{@code this.setY(axisAngleArray[startIndex + 1]);}\n * <li>{@code this.setZ(axisAngleArray[startIndex + 2]);}\n * <li>{@code this.setAngle(axisAngleArray[startIndex + 3]);}\n * </ul>\n *\n * @param startIndex the first index to start reading from in the array.\n * @param axisAngleArray the array containing the new values for this axis-angle. Not modified.\n */\n default void set(int startIndex, double[] axisAngleArray)\n {\n setX(axisAngleArray[startIndex++]);\n setY(axisAngleArray[startIndex++]);\n setZ(axisAngleArray[startIndex++]);\n setAngle(axisAngleArray[startIndex]);\n }\n\n /**\n * Copies the values in the given array into this axis-angle as follows:\n * <ul>\n * <li>{@code this.setX(axisAngleArray[0]);}\n * <li>{@code this.setY(axisAngleArray[1]);}\n * <li>{@code this.setZ(axisAngleArray[2]);}\n * <li>{@code this.setAngle(axisAngleArray[3]);}\n * </ul>\n *\n * @param axisAngleArray the array containing the new values for this axis-angle. Not modified.\n */\n default void set(float[] axisAngleArray)\n {\n set(0, axisAngleArray);\n }\n\n /**\n * Copies the values in the given array into this axis-angle as follows:\n * <ul>\n * <li>{@code this.setX(axisAngleArray[startIndex + 0]);}\n * <li>{@code this.setY(axisAngleArray[startIndex + 1]);}\n * <li>{@code this.setZ(axisAngleArray[startIndex + 2]);}\n * <li>{@code this.setAngle(axisAngleArray[startIndex + 3]);}\n * </ul>\n *\n * @param startIndex the first index to start reading from in the array.\n * @param axisAngleArray the array containing the new values for this axis-angle. Not modified.\n */\n default void set(int startIndex, float[] axisAngleArray)\n {\n setX(axisAngleArray[startIndex++]);\n setY(axisAngleArray[startIndex++]);\n setZ(axisAngleArray[startIndex++]);\n setAngle(axisAngleArray[startIndex]);\n }\n\n /** {@inheritDoc} */\n @Override\n default void setAxisAngle(double x, double y, double z, double angle)\n {\n set(x, y, z, angle);\n }\n\n /** {@inheritDoc} */\n @Override\n default void setQuaternion(double x, double y, double z, double s)\n {\n AxisAngleConversion.convertQuaternionToAxisAngle(x, y, z, s, this);\n }\n\n /** {@inheritDoc} */\n @Override\n default void setRotationVector(double x, double y, double z)\n {\n AxisAngleConversion.convertRotationVectorToAxisAngle(x, y, z, this);\n }\n\n /** {@inheritDoc} */\n @Override\n default void setYawPitchRoll(double yaw, double pitch, double roll)\n {\n AxisAngleConversion.convertYawPitchRollToAxisAngle(yaw, pitch, roll, this);\n }\n\n /** {@inheritDoc} */\n @Override\n default void setRotationMatrix(double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22)\n {\n AxisAngleConversion.convertMatrixToAxisAngle(m00, m01, m02, m10, m11, m12, m20, m21, m22, this);\n }\n\n @Override\n default void setToYawOrientation(double yaw)\n {\n getAxis().set(Axis3D.Z);\n setAngle(yaw);\n }\n\n @Override\n default void setToPitchOrientation(double pitch)\n {\n getAxis().set(Axis3D.Y);\n setAngle(pitch);\n }\n\n @Override\n default void setToRollOrientation(double roll)\n {\n getAxis().set(Axis3D.X);\n setAngle(roll);\n }\n\n /**\n * Selects a component of this axis-angle based on {@code index} and sets it to {@code value}.\n * <p>\n * For {@code index} values of 0, 1, and 2, the corresponding components are x, y, and z,\n * respectively, while 3 corresponds to the angle.\n * </p>\n *\n * @param index the index of the component to set.\n * @param value the new value of the selected component.\n * @throws IndexOutOfBoundsException if {@code index} &notin; [0, 3].\n */\n default void setElement(int index, double value)\n {\n switch (index)\n {\n case 0:\n setX(value);\n break;\n case 1:\n setY(value);\n break;\n case 2:\n setZ(value);\n break;\n case 3:\n setAngle(value);\n break;\n default:\n throw new IndexOutOfBoundsException(Integer.toString(index));\n }\n }\n\n /**\n * Multiplies this axis-angle by {@code other}.\n * <p>\n * this = this * other\n * </p>\n *\n * @param other the other axis-angle to multiply this. Not modified.\n */\n default void multiply(AxisAngleReadOnly other)\n {\n AxisAngleTools.multiply(this, other, this);\n }\n\n /** {@inheritDoc} */\n @Override\n default void append(Orientation3DReadOnly other)\n {\n AxisAngleTools.multiply(this, false, other, false, this);\n }\n\n /**\n * Sets this axis-angle to the multiplication of {@code aa1} and {@code aa2}.\n * <p>\n * this = aa1 * aa2\n * </p>\n *\n * @param aa1 the first axis-angle in the multiplication. Not modified.\n * @param aa2 the second axis-angle in the multiplication. Not modified.\n */\n default void multiply(AxisAngleReadOnly aa1, AxisAngleReadOnly aa2)\n {\n AxisAngleTools.multiply(aa1, aa2, this);\n }\n\n /**\n * Multiplies this axis-angle by the inverse of {@code other}.\n * <p>\n * this = this * other<sup>-1</sup>\n * </p>\n *\n * @param other the other axis-angle to multiply this. Not modified.\n */\n default void multiplyInvertOther(AxisAngleReadOnly other)\n {\n AxisAngleTools.multiplyInvertRight(this, other, this);\n }\n\n /** {@inheritDoc} */\n @Override\n default void appendInvertOther(Orientation3DReadOnly orientation)\n {\n AxisAngleTools.multiply(this, false, orientation, true, this);\n }\n\n /**\n * Sets this axis-angle to the multiplication of the inverse of {@code this} and {@code other}.\n * <p>\n * this = this<sup>-1</sup> * other\n * </p>\n *\n * @param other the other axis-angle to multiply this. Not modified.\n */\n default void multiplyInvertThis(AxisAngleReadOnly other)\n {\n AxisAngleTools.multiplyInvertLeft(this, other, this);\n }\n\n /**\n * Sets this axis-angle to the multiplication of the inverse of {@code this} and the inverse of\n * {@code other}.\n * <p>\n * this = this<sup>-1</sup> * other<sup>-1</sup>\n * </p>\n *\n * @param other the other axis-angle to multiply this. Not modified.\n */\n default void multiplyInvertBoth(AxisAngleReadOnly other)\n {\n AxisAngleTools.multiplyInvertBoth(this, other, this);\n }\n\n /**\n * Appends a rotation about the z-axis to this axis-angle.\n *\n * <pre>\n * / ux = 0 \\\n * this = this * | uy = 0 |\n * | uz = 1 |\n * \\ angle = yaw /\n * </pre>\n *\n * @param yaw the angle to rotate about the z-axis.\n */\n @Override\n default void appendYawRotation(double yaw)\n {\n AxisAngleTools.appendYawRotation(this, yaw, this);\n }\n\n /**\n * Appends a rotation about the y-axis to this axis-angle.\n *\n * <pre>\n * / ux = 0 \\\n * this = this * | uy = 1 |\n * | uz = 0 |\n * \\ angle = pitch /\n * </pre>\n *\n * @param pitch the angle to rotate about the y-axis.\n */\n @Override\n default void appendPitchRotation(double pitch)\n {\n AxisAngleTools.appendPitchRotation(this, pitch, this);\n }\n\n /**\n * Appends a rotation about the x-axis to this axis-angle.\n *\n * <pre>\n * / ux = 1 \\\n * this = this * | uy = 0 |\n * | uz = 0 |\n * \\ angle = roll /\n * </pre>\n *\n * @param roll the angle to rotate about the x-axis.\n */\n @Override\n default void appendRollRotation(double roll)\n {\n AxisAngleTools.appendRollRotation(this, roll, this);\n }\n\n /**\n * Pre-multiplies this axis-angle by {@code other}.\n * <p>\n * this = other * other\n * </p>\n *\n * @param other the other axis-angle to multiply this. Not modified.\n */\n default void preMultiply(AxisAngleReadOnly other)\n {\n AxisAngleTools.multiply(other, this, this);\n }\n\n /** {@inheritDoc} */\n @Override\n default void prepend(Orientation3DReadOnly orientation)\n {\n AxisAngleTools.multiply(orientation, false, this, false, this);\n }\n\n /**\n * Sets this axis-angle to the multiplication of the inverse of {@code other} and {@code this}.\n * <p>\n * this = other<sup>-1</sup> * this\n * </p>\n *\n * @param other the other axis-angle to multiply this. Not modified.\n */\n default void preMultiplyInvertOther(AxisAngleReadOnly other)\n {\n AxisAngleTools.multiplyInvertLeft(other, this, this);\n }\n\n /** {@inheritDoc} */\n @Override\n default void prependInvertOther(Orientation3DReadOnly orientation)\n {\n AxisAngleTools.multiply(orientation, true, this, false, this);\n }\n\n /**\n * Sets this axis-angle to the multiplication of {@code other} and the inverse of {@code this}.\n * <p>\n * this = other * this<sup>-1</sup>\n * </p>\n *\n * @param other the other axis-angle to multiply this. Not modified.\n */\n default void preMultiplyInvertThis(AxisAngleReadOnly other)\n {\n AxisAngleTools.multiplyInvertRight(other, this, this);\n }\n\n /**\n * Sets this axis-angle to the multiplication of the inverse of {@code other} and the inverse of\n * {@code this}.\n * <p>\n * this = other<sup>-1</sup> * this<sup>-1</sup>\n * </p>\n *\n * @param other the other axis-angle to multiply this. Not modified.\n */\n default void preMultiplyInvertBoth(AxisAngleReadOnly other)\n {\n AxisAngleTools.multiplyInvertBoth(other, this, this);\n }\n\n /**\n * Prepends a rotation about the z-axis to this axis-angle.\n *\n * <pre>\n * / ux = 0 \\\n * this = | uy = 0 | * this\n * | uz = 1 |\n * \\ angle = yaw /\n * </pre>\n *\n * @param yaw the angle to rotate about the z-axis.\n */\n @Override\n default void prependYawRotation(double yaw)\n {\n AxisAngleTools.prependYawRotation(yaw, this, this);\n }\n\n /**\n * Prepends a rotation about the y-axis to this axis-angle.\n *\n * <pre>\n * / ux = 0 \\\n * this = | uy = 1 | * this\n * | uz = 0 |\n * \\ angle = pitch /\n * </pre>\n *\n * @param pitch the angle to rotate about the y-axis.\n */\n @Override\n default void prependPitchRotation(double pitch)\n {\n AxisAngleTools.prependPitchRotation(pitch, this, this);\n }\n\n /**\n * Prepends a rotation about the x-axis to this axis-angle.\n *\n * <pre>\n * / ux = 1 \\\n * this = | uy = 0 | * this\n * | uz = 0 |\n * \\ angle = roll /\n * </pre>\n *\n * @param roll the angle to rotate about the x-axis.\n */\n @Override\n default void prependRollRotation(double roll)\n {\n AxisAngleTools.prependRollRotation(roll, this, this);\n }\n}", "public InfLinearAxis(Axis axis) {\n super(axis);\n }", "protected void updateEdges() throws IllegalArgumentException {\n\t\tif(\n\t\t\t position.x < worldOrigin.x\n\t\t\t|| position.y < worldOrigin.y\n\t\t\t|| position.x > worldEnd.x\n\t\t\t|| position.y > worldEnd.y) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"Illegal movement; \"\n\t\t\t\t+ position\n\t\t\t\t+ \" is not in the world extending from \"\n\t\t\t\t+ worldOrigin\n\t\t\t\t+ \" to \"\n\t\t\t\t+ worldEnd\n\t\t\t\t+ \" inclusively\"\n\t\t\t);\n\t\t}\n\n\t\tif(position.x == worldOrigin.x) {\n\t\t\thorizontal = Side.Left;\n\t\t} else if(position.x == worldEnd.x) {\n\t\t\thorizontal = Side.Right;\n\t\t} else {\n\t\t\thorizontal = Side.None;\n\t\t}\n\n\t\tif(position.y == worldOrigin.y) {\n\t\t\tvertical = Side.Top;\n\t\t} else if(position.y == worldEnd.y) {\n\t\t\tvertical = Side.Bottom;\n\t\t} else {\n\t\t\tvertical = Side.None;\n\t\t}\n\t}", "public void Mirror(String axis)\n\t{\n\t\tif (axis.equals(\"x\"))\n\t\t{\n\t\t\tthis.x = -this.x;\n\t\t}\n\t\telse if (axis.equals(\"y\"))\n\t\t{\n\t\t\tthis.y = -this.y;\n\t\t}\n\t\telse if (axis.equals(\"y=-x\"))\n\t\t{\n\t\t\tint tempx = y;\n\t\t\tthis.x = -this.y;\n\t\t\tthis.y = -tempx;\n\t\t}\n\n\t}", "public void checkInvariant() {\n\t\tif (!(getPositionX() >= 0 && getPositionX() < getEngine().getWidth()))\r\n\t\t\tthrow new InvariantError(\"Error checkInvariant: getPositionX() > 0 && getPositionX() < getEngine().getWidth()\");\r\n\r\n\t\t// inv: getPositionY() >= 0 && getPositionY() < Engine::getHeight()\r\n\t\tif (!(getPositionY() >= 0 && getPositionY() < getEngine().getHeight()))\r\n\t\t\tthrow new InvariantError(\"Error checkInvariant: getPositionY() > 0 && getPositionY() < getEngine().getHeight()\");\r\n\r\n\t\t// inv: isDead() == not (getLife() >= 0)\r\n\t\tif (!(isDead() == !(getLife() > 0)))\r\n\t\t\tthrow new InvariantError(\"Error checkInvariant: isDead() == !getLife() > 0\");\r\n\t\t\r\n\t}", "public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}", "private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }", "public Coordinate checkDirection(Direction direction){\r\n\t\treturn new Coordinate(x + direction.getX(), y + direction.getY());\r\n\t}", "public void testCtor2_NullEdge() {\n try {\n new WayPointEvent(null, 0, offset);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public InfLinearAxis() {\n }", "public void testCtor1_NullEdge() {\n try {\n new WayPointEvent(null, wayPoint, offset);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCtor2_NullOffset() {\n try {\n new WayPointEvent(edge, 0, null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCtor1_NullOffset() {\n try {\n new WayPointEvent(edge, wayPoint, null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n public void testConstructorInvalidInputs() {\n try {\n Rectangle r5 = new Rectangle(-7, 4, new Color(255, 0, 0),\n new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r6 = new Rectangle(7, -4, new Color(255, 0, 0),\n new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r7 = new Rectangle(7, 4, null, new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r8 = new Rectangle(7, 4, new Color(255, 0, 0), null);\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r9 = new Rectangle(-7, 4, null, null);\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n }", "public void joystickDeadZone() {\n\t\tif (joystickLXAxis <= 0.075 && joystickLXAxis >= -0.075) {\n\t\t\tjoystickLXAxis = 0;\n\t\t} if (joystickLYAxis <= 0.075 && joystickLYAxis >= -0.075) {\n\t\t\tjoystickLYAxis = 0;\n\t\t}\n\t\tif (joystickRXAxis <= 0.075 && joystickRXAxis >= -0.075) {\n\t\t\tjoystickRXAxis = 0;\n\t\t} if (joystickRYAxis <= 0.075 && joystickRYAxis >= -0.075) {\n\t\t\tjoystickRYAxis = 0;\n\t\t}\n\t}", "public void testCtor1_NullNewWayPoint() {\n try {\n new WayPointEvent(edge, null, offset);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n\tpublic void invalidEnterShip_1(){\n\t\tShip ship = new Ship(new ShipPart(0,0),new ShipPart(1,1),new ShipPart(2,2));\n\t\tassertFalse(ship.canEnter(null, Direction.EAST));\n\t}", "@Override\n public boolean isLocationEmpty(int x, int y)\n {\n return isLocationEmpty(null, x, y);\n }", "private void preventMovementInOppositeDirection() {\n\t\tif(currentDirection == Direction.RIGHT && \n\t\t\t\tsnakeDirection == Direction.LEFT) {\n\t\t\t\n\t\t\tcurrentDirection = Direction.LEFT;\n\t\t} else if(currentDirection == Direction.LEFT && \n\t\t\t\tsnakeDirection == Direction.RIGHT) {\n\t\t\t\n\t\t\tcurrentDirection = Direction.RIGHT;\n\t\t} else if(currentDirection == Direction.DOWN && \n\t\t\t\tsnakeDirection == Direction.UP) {\n\t\t\t\n\t\t\tcurrentDirection = Direction.UP;\n\t\t} else if(currentDirection == Direction.UP && \n\t\t\t\tsnakeDirection == Direction.DOWN) {\n\t\t\t\n\t\t\tcurrentDirection = Direction.DOWN;\n\t\t}\n\t}", "@Override\n public boolean isTransforming() {\n return super.isTransforming() || desiredWorldPosition != null;\n }", "default void absolute()\n {\n getAxis().absolute();\n setAngle(Math.abs(getAngle()));\n }", "private void resetRotationAxisToOrigin()\n\t{\n\t\tdouble newSpeed = this.currentMomentMass * getRotation() /\n\t\t\t\tthis.defaultMomentMass;\n\t\t\n\t\t// Changes back to normal rotation\n\t\tthis.currentRotationAxis = new Point2D.Double(getOriginX(), getOriginY());\n\t\tsetRotation(newSpeed);\n\t}", "private void checkFlipDirection()\n\t{\n\t\tif (currentFloor == 0) //Are we at the bottom?\n\t\t\tcurrentDirection = Direction.UP; //Then we must go up\n\t\tif (currentFloor == (ElevatorSystem.getNumberOfFloors() - 1)) //Are we at the top?\n\t\t\tcurrentDirection = Direction.DOWN; //Then we must go down\n\t}", "private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}", "protected boolean avoidNegativeCoordinates() {\n \t\treturn false;\n \t}", "public void testSetLocationNegX() {\n try {\n container.setLocation(new Point(-1, 1));\n fail(\"the x of the point is -1, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "protected boolean canUseOtherDirection() {\n return false;\n }", "public HorizontalCoords() {\n }", "public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }", "public Boolean isHorizontal() {\n return this == EAST || this == WEST;\n }", "public void testDockDockPointNegY() {\n try {\n container.dock(new DockImpl(), new Point(-1, 1));\n fail(\"the y of location is -1, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public void testSetLocationNegY() {\n try {\n container.setLocation(new Point(1, -1));\n fail(\"the y of the point is -1, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public void checkRep()\n {\n assert (x>=0 && x<=19 && y >=0 && y<=19 && (orientation == 0 || orientation == 90 || orientation == 180 || orientation == 270));\n }", "@Test\n public void testTankMovingOutsideBoundaries() {\n tank.moveRight();\n tank.notMoveLeft();\n\n for (int i = 0; i < 480; i++) {\n tank.tick();\n }\n assertEquals(tank.x(), 460);\n\n tank.moveLeft();\n tank.notMoveRight();\n\n for (int i = 0; i < 480; i++) {\n tank.tick();\n }\n\n assertEquals(tank.x(), 180);\n }", "public Direction()\n {\n dirInDegrees = 0; // default to North\n }", "protected void maintainInAxis(Coord2d mouse) {\n View view = getChart().getView();\n View2DLayout layout = view.get2DLayout();\n\n BoundingBox3d bounds3d = getChart().getView().getBounds();\n\n\n\n // Get corners\n Coord3d cornerMin3D = null;\n Coord3d cornerMax3D = null;\n\n\n if (view.is2D_XY()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmin();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmax();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXminYminZmax();\n }\n }\n\n else if (view.is2D_XZ()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmin();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXmaxYminZmax();\n cornerMax3D = bounds3d.getCorners().getXminYmaxZmin();\n }\n }\n\n else if (view.is2D_YZ()) {\n // no flip : take X min for bottom left corner\n if (layout.isNoAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmax();\n }\n // horizontal flip : take X max for bottom left corner\n else if (layout.isHorizontalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmin();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmax();\n }\n // vertical flip : take Y max for bottom left corner\n else if (layout.isVerticalAxisFlipOnly()) {\n cornerMin3D = bounds3d.getCorners().getXminYminZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYmaxZmin();\n }\n // both of the two above\n else if (layout.isBothAxisFlipped()) {\n cornerMin3D = bounds3d.getCorners().getXminYmaxZmax();\n cornerMax3D = bounds3d.getCorners().getXmaxYminZmin();\n }\n }\n\n // System.out.println(\"Corner min 3D : \" + cornerMin3D);\n // System.out.println(\"Corner max 3D : \" + cornerMax3D);\n\n // Project 3D bounds to 2D\n Coord3d cornerMin2D = modelToScreen(cornerMin3D); // bottom left\n Coord3d cornerMax2D = modelToScreen(cornerMax3D); // top right\n\n Coord2d scale = scaled?new Coord2d(1,1):getChart().getView().getPixelScale();\n \n cornerMin2D.x /= scale.x; \n cornerMin2D.y /= scale.y; \n cornerMax2D.x /= scale.x; \n cornerMax2D.y /= scale.y; \n \n // System.out.println(mouse + \" corner min \" + cornerMin2D + \" corner max \" + cornerMax2D);\n\n // System.out.println(\"Corner min 2D : \" + cornerMin);\n // System.out.println(\"Corner max 2D : \" + cornerMax);\n\n // Crop on X bounds\n if (mouse.x < cornerMin2D.x)\n mouse.x = cornerMin2D.x;\n if (mouse.x > cornerMax2D.x)\n mouse.x = cornerMax2D.x;\n\n // Crop on Y bounds\n int height = (int)(getChart().getCanvas().getRendererHeight() / scale.y);\n\n float flipedCornerMinY = height - cornerMin2D.y;\n float flipedCornerMaxY = height - cornerMax2D.y;\n float flipedMouseY = height - mouse.y;\n\n if (flipedMouseY < cornerMin2D.y)\n mouse.y = flipedCornerMinY;\n if (flipedMouseY > cornerMax2D.y)\n mouse.y = flipedCornerMaxY;\n }", "public void testDockDockPointNegX() {\n try {\n container.dock(new DockImpl(), new Point(-1, 1));\n fail(\"the x of location is -1, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "@Test public void testSameStartSameDirection() {\n assertThrows(IOException.class, () -> {\n new CrosswordBoard(\"puzzles/sameStartSameDirection.puzzle\");\n }, \"should fail because two entries start at the same location with the same direction\");\n }", "private void initAxis(Axis axis, int position) {\n if (null == axis) {\n return;\n }\n initAxisAttributes(axis, position);\n initAxisMargin(axis, position);\n initAxisMeasurements(axis, position);\n }", "public void testBoundaryChangedEvent_2_null_1() {\n try {\n new BoundaryChangedEvent(null, oldBoundary, newBoundary, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "public void testBoundaryChangedEvent_1_null_1() {\n try {\n new BoundaryChangedEvent(null, oldBoundary, newBoundary);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "@Test\n public void test53() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setRangeAxisLocation((AxisLocation) null);\n } catch(IllegalArgumentException e) {\n //\n // Null 'location' for index 0 not permitted.\n //\n assertThrownBy(\"org.jfree.chart.plot.CategoryPlot\", e);\n }\n }", "public Vec4 expectDirection() {\n if(isPoint()) throw new IllegalArgumentException(\"expected direction: \" + this);\n return this;\n }", "@Test\n public void noEqualsPosition() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 6, 1);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", null, 1);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "public DateAxis() { this(null); }", "public void checkEdge()\n {\n if(getX() < 10 || getX() > getWorld().getWidth() - 10)\n {\n speed *= -1;\n }\n }", "public Coordinate() { row = col = -1; }", "@Test\n public void testConstructor() {\n assertNotEquals(null, up);\n }", "@Test\n public void respawnRobotX0Y0OnMoveDirectionNORTH(){\n checkRespawnOnOutOfBounds(0, 0, CardinalDirection.NORTH);\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testInvalidSquare() {\n\t\tassertFalse(Player.isValidStartPosition(null));\n\t\t\n\t\tnew Player(null, 0);\n\t}", "public void testBoundaryChangedEvent_1_null_2() {\n try {\n new BoundaryChangedEvent(classNode, null, newBoundary);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "@Test\n public void calculateDueNorthAzimuthReturns0() {\n\n CompoundMark startMarker = new CompoundMark(\n 1,\n \"start\",\n new Mark(1, \"test origin 1\", ORIGIN_COORDS) );\n\n CompoundMark endMarker = new CompoundMark(\n 2,\n \"end\",\n new Mark(2, \"test mark 2\", new GPSCoordinate(50, 0)) );\n\n Leg start = new Leg(\"Start\", startMarker, endMarker, 0);\n TEST_BOAT.setCurrentLeg(start);\n assertEquals(GPSCoordinate.calculateAzimuth(startMarker.getAverageGPSCoordinate(), endMarker.getAverageGPSCoordinate()).degrees(), 0, 1e-8);\n }", "@Test\r\n public void should_not_be_allowed_to_move_in_wrong_direction() {\r\n game.nextTurn(); // will throw [1,2] and thus black starts\r\n assertFalse(game.move(Location.R12, Location.R10));\r\n }", "public abstract boolean initNoFill(int width, int height);", "@Override\n public boolean isGoodForSides()\n {\n return false;\n }", "void check_alien_direction() {\n // Aliens are moving right, check if aliens will move off screen\n if (Alien.direction == Alien.Directions.RIGHT) {\n double max_x = rightmost_alien_x();\n // Alien1 has largest width, so we use that one to calculate if all aliens will fit\n if (max_x + Dimensions.ALIEN1_WIDTH + Dimensions.X_PADDING > scene_width){\n Alien.changeDirections();\n }\n }\n\n // Aliens are moving left, check if aliens will move off screen\n else if (Alien.direction == Alien.Directions.LEFT) {\n double min_x = leftmost_alien_x();\n if (min_x < Dimensions.X_PADDING){\n Alien.changeDirections();\n }\n }\n\n // Aliens are moving down, check if they finished moving down\n else if (Alien.direction == Alien.Directions.DOWN &&\n Alien.down_distance_travelled >= Dimensions.ALIEN_VERTICAL_SPACE){\n random_alien_fires(); // After aliens all descend one row, one of the ships fires at the player\n Alien.changeDirections();\n }\n }", "public boolean validMove(int x, int y){\n if(!super.validMove(x, y)){\n return false;\n }\n if(((Math.abs(x - this.x()) == 2) && (Math.abs(y - this.y()) == 1))\n || ((Math.abs(x - this.x()) == 1) && (Math.abs(y - this.y()) == 2))){\n return true;\n }else{\n return false;\n }\n }", "public void a(Axis<?, ?> axis) {\n ArrayList arrayList = new ArrayList();\n arrayList.add(axis);\n a(arrayList, axis);\n this.a = new Axis[0];\n this.a = (Axis[]) arrayList.toArray(this.a);\n }", "public void testDockDockPointIntNegY() {\n try {\n container.dock(new DockImpl(), new Point(-1, 1), 1);\n fail(\"the y of location is -1, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public void checkXAxis ()\n {\n if (player.getX() >= 599)\n {\n player.setLocation (0, player.getY());\n }\n else if (player.getX() <= 0)\n {\n player.setLocation (598, player.getY());\n }\n }", "protected void setupRotationOrigin()\n\t{\n\t\tthis.currentRotationAxis = new Point2D.Double(getOriginX(), getOriginY());\n\t\tupdateDefaultMomentMass();\n\t\tthis.currentMomentMass = this.defaultMomentMass;\n\t\t\n\t\t//changeRotationAxisTo(new Point2D.Double(0, 0));\n\t}", "@Test\n void invalidCREATED() {\n // when not started, nothing can be done.\n getGame().move(getPlayer(), Direction.EAST);\n assertThat(getGame().isInProgress()).isFalse();\n verifyNoMoreInteractions(observer);\n }", "public Square(double side) throws IllegalArgumentException{\r\n\t\tif(side<0){\r\n\t\t\tthrow new IllegalArgumentException(\"Side can not be negative\");\r\n\t\t}\r\n\t\tthis.side=side;\r\n\t}", "@Test\n\tpublic void invalidOutsideSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(true, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}", "public void testDockDockPointNull() {\n try {\n container.dock(null, new Point(1, 1));\n fail(\"the dock is null, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public void testBoundaryChangedEvent_1_null_3() {\n try {\n new BoundaryChangedEvent(classNode, oldBoundary, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "public void testBoundaryChangedEvent_2_null_2() {\n try {\n new BoundaryChangedEvent(classNode, null, newBoundary, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "@Override\n\tfinal public void rotate(double angle, Axis axis)\n\t{\n\t\t//center.setDirection(angle);\n\t}", "private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }", "void unsetDirection();", "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "public void testDockDockPointNullDock() {\n try {\n container.dock(null, new Point(1, 1));\n fail(\"the dock is null, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "@Disabled(\"DAQ-2088 Fails because expecting units\")\n\t@Test\n\tpublic void checkInitialValues() throws Exception {\n\t\tassertEquals(bbox.getxAxisName(), bot.table(0).cell(0, 1));\n\t\tassertEquals(bbox.getxAxisStart()+\" mm\", bot.table(0).cell(1, 1));\n\t\tassertEquals(bbox.getxAxisLength()+\" mm\", bot.table(0).cell(2, 1));\n\t\tassertEquals(bbox.getyAxisName(), bot.table(0).cell(3, 1));\n\t\tassertEquals(bbox.getyAxisStart()+\" K\", bot.table(0).cell(4, 1));\n\t\tassertEquals(bbox.getyAxisLength()+\" K\", bot.table(0).cell(5, 1));\n\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n public void testCreationFromNullOrigin()\r\n {\r\n final Circle c = new Circle(null, 0);\r\n c.equals(null);\r\n }", "public void testBoundaryChangedEvent_2_null_3() {\n try {\n new BoundaryChangedEvent(classNode, oldBoundary, null, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }", "private static boolean AxisStep_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AxisStep_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = ReverseStep(b, l + 1);\n if (!r) r = ForwardStep(b, l + 1);\n if (!r) r = MarklogicNamespaceAxis(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public final void rule__BasicReorientExpression__AxisAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10012:1: ( ( ruleAXIS ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10013:1: ( ruleAXIS )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10013:1: ( ruleAXIS )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10014:1: ruleAXIS\n {\n before(grammarAccess.getBasicReorientExpressionAccess().getAxisAXISEnumRuleCall_2_1_0()); \n pushFollow(FOLLOW_ruleAXIS_in_rule__BasicReorientExpression__AxisAssignment_2_120123);\n ruleAXIS();\n\n state._fsp--;\n\n after(grammarAccess.getBasicReorientExpressionAccess().getAxisAXISEnumRuleCall_2_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void test19() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n int int0 = combinedDomainCategoryPlot0.getDomainAxisCount();\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setAxisOffset((RectangleInsets) null);\n } catch(IllegalArgumentException e) {\n //\n // Null 'offset' argument.\n //\n assertThrownBy(\"org.jfree.chart.plot.CategoryPlot\", e);\n }\n }", "@Test\n public void testNotPositionInstanceEquals(){\n Pillar p = new Pillar(0,0);\n assertFalse(Maze.position(0,0).equals(p));\n }", "public boolean isOrthogonal() {\n\t\treturn isHorizontal() || isVertical();\n\t}", "@Test\n public void testEqualsFalse() {\n Rectangle r5 = new Rectangle(7, 5, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 254),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(0, 4, new Color(255, 155, 255),\n new Position2D(-50, 75));\n Rectangle r8 = new Rectangle(0, 4, new Color(0, 255, 255),\n new Position2D(-50, 75));\n Rectangle r9 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, 75));\n Rectangle r10 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(51, -75));\n Rectangle r11 = new Rectangle(1, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n Rectangle r12 = new Rectangle(1, 100, new Color(199, 155, 13),\n new Position2D(50, 0));\n\n assertNotEquals(r1, r5);\n assertNotEquals(r2, r6);\n assertNotEquals(r2, r7);\n assertNotEquals(r2, r8);\n assertNotEquals(r3, r9);\n assertNotEquals(r3, r10);\n assertNotEquals(r4, r11);\n assertNotEquals(r4, r12);\n }", "public void setAxis(String axis)\n {\n this.axis = axis;\n }", "public float getAlignment(int axis) {\n if (axis == View.X_AXIS) {\n return 0;\n }\n return super.getAlignment(axis);\n }", "public DraggableBehavior setAxis(AxisEnum axis)\n\t{\n\t\tthis.options.putLiteral(\"axis\", axis.toString().toLowerCase());\n\t\treturn this;\n\t}", "public TriangleSolitaireModelImpl(int emptyRow, int emptyCol) throws IllegalArgumentException {\r\n super(new TriangleBoard(emptyRow, emptyCol));\r\n }", "public void InvalidMove();", "@Test(expected = IllegalArgumentException.class)\n public void testMakingShapeWithNullLocation() {\n model1.addShape(Oval.createOval(\"C\", null,\n new Color(0, 0, 1), 6, 100, 60.0, 30.0));\n }", "public LocationDimensionalityMismatchException() {\n\t\tsuper(\"Attempted to compare two Locations of different dimensionality.\");\n\t}", "@Test\n\tpublic void invalidOutsideSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = new BlankSquare();\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}", "public Location north()\r\n {\r\n\r\n return new Location(x, y - 1);\r\n }", "@Test\r\n\tpublic void emptyOneSideEndsGame() {\r\n\t\tBowl bowl = setupGame(new Bowl());\r\n\t\tvar player = new Player();\r\n\t\tvar answer = bowl.gameEndCheck();\r\n\t\tassertEquals(false,answer);\r\n\t\tbowl.getNeighbor(5).playTurn(player);\r\n\t\tanswer = bowl.getNeighbor(6).gameEndCheck();\r\n\t\tassertEquals(true,answer);\r\n\t}", "@Test\n public void forcingDirectionDoesNotMeanWeCannotUseEdgeAtAll() {\n int north = graph.edge(1, 0).setDistance(1).set(speedEnc, 10, 10).getEdge();\n int south = graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10).getEdge();\n graph.edge(2, 5).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(5, 4).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(4, 3).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(3, 2).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(1, 0).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(0, 6).setDistance(1).set(speedEnc, 10, 0);\n int targetEdge = graph.edge(6, 7).setDistance(1).set(speedEnc, 10, 0).getEdge();\n assertPath(calcPath(1, 7, north, targetEdge), 0.3, 3, 300, nodes(1, 0, 6, 7));\n assertPath(calcPath(1, 7, south, targetEdge), 0.9, 9, 900, nodes(1, 2, 5, 4, 3, 2, 1, 0, 6, 7));\n }", "public static double[] deadZone(double[] axis){\n\t\tfor (int i = 0; i< axis.length; i++){\n\t\t\tif ((axis[i] <= 0.05) && (axis[i] >= -0.05)) {//i will iterate to 0,1,2 since axis array size is 3\n\t\t\t\taxis[i] = 0;//if the condition is satisfies, round it to zero\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(axis.length);\n\t\treturn axis;\n\t}", "public void clear() {\n up = false;\n down = false;\n left = false;\n right = false;\n }", "private boolean wrongPositioning(int x, int y, LoadedMap map) {\n boolean ans = false;\n if(hasAbove(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))){\n ans = true;\n }else if (hasBelow(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))) {\n ans = true;\n }\n return ans;\n }", "private void improperArgumentCheck(Point[] points) {\n int N = points.length;\n for (int i = 0; i < N; i++) {\n if (null == points[i])\n throw new NullPointerException();\n }\n\n Arrays.sort(points);\n for (int i = 1; i < N; i++) {\n if (points[i-1].equals(points[i]))\n throw new IllegalArgumentException();\n }\n }", "private ArrayList<Location> canMoveInit() {\n if (last == null) {\n ArrayList<Location> firstList = new ArrayList<>();\n firstList.add(getLocation());\n firstList.add(null);\n crossLocation.push(firstList);\n }\n if (crossLocation.empty() || isEnd) {\n return null;\n }\n Grid gr = getGrid();\n if (gr == null) {\n return null;\n }\n last = getLocation();\n return getValid(getLocation());\n }", "void check(){\n if(!data.up.isEmpty()){\r\n if(data.floor == data.up.get(0)){\r\n data.up.remove(0);\r\n data.state = 0;\r\n data.statePrv = 1;\r\n data.isMoving = false;\r\n }\r\n }\r\n if(!data.down.isEmpty()){\r\n if(data.floor == data.down.get(0)){\r\n data.down.remove(0);\r\n data.state = 0;\r\n data.statePrv = -1;\r\n data.isMoving = false;\r\n }\r\n }\r\n }" ]
[ "0.6563049", "0.57925034", "0.5544352", "0.5495662", "0.54830325", "0.5473687", "0.5439269", "0.5411571", "0.53642696", "0.5360591", "0.53444475", "0.52992135", "0.52971876", "0.52909803", "0.5287531", "0.5258342", "0.52481097", "0.5202733", "0.5201851", "0.52011335", "0.51925766", "0.5190927", "0.51655954", "0.515076", "0.514405", "0.5121342", "0.51184416", "0.5111907", "0.5111473", "0.5106146", "0.5102105", "0.5096667", "0.50897455", "0.506618", "0.5059394", "0.5058334", "0.5045424", "0.5027093", "0.50126696", "0.49992332", "0.49947673", "0.49937972", "0.4967945", "0.49665126", "0.49521038", "0.49351224", "0.4913699", "0.49110213", "0.4910635", "0.49080095", "0.49058044", "0.48934487", "0.48930147", "0.48910382", "0.48815382", "0.488121", "0.4877018", "0.48743343", "0.48717436", "0.4867741", "0.4864102", "0.48630273", "0.48436707", "0.48429626", "0.4841429", "0.48408303", "0.48401362", "0.48390448", "0.483847", "0.48340306", "0.48255926", "0.48251972", "0.48219806", "0.48140916", "0.4809897", "0.48098314", "0.48077506", "0.48068348", "0.47974497", "0.47920457", "0.4785393", "0.47850648", "0.4781486", "0.47798005", "0.47775948", "0.47731972", "0.47652793", "0.476153", "0.47595397", "0.47592673", "0.47574002", "0.47545168", "0.4746539", "0.47462225", "0.47442734", "0.47359064", "0.47328022", "0.47316843", "0.4731389", "0.47306722" ]
0.62172353
1
Returns the dimension of the coordinate system.
public abstract int getDimension();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCoordinateDimension() { \n return getPosition().getCoordinateDimension();\n }", "public int dimensionCount() {\n\t\treturn point.length;\n\t}", "public int dimensions() {\n\t\treturn dim;\n\t}", "int dim() {\r\n\t\treturn dimt * dimx * dimy;\r\n\t}", "public int dimension() {\n return N; // Return Board instance variable for dimension size\n }", "public Point getUniverseDimensions(){\n return this.physModel.getUniverseDimensions();\n }", "public final int getDimension() {\r\n\t\treturn this.dimension;\r\n\t}", "public int getDimension() {\n\t\treturn dimension;\n\t}", "public int dimension() // board dimension n\n {\n return dim;\n }", "public static int DimNum() {\n\t\treturn root_map.size();\n\t}", "public Vector3f getDimensions();", "public int geomDim();", "BigInteger getDimension();", "public int domainDimension() {\n return dvModel.totalParamSize();\r\n }", "public long dimCount()\n\t{\n\t\treturn (long)multimemory.dims.length;\n\t}", "public int[] getDims() {\n int[] dimsTuple = { this.xDimension, this.yDimension };\n return dimsTuple;\n }", "int dim(){\n\t\treturn dimx*dimy;\n\t}", "public final int dimension() { return _N; }", "public int getwDimension()\n {\n return wDimension;\n }", "public int dimensions() {\n return this.data[0].length;\n }", "Dimension getDimensions();", "int dimensionality();", "public Vector2 getMouseSize() {\n \tdimension.set(pointer.width, pointer.height);\n \treturn dimension;\n\t}", "public short getZDim() {\n\t\treturn getShort(ADACDictionary.Z_DIMENSIONS);\n\t}", "public int getDimension() {\n \treturn dim;\n }", "public long[] dimensions()\n\t{\n\t\tint dimcount=multimemory.dims.length;\n\t\tlong[] o=new long[dimcount];\n\t\tfor (int i=0; i<o.length; i++)\n\t\t{\n\t\t\to[i]=multimemory.dims[i];\n\t\t\t\n\t\t}\n\t\t\n\t\treturn o;\n\t}", "public int getGridDimensions() {\n return GRID_DIMENSIONS;\n }", "public int[] getDimensions() {\r\n int[] dimensions = new int[2];\r\n dimensions[0] = squareDimension;\r\n dimensions[1] = squareDimension;\r\n return dimensions;\r\n }", "Dimension dimension();", "public final String dimension() {\n\t\tStringBuffer b = new StringBuffer(16);\n\t\tthis.editDimension(b);\n\t\treturn(b.toString());\n\t}", "int getDimensionsCount();", "public native Dimension getDimension() throws MagickException;", "public double lenght() {\r\n\t\treturn Math.sqrt(this.x * this.x +\r\n\t\t\t\t\t\t this.y * this.y +\r\n\t\t\t\t\t\t this.z * this.z);\r\n\t}", "public float lenght() {\n\t\treturn (float) Math.sqrt(x*x + y*y + z*z);\n\t}", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public byte getDimension() {\n return this.dimension;\n }", "public byte getDimension() {\n return this.dimension;\n }", "int getDimX(){\n\t\treturn dimx;\n\t}", "Dimension getDimension();", "public double length()\n\t{\n\t\treturn Math.sqrt(x*x + y*y);\n\t}", "public int getDimX ()\n {\n return m_dim_x;\n }", "public int getDimX() {\r\n return dimX;\r\n }", "public double length() {\n\t\treturn Math.sqrt(x * x + y * y + z * z + w * w);\n\t}", "public int getSize() {\n\t\treturn point3D.size();\r\n\t}", "public int getxlength(){ \n return numcols*boxsize;\n }", "int numberOfDimensions();", "public int nDimension() {\n return TH.THTensor_(nDimension)(this);\n }", "int getCurrentDimension() {\n if (!playerExists())\n return lastdim;\n return game.h.m;\n }", "Dimension getSize();", "Dimension getSize();", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public Dimension3d getSize() {\n return size;\n }", "@Override\n\tpublic int getDimension() {\n\t\tint count = 0;\n\t\tfor ( SingleEquationStatement equation : equations.values() ) {\n\t\t\tif ( equation.getOrder() > 0 ) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}", "public static int findDimensions()\n {\n int dimension = 0;\n In in = new In(\"matrix_1.txt\");\n while(!in.isEmpty())\n {\n dimension++;\n in.readLine();\n }\n return dimension;\n }", "public float length() {\n return (float) Math.sqrt(x*x + y*y);\n }", "public default int getDimension() {\n\t\treturn 1;\n\t}", "public Dimension getSize()\n\t{\n\t\treturn rect.getSize();\n\t}", "public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}", "public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}", "public double len() {\n \t\treturn Math.sqrt((double)x*x + (double)y*y + (double)z*z);\n \t}", "public float length() {\r\n\t\treturn (float) Math.sqrt((x * x) + (y * y));\r\n\t}", "public final float length() {\n\t\treturn (float)Math.sqrt(X * X + Y * Y);\n\t}", "public double getWidth() {\n return location.width();\n }", "int[] shape(){\n int[] dimensions = new int[2];\n dimensions[0] = this.rows;\n dimensions[1] = this.cols;\n return dimensions;\n }", "public int featureDimension() {\n assert featureDimension > 0;\n return featureDimension;\n }", "public float length()\n {\n return (float) Math.sqrt(x * x + y * y + z * z + w * w);\n }", "public Dimension getSize ( )\r\n\t{\r\n\t\treturn new Dimension ( BORDER_X*2 + SQUARE_SIZE*size, BORDER_Y*2 + SQUARE_SIZE*size );\r\n\t}", "public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}", "public Dimension2D getCanvasSize(\n )\n {\n return renderSize == null\n ? Dimension.get(getContentContext().getBox()) // Device-independent (user-space) area.\n : renderSize; // Device-dependent (device-space) area.\n }", "Point getScreenDimensions() {\n\t\tDisplay display = getWindowManager().getDefaultDisplay();\n\t\tPoint screenDimensions = new Point();\n\t\tdisplay.getSize(screenDimensions);\n\t\treturn screenDimensions;\n\t}", "public double getWidth() {\n\t\treturn mx-nx;\n\t}", "private double getProblemDimensionality(){\n return this.dropPoints.size();\n }", "public int getSize() {\n return rows * cols;\n }", "public double length() {\n return Math.sqrt(\n (Math.pow(getX(), 2)) +\n (Math.pow(getY(), 2)) +\n (Math.pow(getZ(), 2))\n );\n }", "public int getSize() {\n\t\treturn WORLD_SIZE;\n\t}", "@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}", "public double Length() {\n return OCCwrapJavaJNI.Units_Dimensions_Length(swigCPtr, this);\n }", "public String getDimension()\r\n/* 277: */ {\r\n/* 278:341 */ return this.dimension;\r\n/* 279: */ }", "public final int getWidth() {\r\n return (int) size.x();\r\n }", "public int getSize() {\n\t\treturn grid.length;\n\t}", "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public int getXD2 ()\n\t{\n\t\treturn xDimension2;\n\t}", "@Override\n\tpublic D3int getDim() {\n\t\treturn myDim;\n\t}", "Dimension getCanvasDimension();", "public long getSize() {\n\t\treturn Math.abs(getXSize() * getYSize() * getZSize());\n\t}", "public Dimension getSize()\n {\n return new Dimension(300, 150);\n }", "public int getXD3 ()\n\t{\n\t\treturn xDimension3;\n\t}", "public int getXMax(){\n\t\treturn xDim;\n\t}", "public int getDimension() {\n return 0;\n }", "public int[] getDimensions(){\n int[] m={columnas*dimensionCasilla,filas*dimensionCasilla};\n return m;\n }", "public int getDimZ() {\r\n return dimZ;\r\n }", "private Point getScreenDim() {\n \t\tDisplay display = this.getWindowManager().getDefaultDisplay();\n \n \t\t@SuppressWarnings( \"deprecation\" )\n \t\tPoint size = new Point( display.getWidth(), display.getHeight() );\n \t\treturn size;\n \t}", "public static int numDimensions_data() {\n return 1;\n }", "public Vector2i getSize() {\n return new Vector2i(getWidth(), getHeight());\n }", "public Map<Integer, Integer> getDimension() throws SQLException {\n return retrieveExpected(createNativeDimensionSQL(), INTEGER);\n }", "public float getSize2D() {\n\treturn pointSize;\n }", "public int width() {\n checkTransposed();\n return width;\n }", "public Dimension getSize() {\n\t\treturn size.getCopy();\n\t}", "public Dimension getCanvasSize() {\n return transformManager.getCanvasSize();\n }", "public DimensionInformation getDimensionInformation() {\n return dimensionInformation;\n }" ]
[ "0.7654462", "0.721618", "0.7119869", "0.7026541", "0.69703126", "0.6944891", "0.6904159", "0.6883248", "0.68650866", "0.6863409", "0.6854078", "0.6847107", "0.68460435", "0.6821869", "0.68105924", "0.6772195", "0.67446214", "0.6729668", "0.67223513", "0.6708806", "0.66756076", "0.66516864", "0.663528", "0.6634777", "0.6619081", "0.6618425", "0.660366", "0.6579733", "0.6560091", "0.65297884", "0.65226054", "0.6508893", "0.65013856", "0.6499917", "0.6489508", "0.6478889", "0.6478889", "0.64722663", "0.64659065", "0.64604986", "0.6425942", "0.6418124", "0.64000815", "0.64", "0.6399179", "0.63559854", "0.63543695", "0.6351636", "0.6351365", "0.6351365", "0.6332376", "0.6331644", "0.6323429", "0.63203925", "0.630454", "0.6302266", "0.62899005", "0.6268028", "0.62664825", "0.62602115", "0.62524784", "0.6247945", "0.62423605", "0.62208027", "0.62201554", "0.62197196", "0.6218501", "0.620225", "0.6192357", "0.6181276", "0.6174211", "0.61733454", "0.61650985", "0.61569756", "0.6151382", "0.6148899", "0.6146615", "0.61352676", "0.61309695", "0.61232984", "0.61216956", "0.6116207", "0.6111821", "0.60937774", "0.6072489", "0.6065987", "0.60612434", "0.6054875", "0.60537124", "0.60505635", "0.604072", "0.60222214", "0.6020012", "0.5996665", "0.59902084", "0.59864724", "0.5983586", "0.5975177", "0.59618264", "0.59333587" ]
0.61682004
72
Gets axis details for dimension within coordinate system. Each dimension in the coordinate system has a corresponding axis.
public abstract AxisInfo getAxis( int dimension );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] getDims() {\n int[] dimsTuple = { this.xDimension, this.yDimension };\n return dimsTuple;\n }", "public net.opengis.gml.x32.CoordinateSystemAxisPropertyType[] getAxisArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(AXIS$1, targetList);\n net.opengis.gml.x32.CoordinateSystemAxisPropertyType[] result = new net.opengis.gml.x32.CoordinateSystemAxisPropertyType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "EList getAxisName();", "@Override\n UnitVector3DBasics getAxis();", "public net.opengis.gml.x32.CoordinateSystemAxisPropertyType getAxisArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.x32.CoordinateSystemAxisPropertyType target = null;\n target = (net.opengis.gml.x32.CoordinateSystemAxisPropertyType)get_store().find_element_user(AXIS$1, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }", "public double getAxis(Axis axis) {\n return joystick.getRawAxis(axis.getId());\n }", "public int getX()\n {\n return xaxis;\n }", "Dimension[] getDimension()\n\t\t{\n\t\t\treturn d;\n\t\t}", "public Vector3D getPointOnAxis() {\n\t\treturn pointOnAxis;\n\t}", "int getAxisIndex(final CalibratedAxis axis);", "public Vector3d[] getAxes()\n {\n return new Vector3d[] { getRight(), getUp(), getDir() };\n }", "public double getAxis(int b) {\n if (b >= 0 && b < axes.length) {\n //return axes[b];\n return axisInfos[b].getValue();\n } else {\n return 0;\n }\n }", "CalibratedAxis getAxis(AxisType axisType);", "@DISPID(1610940432) //= 0x60050010. The runtime will prefer the VTID if present\n @VTID(38)\n AxisSystems axisSystems();", "CalibratedAxis getAxis(final int axisIndex);", "public String dimensionName() {\n return this.dimensionName;\n }", "public XDimension Xdimension() throws java.io.IOException {\n return new XDimension(u16(),u16());\n }", "AxisOrientation getAxisOrientation();", "public long[] dimensions()\n\t{\n\t\tint dimcount=multimemory.dims.length;\n\t\tlong[] o=new long[dimcount];\n\t\tfor (int i=0; i<o.length; i++)\n\t\t{\n\t\t\to[i]=multimemory.dims[i];\n\t\t\t\n\t\t}\n\t\t\n\t\treturn o;\n\t}", "Dimension getDimensions();", "String[] getDimensionNames();", "public int getDimX() {\r\n return dimX;\r\n }", "public DimensionInformation getDimensionInformation() {\n return dimensionInformation;\n }", "public int getXD2 ()\n\t{\n\t\treturn xDimension2;\n\t}", "public int getDimX ()\n {\n return m_dim_x;\n }", "public Point getUniverseDimensions(){\n return this.physModel.getUniverseDimensions();\n }", "public int getDimension() {\n\t\treturn dimension;\n\t}", "public String getDimension()\r\n/* 277: */ {\r\n/* 278:341 */ return this.dimension;\r\n/* 279: */ }", "public final String dimension() {\n\t\tStringBuffer b = new StringBuffer(16);\n\t\tthis.editDimension(b);\n\t\treturn(b.toString());\n\t}", "int getDimX(){\n\t\treturn dimx;\n\t}", "public interface AxisInformation {\n double getMaxSpeed();\n double getTargetValue();\n\n String getIdentifier();\n\n double getMaxValue();\n double getMinValue();\n double getCurrentTargetValue();\n double getCurrentValue();\n boolean isMoving();\n double getSpeed();\n boolean isEnabled();\n int getJointType();\n}", "public int getXD1 ()\n\t{\n\t\treturn xDimension1;\n\t}", "List<Axis> getxAxisValues() {\n\t\tfinal List<Axis> values = new ArrayList<Axis>();\n\t\ttry {\n\t\t\tfor (String param : analysisModel.getParameterNames()) {\n\t\t\t\tvalues.add(AxisType.PARAMETER.newAxis(AxisName.X1, param));\n\t\t\t}\n\t\t\tfor (String result : analysisModel.getResultNames()) {\n\t\t\t\tvalues.add(AxisType.RESULT.newAxis(AxisName.X1, result));\n\t\t\t}\n\t\t\tfor (MetaData.Type type : MetaData.Type.values()) {\n\t\t\t\tvalues\n\t\t\t\t\t\t.add(AxisType.META_DATA.newAxis(AxisName.X1, type\n\t\t\t\t\t\t\t\t.name()));\n\t\t\t}\n\t\t} catch (DatabaseException ex) {\n\t\t\tLOG.error(\"Failed to get parameter name list\", ex);\n\t\t}\n\t\treturn values;\n\t}", "public Map<Axis, Double> getMachineCoordinates() {\n return Collections.unmodifiableMap(machineCoordinates);\n }", "public String getAxisOrientation() {\n return axisOrientation;\n }", "public final int getMajorAxis() {\n return isXMajorAxis() ? View.X_AXIS : View.Y_AXIS;\n }", "Dimension getDimension();", "public Axis<?, ?> a() {\n Axis<?, ?>[] axisArr = this.a;\n if (axisArr.length == 0) {\n return null;\n }\n return axisArr[0];\n }", "long getAxisLength(final int axisIndex);", "public final int getDimension() {\r\n\t\treturn this.dimension;\r\n\t}", "public java.util.List<Dimension> getDimensionsAll();", "int getSplitAxis();", "public Map<Integer, Integer> getDimension() throws SQLException {\n return retrieveExpected(createNativeDimensionSQL(), INTEGER);\n }", "com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy getDimension();", "public int getDimension() {\n \treturn dim;\n }", "public double getRawAxis(int i){\n \treturn dStation.getStickAxis(port, i);\n }", "public int getXD3 ()\n\t{\n\t\treturn xDimension3;\n\t}", "public List<Integer> getDimensionList() \n {\n return this.dimList;\n }", "public byte getDimension() {\n return this.dimension;\n }", "public byte getDimension() {\n return this.dimension;\n }", "public int getCoordinateDimension() { \n return getPosition().getCoordinateDimension();\n }", "public void setAxis(String axis)\n {\n this.axis = axis;\n }", "public int[] getDimensions(){\n int[] m={columnas*dimensionCasilla,filas*dimensionCasilla};\n return m;\n }", "com.google.analytics.data.v1beta.OrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder();", "public int[] getDimensions() {\r\n int[] dimensions = new int[2];\r\n dimensions[0] = squareDimension;\r\n dimensions[1] = squareDimension;\r\n return dimensions;\r\n }", "com.google.ads.googleads.v14.common.ListingDimensionInfo getDimensions(int index);", "public ChartXAxis getXAxis() { return _xaxis; }", "public int geomDim();", "public int dimensions() {\n\t\treturn dim;\n\t}", "public Vector3f getDimensions();", "public double[] getAxisValues(ExecutionIterable iteration) {\n\t\treturn new double[] { xField.extractValue(iteration),\n\t\t\t\tyField.extractValue(iteration) };\n\t}", "BigInteger getDimension();", "public CoordinateSystem getCoordinateSystem() {\n System.out.println(\"BaseCatalog: getCoordinateSystem() \");\n CoordinateSystem cs = null;\n if (_layout.getMapElementCount() >0 ) {\n MapElement mapEle = (MapElement)_layout.getMapElements().next();\n cs = mapEle.getMap().getCoordinateSystem();\n }\n System.out.println(\"BaseCatalog: getCoordinateSystem() \" + cs);\n return cs;\n }", "java.util.List<com.google.ads.googleads.v14.common.ListingDimensionInfo> \n getDimensionsList();", "Iterator getAttributeAxisIterator(Object contextNode) throws UnsupportedAxisException;", "String getXAxisLabel();", "@Override\n\tpublic D3int getDim() {\n\t\treturn myDim;\n\t}", "Dimension dimension();", "List<CalibratedAxis> getAxesPlanar();", "public abstract int getDimension();", "public String toString() {\n\t\treturn type + \" x \" + dim;\n\t}", "public String getXKey(){\n return getAxisKey(Axis.X);\n }", "public double getAxis(int stickNumber, int axisNumber) {\n\t\tint axes[] = { 1, 2, 4, 5 };\n\t\tint fAxis = 0;\n\t\tif (stickNumber == 1 && axisNumber == 1) {\n\t\t\tfAxis = axes[0];\n\t\t} else if (stickNumber == 1 && axisNumber == 2) {\n\t\t\tfAxis = axes[1];\n\t\t} else if (stickNumber == 2 && axisNumber == 1) {\n\t\t\tfAxis = axes[2];\n\t\t} else if (stickNumber == 2 && axisNumber == 2) {\n\t\t\tfAxis = axes[3];\n\t\t} else {\n\t\t\treturn -69;\n\t\t}\n\t\treturn this.getRawAxis(fAxis);\n\n\t}", "public Color getAxisColor() {\r\n return axisColor;\r\n }", "public int getDimension() {\n\treturn id2label.size();\n }", "public List<AxisModel> getAxisModels() {\n\t\treturn Collections.unmodifiableList(axisModels);\n\t}", "public short getZDim() {\n\t\treturn getShort(ADACDictionary.Z_DIMENSIONS);\n\t}", "@Override\n\tpublic <T extends Dimension> T getAxisValue(DimensionType type) {\n\t\treturn Cast.uncheckedCast(dimensions.stream().filter(it -> it.getType().equals(type)).findAny().orElseThrow(() -> new GradleException(String.format(\"Dimension '%s' is not part of this build variant.\", type.toString()))));\n\t}", "private double getgAxis(ADXL345_I2C.Axes x) {\n return trollyAccelerometer.getAcceleration(x);\n }", "int dim() {\r\n\t\treturn dimt * dimx * dimy;\r\n\t}", "Iterator getChildAxisIterator(Object contextNode) throws UnsupportedAxisException;", "public abstract Unit getUnits( int dimension );", "@DISPID(1611006040) //= 0x60060058. The runtime will prefer the VTID if present\n @VTID(115)\n short axisSystemSize();", "Iterator getFollowingAxisIterator(Object contextNode) throws UnsupportedAxisException;", "public AllAxes getAccelerations() {\n AllAxes data = new AllAxes();\n byte[] rawData = new byte[6];\n m_i2c.read(kDataRegister, rawData.length, rawData);\n\n // Sensor is little endian... swap bytes\n data.XAxis = accelFromBytes(rawData[0], rawData[1]);\n data.YAxis = accelFromBytes(rawData[2], rawData[3]);\n data.ZAxis = accelFromBytes(rawData[4], rawData[5]);\n return data;\n }", "@Basic\n\tpublic double getAx() {\n\t\treturn this.ax;\n\t}", "public io.dstore.values.IntegerValueOrBuilder getXAxisCharacteristicIdOrBuilder() {\n return getXAxisCharacteristicId();\n }", "public double[] axisCalc (double joyX, double joyY, double gyro) {\n\t\tdouble output [] = new double [1];\n\t\t\n\t\tdouble [][] joyMatrix = { {joyY, 0}, {0, joyX} };\n\t\tdouble [][] gyroMatrix = { {Math.cos(gyro), -Math.sin(gyro)}, {Math.sin(gyro), Math.cos(gyro)} };\n\t\t\n\t\toutput[0] = MatrixMult(joyMatrix, gyroMatrix)[0][1]; //x\n\t\toutput[1] = MatrixMult(joyMatrix, gyroMatrix)[1][0]; //y\n\t\t\n\t\treturn output;\n\t}", "public int sizeOfAxisArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AXIS$1);\n }\n }", "public AxisDisplayOptions getCategoryAxis() {\n return this.categoryAxis;\n }", "private void fetchVectorDimensions() {\n\t float[] dimVals = new float[word2vec.size()];;\n\t VectorDimension vectorDimension;\n\t //for each dimension\n\t for(int i=0;i<vectorSize;i++) {\n\t\t //fetch all the values\n\t\t int j=0;\n\t\t for(float[] entryVec : word2vec.values()) {\n\t\t\t dimVals[j++] = entryVec[i];\n\t\t }\n\t\t //init and set dimension det\n\t\t vectorDimension = new VectorDimension(i, Word2VecMath.getMin(dimVals), Word2VecMath.getMax(dimVals));\n\t\t this.sortedVecDimns.add(vectorDimension);\n\t }\n\t this.dimRngIndxDesc = new int[vectorSize];\n\t Iterator<VectorDimension> descIt = sortedVecDimns.descendingIterator();\n\t int k = 0;\n\t while(descIt.hasNext()) {\n\t\t this.dimRngIndxDesc[k++] = descIt.next().getId();\n\t }\n }", "public HashMap<AID, Posicion> getTaxis() {\n return taxis;\n }", "@Override\n\tpublic int getDimension() {\n\t\tint count = 0;\n\t\tfor ( SingleEquationStatement equation : equations.values() ) {\n\t\t\tif ( equation.getOrder() > 0 ) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}", "public native Dimension getDimension() throws MagickException;", "public boolean isElementAxis(int axis) {\n\treturn (axis == Axis.CHILD || axis == Axis.ATTRIBUTE ||\n\t\taxis == Axis.NAMESPACE || axis == Axis.DESCENDANT);\n }", "org.hl7.fhir.Integer getCoordinateSystem();", "public AxisModel getFirstAxis() {\n return this.getTypedValue(FIRST_AXIS_PROPERTY_KEY, null);\n }", "private void parseAxis() {\n\t\tparseCategoryAxis();\n\t\tparseDateAxis();\n\t\tparseValueAxis();\n\t}", "public final int getMinorAxis() {\n return isXMajorAxis() ? View.Y_AXIS : View.X_AXIS;\n }", "java.util.List<? extends com.google.ads.googleads.v14.common.ListingDimensionInfoOrBuilder> \n getDimensionsOrBuilderList();" ]
[ "0.61909914", "0.6072594", "0.60604066", "0.5978119", "0.59542173", "0.5757598", "0.5749943", "0.5740557", "0.57312065", "0.5727652", "0.5726078", "0.5692333", "0.5676707", "0.5652549", "0.5633712", "0.56139374", "0.55873686", "0.5574093", "0.5567194", "0.556697", "0.55382544", "0.55233806", "0.552083", "0.5503047", "0.54747444", "0.5466975", "0.5456122", "0.5434993", "0.5396204", "0.538807", "0.5373564", "0.53662395", "0.5346496", "0.53311443", "0.53154224", "0.53065723", "0.5295527", "0.528903", "0.5283703", "0.5282779", "0.52800214", "0.52705574", "0.5265956", "0.5248971", "0.52470976", "0.52399105", "0.5219207", "0.5210553", "0.5200576", "0.5200576", "0.5183708", "0.5153453", "0.5152819", "0.5148197", "0.51405925", "0.51362187", "0.5129076", "0.5117981", "0.5101101", "0.5100564", "0.51003885", "0.5098313", "0.50808525", "0.5066379", "0.5059855", "0.50586575", "0.5057007", "0.50510085", "0.5012679", "0.5004147", "0.4999281", "0.49885544", "0.49883705", "0.49816358", "0.49767572", "0.49671942", "0.49540928", "0.49243414", "0.4905834", "0.49057195", "0.48938635", "0.4875766", "0.48691353", "0.48689172", "0.48652545", "0.48567304", "0.48436886", "0.48375815", "0.4829816", "0.48211375", "0.4815885", "0.4806602", "0.4805059", "0.47881553", "0.47876027", "0.4786437", "0.4749219", "0.47421917", "0.4723472", "0.47217056" ]
0.7799928
0
Gets units for dimension within coordinate system. Each dimension in the coordinate system has corresponding units.
public abstract Unit getUnits( int dimension );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final Unit getUnits() {\n Unit units = null;\n for ( int i = getDimension(); --i >= 0; ) {\n final Unit check = getUnits( i );\n if ( units == null )\n units = check;\n else if ( !units.equals( check ) )\n return null;\n }\n return units;\n }", "public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public int getUnits() {\n\t\treturn units;\n\t}", "public int getUnits() {\r\n\r\n\t\treturn this.units;\r\n\t}", "public String getUnits() {\r\n\t\treturn units;\r\n\t}", "public String getUnits() {\n\t\treturn units;\n\t}", "Units getUnits();", "public int getUnits() {\r\n return units;\r\n }", "String getUnits();", "String getUnits();", "String getUnits();", "public int getUnits()\n {\n return m_cUnits;\n }", "public String getUnits() {\n return units;\n }", "public String getUnits() {\n return units;\n }", "public String getUnits() {\n return this.units;\n }", "public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }", "public int getUnits()\n {\n return m_cCurUnits;\n }", "protected String getUnits()\n {\n return units;\n }", "public static Object[] getUnits()\n\t{\n\t\treturn new Object[]\n\t\t{\n\t\t\t// SI units\n\t\t\t\"millimeters\",\n\t\t\t\"centimeters\",\n\t\t\t\"meters\",\n\t\t\t\"kilometers\",\n\t\t\t\n\t\t\t// English units\n\t\t\t\"inches\",\n\t\t\t\"feet\",\n\t\t\t\"yards\",\n\t\t\t\"miles\",\n\t\t\t\"knots\"\n\t\t};\n\t}", "public java.lang.String getUnits() {\r\n return localUnits;\r\n }", "public FioUnit getUnits() {\n\t\treturn this.units;\n\t}", "public String getUnitsString() {\n return units;\n }", "public native int getUnits() throws MagickException;", "public ArrayList getUnits();", "@Override\n\tpublic IMetricDimension getMetricUnit() {\n\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "public double dimensionsToMeters() {\n\t\tdouble heightMeters = heightInInches / 39.370;\n\t\tdouble widthMeters = widthInInches / 39.370;\n\n\t\treturn areaInMeters = heightMeters * widthMeters;\n\t}", "String getUnitsString();", "public byte getUnits() { return units; }", "Dimension getDimensions();", "@JSProperty(\"units\")\n @Nullable\n Array<Array<Unknown>> getUnits();", "public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }", "public long[] dimensions()\n\t{\n\t\tint dimcount=multimemory.dims.length;\n\t\tlong[] o=new long[dimcount];\n\t\tfor (int i=0; i<o.length; i++)\n\t\t{\n\t\t\to[i]=multimemory.dims[i];\n\t\t\t\n\t\t}\n\t\t\n\t\treturn o;\n\t}", "public Point getUniverseDimensions(){\n return this.physModel.getUniverseDimensions();\n }", "public List<InputTermUnit<V>> getUnits() {\n\t\treturn this.units;\n\t}", "public Vector3f getDimensions();", "public double getTotalUnits() {\n double totalUnits = 0;\n for (int i = 0; i < quarters.size(); i++) {\n totalUnits += quarters.get(i).getTotalUnits();\n }\n return totalUnits;\n }", "int getRadiusUnitsValue();", "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }", "public final ArrayList<Units> GetUnitsForCurrentTypeAndSystem()\n {\n return MethodsUnitP.GetUnitsTypeAndSystemCommon(UnitType, UnitSystem);\n }", "public short getUnitsPerEm() throws PDFNetException {\n/* 843 */ return GetUnitsPerEm(this.a);\n/* */ }", "public float centimetresToGridUnits(float cm);", "public String getDimension()\r\n/* 277: */ {\r\n/* 278:341 */ return this.dimension;\r\n/* 279: */ }", "public final void setUnits() {\r\n\r\n for (final FileMincVarElem element : varArray) {\r\n\r\n if (element.units != null) {\r\n\r\n if (element.name.equals(\"xspace\")) {\r\n\r\n if (element.units.equals(\"mm\")) {\r\n setUnitsOfMeasure(Unit.MILLIMETERS.getLegacyNum(), 0);\r\n } else if (element.units.equals(\"in\")) {\r\n setUnitsOfMeasure(Unit.INCHES.getLegacyNum(), 0);\r\n }\r\n }\r\n\r\n if (element.name.equals(\"yspace\")) {\r\n\r\n if (element.units.equals(\"mm\")) {\r\n setUnitsOfMeasure(Unit.MILLIMETERS.getLegacyNum(), 1);\r\n } else if (element.units.equals(\"in\")) {\r\n setUnitsOfMeasure(Unit.INCHES.getLegacyNum(), 1);\r\n }\r\n }\r\n\r\n if (element.name.equals(\"zspace\")) {\r\n\r\n if (element.units.equals(\"mm\")) {\r\n setUnitsOfMeasure(Unit.MILLIMETERS.getLegacyNum(), 2);\r\n } else if (element.units.equals(\"in\")) {\r\n setUnitsOfMeasure(Unit.INCHES.getLegacyNum(), 2);\r\n }\r\n }\r\n }\r\n }\r\n }", "public int[] getDims() {\n int[] dimsTuple = { this.xDimension, this.yDimension };\n return dimsTuple;\n }", "public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }", "public String Quantity() {\n return OCCwrapJavaJNI.Units_Dimensions_Quantity(swigCPtr, this);\n }", "@Override\n\tpublic List<Unit> getUnits() {\n\t\tList<Unit> units = new LinkedList<Unit>();\n\t\tfor (GameCoordinate gameCoordinate : unitPositions) {\n\t\t\tUnit unit = getUnit(gameCoordinate);\n\t\t\tif (!unit.isDead()) {\n\t\t\t\tunits.add(getUnit(gameCoordinate));\n\t\t\t}\n\t\t}\n\t\treturn units;\n\t}", "public String getWellDepthUnits() {\n\t\treturn wellDepthUnits;\n\t}", "public final ArrayList<Units> GetUnitsForCurrentType()\n {\n return MethodsUnitP.GetUnitsTypeCommon(UnitType);\n }", "public String getUnitOfMeasurement() {\r\n\t\treturn unitOfMeasurement;\r\n\t}", "public final String dimension() {\n\t\tStringBuffer b = new StringBuffer(16);\n\t\tthis.editDimension(b);\n\t\treturn(b.toString());\n\t}", "public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}", "public int getSourceUnits() {\n return sourceUnits;\n }", "public String getDestinUnits() {\n return this.destinUnits;\n }", "public Units getUnitTable();", "public int[] getDimensions() {\r\n int[] dimensions = new int[2];\r\n dimensions[0] = squareDimension;\r\n dimensions[1] = squareDimension;\r\n return dimensions;\r\n }", "public double Mass() {\n return OCCwrapJavaJNI.Units_Dimensions_Mass(swigCPtr, this);\n }", "public String getSourceUnits() {\n return this.sourceUnits;\n }", "public boolean getUnits() {\r\n return Units;\r\n }", "public String unit() {\n return this.unit;\n }", "Dimension getDimension();", "@Override\n\tpublic String getUnitsString() {\n\t\treturn null;\n\t}", "public int getDimension() {\n\t\treturn dimension;\n\t}", "public String getUnit() {\n\t\treturn unit;\n\t}", "public Unit<?> getColorMapUnitsObject() throws StyleException {\n if (colorMapUnits != null && !colorMapUnits.isEmpty()) {\n try {\n return UnitFormat.getUCUMInstance()\n .parseProductUnit(colorMapUnits, new ParsePosition(0));\n } catch (ParseException e) {\n throw new StyleException(\"Unable to parse colorMap Units.\");\n }\n }\n return null;\n }", "@Override\n public void getDimensions() {\n DecimalFormat df = new DecimalFormat(\"###.000\");\n System.out.println(\"RESULT: \" + getType() + \" dimensions: (2/3)pi * \" + r + \"^3\");\n System.out.println(\"RESULT: \" + getType() + \" volume \" + getVolume() + \" = [\" + df.format(this.vol) + \"]\");\n }", "public Map<Integer, Integer> getDimension() throws SQLException {\n return retrieveExpected(createNativeDimensionSQL(), INTEGER);\n }", "public int[] getDimensions(){\n int[] m={columnas*dimensionCasilla,filas*dimensionCasilla};\n return m;\n }", "public String getAltitudeColUnits()\n {\n return myAltitudeColUnits;\n }", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public Length getUnit() {\n return unit;\n }", "public int dimensions() {\n\t\treturn dim;\n\t}", "public StrColumn getExptlDistanceTermUnits() {\n return delegate.getColumn(\"exptl_distance_term_units\", DelegatingStrColumn::new);\n }", "Dimension[] getDimension()\n\t\t{\n\t\t\treturn d;\n\t\t}", "public String getUnitOfMeasure() {\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver, \"//input[@name='unitOfMeasure']/following-sibling::input[@type='text']\").getAttribute(\"value\");\r\n\t}", "BigInteger getDimension();", "public jkt.hms.masters.business.MasUnitOfMeasurement getUnitOfMeasurement() {\n\t\treturn unitOfMeasurement;\n\t}", "public double sizeMeters() {\n return this.size_meters;\n }", "public int getCoordinateDimension() { \n return getPosition().getCoordinateDimension();\n }", "int dim() {\r\n\t\treturn dimt * dimx * dimy;\r\n\t}", "public final int getDimension() {\r\n\t\treturn this.dimension;\r\n\t}", "com.google.ads.googleads.v7.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits getRadiusUnits();", "public Integer getAltUnits() {\n\t\treturn altUnits;\n\t}", "public abstract StringDt getUnitsElement();", "Soldat[][] getUnites();", "public StrColumn getCovalentGeomBondTermUnits() {\n return delegate.getColumn(\"covalent_geom_bond_term_units\", DelegatingStrColumn::new);\n }", "@Override\n\tprotected long getUpdatedUnits(long units) {\n\t\treturn units;\n\t}", "@Nullable\n public double getMetricsFor(TemperatureDimension dimension) {\n return metricsValues[dimension.ordinal()];\n }", "java.util.List<com.google.ads.googleads.v14.common.ListingDimensionInfo> \n getDimensionsList();", "private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }", "public String getUnit();", "public SystemOfUnits getSystemOfUnits(String name) {\n if (name.equals(\"SI\")) return SI.getInstance();\n if (name.equals(\"UCUM\")) return UCUM.getInstance();\n return null;\n }", "public int calculateUnits(Object oKey, Object oValue);", "public List<Integer> getDimensionList() \n {\n return this.dimList;\n }", "public ArrayList getComUnits();", "public void setUnits(String units) {\n this.units = units;\n }", "public void setUnits(String units) {\n this.units = units;\n }", "public long getNumCodeUnits();" ]
[ "0.7502921", "0.7439851", "0.727435", "0.7245499", "0.7160127", "0.71411115", "0.7122763", "0.7091072", "0.70846933", "0.70846933", "0.70846933", "0.70753443", "0.70616084", "0.7018823", "0.6998686", "0.69112813", "0.69112015", "0.68997806", "0.6810842", "0.67935824", "0.67150396", "0.6647309", "0.6617475", "0.6563107", "0.6524479", "0.6523686", "0.6436381", "0.63976866", "0.6397642", "0.63724494", "0.6287339", "0.6283339", "0.62754744", "0.62691313", "0.62528694", "0.61904913", "0.6174528", "0.6111706", "0.60958177", "0.6073781", "0.60587025", "0.6049543", "0.6030555", "0.6026357", "0.5986735", "0.5964331", "0.5940646", "0.59349865", "0.5918105", "0.5902219", "0.5871064", "0.5865384", "0.58551764", "0.58464384", "0.58464307", "0.58258224", "0.5816746", "0.5807441", "0.5768498", "0.576752", "0.5751003", "0.57489425", "0.57433534", "0.57339764", "0.5726978", "0.5718806", "0.5710446", "0.5699594", "0.5694672", "0.56853765", "0.56853765", "0.56853765", "0.5661286", "0.56578296", "0.56514627", "0.56497294", "0.56473994", "0.5631675", "0.56227624", "0.56211376", "0.5620245", "0.56169224", "0.55943173", "0.5592414", "0.55876106", "0.55853504", "0.5582618", "0.55727684", "0.55691075", "0.55655795", "0.55649483", "0.55636686", "0.55572844", "0.5548214", "0.5535635", "0.55336916", "0.5527707", "0.5517942", "0.5517942", "0.55142736" ]
0.78677076
0
If all dimensions use the same units, returns this units. Otherwise, returns null.
final Unit getUnits() { Unit units = null; for ( int i = getDimension(); --i >= 0; ) { final Unit check = getUnits( i ); if ( units == null ) units = check; else if ( !units.equals( check ) ) return null; } return units; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Unit getUnits( int dimension );", "public Unit<Dimensionless> one() {return one;}", "@Override\n\tpublic IMetricDimension getMetricUnit() {\n\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "@Override\n\tpublic Dimension getResolution() {\n\t\treturn null;\n\t}", "public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public java.lang.String getUnits() {\r\n return localUnits;\r\n }", "public StorageUnit getStorageUnit() {\n\t\t// find the StorageUnit for the destination container\n\t\tStorageUnit storageUnit = null;\n\t\tProductContainer parentContainer = this;\n\t\twhile (storageUnit == null) {\n\t\t\tif (parentContainer.getClass() == StorageUnit.class) {\n\t\t\t\tstorageUnit = (StorageUnit) parentContainer;\n\t\t\t} else {\n\t\t\t\tparentContainer = ((ProductGroup) parentContainer)\n\t\t\t\t\t\t.getParent();\n\t\t\t}\n\t\t}\n\t\treturn storageUnit;\n\t}", "Units getUnits();", "Dimension getDimensions();", "public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }", "@Override\n public float getCube() {\n\n int wart = 0;\n if (!roomList.isEmpty()){\n for (Room room : roomList){\n if (room instanceof Localization){\n wart += room.getCube();\n }\n }\n }\n return wart;\n }", "private static Unit<Dimensionless> getDimensionless(final SystemOfUnits system) {\n Unit<Dimensionless> unit = system.getUnit(Dimensionless.class);\n if (unit == null) try {\n unit = ((Unit<?>) Class.forName(\"tec.units.ri.AbstractUnit\").getField(\"ONE\").get(null)).asType(Dimensionless.class);\n } catch (ReflectiveOperationException | ClassCastException e) {\n throw new IllegalArgumentException(\"Cannot create a dimensionless unit from the given provider.\");\n }\n return unit;\n }", "Dimension getDimension();", "protected String getUnits()\n {\n return units;\n }", "public int getUnits() {\r\n return units;\r\n }", "public java.util.List<Dimension> getDimensionsAll();", "@Override\n\tpublic Dimension[] getResolutions() {\n\t\treturn null;\n\t}", "public String getUnits() {\r\n\t\treturn units;\r\n\t}", "public String getUnits() {\n return units;\n }", "public int getUnits() {\n\t\treturn units;\n\t}", "public String getUnits() {\n return units;\n }", "public String getUnits() {\n\t\treturn units;\n\t}", "public String getCanonicalUnitName()\n {\n String retName = null;\n\n // Expecting the linked list to be sorted\n for(Unit unit : measurementUnits)\n if(unit.getValue() <= size)\n retName = unit.getName();\n else\n break;\n\n return retName;\n }", "@Override\n\tpublic String getUnitsString() {\n\t\treturn null;\n\t}", "public Dimension getSize() {\n\t\treturn null;\n\t}", "String getUnits();", "String getUnits();", "String getUnits();", "public FioUnit getUnits() {\n\t\treturn this.units;\n\t}", "public int getUnits() {\r\n\r\n\t\treturn this.units;\r\n\t}", "public Dimension getDimensionPack() {\n return dimensionPacker.getFilledArea();\n }", "public String getUnits() {\n return this.units;\n }", "public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}", "public Unit<?> getUnit() {\n return _unit;\n }", "public final ArrayList<Units> GetUnitsForCurrentType()\n {\n return MethodsUnitP.GetUnitsTypeCommon(UnitType);\n }", "public SystemOfUnits getSystemOfUnits(String name) {\n if (name.equals(\"SI\")) return SI.getInstance();\n if (name.equals(\"UCUM\")) return UCUM.getInstance();\n return null;\n }", "public Units getUnitTable();", "public Units()\n\t{\n\t\t// empty for empty unitset\n\t}", "public Unit getUnit() {\n return unit;\n }", "Measure getMeasure ()\n {\n return null;\n }", "public ResolutionDimension mo3818k() {\n if (this.f1475d == null) {\n this.f1475d = new ResolutionDimension();\n }\n return this.f1475d;\n }", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType xgetUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().find_element_user(UNIT$6, 0);\n return target;\n }\n }", "public Unit<?> getColorMapUnitsObject() throws StyleException {\n if (colorMapUnits != null && !colorMapUnits.isEmpty()) {\n try {\n return UnitFormat.getUCUMInstance()\n .parseProductUnit(colorMapUnits, new ParsePosition(0));\n } catch (ParseException e) {\n throw new StyleException(\"Unable to parse colorMap Units.\");\n }\n }\n return null;\n }", "public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }", "public String getDimension()\r\n/* 277: */ {\r\n/* 278:341 */ return this.dimension;\r\n/* 279: */ }", "public ArrayList getUnits();", "@JSProperty(\"units\")\n @Nullable\n Array<Array<Unknown>> getUnits();", "public Unit getUnit() {\n\t\treturn unit;\n\t}", "public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }", "public MetricQueue<OpMetric> get() {\n MetricQueue<OpMetric> operationalMetricsQueue = this.f30605a.operationalMetricsQueue();\n C12021c.m31671a(operationalMetricsQueue, \"Cannot return null from a non-@Nullable component method\");\n return operationalMetricsQueue;\n }", "public int getUnits()\n {\n return m_cUnits;\n }", "public short getResolutionUnit()\r\n\t{\r\n\t\treturn super.getShort(0);\r\n\t}", "public byte getUnits() { return units; }", "@Override\n\tpublic List<Unit> getUnits() {\n\t\tList<Unit> units = new LinkedList<Unit>();\n\t\tfor (GameCoordinate gameCoordinate : unitPositions) {\n\t\t\tUnit unit = getUnit(gameCoordinate);\n\t\t\tif (!unit.isDead()) {\n\t\t\t\tunits.add(getUnit(gameCoordinate));\n\t\t\t}\n\t\t}\n\t\treturn units;\n\t}", "public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }", "public final ArrayList<Units> GetUnitsForCurrentTypeAndSystem()\n {\n return MethodsUnitP.GetUnitsTypeAndSystemCommon(UnitType, UnitSystem);\n }", "DefinedUnitType getDefinedUnit();", "public Projection units(String units) {\n setUnits(units);\n return this;\n }", "public String getUnitsString() {\n return units;\n }", "public default int getDimension() {\n\t\treturn 1;\n\t}", "public int getUnits()\n {\n return m_cCurUnits;\n }", "public String getMeasuredUnitId() {\n return this.measuredUnitId;\n }", "Unit getUnit();", "public Unit<Length> footSurveyUS() {return footSurveyUS;}", "public boolean getUnits() {\r\n return Units;\r\n }", "public double getTotalUnits() {\n double totalUnits = 0;\n for (int i = 0; i < quarters.size(); i++) {\n totalUnits += quarters.get(i).getTotalUnits();\n }\n return totalUnits;\n }", "public String getUnit()\n {\n return (this.unit);\n }", "public Measure getMeasureInstanceByName(String name) {\n\t\tBasicStoredCube last_cube = BasicCubes.get(BasicCubes.size() - 1);\n\t\tfor (int i = 0; i < last_cube.Msr.size(); i++) {\n\t\t\tMeasure msr = last_cube.Msr.get(i);\n\t\t\tif (msr.getName().equals(name))\n\t\t\t\treturn msr;\n\t\t}\n\t\treturn null;\n\t}", "public Vector2D getArithmeticCenter()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tVector2D center = Vector2D.ZERO;\n\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tcenter = center.add(Vector2DMath.toVector(unit.getPosition()));\n\t\t}\n\t\tcenter = center.scale(1.0f / size());\n\n\t\treturn center;\n\t}", "Dimension dimension();", "public Length getUnit() {\n return unit;\n }", "public Integer getAltUnits() {\n\t\treturn altUnits;\n\t}", "@Override\n public float getArea() {\n int wart = 0;\n if (!roomList.isEmpty()){\n for (Room room : roomList){\n if (room instanceof Localization){\n wart += room.getArea();\n }\n }\n\n }\n return wart;\n }", "public String getUnit();", "public static Image unitList()\n\t{\n\t\treturn unitList;\n\t}", "public abstract int getDimension();", "public abstract Collection<T> getFirstDimension();", "@Override\n\tpublic String getDimensionName() {\n\t\treturn null;\n\t}", "public String unit() {\n return this.unit;\n }", "public Unit<Length> kilometre() {return kilometre;}", "public Units union(Units set)\n\t{\n\t\tUnits result = new Units(this);\n\n\t\tresult.addAll(set);\n\n\t\treturn result;\n\t}", "public Axis<?, ?> a() {\n Axis<?, ?>[] axisArr = this.a;\n if (axisArr.length == 0) {\n return null;\n }\n return axisArr[0];\n }", "@Nonnull\n Fluid getFluid();", "@Override\n public Square getSquare() {\n return null;\n }", "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }", "public abstract StringDt getUnitsElement();", "public void unitize() {\n \t\tdouble len = this.len();\n \t\t// avoid division by zero\n\t\tif (len<vecPrecision) return;\n \t\t// don't unitize roughly unit vectors\n \t\tif (Math.abs(len-1)<vecPrecision) return;\n \t\t// divide dimensions by length to unitize\n \t\tfloat invlen = (float) (1.0 / len);\n \t\tthis.x *= invlen;\n \t\tthis.y *= invlen;\n \t\tthis.z *= invlen;\n \t}", "public native int getUnits() throws MagickException;", "public ResolutionDimension mo3816j() {\n if (this.f1474c == null) {\n this.f1474c = new ResolutionDimension();\n }\n return this.f1474c;\n }", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNIT$6, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum)target.getEnumValue();\n }\n }", "public Dimension getDimension() {\n return levelRunning.getDimension();\n }", "String getUnitsString();", "public jkt.hms.masters.business.MasUnitOfMeasurement getUnitOfMeasurement() {\n\t\treturn unitOfMeasurement;\n\t}", "public Vector3f getDimensions();", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }", "public MWC.GenericData.WorldArea getBounds()\r\n\t{\n\t\treturn null;\r\n\t}", "public Unit firstOf(UnitType... unitTypes)\n\t{\n\t\tfor (UnitType type : unitTypes)\n\t\t{\n\t\t\tUnits subSet = whereType(type);\n\t\t\tif (subSet.size() > 0)\n\t\t\t{\n\t\t\t\treturn subSet.first();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.6477004", "0.63832057", "0.6211513", "0.5800441", "0.57773805", "0.57415634", "0.57084227", "0.56149155", "0.5535164", "0.553401", "0.55163324", "0.54592276", "0.54560775", "0.54072684", "0.5401497", "0.53959954", "0.5369155", "0.53676236", "0.5362906", "0.5329331", "0.53253925", "0.5319238", "0.5316464", "0.5303029", "0.5254054", "0.5249713", "0.5249713", "0.5249713", "0.5240463", "0.52358335", "0.5234333", "0.5231257", "0.52298754", "0.5225554", "0.5220415", "0.52189064", "0.521287", "0.5202145", "0.5192601", "0.5189396", "0.5189181", "0.51846516", "0.5184248", "0.5175995", "0.51751965", "0.51721394", "0.5169379", "0.5158228", "0.5157811", "0.5156821", "0.515442", "0.5140772", "0.5129846", "0.51231146", "0.50831604", "0.50797075", "0.506647", "0.50511247", "0.50353867", "0.5020103", "0.5015963", "0.500012", "0.49927038", "0.49860355", "0.49745077", "0.49719778", "0.49666795", "0.49655876", "0.49544585", "0.49428794", "0.49327326", "0.49244037", "0.4919282", "0.49161515", "0.4914902", "0.4907545", "0.4906006", "0.48999453", "0.4892177", "0.4890785", "0.4887373", "0.48831588", "0.4883078", "0.48775905", "0.48692292", "0.48659548", "0.48542583", "0.48491582", "0.4848525", "0.48423544", "0.48420265", "0.4840539", "0.48397756", "0.48385644", "0.48360366", "0.48360366", "0.48360366", "0.48325974", "0.48177725", "0.48019114" ]
0.75259805
0
Gets default envelope of coordinate system. Coordinate systems which are bounded should return the minimum bounding box of their domain. Unbounded coordinate systems should return a box which is as large as is likely to be used. For example, a (lon,lat) geographic coordinate system in degrees should return a box from (180,90) to (180,90), and a geocentric coordinate system could return a box from (r,r,r) to (+r,+r,+r) where r is the approximate radius of the Earth. The default implementation returns an envelope with infinite bounds.
public Envelope getDefaultEnvelope() { final int dimension = getDimension(); final Envelope envelope = new Envelope( dimension ); for ( int i = dimension; --i >= 0; ) { envelope.setRange( i, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY ); } return envelope; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }", "protected Envelope parseBoundingBox( Element element, CoordinateSystem defaultCoordinateSystem )\n throws XMLParsingException,\n InvalidParameterValueException {\n\n // Envelope env = getWGS84BoundingBoxType( element );\n\n String crsAtt = element.getAttribute( \"crs\" );\n CoordinateSystem crs = null;\n if ( crsAtt == null ) {\n crs = defaultCoordinateSystem;\n } else {\n try {\n crs = CRSFactory.create( crsAtt );\n } catch ( UnknownCRSException e ) {\n throw new InvalidParameterValueException( e.getMessage() );\n }\n }\n\n double[] lowerCorner = XMLTools.getRequiredNodeAsDoubles( element,\n PRE_OWS + \"LowerCorner/text()\",\n nsContext,\n \" \" );\n if ( lowerCorner.length < 2 ) {\n throw new XMLParsingException( Messages.getMessage( \"WPVS_NO_VALID_BBOX_POINT\", PRE_OWS + \"LowerCorner\" ) );\n }\n double[] upperCorner = XMLTools.getRequiredNodeAsDoubles( element,\n PRE_OWS + \"UpperCorner/text()\",\n nsContext,\n \" \" );\n if ( upperCorner.length < 2 ) {\n throw new XMLParsingException( Messages.getMessage( \"WPVS_NO_VALID_BBOX_POINT\", PRE_OWS + \"UpperCorner\" ) );\n }\n if ( upperCorner.length != lowerCorner.length ) {\n throw new XMLParsingException( Messages.getMessage( \"WPVS_DIFFERENT_BBOX_DIMENSIONS\",\n PRE_OWS + \"LowerCorner\",\n PRE_OWS + \"UpperCorner\" ) );\n }\n\n for ( int i = 0; i < upperCorner.length; ++i ) {\n if ( lowerCorner[i] >= upperCorner[i] ) {\n throw new InvalidParameterValueException( Messages.getMessage( \"WPVS_WRONG_BBOX_POINT_POSITIONS\",\n new Integer( i ),\n new Double( lowerCorner[i] ),\n PRE_OWS + \"LowerCorner\",\n new Double( upperCorner[i] ),\n PRE_OWS + \"UpperCorner\" ) );\n\n }\n }\n\n return GeometryFactory.createEnvelope( lowerCorner[0], lowerCorner[1], upperCorner[0], upperCorner[1], crs );\n\n }", "public Envelope getEnvelope( TYPE envType ) {\n if ( envType == TYPE.CENTER ) {\n return envelope;\n }\n // convert from internal TYPE.CENTER format to TYPE.OUTER\n return GeometryFactory.createEnvelope( envelope.getMin().getX() - resx / 2,\n envelope.getMin().getY() - resy / 2,\n envelope.getMax().getX() + resx / 2,\n envelope.getMax().getY() + resy / 2, envelope.getCoordinateSystem() );\n }", "public Rectangle getMinimalBoundingBox() {\n double xMin = Double.MAX_VALUE;\n double yMin = Double.MAX_VALUE;\n double xMax = -Double.MAX_VALUE;\n double yMax = -Double.MAX_VALUE;\n // look for minimal and maximal x and y\n for (VoronoiHalfEdge halfEdge : halfEdges) {\n Vector2D startPoint = halfEdge.getStartPoint();\n double currentX = startPoint.getX();\n double currentY = startPoint.getY();\n if (currentX < xMin) {\n xMin = currentX;\n }\n if (currentY < yMin) {\n yMin = currentY;\n }\n if (currentX > xMax) {\n xMax = currentX;\n }\n if (currentY > yMax) {\n yMax = currentY;\n }\n }\n return new Rectangle(new Vector2D(xMin, yMax - yMin), new Vector2D(xMax - xMin, yMin));\n }", "private ReferencedEnvelope getExtentOfParcels() {\n ReferencedEnvelope envelope = null;\n if (this.targetParcelsLayer.getBeanList() != null) {\n for (CadastreObjectTargetBean parcel : this.targetParcelsLayer.getBeanList()) {\n Geometry geom = GeometryUtility.getGeometryFromWkb(parcel.getGeomPolygonCurrent());\n ReferencedEnvelope tmpEnvelope = JTS.toEnvelope(geom);\n if (envelope == null) {\n envelope = tmpEnvelope;\n } else {\n envelope.expandToInclude(tmpEnvelope);\n }\n }\n }\n return envelope;\n }", "protected Envelope[] getBoundingBoxes( Element element, CoordinateSystem defaultCoordinateSystem )\n throws XMLParsingException,\n InvalidParameterValueException {\n\n List<Node> boundingBoxList = XMLTools.getNodes( element, PRE_OWS + \"BoundingBox\", nsContext );\n\n List<Envelope> bboxesList = new ArrayList<Envelope>( boundingBoxList.size() );\n\n for ( int i = 0; i < boundingBoxList.size(); i++ ) {\n bboxesList.add( parseBoundingBox( (Element) boundingBoxList.get( i ), defaultCoordinateSystem ) );\n }\n\n // The ogc_wpvs schema says: wgs84 is mandatory therefore-> not checking parents to use it's\n // bboxes.\n\n // if ( parent != null ) {\n // Envelope[] boundingBoxes = parent.getBoundingBoxes();\n // for ( int i = 0; i < boundingBoxes.length; i++ ) {\n // bboxesList.add( boundingBoxes[i] );\n // }\n // }\n\n Envelope[] boxes = bboxesList.toArray( new Envelope[bboxesList.size()] );\n return boxes;\n }", "public static Envelope createSafeBBOX(String bboxInput) throws InvalidParameterValueException{\n \t\n \tString[] splittedBBOX = bboxInput.split(\",\");\t\t\n \n \tif ( splittedBBOX.length != 4 ) {\n \t \n \tString message = \"Parameter 'BBOX' is not valid\" ;\n \tthrow new InvalidParameterValueException( message ) ;\n \t\n }\n \n \tdouble minx = Double.parseDouble( splittedBBOX[0] ) ; \n \tdouble maxx = Double.parseDouble( splittedBBOX[2] ) ; \n \t\n \tif ( minx >= maxx ) {\n \n \t\tString message = \"Paremeter 'BBOX' is not valid: \";\n \tmessage = \"\\n 'minx < maxx' is required , found (\" + minx +\">=\" +maxx+\")\";\n throw new InvalidParameterValueException( message );\n \n }\n \t\n \tdouble miny = Double.parseDouble( splittedBBOX[1] );\n \tdouble maxy = Double.parseDouble( splittedBBOX[3] );\n \t\n \tif ( miny >= maxy) {\n \n \t\t\tString message = \"Paremeter 'BBOX' is not valid: \" \n \t\t\t + \"\\n 'miny < maxy' is required found (\" + miny +\">=\" +maxy+\")\";\n throw new InvalidParameterValueException( message );\n \n \t}\n\n Envelope env = GeometryFactory.createEnvelope(minx, miny, maxx, maxy, null);\n return env;\n }", "public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}", "public GJBox2D boundingBox() {\n\t\tdouble xmin = Double.MAX_VALUE;\n\t\tdouble ymin = Double.MAX_VALUE;\n\t\tdouble xmax = Double.MIN_VALUE;\n\t\tdouble ymax = Double.MIN_VALUE;\n\n\t\t// coordinates of current point\n\t\tdouble x, y;\n\t\t\n\t\t// Iterate on each control point of each segment\n\t\tfor (Segment seg : this.segments) {\n\t\t\tfor (GJPoint2D p : seg.controlPoints()) {\n\t\t\t\t// get current coordinates\n\t\t\t\tx = p.x();\n\t\t\t\ty = p.y();\n\t\t\t\t\n\t\t\t\t// update bounds\n\t\t\t\txmin = Math.min(xmin, x);\n\t\t\t\tymin = Math.min(ymin, y);\n\t\t\t\txmax = Math.max(xmax, x);\n\t\t\t\tymax = Math.max(ymax, y);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// createFromCollection a new GJBox2D with the bounds\n\t\treturn new GJBox2D(xmin, xmax, ymin, ymax);\n\t}", "private Envelope makeExtent(String sMinX, String sMinY, String sMaxX, String sMaxY, String wkid) {\n if (sMinX.length() > 0 && sMaxX.length() > 0 && sMinY.length() > 0 && sMaxY.length() > 0) {\n double minx = Val.chkDbl(sMinX, -180.0);\n double maxx = Val.chkDbl(sMaxX, 180.0);\n double miny = Val.chkDbl(sMinY, -90.0);\n double maxy = Val.chkDbl(sMaxY, 90.0);\n Envelope envelope = new Envelope(minx, miny, maxx, maxy);\n envelope.setWkid(wkid);\n return envelope;\n }\n return null;\n }", "GridEnvelope getLimits();", "@Override\n \tpublic Rectangle2D GetBoundingBox() {\n\t\treturn null;\n \t}", "public BoundingBox getBoundingBox ( ) {\n\t\t// TODO: backwards compatibility required\n\t\treturn invokeSafe ( \"getBoundingBox\" );\n\t}", "@Override\r\n\t@JsonIgnore\r\n\tpublic Geometry getEnvelope() {\n\t\treturn null;\r\n\t}", "public S2LatLngRect getBound() {\n // To save time, we ignore numerical errors in the computed S2LatLngs while\n // accumulating the bounds and then account for them here.\n //\n // S2LatLng(S2Point) has a maximum error of 0.955 * S2.DBL_EPSILON in latitude.\n // In the worst case, we might have rounded \"inwards\" when computing the\n // bound and \"outwards\" when computing the latitude of a contained point P,\n // therefore we expand the latitude bounds by 2 * S2.DBL_EPSILON in each\n // direction. (A more complex analysis shows that 1.5 * S2.DBL_EPSILON is\n // enough, but the expansion amount should be a multiple of S2.DBL_EPSILON in\n // order to avoid rounding errors during the expansion itself.)\n //\n // S2LatLng(S2Point) has a maximum error of S2.DBL_EPSILON in longitude, which\n // is simply the maximum rounding error for results in the range [-Pi, Pi].\n // This is true because the Gnu implementation of atan2() comes from the IBM\n // Accurate Mathematical Library, which implements correct rounding for this\n // intrinsic (i.e., it returns the infinite precision result rounded to the\n // nearest representable value, with ties rounded to even values). This\n // implies that we don't need to expand the longitude bounds at all, since\n // we only guarantee that the bound contains the *rounded* latitudes of\n // contained points. The *true* latitudes of contained points may lie up to\n // S2.DBL_EPSILON outside of the returned bound.\n\n S2LatLng expansion = S2LatLng.fromRadians(2 * S2.DBL_EPSILON, 0);\n return builder.build().expanded(expansion).polarClosure();\n }", "@Override\n\tpublic Function getAggregateExtentFunction(Column envelope) {\n\t\treturn null;\n\t}", "public Rectangle getBounds() {\n return new Rectangle(x, y, DIAMETER, DIAMETER); // returns a rectangle with its dimensions\r\n }", "public Rectangle getBounds() {\n\t\tRectangle Box = new Rectangle(x, y, 48, 48);\n\t\treturn Box;\n\t}", "public Rectangle getBoundingBox() {\n\t\treturn getBounds();\n\t}", "public MWC.GenericData.WorldArea getBounds()\r\n\t{\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"static-access\")\n\tpublic Envelope getEnvelopeProvincie() {\n\n\t\ttry {\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) getViewer()\n\t\t\t\t\t.getConfiguration().getContext().getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\n\t\t\treturn GeometryUtils.getEnvelope(provincie.getGeom());\n\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"Can not search Provincie.\", e);\n\t\t}\n\t\treturn null;\n\t}", "protected void setBBox( org.geotools.data.wms.request.GetMapRequest getMap, Envelope envelope ) {\n String version = getMap.getProperties().getProperty( Request.VERSION );\n boolean forceXY = version == null || !version.startsWith( \"1.3\" );\n String srsName = CRS.toSRS( envelope.getCoordinateReferenceSystem() );\n \n CoordinateReferenceSystem crs = AbstractGetMapRequest.toServerCRS( srsName, forceXY );\n Envelope bbox = null;\n try {\n bbox = CRS.transform( envelope, crs );\n } \n catch (TransformException e) {\n bbox = envelope;\n }\n // FIXME\n String s = srsName.contains( \"31468\" ) && version.startsWith( \"1.3\" )\n ? Joiner.on( ',' ).join( bbox.getMinimum(1), bbox.getMinimum(0), bbox.getMaximum(1), bbox.getMaximum(0) )\n : Joiner.on( ',' ).join( bbox.getMinimum(0), bbox.getMinimum(1), bbox.getMaximum(0), bbox.getMaximum(1) );\n //log.info( \"Requested BBOX: \" + s );\n getMap.setBBox( s );\n }", "private BioMightBoundBoxes setupDefaultBoundBoxes() \r\n\t{\r\n\t\t// Set up the collection to hold the Bounding Boxes\r\n\t\tBioMightBoundBoxes bioBoundBoxes = null;\r\n\t\r\n\t\t// Initialize the position of the bounding box vars\r\n\t\tBigDecimal xPos = new BigDecimal(0.0);\r\n\t\tBigDecimal yPos = new BigDecimal(0.0);\r\n\t\tBigDecimal zPos= new BigDecimal(0.0);\r\n\t\t\r\n\t\t// Set to base 1x1x1 cube\r\n\t\tBigDecimal xVector= new BigDecimal(1.0);\r\n\t\tBigDecimal yVector= new BigDecimal(1.0); \r\n\t\tBigDecimal zVector= new BigDecimal(1.0);\r\n\t\r\n\t\t// Initialize a BoundBox\r\n\t\tBioMightBoundBox bioBoundBox = null;\r\n\t\r\n\t\t// Initialize Connectors \r\n\t\tBioMightConnectors bioMightConnectors = null; \r\n\r\n\t\t// Initialize a Connector \r\n\t\tBioMightConnector bioMightConnector= null;\r\n\t\r\n\t\tdouble circumference = 0.0;\r\n\t\tdouble[] startPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] startPoints = null;\r\n\t\r\n\t\t//********************************************************************* \r\n\t\t// LEFT FOOT BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Feet\r\n\t\t// The connector for this will come from the incoming Bound Box\r\n\t\t// Both are defined like and bolt and they lock into position at the\r\n\t\t// interestion of both connectors\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-65.0);\r\n\t\tzPos= new BigDecimal(3.0);\r\n\t\r\n\t\txVector= new BigDecimal(1.0);\r\n\t\tyVector= new BigDecimal(4.0); \r\n\t\tzVector= new BigDecimal(1.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\r\n\t\t// Feet Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(-2.0, -65.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.FootEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.FootEpitheliumRef, bioMightConnector);\r\n\t\t\r\n\t\t// Associate the connector on the Box\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box in the collection\r\n\t\tbioBoundBoxes.setBoundingBox(Constants.LeftFootRef, bioBoundBox);\r\n\t\r\n\t\r\n\t\t//********************************************************************* er\r\n\t\t// RIGHT CNEMES BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Foot\r\n\t\t// On a porportioned human, the \r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-14.0);\r\n\t\tzPos= new BigDecimal(-3.0);\r\n\t\r\n\t\txVector= new BigDecimal(1.0);\r\n\t\tyVector= new BigDecimal(4.0); \r\n\t\tzVector= new BigDecimal(1.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\r\n\t\t// Foot Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(2.0, -65.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.FootEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.FootEpitheliumRef, bioMightConnector);\r\n\t\r\n\t\t// Associate the connector on the Box\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box in the collection\r\n\t\tbioBoundBoxes.setBoundingBox(Constants.RightFootRef, bioBoundBox);\r\n\t\r\n\t\t// return the collection that holds both foot bound boxes\r\n\t\treturn (bioBoundBoxes);\r\n\t}", "public java.awt.Rectangle getBounds(){\r\n return new java.awt.Rectangle((int)Math.round(x), (int)Math.round(y), (int)Math.round(getWidth()), (int)Math.round(getHeight()));\r\n }", "public BoundsObject getBounds() {\n\t\treturn null;\n\t}", "public Rectangle getBounds() {\n return new Rectangle(getMinX(), getMinY(), getWidth(), getHeight());\n }", "@SuppressWarnings(\"static-access\")\n\tpublic Envelope getEnvelopeProvincie(MapContext context) {\n\n\t\ttry {\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) context\n\t\t\t\t\t.getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\n\t\t\treturn GeometryUtils.getEnvelope(provincie.getGeom());\n\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"Can not search Provincie.\", e);\n\t\t}\n\t\treturn null;\n\t}", "public InfinitNumber getBound() {\n\t\treturn mBound;\n\t}", "public Rect getBound() {\n return new Rect((int) (x - radius), (int) (y - radius), (int) (x + radius), (int) (y + radius));\n }", "public Envelope getEnvelope() {\n return envelope;\n }", "public Rectangle getBounds() {\n return new Rectangle((int) getX() - 20, (int) getY() - 20, 40, 40);\n }", "protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }", "public Rectangle getBounds(){\r\n return new Rectangle(x, y, w, w);\r\n }", "public Rectangle getBounds() {\n return null;\n }", "public Rectangle getBounds() {\r\n return new Rectangle(x, y, 55, 51);\r\n }", "@Override\n\tpublic GRectangle getBounds() {\n\t\tif (isEmpty()) {\n\t\t\treturn new GRectangle();\n\t\t} else {\n\t\t\tGPoint p0 = points.get(0);\n\t\t\tdouble minX = p0.getX();\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = p0.getY();\n\t\t\tdouble maxY = minY;\n\t\t\tfor (int i = 1; i < size(); i++) {\n\t\t\t\tGPoint p1 = points.get(i);\n\t\t\t\tminX = Math.min(minX, p1.getX());\n\t\t\t\tmaxX = Math.max(maxX, p1.getX());\n\t\t\t\tminY = Math.min(minY, p1.getY());\n\t\t\t\tmaxY = Math.max(maxY, p1.getY());\n\t\t\t}\n\t\t\treturn new GRectangle(minX, maxX, minY, maxY);\n\t\t}\n\t}", "public BoundingBox(double minX, double minY, double maxX, double maxY) {\r\n this.setMinX(minX);\r\n this.setMinY(minY);\r\n this.setMaxX(maxX);\r\n this.setMaxY(maxY);\r\n }", "@java.lang.Override\n public long getMaxEnvelopeQueueSize() {\n return maxEnvelopeQueueSize_;\n }", "@Override\r\n\tpublic Area getBoundsArea() {\n\t\treturn null;\r\n\t}", "private Geometry getGeom1() {\n // A 2x2 geometry with centroid 2,2\n return DefaultReference.getGeometryFactory().toGeometry(new ReferencedEnvelope(\n DefaultEnvMinX + 1,\n DefaultEnvMinX + 3,\n DefaultEnvMinY + 1,\n DefaultEnvMinY + 3,\n CRS\n ));\n }", "@java.lang.Override\n public long getMaxEnvelopeQueueSize() {\n return maxEnvelopeQueueSize_;\n }", "public BoundingBox()\n\t{\n\t\tcenter = new Vector2(0.0, 0.0);\n\t\twidth = 1.0;\n\t\theight = 1.0;\n\t}", "public Rectangle getBoundingBox() {\n return new Rectangle(this);\r\n }", "public Map<Integer, Geometry> getEnvelope() throws SQLException {\n return retrieveExpected(createNativeEnvelopeStatement(), GEOMETRY);\n }", "public Rectangle getBounds() {\n\t\treturn new Rectangle(getX(),getY(),width, width);\n\t}", "Rectangle getBounds();", "public Rect getBBox() throws PDFNetException {\n/* 857 */ return new Rect(GetBBox(this.a));\n/* */ }", "public GeometryBoundingBox(double west, double south, double east, double north, Double minAltitude,\n Double maxAltitude) {\n this.west = west;\n this.south = south;\n this.east = east;\n this.north = north;\n this.minAltitude = minAltitude;\n this.maxAltitude = maxAltitude;\n }", "public Rectangle getBounds() {\n\t\treturn new Rectangle((int) xPos, (int) yPos, (int) width, (int) height);\n\t}", "public AxisAlignedBB getBoundingBox()\r\n {\r\n return null;\r\n }", "public Rectangle getBounds()\r\n\t{\r\n\t\treturn new Rectangle(x, y, w, h);\r\n\t}", "public Rectangle bounds()\n\t{\n\t\treturn (new Rectangle(x, y, 10, 10));\n\t}", "private Geometry getGeom2() {\n return DefaultReference.getGeometryFactory().toGeometry(new ReferencedEnvelope(\n DefaultEnvMinX + 4,\n DefaultEnvMinX + 9,\n DefaultEnvMinY + 4,\n DefaultEnvMinY + 9,\n CRS\n ));\n }", "private Coordinate[] generateBoundingBox(final Geometry geometry) {\n if (geometry == null || geometry.getCoordinates() == null || geometry.getCoordinates().length == 0) {\n return new Coordinate[]{new Coordinate(0,0),new Coordinate(0,0)};\n }\n final Coordinate firstPoint = geometry.getCoordinates()[0];\n double minLat = firstPoint.y;\n double minLon = firstPoint.x;\n double maxLat = firstPoint.y;\n double maxLon = firstPoint.x;\n for (final Coordinate coordinate : geometry.getCoordinates()) {\n if (coordinate.x < minLon) {\n minLon = coordinate.x;\n }\n if (coordinate.y < minLat) {\n minLat = coordinate.y;\n }\n if (coordinate.x > maxLon) {\n maxLon = coordinate.x;\n }\n if (coordinate.y > maxLat) {\n maxLat = coordinate.y;\n }\n }\n return new Coordinate[]{\n new Coordinate(minLon, minLat),\n new Coordinate(maxLon, maxLat)\n };\n }", "public Vector3D getExtent() {\n double[] v = this.getVertices();\n\n double xmin = Double.POSITIVE_INFINITY;\n double xmax = Double.NEGATIVE_INFINITY;\n double ymin = Double.POSITIVE_INFINITY;\n double ymax = Double.NEGATIVE_INFINITY;\n double zmin = Double.POSITIVE_INFINITY;\n double zmax = Double.NEGATIVE_INFINITY;\n\n for (int i = 0; i < v.length; i += 3) {\n xmin = Math.min(v[i], xmin);\n xmax = Math.max(v[i], xmax);\n ymin = Math.min(v[i + 1], ymin);\n ymax = Math.max(v[i + 1], ymax);\n zmin = Math.min(v[i + 2], zmin);\n zmax = Math.max(v[i + 2], zmax);\n }\n\n return new Vector3D(xmax - xmin, ymax - ymin, zmax - zmin);\n }", "public Rectangle getBounds() {\n return new Rectangle(x, y, 32, 32);\n }", "Rectangle getBounds() {\n return new Rectangle(getLocation(), getSize());\n }", "public OrientedBox getObox() {\n\t\treturn obox;\n\t}", "@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}", "public sRectangle getSRectangleBound()\n {\n return form.getSRectangleBound();\n }", "@Override\n\tpublic Rectangle2D getBounds2D() {\n\t\treturn null;\n\t}", "private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}", "public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}", "public Rectangle2D getBoundary() {\n return new Rectangle2D(x, y, width, height);\n }", "public GeographicBoundingBox getBoundingBox()\r\n {\r\n return myBoundingBox;\r\n }", "@Override\n\tpublic BoundaryRectangle getBoundingBox() {\n\t\treturn new BoundaryRectangle(0, 0, drawView.getWidth(), drawView.getHeight());\n\t}", "public Double getBoxWidth() {\n\t\treturn null;\n\t}", "public Vect3d getExtent (){\r\n \r\n Vect3d extent = new Vect3d();\r\n extent.x = (max.x - min.x) / 2;\r\n extent.y = (max.y - min.y) / 2;\r\n extent.z = (max.y - min.z) / 2;\r\n return extent;\r\n }", "public InfinitNumber getInverseBound() {\n\t\treturn mIBound;\n\t}", "RectangleLatLng getBounds();", "public Rectangle2D getBox(\n )\n {return box;}", "private double getRangeCenter(int lowerBound, int upperBound) {\n return (lowerBound + upperBound) / 2.0;\n }", "public int getBound();", "public Rectangle getBoundsBigger() {\n return new Rectangle(x-32,y-32,128,128);\n }", "public LatLngBounds setupBounds(){\n\t\t\n\t\t\n\t\tdouble deltaLat = 0.000015; // correction value\n\t\t\n\t\tLatLng northEast = new LatLng(60.1876397959336 + (2.4 * deltaLat), 24.8207008838576);\n\t\tLatLng southWest = new LatLng(60.1866756699501 + deltaLat, 24.8172971606177);\n\t\t\n\t\t\n\t\t// 60.1866756699501\n\t\treturn new LatLngBounds(southWest, northEast);\n\t}", "public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }", "@NonNull\n public Rect getBounds() {\n return new Rect(mBounds);\n }", "public ERectangle getPrimitiveBounds() {\n ERectangle primitiveBounds = this.primitiveBounds;\n if (primitiveBounds != null) return primitiveBounds;\n return this.primitiveBounds = computePrimitiveBounds();\n }", "public Rect getDefaultAdRectDips() {\n return this.mDefaultAdRectDips;\n }", "public Envelope getEnvelope() {\n return this.envelope;\n }", "public Rect getDefaultAdRect() {\n return this.mDefaultAdRect;\n }", "Rectangle getBoundingBox(Rectangle rect);", "public Rectangle getBounds();", "public Rectangle getBounds();", "public static final Rect getViewportBounds() {\n return new Rect(Window.getScrollLeft(), Window.getScrollTop(), Window.getClientWidth(), Window.getClientHeight());\n }", "public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}", "public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }", "private Envelope readExtent(XPath xPath, Node ndWmsCapabilities) throws XPathExpressionException {\n String wkid = \"4326\";\n Node EX_GeographicBoundingBox = (Node) xPath.evaluate(\"Capability/Layer/EX_GeographicBoundingBox\", ndWmsCapabilities, XPathConstants.NODE);\n if (EX_GeographicBoundingBox != null) {\n return extractExtent(xPath, EX_GeographicBoundingBox, new String[]{\"westBoundLongitude\", \"southBoundLatitude\", \"eastBoundLongitude\", \"northBoundLatitude\"}, wkid);\n } else {\n NodeList nodes = (NodeList) xPath.evaluate(\"//EX_GeographicBoundingBox\", ndWmsCapabilities, XPathConstants.NODESET);\n if (nodes.getLength() > 0) {\n Envelope envelope = new Envelope();\n envelope.setWkid(wkid);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n Envelope e = extractExtent(xPath, node, new String[]{\"westBoundLongitude\", \"southBoundLatitude\", \"eastBoundLongitude\", \"northBoundLatitude\"}, wkid);\n if (e != null) {\n envelope.merge(e);\n }\n }\n if (envelope.hasSize())\n return envelope;\n }\n }\n\n Node LatLonBoundingBox = (Node) xPath.evaluate(\"Capability/Layer/LatLonBoundingBox\", ndWmsCapabilities, XPathConstants.NODE);\n if (LatLonBoundingBox != null) {\n return extractExtent(xPath, LatLonBoundingBox, new String[]{\"@minx\", \"@miny\", \"@maxx\", \"@maxy\"}, wkid);\n }\n\n return null;\n }", "public void calculateBoundsAABB() {\n\t\tsuper.minY = 0;\n\t\tradius = 0;\n\t\tmaxY = 0;\n\t\tminX = 999999;\n\t\tmaxX = -999999;\n\t\tmaxZ = -99999;\n\t\tminZ = 99999;\n\t\tfor (int j = 0; j < vertexCount; j++) {\n\t\t\tint x = vertexX[j];\n\t\t\tint y = vertexY[j];\n\t\t\tint z = vertexZ[j];\n\t\t\tif (x < minX) {\n\t\t\t\tminX = x;\n\t\t\t}\n\t\t\tif (x > maxX) {\n\t\t\t\tmaxX = x;\n\t\t\t}\n\t\t\tif (z < minZ) {\n\t\t\t\tminZ = z;\n\t\t\t}\n\t\t\tif (z > maxZ) {\n\t\t\t\tmaxZ = z;\n\t\t\t}\n\t\t\tif (-y > super.minY) {\n\t\t\t\tsuper.minY = -y;\n\t\t\t}\n\t\t\tif (y > maxY) {\n\t\t\t\tmaxY = y;\n\t\t\t}\n\t\t\tint radiusSqr = (x * x) + (z * z);\n\t\t\tif (radiusSqr > radius) {\n\t\t\t\tradius = radiusSqr;\n\t\t\t}\n\t\t}\n\t\tradius = (int) Math.sqrt(radius);\n\t\tminDepth = (int) Math.sqrt((radius * radius) + (super.minY * super.minY));\n\t\tmaxDepth = minDepth + (int) Math.sqrt((radius * radius) + (maxY * maxY));\n\t}", "public Bounds getBounds () { return (bounds); }", "public void setInfiniteBoundingbox()\n\t{\n\t\tinf_bb = true;\n\t\tif (transfh != null) {\n\t\t\ttransfh.setInfiniteBoundingbox();\n\t\t}\n\t}", "@Override\n public Rectangle getBounds() {\n return new Rectangle(x,y,64,64);\n }", "public ViewEdges extendsOutside(RectF bounds)\n {\n boolean left = false;\n boolean top = false;\n boolean right = false;\n boolean bottom = false;\n \n updateRotatedCorners();\n for (int i = 0; i < 4; i++)\n {\n left = left || (rotatedCorners[i][0] < bounds.left );\n top = top || (rotatedCorners[i][1] < bounds.top );\n right = right || (rotatedCorners[i][0] >= bounds.right );\n bottom = bottom || (rotatedCorners[i][1] >= bounds.bottom);\n }\n \n return new ViewEdges(left, top, right, bottom);\n }", "public HDict getDefaultEssentials()\n {\n return ESSENTIALS;\n }", "public Envelope projectedExtent(Envelope r);", "public static Box getBoundingBox(Entity entity)\n\t{\n\t\treturn (new REntity(entity)).getBox().getBox();\n\t}", "public Box getBox() {\n\t//we compute the coordinates of the top left square \n\t//of the box by integer division\n\treturn new Box((rowIndex/3)*3, (colIndex/3)*3); \n }", "public static String getDefaultAddress() {\n\t\tEnumeration<NetworkInterface> nets;\n\t\ttry {\n\t\t\tnets = NetworkInterface.getNetworkInterfaces();\n\t\t} catch (SocketException e) {\n\t\t\treturn null;\n\t\t}\n\t\tNetworkInterface netinf;\n\t\twhile (nets.hasMoreElements()) {\n\t\t\tnetinf = nets.nextElement();\n\n\t\t\tEnumeration<InetAddress> addresses = netinf.getInetAddresses();\n\n\t\t\twhile (addresses.hasMoreElements()) {\n\t\t\t\tInetAddress address = addresses.nextElement();\n\t\t\t\tif (!address.isAnyLocalAddress() && !address.isMulticastAddress() && !(address instanceof Inet6Address)) {\n\t\t\t\t\treturn address.getHostAddress();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public final Ellipse2D.Double getHitbox() {\n return new Ellipse2D.Double(x, y, r, r);\n }", "@Override\n public GRectangle getBounds() {\n return null;\n }" ]
[ "0.6368286", "0.57211345", "0.53960174", "0.5338728", "0.5302584", "0.5258853", "0.5242547", "0.5142172", "0.5085034", "0.50269276", "0.50248486", "0.5015465", "0.49417946", "0.49404564", "0.4906953", "0.4882146", "0.47620177", "0.47452733", "0.47361952", "0.4734471", "0.47214174", "0.46930927", "0.4672983", "0.46684328", "0.46643844", "0.46590334", "0.46513155", "0.46290228", "0.46182543", "0.45312995", "0.45270368", "0.4512978", "0.44961116", "0.4481663", "0.44786236", "0.44746047", "0.44731787", "0.44602334", "0.44538334", "0.4451291", "0.44354996", "0.4434762", "0.44276795", "0.44187617", "0.4417702", "0.44111022", "0.4408089", "0.44067922", "0.4402577", "0.43875846", "0.43801233", "0.43775666", "0.43741912", "0.4368027", "0.4359293", "0.4354624", "0.43486536", "0.43378603", "0.43239215", "0.43230945", "0.43208292", "0.43178", "0.43112493", "0.43035206", "0.4302114", "0.4297998", "0.42868084", "0.42834064", "0.42829838", "0.42771783", "0.42749333", "0.4274904", "0.4270143", "0.42690337", "0.42677888", "0.42667586", "0.42635393", "0.42634648", "0.4261587", "0.4258124", "0.42557", "0.42514816", "0.42495883", "0.42495883", "0.4249006", "0.42439127", "0.42432764", "0.42412943", "0.42387798", "0.42303336", "0.42239302", "0.42203876", "0.4216558", "0.4215785", "0.42078465", "0.41924715", "0.41915807", "0.41827378", "0.41786182", "0.41764233" ]
0.7317542
0
Compares the specified object with this coordinate system for equality.
public boolean equals( final Object object ) { if ( object == this ) return true; // Slight optimization return super.equals( object ) && equivalents( (CoordinateSystem) object ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (object != null && object instanceof Coord) { // object is Coord type\n Coord coord = (Coord) object; // typecase object to Coord type\n if (this.x == coord.x && this.y == coord.y) { // Equals Coord\n return true;\n }\n }\n return false;\n }", "public boolean equals(Object obj) {\r\n\t\treturn ( this.getX() == ((Coordinate)obj).getX() && this.getY() == ((Coordinate)obj).getY());\r\n\t}", "@Override\n\tpublic boolean equals(Object objectToCompare)\n\t{\n\t\tif (!(objectToCompare instanceof Location))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tLocation locationToCompare = (Location) objectToCompare;\n\t\tboolean latitudeSame = Double.compare(latitude, locationToCompare.getLatitude()) == 0;\n\t\tboolean longitudeSame = Double.compare(longitude, locationToCompare.getLongitude()) == 0;\n\n\t\treturn latitudeSame && longitudeSame;\n\t}", "@Override\n public boolean equals(Object o) {\n //if the other object is null, they're not equal\n if (o == null) { return false; }\n\n //check if it's a coordinate and if so, if it's a matching coordinate\n if (o instanceof Coordinate) {\n Coordinate other = (Coordinate) o;\n return col == other.col && row == other.row;\n }\n\n return false;\n }", "public boolean equals(Object o) {\r\n\t if(o instanceof Point) {\r\n\t\t Point temp = (Point) o;\r\n\t\t long x = ((Compare2D) o).getX();\r\n\t\t long y = ((Compare2D) o).getY();\r\n\t\t if(longitude == x && latitude == y)\r\n\t\t\t return true;\r\n\t }\r\n\t return false;\r\n }", "@Override\n public boolean equals (Object object) {\n if (! (object instanceof BoxPhotography) ) {return false;}\n if (this.getRow() != ((BoxPhotography) object).getRow()) {return false;}\n if (this.getColumn() != ((BoxPhotography) object).getColumn()) {return false;}\n if (this.getLevel() != ((BoxPhotography) object).getLevel()) {return false;}\n if(this.isOccupied() != ((BoxPhotography) object).isOccupied()) {return false;}\n if (this.getColor() != ((BoxPhotography) object).getColor()) {return false;}\n return this.isDomed() == ((BoxPhotography) object).isDomed();\n }", "public boolean equals(Object o) {\n\t\tif (o instanceof Coordinate) {\n\t\t\tif (((Coordinate) o).getRow() == this.getRow() && ((Coordinate) o).getCol() == this.getCol()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean equals(Object o)\n\t{\n\t\tboolean ret = false;\n\t\tif(o instanceof Position)\n\t\t{\n\t\t\tPosition tmp = (Position)o;\n\t\t\tif(tmp.getX()==x && tmp.getY()==y)\n\t\t\t\tret = true;\n\t\t}\n\t\treturn ret;\n\t}", "public boolean equals(Object obj) {\n\t\tMercator p;\n\t\ttry {\n\t\t\tp = (Mercator)obj;\n\t\t} catch (ClassCastException ex) {\n\t\t\treturn false;\n\t\t}\n\t\tif(!super.equals(p))return false;\n\t\treturn (refY==p.refY) && (scaleY==p.scaleY);\n\t}", "public boolean equals(Object object) {\n\t\tif (object == null) {\n\t\t\treturn false;\n\t\t}\n\t\t// This test rules out instances of a subclass.\n\t\tif (object.getClass() != getClass()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tLongMatrixToken matrixArgument = (LongMatrixToken) object;\n\n\t\tif (_rowCount != matrixArgument.getRowCount()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (_columnCount != matrixArgument.getColumnCount()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tlong[] value = matrixArgument._value;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tif (_value[i] != value[i]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n public boolean equals(Object other) {\n if (this == other) return true; \n \n if (other instanceof Coord3) { // if other is a Coord3 type\n return x == ((Coord3) other).x && y == ((Coord3) other).y && z == ((Coord3) other).z;\n }\n return false;\n }", "public boolean equals(Object obj) {\n\n if (obj instanceof Location) {\n\n Location other = (Location) obj;\n\n return row == other.getRow() && col == other.getCol();\n\n } else {\n\n return false;\n\n }\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tState State = (State) obj;\n\t\tSquare aux = null;\n\t\tboolean isequal = true;\n\t\tif (getTractor().getColumn()!=State.getTractor().getColumn() || getTractor().getRow()!=State.getTractor().getRow())\n\t\t\tisequal = false;\n\t\telse {\n\t\t\tfor (int i = 0;i<getRows() && isequal; i++) {\n\t\t\t\tfor (int j = 0;j < getColumns() && isequal; j++) {\n\t\t\t\t\taux = new Square (i,j);\n\t\t\t\t\tif (cells[i][j].getSand() != State.getSquare(aux).getSand()) \n\t\t\t\t\t\tisequal = false; \n\t\t\t\t}\n\t\t\t} \n\t\t} \n\t\treturn isequal;\n\t}", "public boolean equals(Object obj)\n {\n TAPosition taPosition;\n if(obj instanceof TAPosition)\n {\n taPosition = (TAPosition)obj;\n return position.equals(taPosition.getPosition());\n }\n else\n return false;\n }", "@Override\n public boolean equals(final Object o) {\n Position position = (Position) o;\n return posX == position.posX && posY == position.posY && Objects.equals(charAlg, position.charAlg);\n }", "public boolean equals(Object o) {\n\t\tSquare s = (Square) o;\n\t\tif (this.x == s.x && this.y == s.y && this.z == s.z)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof XiangqiCoordinate)) return false;\n XiangqiCoordinate coordinate = (XiangqiCoordinate) obj;\n return coordinate.getRank() == rank && coordinate.getFile() == file;\n }", "@Override\n public boolean equals(Object o) {\n if (o instanceof Vector2) {\n boolean value = false;\n if (o.hashCode() == this.hashCode()) {\n value = true;\n }\n return value;\n } else {\n return false;\n }\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tQueen te = (Queen) obj;\r\n\t\treturn (this.x==te.x)&&(this.y==te.y);\r\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Vector3 other = (Vector3) obj;\n if (Double.doubleToLongBits(this.x) != Double.doubleToLongBits(other.x)) {\n return false;\n }\n if (Double.doubleToLongBits(this.y) != Double.doubleToLongBits(other.y)) {\n return false;\n }\n if (Double.doubleToLongBits(this.z) != Double.doubleToLongBits(other.z)) {\n return false;\n }\n if (Double.doubleToLongBits(this.magnitude) != Double.doubleToLongBits(other.magnitude)) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif(obj!=null && obj instanceof Test1){\n\t\t\tTest1 obj2 = (Test1)obj;\n\t\t\tif(x==obj2.x && y==obj2.y){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object o) {\n if ((o == null) || !(o instanceof Location)) {\n return false;\n }\n\n // Check x- and y-coordinates.\n Location other = (Location) o;\n if ((this.x == other.x) && (this.y == other.y)) {\n return true;\n }\n\n return false;\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (!(obj instanceof AffineTransform3D))\r\n\t\t\treturn false;\r\n\t\tAffineTransform3D T = (AffineTransform3D) obj;\r\n\t\tif (Math.abs(M11 - T.M11) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M12 - T.M12) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M13 - T.M13) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M14 - T.M14) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M21 - T.M21) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M22 - T.M22) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M23 - T.M23) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M24 - T.M24) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M31 - T.M31) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M32 - T.M32) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M33 - T.M33) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M34 - T.M34) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M41 - T.M41) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M42 - T.M42) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M43 - T.M43) > EPSILON)\r\n\t\t\treturn false;\r\n\t\tif (Math.abs(M44 - T.M44) > EPSILON)\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\r\n\t}", "@Override\n public boolean equals(Object obj) {\n //if we compare a point to itself\n if (this == obj) {\n //it's the same\n return true;\n }\n //it's not null\n if (obj == null) {\n return false;\n }\n //if it's not a Short2DPoint\n if (!getClass().isInstance(obj)) {\n //it's not the same\n return false;\n }\n // convert the object into a Short2DPoint\n final Short2DPoint other = (Short2DPoint) obj;\n //if the x coordinate is different\n if (this.x != other.x) {\n //it's not the same\n return false;\n }\n //if the x coordinate is different\n if (this.y != other.y) {\n //it's not the same\n return false;\n }\n //they are the same\n return true;\n }", "public boolean equals(Object object) {\n/* 4770 */ if (this == object)\n/* */ {\n/* 4772 */ return true;\n/* */ }\n/* 4774 */ if (object != null && object.getClass() == getClass()) {\n/* */ \n/* 4776 */ VolaTile tile = (VolaTile)object;\n/* 4777 */ return (tile.getTileX() == this.tilex && tile.getTileY() == this.tiley && tile.surfaced == this.surfaced);\n/* */ } \n/* 4779 */ return false;\n/* */ }", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "public boolean equals(Object object1) {\n if (object1 != null && object1.getClass() != this.getClass())\n {\n return false;\n }\n else\n {\n Computer c1 = (Computer) object1;\n return (this.brand.equals(c1.brand) && this.model.equals(c1.model) && this.price == c1.price);\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DBSeriesData)) {\n return false;\n }\n DBSeriesData other = (DBSeriesData) object;\n if ((this.xvalue == null && other.xvalue != null) || (this.yvalue != other.yvalue)) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object other)\n\t{\n if (other == this) \n {\n return true;\n }\n \n // Check if is an instance of this class:\n if (!(other instanceof RelativeLocation))\n {\n return false;\n }\n \n // Check if have same x and y values:\n RelativeLocation otherRelativeLocation = (RelativeLocation) other;\n \n return (this.getX() == otherRelativeLocation.getX()\n \t\t&& this.getY() == otherRelativeLocation.getY());\n\t\t\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null)\n\t\t\treturn false;\n\n\t\tif (!(obj instanceof Location))\n\t\t\treturn false;\n\n\t\tif (obj == this)\n\t\t\treturn true;\n\n\t\tLocation that = (Location) obj;\n\n\t\treturn this.map == that.map && this.y() == that.y() && this.x() == that.x();\n\t}", "@Override\n\tpublic boolean\n\tequals( Object other ) \n\t{\n\t\tVector3 v;\n\n\t\tif( ! ( other instanceof Vector3 ) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tv = (Vector3) other;\n\t\n\t\treturn( data[0] == v.data[0]\n\t\t\t&& data[1] == v.data[1]\n\t\t\t&& data[2] == v.data[2] );\n\t}", "public boolean equals(XObject obj2) {\n/* */ try {\n/* 262 */ if (4 == obj2.getType())\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 268 */ return obj2.equals(this);\n/* */ }\n/* 270 */ if (1 == obj2.getType())\n/* */ {\n/* 272 */ return (bool() == obj2.bool());\n/* */ }\n/* 274 */ if (2 == obj2.getType())\n/* */ {\n/* 276 */ return (num() == obj2.num());\n/* */ }\n/* 278 */ if (4 == obj2.getType())\n/* */ {\n/* 280 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* 282 */ if (3 == obj2.getType())\n/* */ {\n/* 284 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* 286 */ if (5 == obj2.getType())\n/* */ {\n/* */ \n/* */ \n/* 290 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* */ \n/* */ \n/* 294 */ return super.equals(obj2);\n/* */ \n/* */ }\n/* 297 */ catch (TransformerException te) {\n/* */ \n/* 299 */ throw new WrappedRuntimeException(te);\n/* */ } \n/* */ }", "@Override\n public boolean equals(Object o) {\n final BoardCell secondCell = (BoardCell) o;\n return((this.xCor==secondCell.xCor)\n &&(this.yCor==secondCell.yCor));\n }", "public boolean equals(Object aLocation)\n\t{\n\t\treturn (((Location) aLocation).mX == mX) && (((Location) aLocation).mY == mY);\n\t}", "public boolean equals(Object object);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CamRegion)) {\r\n return false;\r\n }\r\n CamRegion other = (CamRegion) object;\r\n if ((this.vertex == null && other.vertex != null) || (this.vertex != null && !this.vertex.equals(other.vertex))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Object o1) {\n\treturn o1 != null && (o1 instanceof Matrix3f) && equals((Matrix3f)o1);\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n \n final Point other = (Point) obj;\n if( !(Point.memeReel(this.x, other.getX()) && Point.memeReel(this.y, other.getY())) ) {\n return false;\n }\n\n return true;\n }", "public boolean equals(Object other) {\r\n if (other == this) return true;\r\n if (other == null) return false;\r\n if (other.getClass() != this.getClass()) return false;\r\n Point2D that = (Point2D) other;\r\n return this.x == that.x && this.y == that.y;\r\n }", "public boolean equals(Object object) {\n return (object instanceof Synset) && ((Synset) object).getPOS().equals(getPOS()) && ((Synset) object).getOffset() == getOffset();\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (super.equals(obj)) return true;\r\n\t\tif (!obj.getClass().equals(this.getClass())) return false;\r\n\t\tPoint p = (Point) obj;\r\n\t\tif ((this.x == p.x) && (this.y == p.y)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean equals(Coordinate c) {\r\n\t\treturn (c.x == x) && (c.y == y);\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TDSSystem)) {\n return false;\n }\n TDSSystem other = (TDSSystem) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n GeoPoint other = (GeoPoint) o;\n if (!this.isValid() || !other.isValid()) {\n return false;\n }\n return Objects.equals(coordinates.get(0), other.coordinates.get(0))\n && Objects.equals(coordinates.get(1), other.coordinates.get(1))\n && Objects.equals(coordinateSystem, other.coordinateSystem);\n }", "@Override\n public boolean equals(@Nullable Object object) {\n // TODO: Warning - this method won't work in the case the id fields are not set\n if (!(object instanceof XBENodeTree)) {\n return false;\n }\n\n XBENodeTree other = (XBENodeTree) object;\n return this.getId() == other.getId();\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Geocovarage)) {\r\n return false;\r\n }\r\n Geocovarage other = (Geocovarage) object;\r\n if ((this.planID == null && other.planID != null) || (this.planID != null && !this.planID.equals(other.planID))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Object o) {\n\t\tif(this == o) return true;\n\t\tif(!(o instanceof Coordonnees)) return false;\n\t\tCoordonnees c = (Coordonnees) o;\n\t\treturn this.ligne == c.getLigne() && this.colonne == c.getColonne();\n\t}", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof BoardPosition))\n return false;\n BoardPosition b = (BoardPosition) obj;\n return (this.getRow() == b.getRow()) && (this.getColumn() == b.getColumn()) && (this.getPlayer() == b.getPlayer());\n }", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "public void testEqualsObject()\n {\n // Null check\n assertFalse(b1.equals(null));\n // Type mismatch\n assertFalse(b1.equals(\"a\"));\n\n // Reflexive\n assertTrue(b1.equals(b1));\n\n // In general, two empty boards\n assertTrue(b1.equals(b2));\n\n // Different contents\n b1.setCell(0, 0, Cell.RED1);\n assertFalse(b1.equals(b2));\n\n // Same Contents\n b2.setCell(0, 0, Cell.RED1);\n assertTrue(b1.equals(b2));\n\n // Some more complex cases\n b1.fromString(\"RRRBEEBBE\");\n assertFalse(b1.equals(b2));\n b2.fromString(\"RRRBEEBBE\");\n assertTrue(b1.equals(b2));\n\n }", "@Override\n public boolean equals(Object o) {\n if (!(o instanceof Matrix)) return false;\n Matrix B = (Matrix) o;\n Matrix A = this;\n if (B.M != A.M || B.N != A.N) return false;\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n if (A.data[i][j] != B.data[i][j]) return false;\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ActGL)) {\n return false;\n }\n ActGL other = (ActGL) object;\n if ((this.nGLID == null && other.nGLID != null) || (this.nGLID != null && !this.nGLID.equals(other.nGLID))) {\n return false;\n }\n return true;\n }", "public boolean equals(XObject obj2){\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.equals(this);\n if(null!=m_obj){\n return m_obj.equals(obj2.m_obj);\n }else{\n return obj2.m_obj==null;\n }\n }", "@Override\r\n public boolean equals(Object obj) {\r\n if (!(obj instanceof Position))\r\n return false;\r\n Position pos = (Position)obj;\r\n return ((pos.getRowIndex() == this.rowIndex) && (pos.getColumnIndex() == this.colIndex));\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CostComponentCalc)) {\r\n return false;\r\n }\r\n CostComponentCalc other = (CostComponentCalc) object;\r\n if ((this.costComponentCalcId == null && other.costComponentCalcId != null) || (this.costComponentCalcId != null && !this.costComponentCalcId.equals(other.costComponentCalcId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object o){\r\n boolean equals=false;\r\n if (o!=null) {\r\n equals=(this.id==((Car)o).id)&&\r\n this.currentPosition.equals(((Car)o).currentPosition)\r\n &&this.orientation==((Car)o).orientation&&this.size==((Car)o).size;\r\n }\r\n return equals;\r\n }", "@Override\r\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof Point)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tPoint other = (Point) object;\r\n\t\tif ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean equals(Object obj) {\n //Cast other side.\n Angle other = (Angle) obj;\n\n //Compare values.\n if (this.degrees() == other.degrees()) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(\n Object object\n ){\n \tif(this == object) {\n \t\treturn true;\n \t}\n \tif(object instanceof Path) {\n \t\tPath that = (Path) object;\n \t\tif(this.size == that.size) {\n \t\t\tif(this.size == 0) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\tif(this.base.equals(that.base)) {\n \t\t\t return \n \t\t\t this.parent == that.parent ||\n \t\t\t this.parent.equals(that.parent);\n \t\t\t}\n \t\t}\n \t}\n\t\treturn false;\n }", "@Override\n public boolean equals(Object o) {\n\t// TODO\n\tif(o == null)\n\t\treturn false;\n\tif(o instanceof Square){\n\t //test if they have the same side and whether their upperleft\n\t //points point to the same reference\n\t return super.equals((Square)o) &&\n\t\tthis.getSide() == ((Square)o).getSide();\n\t}\n\treturn false;\n }", "public abstract boolean equals(Object o);", "public boolean equals(Object obj){\r\n\t\tif(!(obj instanceof Monom)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\tMonom m = (Monom)obj;\r\n\t\t\tMonom_Comperator comp = new Monom_Comperator();\r\n\t\t\t\r\n\t\t\tif(comp.compareCoefficient(this, m)==0 && this.get_coefficient()==0)\r\n\t\t\t\treturn true;\r\n\t\t\t\r\n\t\t\telse if(comp.compare(this, m)==0 && comp.compareCoefficient(this, m)==0)\r\n\t\t\t\treturn true;\r\n\t\t\t\r\n\t\t\telse \r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override public boolean equals(Object object);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof RealscheduleliteLocation)) {\r\n return false;\r\n }\r\n RealscheduleliteLocation other = (RealscheduleliteLocation) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(final Object o) {\n\t\tif (o instanceof Position) {\n\t\t\tPosition p = (Position) o;\n\n\t\t\tif ((p.i == i) && (p.j == j)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Tried to compare a Position with a \"\n\t\t\t\t\t+ o.getClass().getCanonicalName());\n\t\t}\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Location)) {\r\n return false;\r\n }\r\n Location other = (Location) object;\r\n if ((this.locId == null && other.locId != null) || (this.locId != null && !this.locId.equals(other.locId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals( Object obj );", "public boolean equals(Object obj) {\n\n if (obj == this) {\n return true;\n }\n\n if (obj instanceof Row) {\n return ((Row) obj).table == table\n && ((Row) obj).position == position;\n }\n\n return false;\n }", "public boolean equals(Object loc)\r\n {\r\n\r\n //if the location does not equal anything (null) and is of the same\r\n //class as the location.\r\n //\"this\" literally refers to the class...meaning this.x is referring\r\n //to the location class variable. If THIS location's class is equal to\r\n //this other location class, then it is equal and we return true;\r\n if (loc != null && this.getClass() == loc.getClass())\r\n {\r\n //we set point equal to the value in loc...we can cast it now\r\n //that we know that it is of the same class. We do this to\r\n //make sure it works correctly\r\n Location point = (Location)loc;\r\n //here we actually check the members of the point and see if they\r\n //are equal to the instance variable\r\n if (point.x() == this.x() && point.y() == this.y())\r\n {\r\n //return true if everything is equal\r\n return true;\r\n }\r\n\r\n }\r\n\r\n return false;\r\n }", "public boolean equals(Object other) {\n System.out.println(\"Calling our equals method now!\");\n\n if (other == null) {\n return false;\n }\n\n if (!(other instanceof Point)) {\n return false;\n }\n\n // other must be a Point here\n Point p = (Point) other;\n return (this.x == p.x) && (this.y == p.y);\n }", "@Override\n public boolean equals(Object o) {\n if (this == o)\n return true;\n\n if (!(o instanceof Car))\n return false;\n\n Car c = (Car) o;\n return (this.id == c.id\n && this.size == c.size\n && this.orientation == c.orientation\n && this.currentPosition.equals(c.currentPosition));\n }", "public boolean equals(Square other){\n\t\t\treturn this.x==other.x && this.y==other.y;\n\t\t}", "@Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n SearchNode other = (SearchNode) obj;\n if (x != other.x)\n return false;\n if (y != other.y)\n return false;\n return true;\n }", "@Override\n public boolean equals(Object object) {\n // TODO: Warning - this method won't work in the case the id fields are not set\n if (!(object instanceof DatasetParameterPK)) {\n return false;\n }\n DatasetParameterPK other = (DatasetParameterPK)object;\n if (this.units != other.units && (this.units == null || !this.units.equals(other.units))) return false;\n if (this.name != other.name && (this.name == null || !this.name.equals(other.name))) return false;\n if (this.datasetId != other.datasetId && (this.datasetId == null || !this.datasetId.equals(other.datasetId))) return false;\n return true;\n }", "@Override\n public boolean equals(Object otherObject) {\n //Instantly return false if the other object does not exist or if the class is not a bike station\n if (otherObject == null || this.getClass() != otherObject.getClass()) {\n return false;\n }\n\n BikeStation otherBikeStation = (BikeStation) otherObject;\n\n return this.getLocation().equals(otherBikeStation.getLocation())\n && this.getName().equals(otherBikeStation.getName());\n }", "public boolean equals(Object object) {\r\n\t\treturn (this.compareTo(object) == 0);\r\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof BizZjysxx)) {\r\n return false;\r\n }\r\n BizZjysxx other = (BizZjysxx) object;\r\n if ((this.zjkm == null && other.zjkm != null) || (this.zjkm != null && !this.zjkm.equals(other.zjkm))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "@Override\n public boolean equals(Object o) {\n if (o == this) { \n return true; \n } \n \n /* Check if o is an instance of Complex or not \n \"null instanceof [type]\" also returns false */\n if (!(o instanceof Path)) { \n return false; \n } \n \n // typecast o to Complex so that we can compare data members \n Path p = (Path) o; \n \n // Compare the data members and return accordingly \n return (this.startingPointIndex == p.startingPointIndex && this.distance == p.distance);\n }", "public boolean equals(Object o);", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tMove other = (Move) obj;\n\t\tif (col != other.col)\n\t\t\treturn false;\n\t\tif (row != other.row)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Carea)) {\r\n return false;\r\n }\r\n Carea other = (Carea) object;\r\n if ((this.idDir == null && other.idDir != null) || (this.idDir != null && !this.idDir.equals(other.idDir))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Dist)) {\r\n return false;\r\n }\r\n Dist other = (Dist) object;\r\n if ((this.distId == null && other.distId != null) || (this.distId != null && !this.distId.equals(other.distId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Object thing)\n {\n // boolean input = super.equals(thing);\n if (thing.equals(this.x()) && thing.equals(this.y()))\n {\n return true;\n }\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Cargos)) {\n return false;\n }\n Cargos other = (Cargos) object;\n if ((this.cgLlave == null && other.cgLlave != null) || (this.cgLlave != null && !this.cgLlave.equals(other.cgLlave))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object o) {\n\tif (o == null)\n\t return false; \n\telse {\n\t Square p = (Square) o; \n\t return ( (rowIndex == p.rowIndex) && (colIndex == p.colIndex) );\n\t} \n }", "public boolean equals(Object object){\n\t\tif(!(object instanceof BinaryTree)){\n\t\t\tSystem.out.println(\"The object is not a BinaryTree\");\n\t\t\ttry {\n\t\t\t\tthrow new Exception();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tBinaryTree tree = (BinaryTree) object;\n\t\tif((this.leftTree()==null) && tree.leftTree()==null){\n\t\t\treturn true;\n\t\t}\n\t\tif((this.leftTree()==null && tree.rightTree()!=null) || (this.rightTree()!=null &&tree.rightTree()==null)){\n\t\t\treturn false;\n\t\t}\n\t\tif(this.getElement().equals(tree.getElement()) && this.leftTree().equals(tree.leftTree()) && this.rightTree().equals(tree.rightTree())){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean equals(Object other) {\n\t\t\treturn Arrays.equals(state, ((MazeNode) other).state);\n\t\t}", "public boolean equals(Object obj);", "public boolean equals(Object other) {\n return this == other\n || ((other instanceof ComponentNode) \n && (getUserObject() == ((ComponentNode)other).getUserObject()));\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof MestoPK)) {\r\n return false;\r\n }\r\n MestoPK other = (MestoPK) object;\r\n if (this.mestoId != other.mestoId) {\r\n return false;\r\n }\r\n if (this.ustanovaId != other.ustanovaId) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Cuboid c) {\n\tif (getHeight() == c.getHeight() && getWidth() == c.getWidth() && depth == c.depth) {\n\t return true;\n\t}\n\telse {\n\t return false;\n\t}\n }", "public boolean equals(Position other) {\n return (other.x == this.x && other.y == this.y);\r\n }", "public int compareTo(final java.lang.Object p1) {\r\n return( singleton() - ((Coordinate)p1).singleton() );\r\n }", "public static boolean isSameObject(Object a, Object b) {\n return Builtins.isSameObject(a, b);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Slevy)) {\n return false;\n }\n Slevy other = (Slevy) object;\n if ((this.idSlevy == null && other.idSlevy != null) || (this.idSlevy != null && !this.idSlevy.equals(other.idSlevy))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof EgressoCursoPK)) {\n return false;\n }\n EgressoCursoPK other = (EgressoCursoPK) object;\n if ((this.egressocpf == null && other.egressocpf != null) || (this.egressocpf != null && !this.egressocpf.equals(other.egressocpf))) {\n return false;\n }\n if (this.cursoid != other.cursoid) {\n return false;\n }\n return true;\n }", "public boolean equals(Object other){\n\t\t\n\t\t\n\t\tif(other instanceof Wall)\n\t\t{\n\t\t\t\n\t\t\tWall that = (Wall) other;\n\t\t\t\n\t\t\tif(this.startx == that.startx && this.starty == that.starty && this.endx == that.endx && this.endy == that.endy){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if(this.startx == that.endx && this.starty == that.endy && this.endx == that.startx && this.endy == that.starty){\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "@Test\n\tpublic void testEqualsObject_True() {\n\t\tbook3 = new Book(DEFAULT_TITLE, DEFAULT_AUTHOR, DEFAULT_YEAR, DEFAULT_ISBN);\n\t\tassertEquals(book1, book3);\n\t}" ]
[ "0.7117045", "0.6682753", "0.65281045", "0.64903504", "0.6331139", "0.6309744", "0.62631637", "0.61818427", "0.60870874", "0.6039581", "0.60255325", "0.6021177", "0.59901655", "0.59624124", "0.59495634", "0.59410053", "0.5938543", "0.59281904", "0.5894859", "0.58879435", "0.58856106", "0.5877296", "0.58758795", "0.58736867", "0.58667386", "0.585385", "0.58427626", "0.58362424", "0.58212256", "0.58079225", "0.58012533", "0.578892", "0.57865006", "0.57783777", "0.5767475", "0.57435745", "0.5738301", "0.57177556", "0.5716781", "0.57058495", "0.5701933", "0.57005644", "0.5698254", "0.5683569", "0.56833065", "0.5681529", "0.5673241", "0.56473595", "0.5632003", "0.56278944", "0.56224364", "0.56197053", "0.5618743", "0.5612067", "0.5596091", "0.5591539", "0.55911905", "0.55895394", "0.5577398", "0.5574476", "0.55651814", "0.5553742", "0.5549662", "0.5533557", "0.5525146", "0.5522757", "0.55220664", "0.55213493", "0.55211407", "0.55201733", "0.5520016", "0.551191", "0.550636", "0.55055666", "0.550466", "0.5504607", "0.54941815", "0.54876363", "0.5480587", "0.5479278", "0.5476736", "0.5473556", "0.5469117", "0.546449", "0.5462395", "0.5460428", "0.5459904", "0.5455127", "0.5453943", "0.545162", "0.5438678", "0.54364836", "0.5436288", "0.54362756", "0.5433223", "0.5427191", "0.5423844", "0.5423604", "0.5420842", "0.54205525" ]
0.7501097
0
method to reverse the string
public static char[] reverseString(char[] temp, int start, int end) { int mid = (start + end) / 2; for (int i = start; i <= mid; i++) { char tempSwapChar = temp[i]; temp[i] = temp[end + start - i]; temp[end + start - i] = tempSwapChar; } return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String reverse() {\n\t\tint len = theString.length();\n\t\tString s1 = \"\";\n\t\tfor (int i = len - 1; i >= 0; i--) {\n\t\t\ts1 = s1 + theString.charAt(i);\n\t\t}\n\t\t// System.out.println(s1);\n\n\t\treturn s1;\n\t}", "private static String reverse(String in){\n\t\tString reversed = \"\";\n\t\tfor(int i = in.length() - 1; i >= 0; i--){\n\t\t\treversed += in.charAt(i);\n\t\t}\n\t\treturn reversed;\n\t}", "public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of the new string\n for (int i = input.length() - 1; i >= 0; i--) {\n output = output + input.charAt(i);\n }\n \n return output;\n}", "public static void Rev_Str_Fn(){\r\n\t\r\n\tString x=\"ashu TATA\";\r\n\t\r\n\tStringBuilder stb=new StringBuilder();\r\n\tstb.append(x);\r\n\tstb.reverse();\r\n\tSystem.out.println(stb);\r\n}", "String reverseMyInput(String input);", "public static String reverse(String st) {\n\t\t\n\t\tif(st == null || st ==\"\") {\n\t\t\treturn st;\n\t\t}\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int i=st.length()-1; i>=0; i--) {\n\t\t\tbr.append(st.charAt(i));\n\t\t}\n\t\treturn br.toString();\n\t}", "public String reverse(String input) \n {\n \tString outputt = \"\";\n \t//Finds the length of the string input\n \tint i = input.length();\n \t\n \tif (input == \"\")\n \t{\n \t\treturn outputt;\n \t}\n \telse\n \t{\n \t\t//Goes letter by letter building the string backwards\n \t\tfor (int c = 0; c < i; c++)\n \t\t{\n \t\tString a_letter = Character.toString(input.charAt((i - c -1)));\n \t\toutputt = (outputt + a_letter);\n \t\t}\n \t\treturn outputt;\n \t\t//return new StringBuffer(input).reverse().toString();\n \t}\n }", "public IDnaStrand reverse();", "public static void reverseUsingCustomizedLogic(String str) {\n\t\tint strLength = str.length();\n\n\t\tStringBuilder strBuilder = new StringBuilder();\n\n\t\tfor (int i = strLength - 1; i >= 0; i--) {\n\t\t\tstrBuilder = strBuilder.append(str.charAt(i));\n\t\t}\n\t\tSystem.out.println(\"str value after reverse using customized logic : \" + strBuilder.toString());\n\t}", "public String reverse()\n {\n Stack<String> words = new Stack<String>() ;\n char[] r = s.toCharArray() ;\n StringBuffer sb = new StringBuffer() ; \n String[] w = s.split(\" \");\n \n for(String c : w)\n {\n words.push(c) ;\n }\n while(!words.isEmpty())\n {\n \n \tsb.append(words.pop()) ;\n \n sb.append(\" \") ;\n }\n return sb.substring(0, s.length()) .toString();\n }", "void reverse(string str) \n{ \n for (int i=str.length()-1; i>=0; i--) \n cout << str[i]; \n}", "public String reverse(String input) {\n\t\t// Write your solution here.\n\t\tchar[] arr = input.toCharArray();\n\t\tint left = 0, right = input.length() - 1;\n\t\thelper(arr, left, right);\n\t\treturn new String(arr);\n\t}", "public static String reverse(String str) {\n String retStr = \"\"; //final string\n for (int i = str.length(); i > 0; i--) { //for loop starting from the end of the string\n retStr += str.substring(i-1,i);\n }\n return retStr;\n }", "static String reverse3(String s)\n\t{\n\t\tString reverseStr = new StringBuffer(s).reverse().toString();\n\t\treturn reverseStr;\n \n\t}", "@Test\n\tvoid testReverseString() {\n\t\tReverseString tester = new ReverseString();\n\t\tchar[] input = new char[] { 'h', 'e', 'l', 'l', 'o' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'o', 'l', 'l', 'e', 'h' }, input);\n\n\t\tinput = new char[] { 'H', 'a', 'n', 'n', 'a', 'h' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'h', 'a', 'n', 'n', 'a', 'H' }, input);\n\n\t\tinput = new char[] { 'H' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'H' }, input);\n\n\t\tinput = new char[0];\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[0], input);\n\t}", "public static String reverse( String s ) {\n String s2 = \"\";\n for (int i = s.length() -1; i >= 0; i--) { // start at the end of the string; keep going while i>= 0; decriment i\n s2 = s2 += s.charAt(i);\n }\n return s2;\n }", "public static String reverse(String s){\n \tif(s.length()==0)\n return s;\n else{\n \treturn reverse(s.substring(1))+s.substring(0,1);\n }\n }", "public static String reverse(String s)\n\t{\n\t\tStringBuilder stb = new StringBuilder(s);\n\t\treturn stb.reverse().toString();\n\t}", "public String reverse(String s) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = s.length() - 1; i >= 0; i--) {\n\t\t\tchar charS = s.charAt(i);\n\t\t\tbuilder.append(charS);\n\t\t}\n\t\treturn builder.toString();\n\t}", "public void StringReverse(String parameter){\n String str=parameter;\n String[] arr=str.split(\"\\\\s+\");\n for(int i=0;i<arr.length;i++){\n arr[i]=arr[i].replaceAll(\"[^\\\\w]\", \"\");\n }\n reverser(arr);\n\n String output=new String();\n for(int i=0;i<arr.length;i++){\n output=output+arr[i]+\" \";\n }\n System.out.println(output);\n }", "static String stringReverser( String inputString) {\n\t\t// Create an char array of given String \n char[] ch = inputString.toCharArray();\n // Initialize outputString; \n String outputString = \"\";\n // Go through the characters within the given input string, from last to first, and concatinate it to the output String\n for (int i = ch.length -1; (i >= 0) ; i--) {\n \toutputString += ch[i]; \n }\n\t\treturn outputString;\n\t}", "public String reverse(String input) {\n if (input == null || input.length() <= 1) {\n return input;\n }\n char[] array = input.toCharArray();\n int slow = 0;\n int fast = array.length - 1;\n while (slow < fast) {\n swap(array, slow, fast);\n slow++;\n fast--;\n }\n return new String(array);\n }", "public static String reverse(String s)\n {\n return new StringBuilder(s).reverse().toString();\n }", "public static String reverseStr( String str ){\n //your code goes here\n if (str == null || \"\".equalsIgnoreCase(str)){\n return str;\n }\n\n String reverse = \"\";\n for (int i = 0; i < str.length(); i++){\n reverse += str.charAt(str.length()-1-i);\n }\n\n return reverse;\n }", "public static String reverse(String str)\n {\n // return if string is null or empty\n if (str == null || str.equals(\"\"))\n return str;\n \n // variable to store the reversed string\n String rev = \"\";\n \n // use string concatenation operator to build reversed string by\n // reading character from the end of the original string\n for (int i = str.length() - 1; i >=0 ; i--)\n rev += str.charAt(i);\n \n return rev;\n }", "public String reversestring(String inputstring){\n String originalstring = inputstring; //Originial String\n int n = originalstring.length(); //Length of the string\n String answer=\"\";\n\n for(int i=n-1;i>=0;i--){\n System.out.print(originalstring.charAt(i));\n answer += originalstring.charAt(i) + \" \";//Reversing the string\n }\n answer = answer.trim();\n return answer;\n }", "public static String reverseString(String s) {\n\t\tString reverse = \"\";\n\t\tint length = s.length();\n\t\t\n\t\tfor(int i=0; i<length; i++){\n\t\t\t//reverse += (s.charAt(length-1-i) + \"\");\n\t\t\treverse = reverse.concat(s.charAt(length-i-1) + \"\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn reverse;\n \n }", "public static void main(String[] args) {\n String str = null;\n //String str = \"My Name Is Aakash\";\n //String str = \"!@@#$%^&*()+_)(*&^%$#@!@#$%^&*(_)(*&^%$%^&**&^%$#$%^&*&^%$##$%^&*&^%$\";\n //String str = \"_sakdkjashdksahkdhjksahdkjakjshdkjahsdkaskdkasdjhasjhckhagcuagskdjkasdjkaskjdhjkashdkjhakjdjkasdkaskjdajksdhjkashdjkahsjkdhjkasckjackhaduihcadlcdjcbkjsbdcjksdjkckjsdcjksdnjkcnjksdhckjsdhjkvsdjvnkjdsbvjkdsvkjdshkhsdkfheklwjfbjkwegfwegfiuwekjfbewjkhfgwejyfguiwejfbwekhfgywegfkjewbhjfgewjfgewhjfjhewgf\";\n\n System.out.println(reverseString(str));\n }", "static void reverse(StringBuffer str)\n\t {\n\t\t Stack<Character> s = new Stack<Character>();\n\t\t int len = str.length();\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t s.push(str.charAt(i));\n\t\t }\n\t\t \n\t\t //pop the string and print it\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t System.out.print(s.pop());\n\t\t }\n\t }", "public static String reverseWithStaticMethod(String str) {\n return new StringBuilder(str).reverse().toString();\n\n }", "private static String reverseString(String s) \r\n\t{\r\n\t\tif(s.length() == 1)\r\n\t\t\treturn s;\r\n\t\treturn \"\" + s.charAt(s.length() - 1) + reverseString(s.substring(0, s.length() - 1));\r\n\t}", "void reverse();", "void reverse();", "public static String reverse(String str){\n String result=\"\";//\"CBA\"\n\n for (int i = str.length()-1; i>=0; i--) {\n result+=str.charAt(i);\n }\n return result;\n }", "public String reverse(String input) {\n char[] carr = input.toCharArray();\n reverse(carr, 0 ,carr[carr.length - 1]);\n return String.valueOf(carr);\n }", "public static String reverseString(String input) {\r\n\t\tString reversed = \"\";\r\n\t\tfor (int i = input.length() - 1; i >= 0; i--) {\r\n\t\t\treversed += input.charAt(i);\r\n\t\t}\r\n\t\treturn reversed;\r\n\t}", "public String reverseInput(String input)\n\t{\n\t\tif(input==null)\n\t\t\treturn null;\n String reverseString=\"\";\n for(int i=input.length()-1;i>=0;i--)\n {\n \treverseString+=input.charAt(i);\n }\n return reverseString;\n\t}", "@Test\n public void reverseString_passString_ReturnReversedString() {\n String output = Java8Streams.reverseString(\"java interview\");\n\n assertThat(output).isEqualTo(\"weivretni avaj\");\n }", "public static void reverseUsingStringBuilder(String str) {\n\n\t\tStringBuilder revStrBuilder = new StringBuilder(str);\n\t\tString revStr = revStrBuilder.reverse().toString();\n\n\t\tSystem.out.println(\"str value after reverse using JAVA API: \" + revStr);\n\t}", "public String reverse(String s) {\n String ret = \"\";\n for(int i = 0; i < s.length; i+= 1) {\n ret = s.charAt(i) + ret; //this will go in reverse as the next character will appear before the previously placed ret character.\n }\n return ret;\n}", "private String reverseString(String s) {\n char[] c = s.toCharArray();\n int i = 0, j = s.length() - 1;\n while (i < j) {\n if (c[i] != c[j]) {\n c[i] ^= c[j];\n c[j] ^= c[i];\n c[i] ^= c[j];\n }\n ++i;\n --j;\n }\n return new String(c);\n }", "public static String reverse(String input)\n\t{\n\t\tif(input.length()==0) return input;\n\t\tStringBuilder s = new StringBuilder();\n\t\treturn s.append(input.substring(1)).append(input.charAt(0)).toString();\n\t}", "public static String reverse(String str){\n if(str.equals(\"\")){\n return str;\n }\n //must make problem simpler\n String firstChar = str.substring(0,1);\n String restOfString = str.substring(1);\n\n //recurse - calling this method with a simpler problem\n String restOfStringReversed = reverse(restOfString);\n\n String strReversed = restOfStringReversed + firstChar;\n return strReversed;\n }", "public static String reverse(String text) {\n String helper=\"\";\n int a=0;\n \n \n while (a < text.length()){\n helper = helper + text.charAt(text.length() - (1+a));\n a++;\n }\n return helper;\n }", "String str(String strR) {\n\t\tString rev = \"\";\n\t\tfor (int i = strR.length(); i >0; i--) {\n\t\t\trev = rev + strR.substring(i - 1, i);\n\t\t}\n\t\treturn rev;\n\t}", "private static String reverseString(char[] str, int begin, int end) {\n\t\tfor(int i = 0; i < (end-begin)/2; i++){\n\t\t\tchar temp = str[begin+i];\n\t\t\tstr[begin+i] = str[end-i-1];\n\t\t\tstr[end-i-1] = temp;\n\t\t}\n\t\treturn new String(str);\n\t}", "public static String reverseString(String input) {\n\t\tStringBuffer output=new StringBuffer();\n\t\tchar[] charArray = input.toCharArray();\n\t\tfor (int i = charArray.length-1; i >= 0; i--) {\n\t\t\toutput.append(charArray[i]);\n\t\t}\n return output.toString();\n\t}", "private void reverse(StringBuffer s)\n {\n s.reverse();\n String k = s.toString();\n String tokens[] = k.split(\" \");\n for(int i=0;i<tokens.length;i++)\n {\n StringBuffer temp = new StringBuffer(tokens[i]);\n System.out.print(temp.reverse()+\" \");\n }\n //Normal method\n /*String[] words = s.split(\" \");\n int i = words.length-1;\n while(i>=0)\n {\n System.out.print(words[i]+\" \");\n i--;\n }*/\n }", "public void reverseString(char[] s) {\n for(int i = 0; i < s.length/2; i++){\n char temp = s[i];\n s[i] = s[s.length-(i+1)];\n s[s.length-(i+1)] = temp;\n \n }\n \n \n }", "String reverse(String first) {\n\t String reverse = \"\";\n\t for (int i = first.length()-1; i>=0; i--) {\n\t reverse = reverse+first.charAt(i);\n\t }\n\t return reverse;\n\t }", "String reverseTheString(String str)\n {\n \n char s[] = str.toCharArray();\n char temp [] = new char[s.length];\n \n int j = 0; \n for (int i = s.length - 1; i >=0; i--)\n {\n temp[j++] = s[i];\n }\n return new String(temp) ; \n }", "@Test\n\tpublic void RevStr() {\n\n\t\tString str = \"i am the tester\";\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\t\t\tSystem.out.println(str.charAt(i));\n\t\t}\n\n\t}", "public static String reverseString(String input) {\r\n\t\tif(input==null)\r\n\t\t\t\treturn null;\r\n\t\t\r\n\t\tchar [] inputCharacter = input.toCharArray();\r\n\t\tint inputLength = inputCharacter.length;\r\n\t\t\r\n\t\tfor(int i=0; i<inputLength/2 ;i++){\r\n\t\t\tchar temp = inputCharacter[i];\r\n\t\t\tinputCharacter[i] = inputCharacter[inputLength-1-i];\r\n\t\t\tinputCharacter[inputLength-1-i] = temp;\r\n\t\t}\r\n\t\treturn new String(inputCharacter);\r\n\t}", "public static final String reverseString2(final String inString){\n\t\tif (inString==null || inString.length()==0) return inString;\r\n\t\tchar[] cStringArray=inString.toCharArray();\r\n\t\tchar first;\r\n\t\tfor (int i=0;i<(cStringArray.length/2);i++){\r\n\t\t\tfirst = cStringArray[ i ];\r\n\t\t\tcStringArray[ i ] = cStringArray[ cStringArray.length - i - 1 ];\r\n\t\t\tcStringArray[ cStringArray.length - i - 1 ] = first;\r\n\t\t}\r\n\t\treturn String.valueOf(cStringArray);\r\n\t}", "public static void main(String[] args) {\n\n StringBuilder lz = new StringBuilder(\"Led Zeppelin\");\n lz.reverse();\n System.out.println(lz);\n\n String lz2 = \"Led Zeppelin\";\n// System.out.println(lz2.reverse()); // does not compile\n\n }", "public static void main(String[] args) {\n \n String str1 = \"hello, return olleh\";\n \n System.out.println( \"ReverseString ans: \" + reverseStr(str1)); \n \n }", "public static String reverse(String sentence)\n {\n // Complete this method. Use a Stack.\n ...\n\n\n\n\n\n\n }", "public static String reverse(String inputString) {\n\t\tif (inputString.length() == 1) {\n\t\t\treturn inputString;\n\t\t} \n\t\tint len = inputString.length();\n\t\treturn inputString.substring(len-1,len) \n\t\t\t+ RecursiveStringReverser.reverse(inputString.substring(0,len-1));\n\t}", "public static void main(String[] args) {\n\t\tString str1=\"A man, a plan, a canal: Panama\";\r\n\t\tSystem.out.println(reverseString(str1));\r\n\t}", "public String reverse(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString result = \"\";\n\t\tint indexCount = string.length()-1;\n\t\t\n\t\twhile(indexCount > -1) {\n//\t\t\tresult += string.charAt(indexCount);\n\t\t\tchar character = string.charAt(indexCount);\n\t\t\t//System.out.println(character);\n\t\t\tresult = result + character;\n\t\t\tindexCount--;\n\t\t}\n\t\t\n\t\t//System.out.println(result);\n\t\treturn result;\n\n\t}", "public static void main(String[] args) {\n StringBuffer s = new StringBuffer(\"GeeksforGeeks\");\n System.out.println(\"Original string is : \" + s );\n //print the reversed string\n System.out.print(\"Reversed string is : \" );\n //call reverse method\n reverse(s);\n\t}", "@Test\n\tpublic void checkReverseString()\n\n\t{\n\t\tassertEquals(\"nitin si a doog yob \",test.testReverseString(\"nitin is a good boy\"));\n\t\t\n\t}", "public static String reverseString2(String s) {\n\t\tint length = s.length();\n\t\tchar[] arr = s.toCharArray();\n\t\t\n\t\tfor(int i=0; i< length / 2; i++){\n\t\t\tchar temp = arr[i];\n\t\t\tarr[i] = arr[length-1-i];\n\t\t\tarr[length-1-i] = temp;\n\t\t}\n\t\t\n\t\n\t\treturn new String(arr);\n\t\t\t\n\t}", "public void reverseString(char[] s) {\n for(int i = 0, j = s.length - 1; i < s.length / 2; i++,j--){\n //temporary holder\n char temp = s[j];\n //swap characters\n s[j] = s[i];\n s[i] = temp;\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString str=\"Ali Can\";\r\n\t\t\r\n\t\tString reverse=\"\";\r\n\t\t\r\n\t\tfor(int i=str.length()-1;i>=0;i--) {\r\n\t\t\treverse=reverse+str.charAt(i);\r\n\t\t}\r\n\t\tSystem.out.println(reverse);\r\n\t}", "public String reverse() {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n String input = \"Lukman\";\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n //input1.append(input);\n\n // reverse StringBuilder input1\n //input1 = input1.reverse();\n\n // print reversed String\n int len = input.length() - 1;\n for (int i = len; i >= 0; --i) {\n input1.append(input.charAt(i));\n }\n System.out.println(\"Reverse:\" + input1);\n }", "private static void reverseWord(String word) {\n // StringBuild.reverse()\n System.out.println(new StringBuilder(word).reverse().toString());\n\n // Add char one by one iteration method\n StringBuilder reversed = new StringBuilder();\n char[] chars = word.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n reversed.append(chars[chars.length - i - 1]);\n }\n System.out.println(reversed.toString());\n }", "static void findReverseString(String string){\n\t\tfor (int i = string.length() -1; i >= 0; i--) {\n\t\t\tSystem.out.print(string.charAt(i));\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tStringReverse m = new StringReverse();\n\t\t//char[] a = {'A',' ','m','a','n',',',' ','a',' ','p','l','a','n',',',' ','a',' ','c','a','n','a','l',':',' ','P','a','n','a','m','a'};\n\t\tchar[] a = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tSystem.out.println(m.reverseString(a));\n\t}", "static void reverseString(String s){\n\tString[] words=s.split(\" \");\n\tString ReverseString=\"\";\n\tfor(int i=0;i<words.length;i++)\n\t{\n\t\tString word=words[i];\n\t\tString reverseword=\"\";\n\t\tfor(int j=word.length()-1;j>=0;j--){\n\t\t\treverseword=reverseword+word.charAt(j);\n\t\t}\n\t\t\n\t\tReverseString=ReverseString+reverseword+\"\";\n\t}\n\tSystem.out.println(s);\n\tSystem.out.println(\"ReverseString is - \" +ReverseString);\n\t\n}", "@org.junit.Test\n\tpublic void testingStringReverse() {\n\t\tString result=object.reverseString(\"Game of Thrones\");\n\t\tassertEquals(\"senorhT fo emaG\",result );\n\t}", "public static String reverser(String line) {\n String result=\"\";\n for (int i = line.length()-1; i >=0 ; i--) {\n result += line.charAt(i);\n }\n return result;\n}", "public static void main(String[] args) {\n\t\tString s = \"I am Ritesh Kumar\";\r\n \r\n\t\tString to = StringRecusiveReverse.reverseMe(s);\r\n\t\tString to1 = StringRecusiveReverse.recursiveReverseString(s);\r\n\t\tSystem.out.println(to);\r\n System.out.println(to1);\r\n /*StringTokenizer st=new StringTokenizer(s);\r\n while(st.hasMoreTokens()) {\r\n \ts1=st.nextToken(); \r\n \tSystem.out.println(s1);\r\n }*/\r\n String[] s1=s.split(\" \");\r\n \r\n for(int i=s1.length-1;i>=0;i--)\r\n \tSystem.out.println(s1[i]);\r\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Pooja\";\n\t\tchar str1[] = str.toCharArray();\n\t\tString reverse = \"\";\n\t\t\n\t\tfor (int i = str1.length; i>=0 ; i--) {\n\t\t\treverse = reverse + str1[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(reverse);\n\n\t}", "public static String reverse(String word){\n\t\tStringBuilder result = new StringBuilder();\n\t\tif(word.length() <= 1){\n\t\t\treturn word;\n\t\t}\n\n\t\tfor(int i = word.length() - 1; i >= 0; i--){\n\t\t\tresult.append(word.charAt(i));\n\t\t}\n\t\tguessPW(result.toString());\n\t\treturn result.toString();\n\t}", "static void test_reverse() {\n\n System.out.println( \"\\nTESTS for reverse() : \" );\n\n System.out.print( \"String 'Racecar' returns : \" );\n try { System.out.println(StringStuff.reverse( \"Racecar\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"String 'sbmal EVOL I' returns : \" );\n try { System.out.println(StringStuff.reverse( \"sbmal EVOL I\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n }", "public static String reverseString(String a) {\n StringBuilder stringBuilder = new StringBuilder();\n char[] masiiv = a.toCharArray();\n char[] newchar = new char[a.length()];\n int j = 0;\n for (int i = masiiv.length - 1; i >= 0; i--) {\n stringBuilder.append(newchar[j] = masiiv[i]);\n j++;\n }\n String joinedString = stringBuilder.toString();\n return joinedString;\n }", "public static void main(String[] args)\r\n\t{\n\t\t\tString s;\r\n\t\t\tSystem.out.println(\"Enter a string\");\r\n\t\t\tScanner in=new Scanner(System.in);\r\n\t\t\ts=in.nextLine();\r\n\t\t\tStringBuffer s2=new StringBuffer(s);\r\n\t\t\tfor(int i=0;i<s.length();i++)\r\n\t\t\t{\r\n\t\t\t\ts2.setCharAt(i,s.charAt(s.length()-i-1));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Reverse is \"+s);\r\n\t}", "public static void main(String[] args)\n {\n String input = \"now this was interesting\";\n\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n input1.append(input);\n\n // reverse StringBuilder input1\n input1.reverse();\n\n // print reversed String\n System.out.println(input1);\n }", "private void reverseString(int from, int to) {\n System.out.println(\"from is \" + from + \" to is \" + to);\n char[] input = this.inputString.toCharArray();\n char[] substring = new char[to - from + 1];\n for(int i=0; i < substring.length; i++) {\n substring[i] = input[from++];\n }\n for(int i=0; i < substring.length/2; i++) {\n char temp = substring[i];\n substring[i] = substring[substring.length - i -1];\n substring[substring.length -1 -i] = temp;\n }\n from = from - substring.length;\n for(int i=0; i < substring.length; i++) {\n input[from++] = substring[i];\n }\n inputString = new String(input);\n System.out.println(inputString);\n }", "@Override\n\t\t\t\t\tpublic String call() throws Exception {\n\t\t\t\t\t\treturn reverser.reverseString(target);\n\t\t\t\t\t}", "@Test\n public void reverse_Givenastring_ReverseEachWord()\n {\n\n assertEquals(\"a kciuq nworb xof spmuj revo eht yzal god\",fp.Reversethestring(\"a quick brown fox jumps over the lazy dog\"));\n\n }", "public String reverseLink(String str) {\n int pip = str.indexOf(BundlesDT.DELIM, str.indexOf(BundlesDT.DELIM)+1);\n\treturn str.substring(pip+1,str.length()) + BundlesDT.DELIM + str.substring(0,pip);\n }", "public static void main (String []args){\n\t\tString reverse=\"\";\n\t\tString s=\"ABCDEF\";\n\t\tint length=s.length();\n\t\tSystem.out.println(length);\n\t\tfor (int i=length-1;i>=0;i--)\n\t\t{\n\t\t\treverse=reverse+s.charAt(i);\n\n\t\t}\n\n\n\n\t\t//String reversing with String Builder class\n\n\t\tStringBuilder str= new StringBuilder(\"ReverseNumber\");\n\t\tString\tNewoff= \"\"+str.reverse();\n\t\tSystem.out.println(Newoff);\n\n\n\n\n\t}", "public static String reverseString(String str) {\n StringBuilder reverse = new StringBuilder();\n for (int i = str.length() - 1; i >= 0; i--) {\n reverse.append(str.charAt(i));\n }\n return reverse.toString();\n }", "public String getReverse() {\r\n return reverse;\r\n }", "public static void reverser(String word) {\n String newStr = \"\";\n for (int i = word.length(); i > 0; i--) {\n newStr += word.substring(i - 1, i);\n }\n System.out.println(newStr);\n }", "public static String reverseEquation(String equation) {\n\t\tString[] parsed = Equation.parseEquation(equation);\n\t\tStringBuilder reversedEqn = new StringBuilder();\n\t\tfor (int i = parsed.length - 1; i >= 0; i--) {\n\t\t\treversedEqn.append(parsed[i]);\n\t\t}\n\t\treturn reversedEqn.toString();\n\t}", "public static void main(String[] args) {\n System.out.println(\"what do you wanna reverse?\");\n Scanner in = new Scanner(System.in);\n String str = in.nextLine();\n StringBuilder ohyeah = new StringBuilder(str);\n System.out.println(\"Here ya go:\");\n System.out.println(ohyeah.reverse().toString());\n\n//option 2 with recursion\n System.out.println(\"what do you wanna reverse?\");\n Scanner in2 = new Scanner(System.in);\n String hey = in2.nextLine();\n String reverseHey = reverse(hey);\n System.out.println(\"Here ya go: \"+ reverseHey);\n }", "public static String reverseWord(String str){\n StringBuilder result = new StringBuilder();\n StringTokenizer tokenizer = new StringTokenizer(str,\"\");\n\n while (tokenizer.hasMoreTokens()){\n StringBuilder sb = new StringBuilder();\n sb.append(tokenizer.nextToken());\n sb.reverse();\n\n result.append(sb);\n result.append(\" \");\n }\n return result.toString(); //converting the StringBuilder into String\n }", "public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the String\");\n\t\tString string=s.nextLine();\n\t\tSystem.out.println(string);\n\t\tString rev=\"\";\n\t\tint length=string.length();\n\t\tfor(int i=length-1;i>=0;i--) {\n\t\t\trev=rev+string.charAt(i);\n\t\t}\n\t\tSystem.out.println(rev);\n\t}", "public static void main(String[] args) {\n\r\n\t\tString s = \"hello my name is john\";\r\n\t\t//System.out.println(reverse(s,0,s.length()-1));\r\n\t\t\r\n\t\tSystem.out.println(reverseWordsAlt(s));\r\n\t}", "public static void main(String[] args) {\nString str=\"Welcome To Coding Ninja\";\n\nSystem.out.println(reverse_each(str));\n\t\t\n\t}", "public static void main(String [] args )\n {\n String org, rev=\"\";\n Scanner scanner = new Scanner(System.in);\n\n System.out.println(\"Enter a string to Reverse\");\n org=scanner.nextLine();\n //input length value\n int length=org.length();\n\n for (int i=length - 1; i >=0; i--)\n rev=rev +org.charAt(i);\n\n System.out.println(\"Reverse of the entered string is:\" +rev);\n }", "public static void main(String[] args) {\n String input = \"DXC technologies limited\";\n\n String revr = \"\";\n for (int z = input.length() - 1; z >= 0; z--) {\n revr = revr + input.charAt(z);\n }\n System.out.println(revr);\n\n\n String splitwords[] = input.split(\" \");\n String reverseword = \"\";\n\n for (int i = 0; i < splitwords.length; i++) {\n String word = splitwords[i];\n String reversewords = \"\";\n\n for (int j = word.length() - 1; j >= 0; j--) {\n reversewords = reversewords + word.charAt(j);\n }\n reverseword = reverseword + reversewords + \" \";\n\n }\n System.out.println(\"traditional method is \" +trim(reverseword));\n\n //return reverseword;\n\n }", "public static void main(String[] args) {\n\t\tString name=\"BEGMYRAT\";\r\n\t\tString reversed=\"\";\r\n\t\t\r\n\t\tfor(int idx=name.length()-1; idx>=0; idx--) {\r\n\t\t\treversed=reversed+name.charAt(idx);\r\n\t\t}System.out.println(reversed);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static String reverse (String s)\n {\n String reversed = \" \";\n for (int i = s.length()-1; i >=0; i--)\n {\n reversed += s.charAt(i);\n }\n return reversed;\n }", "public static void main(String[] args) {\r\n\t\tString str = \"madam\";\r\n\t\tString rev = \"\";\r\n\t\tfor(int i = str.length()-1; i>=0; i--)\r\n\t\t{\r\n\t\t rev = rev+str.charAt(i);\t\r\n\t\t}\r\n\t\tSystem.out.println(rev);\r\n\t\tif(rev.equals(str))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"its a palendrome\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"its not palendrome\");\r\n\t\t}\r\n\t\treverse(\"avinesh\");\r\n\t\t\r\n\r\n\t}", "public static String reverseR(String x) {\n int size = ( x.length() - 1 ) / 2; //variable to hold the midpoint\n String left = x.substring(0,size); //left half of string\n String right = x.substring(size,x.length()); //right half of string\n\n if( x.length() == 1){ //base case, when the string only has one character left\n return x.substring(0,1); //return it\n }\n if( x.length() == 2){ //when the string only has two characters left\n left = x.substring(0,1); //override the values for left and right so no errors are made\n right = x.substring(1,2);\n }\n //this is needed because when splitting the string, one can end up with a 2 length and a 1 length, and to counter for the\n //2 length this code is essential (n is odd)\n if(right.length() == 1 && left.length() == 1){ //if there is only one character in left and right\n return right + left; //return the characters in reverse order\n }\n return reverseR(right) + reverseR(left); //recursive: return right plus left because strings being reversed\n }" ]
[ "0.7891986", "0.7766329", "0.7713166", "0.7538601", "0.7516688", "0.7439146", "0.7375291", "0.73382014", "0.73342735", "0.73226184", "0.7318128", "0.728598", "0.72733617", "0.7237819", "0.7224476", "0.7224201", "0.72198004", "0.7193251", "0.7190085", "0.7180861", "0.71747863", "0.7171109", "0.71573466", "0.71529067", "0.71523166", "0.7144584", "0.71338177", "0.7122737", "0.7097573", "0.7031629", "0.703083", "0.70302343", "0.70302343", "0.7029868", "0.7012086", "0.69959867", "0.6988697", "0.6978315", "0.69635165", "0.6949229", "0.6948843", "0.6931579", "0.69188", "0.6895403", "0.68894833", "0.688639", "0.68837553", "0.6880912", "0.68656987", "0.68546623", "0.68283284", "0.6827154", "0.68241847", "0.6817779", "0.6813523", "0.6810443", "0.68081474", "0.6796546", "0.6787979", "0.67853206", "0.67439246", "0.6736513", "0.6725349", "0.6715306", "0.67065066", "0.67057544", "0.66749316", "0.66710615", "0.66621304", "0.66596276", "0.6646669", "0.66153765", "0.6611721", "0.6607545", "0.6595699", "0.6590427", "0.6573686", "0.6571762", "0.6565177", "0.65619886", "0.65560585", "0.65549284", "0.65535444", "0.65474397", "0.6509356", "0.65026206", "0.6502149", "0.6500635", "0.6487969", "0.6472718", "0.64651877", "0.6423089", "0.64184225", "0.6404673", "0.6392315", "0.6387552", "0.63815343", "0.63773435", "0.637453", "0.63708794", "0.6361084" ]
0.0
-1
/ Maintains the order of the string as well
public static String removeDuplicatesMaintainOrder(String str) { boolean seen[] = new boolean[256]; StringBuilder sb = new StringBuilder(seen.length); for (int i = 0; i < str.length(); i++) { char ch = str.charAt(i); // System.out.println((int)ch); if (!seen[ch]) { seen[ch] = true; sb.append(ch); } } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String fixSorts(String strIn){\r\n\t // get a matcher object\r\n\t matches = ptrnNumbers.matcher(strIn);\r\n\t while (matches.find()){\r\n\t \tstrIn = strIn.substring(0,matches.start())+\" \"+strPrepend+strIn.substring(matches.start()+1);\r\n\t }\r\n\t //System.out.println(\">>>\"+strIn);\r\n\t\treturn strIn;\r\n\t}", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "@Override\n public int compare(String s, String t1) {\n return t1.charAt(t1.length()-1)-s.charAt(s.length()-1);\n// return s.charAt(4);\n\n }", "private ARXOrderedString(String format){\r\n if (format==null || format.equals(\"Default\") || format.equals(\"\")) {\r\n this.order = null;\r\n } else {\r\n try {\r\n this.order = new HashMap<String, Integer>(); \r\n BufferedReader reader = new BufferedReader(new StringReader(format));\r\n int index = 0;\r\n String line = reader.readLine();\r\n while (line != null) {\r\n if (this.order.put(line, index) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+line+\"'\");\r\n }\r\n line = reader.readLine();\r\n index++;\r\n }\r\n reader.close();\r\n } catch (IOException e) {\r\n throw new IllegalArgumentException(\"Error reading input data\");\r\n }\r\n }\r\n }", "private static String sortString(String str) {\n char[] charArray = str.toCharArray();\n java.util.Arrays.sort(charArray);\n return new String(charArray);\n }", "private ARXOrderedString(String[] format){\r\n if (format.length == 0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.length; i++){\r\n if (this.order.put(format[i], i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format[i]+\"'\");\r\n }\r\n }\r\n }\r\n }", "private ARXOrderedString(List<String> format){\r\n if (format.size()==0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.size(); i++){\r\n if (this.order.put(format.get(i), i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format.get(i)+\"'\");\r\n }\r\n }\r\n }\r\n }", "private String traverseForToString() {\n\t\tif (this.root != null)\n\t\t\tpreorderTraverseForToString(this.root);\n\n\t\treturn this.order;\n\t}", "public void sortStringArray() {\n\t\tSystem.out.println(\"PROPERY BELONGS TO ONLY CHILD CLASS!!\");\n\t}", "public String customSortString(String S, String T) {\n order = new HashMap();\n // String length of S\n int lenS = S.length();\n // go through S string.\n for(int i = 0; i < lenS; i++){\n order.put(S.charAt(i), i);\n }\n\n // sort string T\n char[] arrT = T.toCharArray();\n Arrays.sort(arrT, new Comparator<Character>(){\n public int compare(Character a, Character b){\n if(order.get(a) < order.get(b)) return -1;\n if(order.get(a) > order.get(b)) return 1;\n return 0;\n }\n });\n\n return new String(arrT);\n }", "public static void verifyStringsAreInOrder(ArrayList<String> loadedStrings) {\n\t\tHashMap<String, Integer> lastAbbreviationNums = new HashMap<String, Integer>();\n\t\tString lastAbbreviation = \"\";\n\t\tfor (int i : foundStringsIndexList) {\n\t\t\tString abbreviation = extractAbbreviationFromString(loadedStrings.get(i));\n\t\t\tif (!abbreviation.equals(lastAbbreviation)) {\n\t\t\t\tString lettersAbbreviation = lettersAbbreviationAt(abbreviation, 0);\n\t\t\t\tint abbreviationNum = Integer.parseInt(abbreviation.substring(lettersAbbreviation.length()));\n\t\t\t\tInteger lastAbbreviationNum = lastAbbreviationNums.get(lettersAbbreviation);\n\t\t\t\tif (lastAbbreviationNum == null) {\n\t\t\t\t\tif (abbreviationNum != 1)\n\t\t\t\t\t\tSystem.out.println(abbreviation + \" not preceded by any abbreviation\");\n\t\t\t\t} else {\n\t\t\t\t\tif (abbreviationNum != lastAbbreviationNum + 1)\n\t\t\t\t\t\tSystem.out.println(abbreviation + \" preceded by \" + lettersAbbreviation + lastAbbreviationNum);\n\t\t\t\t}\n\t\t\t\tlastAbbreviationNums.put(lettersAbbreviation, abbreviationNum);\n\t\t\t\tlastAbbreviation = abbreviation;\n\t\t\t}\n\t\t}\n\t}", "private static String flipEndChars(String str) {\n if (str.length() < 2) {\n return \"Incompatible.\";\n }\n char firstChar = str.charAt(0);\n char lastChar = str.charAt(str.length() - 1);\n if (firstChar == lastChar) {\n return \"Two\\'s a pair.\";\n }\n return lastChar + str.substring(1, str.length() - 1) + firstChar;\n }", "private String bidirectionalReorder(String text) {\n try {\n Bidi bidi = new Bidi((new ArabicShaping(8)).shape(text), 127);\n bidi.setReorderingMode(0);\n return bidi.writeReordered(2);\n } catch (ArabicShapingException exception) {\n return text;\n }\n }", "public void insertionStringSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && AL.get(possibleIndex - 1).toString().compareTo(temp.toString())>0)\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "private static Order parseFixToOrder(String fixStringOrd) {\n\t\tString[] tOrdParsed = fixStringOrd.split(\"\\\\x01\");\n\t\tOrder newOrd = new Order(tOrdParsed[12].split(\"=\")[1],\n\t\t\t\ttOrdParsed[11].split(\"=\")[1].charAt(0),\n\t\t\t\ttOrdParsed[9].split(\"=\")[1].charAt(0),\n\t\t\t\tDouble.parseDouble(tOrdParsed[10].split(\"=\")[1]),\n\t\t\t\tDouble.parseDouble(tOrdParsed[8].split(\"=\")[1]),\n\t\t\t\ttOrdParsed[4].split(\"=\")[1]);\n\t\treturn newOrd;\n\t}", "@Test\r\n public void test8() {\r\n String s1 = \"Abc\";\r\n String s2 = \"abc\";\r\n String s3 = \"Abcd\";\r\n System.out.println(s1.compareTo(s2));\r\n System.out.println(s1.compareTo(s3));\r\n }", "public static String nameToOrder(String name, boolean lastFirst) {\n\t\tif (name == null)\n\t\t\tthrow new IllegalArgumentException(\"name cannot be null\");\n\t\tif (name.indexOf(',') == -1) {\n\t\t\tif (lastFirst)\n\t\t\t\tname = name.replaceAll(\"(.*?) (.*)\", \"$2, $1\");\n\t\t} else {\n\t\t\tif (!lastFirst)\n\t\t\t\tname = name.replaceAll(\"(.*?), (.*)\", \"$2 $1\");\n\t\t}\n\t\treturn name;\n\t}", "@Override\n\tpublic String sort(String content) {\n\t\treturn null;\n\t}", "public String[] insertionSortString(String[] input){\r\n\t\tString temp=\"\";\r\n\t\tfor(int i=1;i<input.length;i++){\r\n\t\t\tfor(int j=i;j>0;j--){\r\n\t if(input[j-1].compareTo(input[j])>0){\r\n\t \t temp=input[j-1];\r\n\t \t input[j-1]=input[j];\r\n\t \t input[j]=temp;\r\n\t }\r\n\t\t\t}\r\n\t\t}return input;\r\n\t}", "@Override\n\t\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\t\tif(o1.length()-o2.length() != 0) {\n\t\t\t\t\t\treturn o1.length()-o2.length();\n\t\t\t\t\t}else {\n\t\t\t\t\t\treturn o1.compareTo(o2);\n\t\t\t\t\t}\n\t\t\t\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(rearrangeString(\"aab\", 3));\n\t}", "public static void stringManipulations() {\n\t\tString str=\"hello naresh how are you\";\n\t\t// 012345678901234567890123 lengh=23\n\t\tString str2=\"hello naresh how are you\";\n\t\tString str3=\"Hello naresh how are you\";\n\t\t\n\t\tSystem.out.println(\"length of array :\"+str.length());\n\t\tSystem.out.println(\"char at 5th possition :\"+str.charAt(5));\n\t\tSystem.out.println(\"o char possition :\"+str.indexOf(\"o\"));//it si 1st occurance of O\n\t\t//here where the \"o\" possition is found that position will remains skips...\n\t\t//***in interviewer will ask i want 2nd \"o\" position at that time below statement\n\t\t//here directly we can give po\n\t\tSystem.out.println(\"2nd possition is :\"+str.indexOf(\"o\",str.indexOf(\"o\")+2));//2nd occurancy of o\n\t\t//2 nd 3rd occurancy search google\n\t\tSystem.out.println(str.indexOf(\"h\"));\n\t\tSystem.out.println(str.indexOf(\"how\"));\n\t\tSystem.out.println(str.indexOf(\"kjdsnfksd\"));//somany people think o/p is error or some exception but it will give \n\t\t//output is \"-1\"\n\t\t//string comparisum..\n\t\tSystem.out.println(str==str2);\n\t\tSystem.out.println(str==str3);\n\t\tSystem.out.println(str.equalsIgnoreCase(str3));//here cases (capt or small) ignored \n\t\t//substring\n\t\tSystem.out.println(str.substring(6, 12)); //it will give o/p char is in b/w\n\t\t//6 and 16\n\t\tSystem.out.println(str.trim());\n\t\t//it will trim the speaces befor anfter string bt it could not delete between speaces\n\t\tSystem.out.println(str2.replace(\" \", \"_\"));\n\t\tString[] strArray=str.split(\" \");\n\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\tSystem.out.println(strArray[i]);\n\t\t}\n\t}", "@Override\n\t\tpublic int compare(String string1, String string2) {\n\t\t\treturn string1.charAt(string1.length() - 1) - string2.charAt(string2.length() - 1);\n\t\t}", "public String tweakFront(String str) {\n\n if(str.substring(0, 1).equalsIgnoreCase(\"a\")){\n\n if(!str.substring(1, 2).equalsIgnoreCase(\"b\")){\n str = str.substring(0, 1) + str.substring(2,str.length());\n }\n \n }else{\n str = str.substring(1);\n \n if(str.substring(0, 1).equalsIgnoreCase(\"b\")){\n \n }else{\n str = str.substring(1);\n }\n }\n \n \n \n return str;\n \n}", "@Override\n\tpublic String sortString(String input) {\n\t\tchar[] chars = input.toCharArray();\n\t\tArrays.sort(chars);\n\t\tString sorted = new String(chars);\n\t\treturn sorted;\t\n\t}", "public static void main(String[] args) {\n\t\tString str2=\"the string sunrises\";\n\t\tString str=\"the string sunriseS\";\n\t\tString date=\"10-10-1990\";\n\t\tString h=\"hello\";\n\t\tString o=\"world\";\n\t\tint hi = 80;\n\t\tint j = 70;\n\t\tStringBuffer buff=new StringBuffer(str);\nbuff.reverse();\n//System.out.println(str.indexOf('s'));\n//System.out.println(str.indexOf('s',str.indexOf('s')+1));\n//\n//System.out.println(str.indexOf('s',str.indexOf('s',str.indexOf('s')+1)+1));\n\n\n//System.out.println(str.indexOf('s',str.indexOf('s',str.indexOf('s',str.indexOf('s')+1)+1)+1));\nSystem.out.println(str.indexOf('s',str.indexOf('s',str.indexOf('s',str.indexOf('s',str.indexOf('s',str.indexOf('s')+1)+1)+1)+1)));\n\n//System.out.println(str.charAt(1));\n//System.out.println(str.length());\n\nSystem.out.println(str.equals(str2));\nSystem.out.println(str.equalsIgnoreCase(str2));\nSystem.out.println(str.substring(0,2));\nSystem.out.println(str.trim());\nSystem.out.println(str.replace(\"s\",\"fer\"));\nSystem.out.println(date.replace(\"-\",\"/\"));\nSystem.out.println(\"$$$$\");\n String val[]= str.split(\" \");\n for(int i=0;i<val.length;i++)\n {\n\t System.out.println(val[i]); \n\t \n }\n \n System.out.println(buff);\n System.out.println(str2.concat(str));\n System.out.println(h+(hi+j));\n \n\t}", "public static void encode () {\n // read the input\n s = BinaryStdIn.readString();\n char[] input = s.toCharArray();\n\n int[] indices = new int[input.length];\n for (int i = 0; i < indices.length; i++) {\n indices[i] = i;\n }\n \n Quick.sort(indices, s);\n \n // create t[] and find where original ended up\n char[] t = new char[input.length]; // last column in suffix sorted list\n int inputPos = 0; // row number where original String ended up\n \n for (int i = 0; i < indices.length; i++) {\n int index = indices[i];\n \n // finds row number where original String ended up\n if (index == 0)\n inputPos = i;\n \n if (index > 0)\n t[i] = s.charAt(index-1);\n else\n t[i] = s.charAt(indices.length-1);\n }\n \n \n // write t[] preceded by the row number where orginal String ended up\n BinaryStdOut.write(inputPos);\n for (int i = 0; i < t.length; i++) {\n BinaryStdOut.write(t[i]);\n BinaryStdOut.flush();\n } \n }", "public static void isInAlphabeticalOrder(String...a) {\n\t\t\r\n\t\tSystem.out.println(\"In which alphabetical order?\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString order = scan.nextLine();\r\n\t\t\r\n\t\tboolean isFinished = false; //detects an early exit from inner loop\r\n\t\t\r\n\t\t// FIXME: compare characters in same position, but in subsequent strings.\r\n\t\t// may input strings with different lengths.\r\n\t\t// It will most likely throw an out of index exception, need to catch it / handle it\r\n\t\t// or make a custom exception\r\n\t\t// will probably need to check for a null value early.\r\n\t\t// might apply this fix by changing the outer loop to a regular loop, since it will only \r\n\t\t// iterate length() - 1 times.\r\n\t\t\r\n\t\tSystem.out.println(a.length);\r\n\t\t\r\n\t\t//check order\r\n\t\tswitch (order) {\r\n\t\t\tcase \"forward\":\t\t\t// the length method in the next line is for an array.\r\n\t\t\t\tfor (int i = 0; i < a.length -1; i++) { //iterates through all the string pairs provided\r\n\t\t\t\t\tfor (int j = 0; j < a[i].length(); j++) { //iterates through characters in the current string\r\n\t\t\t\t\t\t// if the 2 strings differ in length\r\n\t\t\t\t\t\t// i.e. if the next string is shorter than the current one\r\n\t\t\t\t\t\t// might throw an exception\r\n\t\t\t\t\t\t// NOTE: continue moves to the next iteration of a loop.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// the inner loop breaks if it doesn't find anything out of order.\r\n\t\t\t\t\t\t// it should only iterate through the entire string if the \r\n\t\t\t\t\t\t// characters are identical.\r\n\r\n\t\t\t\t\t\tif (a[i].charAt(j) < a[i + 1].charAt(j)) {\r\n\t\t\t\t\t\t\tbreak; // in order; moves on to next pair of strings\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif (a[i].charAt(j) > a[i + 1].charAt(j)) { // out of order\r\n\t\t\t\t\t\t\tisFinished = true;\r\n\t\t\t\t\t\t\tSystem.out.println(false);\r\n\t\t\t\t\t\t\tbreak; // exit the loop\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (j + 1 == a[i+1].length()) { // check for the end of next string\r\n\t\t\t\t\t\t\t// to avoid an out of bounds exception\r\n\t\t\t\t\t\t\tbreak; // move to the next iteration of the outer loop.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isFinished) { //checks for an early exit in the inner loop\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!isFinished) {\r\n\t\t\t\t\tSystem.out.println(true); //will only occur if an early exit does not occur\r\n\t\t\t\t}\r\n\t\t\t\tscan.close();\r\n\t\t\t\tbreak; //close scanner and exit the loop\r\n\t\t\t\r\n\t\t\tcase \"reverse\":\r\n\t\t\t\tfor (int i = 0; i < a.length -1; i++) { //iterates through all the string pairs provided\r\n\t\t\t\t\tfor (int j = 0; j < a[i].length(); j++) { //iterates through characters in the current string\r\n\t\t\t\t\t\t// if the 2 strings differ in length\r\n\t\t\t\t\t\t// i.e. if the next string is shorter than the current one\r\n\t\t\t\t\t\t// might throw an exception\r\n\t\t\t\t\t\t// NOTE: continue moves to the next iteration of a loop.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// the inner breaks if it doesn't find anything out of order.\r\n\t\t\t\t\t\t// it should only iterate through the entire string if the \r\n\t\t\t\t\t\t// characters are identical.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//FIXME: hitting a[2] when it should not be happening.\r\n\t\t\t\t\t\tif (a[i].charAt(j) > a[i + 1].charAt(j)) {\r\n\t\t\t\t\t\t\tbreak; // in order; moves on to next pair of strings\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif (a[i].charAt(j) < a[i + 1].charAt(j)) { // out of order\r\n\t\t\t\t\t\t\tisFinished = true;\r\n\t\t\t\t\t\t\tSystem.out.println(false);\r\n\t\t\t\t\t\t\tbreak; // exit the loop\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (j + 1 == a[i+1].length()) { // check for the end of next string\r\n\t\t\t\t\t\t\t// to avoid an out of bounds exception\r\n\t\t\t\t\t\t\tbreak; // move to the next iteration of the outer loop.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isFinished) { //checks for an early exit in the inner loop\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!isFinished) {\r\n\t\t\t\t\tSystem.out.println(true); //will only occur if an early exit does not occur\r\n\t\t\t\t}\r\n\t\t\t\tscan.close();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"That's not a good input.\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "static String morganAndString(String a, String b) {\n\n\t\tString result = \"\";\n\n\t\tint pointerA = 0, pointerB = 0;\n\n\t\touter:\n\t\t\twhile ( pointerA < a.length() || pointerB < b.length()){\n\t\t\t\tif ( pointerA == a.length()) {\n\t\t\t\t\tresult = result + b.charAt(pointerB++);\n\t\t\t\t}\n\t\t\t\telse if ( pointerB == b.length()) {\n\t\t\t\t\tresult = result + a.charAt(pointerA++);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchar ca = a.charAt ( pointerA );\n\t\t\t\t\tchar cb = b.charAt ( pointerB );\n\n\t\t\t\t\tif ( ca < cb ) {\n\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( cb < ca ){\n\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Find the smallest successor.\n\t\t\t\t\t\tint extraPointer = 1;\n\t\t\t\t\t\twhile ( pointerA + extraPointer < a.length() && pointerB + extraPointer < b.length()){\n\t\t\t\t\t\t\tchar cEa = a.charAt ( pointerA + extraPointer);\n\t\t\t\t\t\t\tchar cEb = b.charAt ( pointerB + extraPointer);\n\n\t\t\t\t\t\t\tif ( cEa < cEb ){\n\t\t\t\t\t\t\t\tresult = result + cEa;\n\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( cEb < cEa ){\n\t\t\t\t\t\t\t\tresult = result + cEb;\n\n\n\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\textraPointer++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// We got to the point in which both are the same.\n\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() && pointerB + extraPointer == b.length()){\n\t\t\t\t\t\t\t// Both are equal. It doesn't matter which one I take it from.\n\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() ){\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( b.charAt ( pointerB + extraPointer ) > b.charAt ( pointerB + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// The opposite.\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( a.charAt ( pointerA + extraPointer ) > a.charAt ( pointerA + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn result;\n\n\n\t}", "private String[] compareKeys(String currentString) {\n String s1 = \"\";\n String s2 = \"\";\n String[] answer = new String[2];\n for(int i = 0; i < currentString.length(); i++) {\n if(currentString.charAt(i) == '|') {\n s1 = currentString.substring(0,i);\n s2 = currentString.substring(i + 1);\n }\n }\n int compare = s1.compareTo(s2);\n String lesser = \"\";\n String greater = \"\";\n if(compare < 1) {\n lesser = s1;\n greater = s2;\n }\n else{\n lesser = s2;\n greater = s1;\n }\n answer[0] = lesser;\n answer[1] = greater;\n return answer;\n }", "public String[] orderedStringArrayAsc(String[] string) {\n Arrays.sort(string);\n return string;\n }", "public String alienOrder(String[] words) {\n int[] indegree = new int[26];\n //adj list--hashmap\n HashMap<Character, Set<Character>> adjList = new HashMap();\n // 2 major steps\n // buildGraph(words,indegree,adjList );\n \n // initialise the adj list graph with all charac ters in all words\n for(String word:words ){\n for(char c: word.toCharArray()){\n adjList.putIfAbsent(c, new HashSet());\n }\n }// once u fill with init, then u eatblish relationships\n \n // wrt and er \n for(int i=1; i<words.length;i++){\n String first = words[i-1];\n String second = words[i];\n \n // important edge case\n if(first.length()> second.length() && first.startsWith(second))\n return \"\";\n // now compare each char in thos words\n for(int j=0; j< Math.min(first.length(),second.length());j++){\n if(first.charAt(j) != second.charAt(j)){\n // a->b here out=a, in=b\n char out = first.charAt(j);\n char in = second.charAt(j);\n // a->b , so in adj list. we need to insert the valiue if not present\n // if the graph does not contains dependecny, which is in set, u add it else u dont add// since hashset, we can check usinhg contains i guess\n if(! adjList.get(out).contains(in)){\n adjList.get(out).add(in);\n //also increase the indegree if u find the dependency\n indegree[in -'a']++;\n }\n // once it is found , u can break out th e loop\n break;\n \n }// if eqaual we mmove to next char and do the process\n }\n }\n \n \n \n \n \n \n// return topologicalSortDfs(indegree,adjList );\n \n \n \n // we ll use stringbuilder to update the characters instead of string\n // we ll insert all elements into queue who has indegree==0 initially, which means they dont have any dependency so they can come at any time//\n // so insert all indgree==0 into queu and do a stanmdard queue template\n StringBuilder sb = new StringBuilder();\n Queue<Character> q = new LinkedList();\n int totalChars = adjList.size(); // to check at end if all are present\n \n \n // loop thru all keys in graph and check the indegree of that character in indegree if its has zero , if so then add to queue initially\n // initial push to queue\n for(char c: adjList.keySet()){\n if(indegree[c-'a'] == 0){\n \n sb.append(c);\n q.offer(c);// so u need to add all orphan nodes to sb , since it contains results\n }\n \n } \n // now we need to find nodes which has dependency, take it out and reduce the indegree and check if indegreeis zero then add tio queue\n \n // stand ard queue template\n while(!q.isEmpty()){\n // take the elemnt \n char curr = q.poll();\n \n if(adjList.get(curr) == null || adjList.get(curr).size()==0 ){\n // we shud not do antthing, and pick the next nodes in the queue\n continue;\n }\n // if we have some elements in the adj list which means we have a dependency\n // So what do we do here:??\n // i think we can take it and reduce the indgree ??\n // Since we are. removing this particular current element, so we need to reduce all its neighbour indegree becios we removed aos we need to update the indegree of all its neiughbours\n for(char neighbour : adjList.get(curr)){\n indegree[neighbour-'a']--;\n //also check if it becomes zero after update we need to push to queu and sb\n if(indegree[neighbour-'a'] == 0){\n //add to q and sb\n q.offer(neighbour);\n sb.append(neighbour);\n \n }\n }\n \n }\n \n // once we are out of queue, which means we processed all nodes\n // if total chars is sb length, which means we got all chars /nodes so we can return else \"\"\n return sb.length() == totalChars ? sb.toString() : \"\";\n }", "public String alienOrder(String[] words) {\n String order = \"\";\n \n if (words.length == 0 || words == null) {\n return order;\n }\n \n Map<Character, Set<Character>> graph = new HashMap<>();\n Map<Character, Integer> indegree = new HashMap<>();\n \n int size = words.length;\n \n for (String word : words) {\n for (int i = 0; i < word.length(); i++) {\n indegree.put(word.charAt(i), 0);\n }\n }\n \n for (int i = 0; i < size - 1; i++) {\n String curr = words[i];\n String next = words[i + 1];\n \n int minLen = Math.min(curr.length(), next.length());\n \n for (int j = 0; j < minLen; j++) {\n char a = curr.charAt(j);\n char b = next.charAt(j);\n \n if (a != b) {\n Set<Character> hs = graph.computeIfAbsent(a, x -> new HashSet<>());\n if (!hs.contains(b)) {\n hs.add(b);\n indegree.put(b, indegree.getOrDefault(b, 0) + 1);\n }\n // 别忘了 break to save time\n break;\n }\n }\n }\n\n Queue<Character> queue = new LinkedList<>();\n\n for (Map.Entry<Character, Integer> entry : indegree.entrySet()) {\n char c = entry.getKey();\n int count = entry.getValue();\n \n if (count == 0) {\n queue.offer(c);\n }\n }\n \n while (!queue.isEmpty()) {\n char c = queue.poll();\n order += c;\n \n Set<Character> followings = graph.get(c);\n \n if (followings != null) {\n for (char follow : followings) {\n indegree.put(follow, indegree.get(follow) - 1);\n \n if (indegree.get(follow) == 0) {\n queue.offer(follow);\n }\n }\n }\n }\n \n if (order.length() != indegree.size()) {\n return \"\";\n }\n \n return order;\n }", "@Override\n\t\tpublic int compare(String string1, String string2) {\n\t\t\treturn string2.length() - string1.length();\n\t\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"\\n\\nEnter the string to find all possible arrangements (Eg : 'xyz', 'pals', 'palsj' )\\n\\n\");\n\t\t\n\t\tString str = scan.nextLine();\n\t\tscan.close();\n\n\t\tchar[] chArr = str.toCharArray();\n\t\tchar[] temp1 = new char[chArr.length];\n\n\t\ttemp1 = chArr;\n\n\t\tint len = chArr.length;\n \n \n\t\tfor (int cnt = 0; cnt < len; cnt++) {\n\t\t\t\n\t\t\tSystem.out.println(\"letter : \" + temp1[0]);\n\n\t\t\t\n\t\t\tfor (int i = 1; i < len; i++) {\n\n\t\t \ttemp1 = printString(temp1); // to print the first swap\n\t\t\t}\n\n\t\t\ttemp1 = moveString1(temp1, 0);\n\n \n\t\t}\n\n\t}", "@Override\n public int compare(String lhs, String rhs) {\n return lhs.compareTo(rhs);\n }", "public static void main(String[] args) {\n\t\tAString as1 = new AString(\"xd123\");\r\n\t\tAString as2 = new AString(\"OMEGALUL\");\r\n\t\tAString as3 = new AString(\"STRING\");\r\n\t\tString a = \"lol\";\r\n\t\tString b = \"notcool\";\r\n\t\tString c = \"idk\";\r\n\t\tString d = \"abcdefgh\";\r\n\t\tSystem.out.println(AString.reverse(as1.getString()));\r\n\t\tSystem.out.println(AString.merge(as1.getString(), as2.getString()));\r\n\t\tSystem.out.println(AString.merge2(as2.getString(), as3.getString()));\r\n\t\tSystem.out.println(AString.reverse(a));\r\n\t\tSystem.out.println(AString.merge(a, b));\r\n\t\tSystem.out.println(AString.merge2(c, d));\r\n\t}", "protected int stringCompare(String s1,String s2)\r\n\t{\r\n\t\tint shortLength=Math.min(s1.length(), s2.length());\r\n\t\tfor(int i=0;i<shortLength;i++)\r\n\t\t{\r\n\t\t\tif(s1.charAt(i)<s2.charAt(i))\r\n\t\t\t\treturn 0;\r\n\t\t\telse if(s1.charAt(i)>s2.charAt(i))\r\n\t\t\t\treturn 1;\t\r\n\t\t}\r\n\t\t//if the first shrotLenghtTH characters of s1 and s2 are same \r\n\t\tif(s1.length()<=s2.length()) //it's a close situation. \r\n\t\t\treturn 0;\r\n\t\telse \r\n\t\t\treturn 1; \r\n\t\t\r\n\t}", "@Override\n\t\tpublic int compare(String string1, String string2) {\n\t\t\treturn string1.length() - string2.length();\n\t\t}", "private static String zzty(String string2) {\n StringBuffer stringBuffer = new StringBuffer();\n int n = 0;\n while (n < string2.length()) {\n char c = string2.charAt(n);\n if (n == 0) {\n stringBuffer.append(Character.toLowerCase(c));\n } else if (Character.isUpperCase(c)) {\n stringBuffer.append('_').append(Character.toLowerCase(c));\n } else {\n stringBuffer.append(c);\n }\n ++n;\n }\n return stringBuffer.toString();\n }", "@Override\r\n\t\t\tpublic int compare(String s1, String s2) {\n\t\t\t\treturn (s1.length() - s2.length());\r\n\t\t\t}", "public void stringSelectionSort() {\n int nextMin;\n\n for (int i = 0; i < StringList.length - 1; i++) {\n nextMin = i;\n for (int j = i + 1; j < StringList.length; j++) {\n if (StringList[j].compareTo(StringList[nextMin]) < 0)\n nextMin = j;\n }\n if (nextMin != i)\n swapSelectionStrings(StringList, i, nextMin);\n }\n }", "static String sort(String s){\n char[] content = s.toCharArray();\n Arrays.sort(content);\n return new String(content);\n }", "int getCharacterOrdering(char key);", "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}", "public String extraFront(String str) {\r\n String base = str.length() > 2 ? str.substring(0, 2) : str;\r\n\r\n return base + base + base;\r\n }", "@Override\n\t\tpublic int compare(String o1, String o2) {\n\t\t\treturn o1.compareTo(o2);\n\t\t}", "private String process(String str) {\r\n\t\t\tArrayList a = new ArrayList();\r\n\t\t\tArrayList b = new ArrayList();\r\n\t\t\tchar[] qq = str.toCharArray();\r\n\t\t\tfor (int i = 0; i < qq.length; i++) { \r\n\t\t\t\tif (((int)qq[i])==159 || ((int)qq[i])==143) a.add(i);\r\n\t\t\t if (((int)qq[i])==150) b.add(i);\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < a.size(); i++) {\r\n\t\t\t\tstr = str.replace(str.charAt(Integer.valueOf(a.get(i).toString())), '\\\"');\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < b.size(); i++) {\r\n\t\t\t\tstr = str.replace(str.charAt(Integer.valueOf(b.get(i).toString())), '-');\r\n\t\t\t}\r\n\t\t\treturn str;\r\n\t\t}", "private static List<String> sort(String a)\n {\n String temp;\n List<String> list = new ArrayList<String>();\n for(int t = 0; t < a.length(); t++)\n {\n list.add(\"\"+a.charAt(t));\n }\n for(int i = 1; i < list.size(); i++)\n {\n for(int j = i ; j > 0; j--)\n {\n if(list.get(j).charAt(0) < list.get(j-1).charAt(0))\n {\n temp = list.get(j);\n list.set(j,list.get(j-1));\n list.set(j-1,temp);\n }\n \n }\n }\n return list;\n }", "@Override\r\n\tpublic int compare(String str0, String str1) {\n\t\tString[] tempStr0 = str0.split(\",\", 2);\r\n\t\tString[] tempStr1 = str1.split(\",\", 2);\r\n\r\n\t\t// Hilbert code comparison\r\n\t\tint hilbertComparedValue = _hibertComp.compare(tempStr0[0], tempStr1[0]);\r\n\r\n\t\tif (hilbertComparedValue != 0) \r\n\t\t{\r\n\t\t\treturn hilbertComparedValue;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\treturn tempStr0[1].compareTo(tempStr1[1]);\r\n\t\t}\t\t\r\n\t}", "private String sortLetters(String s) {\r\n\t\tchar[] a = s.toCharArray();\r\n\t\tArrays.sort(a);\r\n\t\treturn new String(a);\r\n\t}", "private SortCaseOrder(String strName) { m_strName = strName; }", "@Override \n\tpublic int compare(String str1, String str2) {\n\t\treturn str2.compareTo(str1);\n\t}", "@Override\r\n\tpublic int compare(String o1, String o2) {\n\t\treturn sortChars(o1).compareTo(sortChars(o2));\r\n\t}", "@Override\n public int compare(String o1, String o2) {\n return o1.length() - o2.length();\n }", "static void stringSort(String[] arr) {\n\t\tfor(int i = 0; i<arr.length-1;i++) {\n\t\t\tint index =i;\n\t\t\tfor(int j =i+1; j<arr.length;j++) {\n\t\t\t\tif(arr[j].compareTo(arr[index])<0) {\n\t\t\t\t\tindex = j; //finding the smallest index\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t//Swap the found minimum element with the first element\n\t\t\tString temp = arr[index]; \n arr[index] = arr[i]; \n arr[i] = temp; \n\t\t}\n for(String a:arr) {\n \t\t\tSystem.out.println(a);\n\t}\n\t}", "public String alienOrder(String[] words) {\n String order = \"\";\n\n if (words.length == 0 || words == null) {\n return order;\n }\n\n int size = words.length;\n\n Map<Character, Integer> inDegree = new HashMap<>();\n Map<Character, Set<Character>> graph = new HashMap<>();\n\n // at first, initialize inDegree, all characters' inDegree is 0\n for (String word : words) {\n for (int i = 0; i < word.length(); i++) {\n inDegree.put(word.charAt(i), 0);\n }\n }\n\n // graph\n for (int i = 0; i < size - 1; i++) {\n String curr = words[i];\n String next = words[i + 1];\n\n int minLen = Math.min(curr.length(), next.length());\n\n for (int j = 0; j < minLen; j++) {\n char a = curr.charAt(j);\n char b = next.charAt(j);\n\n if (a != b) {\n // update graph\n Set<Character> hs = graph.computeIfAbsent(a, x -> new HashSet<>());\n // update inDegree, 但是不要加 重 \n if (!hs.contains(b)) {\n inDegree.put(b, inDegree.getOrDefault(b, 0) + 1);\n }\n hs.add(b);\n\n break;\n }\n }\n }\n\n Queue<Character> queue = new LinkedList<>();\n\n for (Map.Entry<Character, Integer> entry : inDegree.entrySet()) {\n char c = entry.getKey();\n int val = entry.getValue();\n\n if (val == 0) {\n queue.add(c);\n }\n }\n\n while (!queue.isEmpty()) {\n char c = queue.poll();\n\n order += c;\n\n Set<Character> subsequentChars = graph.get(c);\n // c is parent to subsequentChars\n // now, remove 1 indegree for all subsequentChars\n if (subsequentChars != null) {\n for (char subsequent : subsequentChars) {\n inDegree.put(subsequent, inDegree.get(subsequent) - 1);\n\n if (inDegree.get(subsequent) == 0) {\n queue.add(subsequent);\n }\n }\n }\n }\n\n if (order.length() != inDegree.size()) {\n return \"\";\n }\n\n return order;\n }", "public int compareTo(XMLString anotherString) {\n/* 242 */ return this.m_str.compareTo(anotherString.toString());\n/* */ }", "@Override\n public int compare(String left, String right) {\n return left.compareTo(right);\n }", "@Override\n\t\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\t\tif(o1.compareTo(o2) < 0){\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}else if(o1.compareTo(o2) > 0){\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "static String reverse3(String s)\n\t{\n\t\tString reverseStr = new StringBuffer(s).reverse().toString();\n\t\treturn reverseStr;\n \n\t}", "private static int compare(String st1, String st2) {\n if (st1.length() < st2.length()) {\n return -1;\n } else {\n return st1.compareTo(st2);\n }\n }", "public String sortOriginOrReturn();", "static String lexography(String s,int k) {\n\t\tString smallest=\"\";\n\t\tString largest=\"\";\n\t\tString temp=\"\";\n\t\tsmallest=largest=s.substring(0, k);\n\t\tint x;\n\t\tfor(int i=1;i<=s.length()-k;i++)\n\t\t{\n\t\t\ttemp=s.substring(i,i+k);\n\t\t\t\n\t\t\tx=temp.compareTo(smallest);\n\t\t\tif(x<0) smallest=temp;\n\t\t\tx=temp.compareTo(largest);\n\t\t\tif(x>0) largest=temp;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t return smallest+\"\\n\"+largest;\n\t}", "@Override\n public int compare(String str1, String str2) {\n String digitRegex = \".*\\\\d+.*\";\n boolean hasDigits1 = str1.matches(digitRegex);\n boolean hasDigits2 = str2.matches(digitRegex);\n int result = -Boolean.valueOf(hasDigits1).compareTo(hasDigits2);\n\n if (result == 0) {\n // Secondary order: length, descending\n result = -Integer.valueOf(str1.length()).compareTo(str2.length());\n }\n\n return result;\n }", "@Override\n public int compare(String o1, String o2) {\n int res = String.CASE_INSENSITIVE_ORDER.compare(o1, o2);\n if (res == 0) {\n res = o1.compareTo(o2);\n }\n return res;\n }", "@Override\n public int compare(String s1, String s2) {\n return s1.compareTo(s2);\n\n }", "@Override\r\n\tpublic int compare(String s1, String s2) {\n\t\treturn s1.length() - s2.length();\r\n\t}", "private static int cmpNotNullFirst( String str1, String str2 )\n \t\t{\n \t\t\tif ( str1==null && str2==null )\n \t\t\t\treturn 0;\n \t\t\tif ( str1==null )\n \t\t\t\treturn 1;\n \t\t\tif ( str2==null )\n \t\t\t\treturn -1;\n \t\t\treturn cmp(str1, str2);\n \t\t}", "@Override\n\t\tpublic int compare(String o1, String o2) {\n\t\t\treturn sort(o1).compareTo(sort(o2));\n\t\t}", "boolean isUniqueUsingSorting(String str) {\n\t\tchar[] array = str.toCharArray();\n\t\t// Sorting the char array take NlogN time\n\t\tArrays.sort(array);\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\t// If adjacent characters are equal, return false\n\t\t\tif (array[i] == array[i + 1]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "static String sortString(String a){\n char[] charInString = a.toCharArray();\n Arrays.sort(charInString);\n return String.valueOf(charInString);\n }", "public static String lineLeader(String s1, String s2, String s3) {\n\t\t\n\t\tString[] last1 = s1.split(\"\");\n\t\tString[] last2 = s2.split(\"\");\n\t\tString[] last3 = s3.split(\"\");\n\t\t\n\t\t\n\t\tString char1 = null;\n\t\tString char2 = null;\n\t\tString char3 = null;\n\t\t\n\t\tString[] abcs = {\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"};\n\t\t\n\t\tfor (int i = 2; i < last1.length; i++) {\n\t\t\tif(!last1[i].equals(\" \") && last1[i - 1].equals(\" \") && !last1[i - 2].equals(\" \")) {\n\t\t\t\tchar1 = last1[i];\n\t\t\t\t//System.out.println(char1);\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 2; i < last2.length; i++) {\n\n\t\t\tif(!last2[i].equals(\" \") && last2[i - 1].equals(\" \") && !last2[i - 2].equals(\" \")) {\n\t\t\t\tchar2 = last2[i];\n\t\t\t\t//System.out.println(char2);\n\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 2; i < last3.length; i++) {\n\n\t\t\tif(!last3[i].equals(\" \") && last3[i - 1].equals(\" \") && !last3[i - 2].equals(\" \")) {\n\t\t\t\tchar3 = last3[i];\n\t\t\t\t//System.out.println(char3);\n\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < abcs.length; i++) {\n\t\t\tif(char1.contains(abcs[i])) {\n\t\t\t\t//System.err.println(s1.replaceAll(\" \", \"\").substring(0, s1.replaceAll(\" \", \"\").length()-1) + \" \" + char1);\n\t\t\t\treturn s1.replaceAll(\" \", \"\").substring(0, s1.replaceAll(\" \", \"\").length()-1) + \" \" + char1;\n\t\t\t}\n\t\t\tif(char2.contains(abcs[i])) {\n\t\t\t\t//System.err.println(s2.replaceAll(\" \", \"\").substring(0, s2.replaceAll(\" \", \"\").length()-1) + \" \" + char2);\n\n\t\t\t\treturn s2.replaceAll(\" \", \"\").substring(0, s2.replaceAll(\" \", \"\").length()-1) + \" \" + char2;\n\t\t\t}\n\t\t\tif(char3.contains(abcs[i])) {\n\t\t\t\t///System.err.println(s3.replaceAll(\" \", \"\").substring(0, s3.replaceAll(\" \", \"\").length()-1) + \" \" + char3);\n\t\t\t\treturn s3.replaceAll(\" \", \"\").substring(0, s3.replaceAll(\" \", \"\").length()-1) + \" \" + char3;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t\t\n\t}", "public String extraFront(String str) {\n\t\tString result=\"\";\r\n\t\t\r\n\t\t//only store result if string has at least 2 characters\r\n\t\t//else if string has less than 2 characters concatenate what there is\r\n\t\tif(str.length()>1) result = str.substring(0, 2) + str.substring(0, 2)\r\n\t\t\t+str.substring(0, 2);\r\n\t\telse result = str+str+str;\r\n\t\treturn result;\r\n\t}", "public String rearrangeString(String str) {\n\t\t Map<Character, Integer> freqMap = new HashMap<>();\n\t\t \n\t\t for(int i = 0; i < str.length(); ++i) {\n\t\t\t char ch = str.charAt(i);\n\t\t\t freqMap.put(ch, freqMap.getOrDefault(ch, 0)+1);\n\t\t }\n\t\t \n\t\t PriorityQueue<Map.Entry<Character, Integer>> maxHeap = \n\t\t\t\t new PriorityQueue<>((a,b) -> Integer.compare(b.getValue(), a.getValue()));\n\t\t \n\t\t for(Map.Entry<Character, Integer> val : freqMap.entrySet()) {\n\t\t\t maxHeap.add(val);\n\t\t }\n\t\t \n\t\t StringBuilder res = new StringBuilder();\n\t\t Map.Entry<Character, Integer> prevEntry = null;\n\t\t while(!maxHeap.isEmpty()) {\n\t\t\t Entry<Character, Integer> currEntry = maxHeap.poll();\n\t\t\t res.append(currEntry.getKey());\n\t\t\t \n\t\t\t if(prevEntry != null && prevEntry.getValue() > 0) {\n\t\t\t\t maxHeap.offer(prevEntry);\n\t\t\t }\n\t\t\t \n\t\t\t currEntry.setValue(currEntry.getValue()-1);\n\t\t\t prevEntry = currEntry;\n\t\t }\n\t\t \n\t\t return res.length() == str.length() ? res.toString() : \"\";\n\t\t \n\t\t\t \n\t\t }", "public void printStringsInLexicoOrder() {\n\t\t// ***** method code to be added in this class *****\n\t\t// now we just have a dummy method that prints a message.\n\n\t\tTreeNode node = root;\n\t\t\n\t\tprintStringsInLexicoOrder(node);\n\t}", "Primary(String str) {\n for (int j = 0; j < str.length(); j++) {\n char c = str.charAt(j);\n\n /**Save separating punctuation*/\n if (c == ' ' || c == ',' || c == '.') {\n this.str += c;\n continue;\n }\n\n /**Searching from '0' to 'z' and passing by some symbols*/\n for (char i = '0'; i <= 'z'; i++) {\n /**Symbols which passing by*/\n if (i == ':') {\n i += 7;\n continue;\n }\n\n /**Symbols which passing by*/\n if (i == '[') {\n i += 5;\n continue;\n }\n\n /**Add to this.str if match is found*/\n if (c == i) {\n this.str += c;\n break;\n }\n }\n }\n }", "private static String cup(String str) {\n\t\treturn str.substring(0,1).toLowerCase() + str.substring(1); \n\t}", "@Override\r\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\tString[] values = o1.split(\";\");\r\n\t\t\t\t//Take the second string and do the same thing\r\n\t\t\t\tString[] values2 = o2.split(\";\");\r\n\t\t\t\t//Compare strings according to their integer values\r\n\t\t\t\treturn Integer.valueOf(values[0].replace(\"\\\"\", \"\")).compareTo(Integer.valueOf(values2[0].replace(\"\\\"\", \"\")));\r\n\t\t\t}", "private SortOrder(String strName) { m_strName = strName; }", "public static void main(String[] args) {\n\n System.out.println(reverseWordOrder(\"Hello World\"));// ->\"World Hello\";\n System.out.println(reverseWordOrder(\"Java is fun\"));// ->\"fun is Java\"\n System.out.println(reverseWordOrder(\"Hi How Are You\")); //->\"You Are How Hi\"\n System.out.println(reverseWordOrder(\"talk is cheap. show me the code\")) ;//->\"code the me show cheap. is talk\"\n\n }", "static String stringReverser( String inputString) {\n\t\t// Create an char array of given String \n char[] ch = inputString.toCharArray();\n // Initialize outputString; \n String outputString = \"\";\n // Go through the characters within the given input string, from last to first, and concatinate it to the output String\n for (int i = ch.length -1; (i >= 0) ; i--) {\n \toutputString += ch[i]; \n }\n\t\treturn outputString;\n\t}", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "public static String orderlyQueue(String s, int k) {\n //Runtime: 9 ms, faster than 5.74% of Java online submissions for Orderly Queue.\n //Memory Usage: 41.4 MB, less than 5.15% of Java online submissions for Orderly Queue.\n\n if (k == 1) {\n String ans = s;\n for (int i = 0; i < s.length(); i++) {\n String temp = s.substring(i) + s.substring(0, i);\n if (temp.compareTo(ans) < 0) {\n ans = temp;\n }\n }\n return ans;\n } else {\n char[] chars = s.toCharArray();\n Arrays.sort(chars);\n return new String(chars);\n }\n }", "public static String sortChars(String str, int type) {\n\t\n\tString nums = \"\";\n\tString lowerCase = \"\";\n\tString upCase = \"\";\n\tString others = \"\";\n\tint ctr = 0;\n\tString newStr = \"\";\n\tint min;\n\tint k = 0;\n\tif(type == 0) {\n\t\tfor( int i = 0; i < str.length(); i++) {\n\t\t\tmin = 128;\n\t\t\tfor( int j = 0; j < str.length(); j++) {\n\t\t\t\tif( str.charAt(j) >= ctr ) {\n\t\t\t\t\tmin = Math.min( min, (int)str.charAt(j) );\n\t\t\t\t\tif( min == (int)str.charAt(j)) {\n\t\t\t\t\t\tk = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\tstr = str.substring(0, k) + (char)127 + str.substring(k+1);\n\t\t\tctr = min;\n\t\t\tnewStr += (char)ctr;\n\t\t\t\n\t\t}\n\t}\n\t\n\telse if(type == 1) {\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\t\n\t\t\tif('0' <= str.charAt(i) && str.charAt(i) <= '9')\n\t\t\t\tnums += str.charAt(i);\n\t\t\telse if('a' <= str.charAt(i) && str.charAt(i) <= 'z')\n\t\t\t\tlowerCase += str.charAt(i);\n\t\t\telse if('A' <= str.charAt(i) && str.charAt(i) <= 'Z')\n\t\t\t\tupCase += str.charAt(i);\n\t\t\telse\n\t\t\t\tothers += str.charAt(i);\n\t\t\t\n\t\t\t}\n\t\tnewStr = lowerCase + upCase + nums + others;\n\t\t}\n\treturn newStr;\n\t\n\t}", "private static String compressString(String str){\n\t\t\n\t\tint sizeComStr = sizeOfCompressedStr(str);\n\t\tint orgLen = str.length();\n\t\tif(sizeComStr>= orgLen)\n\t\t\treturn str;\n\t\t\n\t\tStringBuffer myStr = new StringBuffer();\n\t\tint i=0,j=i+1;\n\t\tint count =1;\n\t\t\n\t\twhile(i<orgLen && j<orgLen){\n\t\t\n\t\t\tif(str.charAt(i) == str.charAt(j)){\n\t\t\t\tcount++;\n\t\t\t\tj++;\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tmyStr.append(str.charAt(i));\n\t\t\t\tmyStr.append(count);\n\t\t\t\ti=j;\n\t\t\t\tcount = 1;\t\n\t\t\t\tj++;\n\t\t\t\tif(j>=orgLen)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tmyStr.append(str.charAt(i));\n\t\tmyStr.append(count);\n\t\t\n\t\treturn myStr.toString();\t\n\t\t\n\t}", "private Set<String> transpositionHelper(String word) {\n\t\tSet<String> transpositionWords = new HashSet<String>();\n\t\tfor (int i = 0; i < word.length() - 1; i++) {\n\t\t\ttranspositionWords.add(word.substring(0, i) + word.substring(i + 1, i + 2) + word.substring(i, i + 1)\n\t\t\t\t\t+ word.substring(i + 2));\n\t\t}\n\t\treturn transpositionWords;\n\t}", "private static Map<String, List<String>> getCustomStringStructure(@NotNull String s) {\n String[] arr = s.split(\" \");\n // the storage\n Map<String, List<String>> map = new TreeMap<>();\n // put the first element in the storage\n List<String> l = new ArrayList<>();\n l.add(arr[0]);\n map.put(arr[0].substring(0, 1), l);\n\n for (int i = 1; i < arr.length; i++) {\n String sub = arr[i].substring(0, 1);\n // if map contains key put String arr[i] in the List\n if (map.containsKey(sub)) {\n map.get(sub).add(arr[i]);\n } else {\n // if not put first letter as a key and arr[i] as a value in the map\n List<String> list = new ArrayList<>();\n list.add(arr[i]);\n map.put(sub, list);\n }\n }\n\n // sort by size, by string's length and alphabetically\n Map<String, List<String>> collect = map.entrySet()\n .stream()\n .filter(k -> k.getValue().size() > 1)\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> e.getValue().stream().sorted((o1, o2) -> {\n if (o2.length() != o1.length()) {\n return o2.length() - o1.length();\n } else {\n return o1.compareTo(o2);\n }\n })\n .collect(Collectors.toList())\n ));\n\n // return TreeMap to sort keys\n return new TreeMap<>(collect);\n }", "public final void zzg(String string2) {\n int n10 = this.position;\n try {\n int n11 = string2.length() * 3;\n n11 = zzbn.zzt(n11);\n int n12 = string2.length();\n n12 = zzbn.zzt(n12);\n if (n12 == n11) {\n this.position = n11 = n10 + n12;\n byte[] byArray = this.buffer;\n int n13 = ((zzbn)this).zzag();\n n11 = zzff.zza(string2, byArray, n11, n13);\n this.position = n10;\n int n14 = n11 - n10 - n12;\n ((zzbn)this).zzo(n14);\n this.position = n11;\n return;\n }\n n11 = zzff.zza(string2);\n ((zzbn)this).zzo(n11);\n byte[] byArray = this.buffer;\n n12 = this.position;\n int n15 = ((zzbn)this).zzag();\n this.position = n11 = zzff.zza(string2, byArray, n12, n15);\n return;\n }\n catch (IndexOutOfBoundsException indexOutOfBoundsException) {\n zzbn$zzc zzbn$zzc = new zzbn$zzc(indexOutOfBoundsException);\n throw zzbn$zzc;\n }\n catch (zzfi zzfi2) {\n this.position = n10;\n this.zza(string2, zzfi2);\n return;\n }\n }", "void mo8715r(String str, String str2, String str3);", "public String alienOrder(String[] words) {\n HashMap<Character, Integer> degrees = new HashMap<Character, Integer>();\n //in BFS, we will create result forward, so we need use \"decides\" relation\n //To avoid add same relationship multiple times, we use HashSet to store nodes\n //Ex: za zb ca cb, both shows relationship a decides b, we don't want have 2 b after a in relations\n HashMap<Character, Set<Character>> hs = new HashMap<Character, Set<Character>>();\n \n String prev = \"\";//prev word\n //fill prerequisites table and degree table\n for(String word : words){\n //we put degree table here to include each char in dict\n for(char c : word.toCharArray()){\n if(!degrees.containsKey(c)) degrees.put(c, 0);\n } \n //then search for the the first char after common part\n for(int i = 0; i < Math.min(prev.length(), word.length()); i++){\n char a = prev.charAt(i), b = word.charAt(i);\n if(a != b){\n //we use \"decides\" relation, so a is key while b is a value in related value set\n //we may not necessary to have prerequisites for each char, so we put it here and \n //no need to include all chars in dict, if some words do not have dependency\n if(!hs.containsKey(a)) hs.put(a, new HashSet<Character>());\n hs.get(a).add(b);\n //then we update incoming edge table (degrees table)\n degrees.put(b, degrees.get(b) + 1);\n \n break;//we only care about first char, so break now\n }\n }\n prev = word;//update prev word\n }\n \n //**second part, use BFS to topologically visit the graph **\n Queue<Character> que = new LinkedList<Character>();\n \n for(Character c : degrees.keySet()){\n //add first series of nodes that do not have incoming edges\n if(degrees.get(c) == 0){\n que.offer(c);\n }\n }\n \n StringBuilder sb = new StringBuilder();\n \n while(!que.isEmpty()){\n Character curr = que.poll();\n sb.append(curr);\n \n //since we may not necessary include all nodes in prerequisites table, we need do boundary check first\n if(!hs.containsKey(curr)) continue;\n //remove outgoing edges from c, add new nodes if all their incoming edges have been removed\n for(Character c : hs.get(curr)){\n degrees.put(c, degrees.get(c) - 1);\n if(degrees.get(c) == 0){\n que.offer(c);\n }\n }\n }\n \n //check the result length with supposed length from keySize()\n //if not same, then there must be some nodes in cycle and did not included to our queue\n return sb.length() == degrees.size()? sb.toString() : \"\";\n }", "void mo13161c(String str, String str2);", "@Override\n\tpublic int compare(String o1, String o2) {\n\t\tif (o1.length() > o2.length()) {\n\t\t\treturn 1;\n\t\t} else if (o1.length() < o2.length()) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif (o1.compareTo(o2) > 0) {\n\t\t\t\treturn 1;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString s1=\"xin chao cac ban\";\n\t\tString s2 = \"hello\";\n\t\tString s3=\"hello\";\n\t\tString s4=\"xin chao\";\n\t\tSystem.out.println(s1.compareTo(s2));\n\t\tSystem.out.println(s3.compareTo(s1));\n\t\tSystem.out.println(s1.compareTo(s4));\n\t\tSystem.out.println(s3.compareTo(s2));\n\t\tSystem.out.println(s3.compareToIgnoreCase(s2));\n\t}", "private static String sortChar(String s) {\n\t\tchar ch[] = new char[s.length()];\r\n\t\tch = s.toCharArray();\r\n\t\tArrays.sort(ch);\r\n\t\treturn new String(ch);\r\n\t}", "public String[] sortString(String input)\n {\n if(input==null)\n {\n return null;\n }\n else {\n //split string by \" \"\n String[] arrInput=input.split(\" \");\n //sort the string array\n Arrays.sort(arrInput);\n return arrInput;\n }\n }", "@Test\n void labTask() {\n String s = \"abczefoh\";\n List<String> result = StringSplitter.labTask(s);\n\n String first = result.get(0);\n assertEquals(3, first.length());\n assertEquals('a', first.charAt(0));\n assertFalse(\"abc\".contains(String.valueOf(first.charAt(1))));\n assertEquals('c', first.charAt(2));\n\n String second = result.get(1);\n assertEquals(2, second.length());\n assertEquals('o', second.charAt(0));\n assertFalse(\"oh\".contains(String.valueOf(second.charAt(1))));\n\n String third = result.get(2);\n assertEquals(3, third.length());\n assertEquals('z', third.charAt(0));\n assertFalse(\"zef\".contains(String.valueOf(second.charAt(1))));\n assertEquals('f', third.charAt(2));\n }", "String checkString(String str) {\n\t\tString output = \"\";\n\t\tfor (int index = str.length() - 1; index >= 0; index--) {\n\t\t\toutput = output + str.charAt(index);\n\t\t}\n\t\treturn output;\n\t}", "@Override\n public int compare(String o1, String o2) {\n return Integer.compare(o2.length(), o1.length());\n }", "void mo1342w(String str, String str2);" ]
[ "0.675269", "0.62548065", "0.62494946", "0.6163735", "0.6006635", "0.5982355", "0.5948568", "0.5945892", "0.59205973", "0.5888132", "0.5870141", "0.58577377", "0.5842117", "0.58283126", "0.5791025", "0.57453287", "0.57260346", "0.5725614", "0.5722164", "0.5719019", "0.56953955", "0.5652649", "0.5643369", "0.5643091", "0.56425923", "0.56402767", "0.56168896", "0.5606867", "0.55892384", "0.5572738", "0.5570377", "0.554501", "0.5542984", "0.5528304", "0.5525674", "0.55222744", "0.55209017", "0.55158013", "0.5495775", "0.5495373", "0.5490398", "0.5489981", "0.54819536", "0.5475112", "0.5474036", "0.5465765", "0.5458477", "0.54572266", "0.5456269", "0.54460377", "0.5444852", "0.5442016", "0.54309624", "0.54263735", "0.54262316", "0.5413001", "0.5397307", "0.53969526", "0.53887385", "0.5386624", "0.5377447", "0.53741527", "0.53739786", "0.5366383", "0.536011", "0.53592527", "0.535916", "0.5358846", "0.5353585", "0.5343882", "0.53397155", "0.5338889", "0.5333262", "0.5331443", "0.5327206", "0.5323722", "0.53228384", "0.53212583", "0.5319134", "0.52817416", "0.5272593", "0.5255637", "0.52471834", "0.5241072", "0.5238921", "0.5237658", "0.5237004", "0.5232587", "0.523171", "0.5222364", "0.52139103", "0.5212134", "0.5211497", "0.52062404", "0.5201672", "0.5201354", "0.519396", "0.5191201", "0.51896745", "0.51896256" ]
0.55733496
29
TODO: add test case to OpsTests
public IntVar scalProd(final List<IntVar> variables, final List<Integer> coefficients) { final IntVar ret = model.newIntVar(Integer.MIN_VALUE, Integer.MAX_VALUE, ""); model.addEquality(ret, LinearExpr.scalProd(variables.toArray(new IntVar[0]), coefficients.stream().mapToInt(Integer::intValue).toArray())); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Operations operations();", "abstract String getOp();", "public void sampleOperation() {\n\t}", "OpList createOpList();", "Operations createOperations();", "String getOp();", "String getOp();", "String getOp();", "public void testOperation();", "private static int run(CommandContext<CommandSource> context, Operation op) throws CommandSyntaxException {\n return run(context, op, IntegerArgumentType.getInteger(context, \"count\"));\n }", "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void test_process_some_stage_operation()\n\t{\n\t}", "public void setOperation(String op) {this.operation = op;}", "boolean isOp();", "public abstract void operation();", "Kernel kernelToTest();", "Object findOperatorNeedCheck();", "public void setOp(String op) {\n this.op = op;\n }", "@LargeTest\n public void testUsageIO() {\n TestAction ta = new TestAction(TestName.USAGE_IO);\n runTest(ta, TestName.USAGE_IO.name());\n }", "String getOperation();", "String getOperation();", "@Test\n public void operator_table() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new DataTableNode(\"t\", typeOf(DataTable.class), typeOf(String.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n context.put(\"t\", new BasicDataTable.Builder<>().build());\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!TABLE\"));\n }", "Operation createOperation();", "Operation createOperation();", "Operator.Type getOperation();", "@Test\n public void operator_class() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new ValueElement(valueOf(Integer.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!java.lang.Integer\"));\n }", "UOp createUOp();", "@Test\n public void chefOrgsTest() {\n // TODO: test chefOrgs\n }", "@Test\n public void operator_context() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new SpecialElement(VertexElement.ElementKind.CONTEXT, typeOf(ProcessorContext.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!CONTEXT\"));\n }", "public void testGetInsDyn() {\n }", "public String getOperation();", "@Override\n public void function() {\n App.memory.setMemory(op2, Memory.convertBSToBoolArr(Memory.length32(Integer.toBinaryString(\n op1 * Integer.parseInt(App.memory.getMemory(op2, 1 << 2 + 2 + 1), 2)))));\n }", "boolean hasOperation();", "public void testGetKernels()\n {\n this.testSetKernels();\n }", "private static boolean validOperation(String op) {\n\t\tfor (String goodOp : validOps) {\n\t\t\tif (goodOp.equalsIgnoreCase(op)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "void applySummary(Operation operation, Method method);", "public interface WriteOpService {\n public void writePropToNode(String resourcePath);\n\n}", "@Override\n protected String operation() {\n Preconditions.checkNotNull(snapshotOperation, \"[BUG] Detected uninitialized operation\");\n return snapshotOperation;\n }", "public boolean rightDistributive( Operator op){\n\t return false;\n }", "Operation getOperation();", "private ExtendedOperations(){}", "@Test\n public void testAdding(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecFile.AddCommand(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n assertEquals(VecCommandType.RECTANGLE, VecFile.GetLastCommand().GetType());\n }", "public void setOp(int op) {\n\t\tthis.op = op;\n\t}", "public static void main(String[] args) {\n\n\n Operation operationAdd = OperationFactory.createOperation(\"+\");\n operationAdd.setValue1(10);\n operationAdd.setValue2(5);\n System.out.println(operationAdd.getResult());\n }", "public void test002CanBeOperated() {\n String[] column = new String[] {\"index_on_icc\"};\n MatrixCursor cursor = new MatrixCursor(column);\n cursor.addRow(new Object[] {new Integer(1024)});\n cursor.moveToFirst();\n\n assertFalse(mManageSimMsg.canBeOperated(cursor));\n }", "@Test\n public void osTypeTest() {\n // TODO: test osType\n }", "public String operator( String op);", "public OpDesc() {\n\n }", "private DiscretePotentialOperations() {\r\n\t}", "OperationCallExp createOperationCallExp();", "protected Container2OperationEvaluator(Container2Operation op) {\r\n this.op = op;\r\n }", "private interface OperationOverNodes {\n\t\tvoid operate(Node node);\n\t}", "int getOperationValue();", "void applyDescription(Operation operation, Method method);", "OpFList createOpFList();", "@Test\n void operations() {\n HotelOperation.scanner = new Scanner(\"1 2 3 4 5 -1\");\n Receptionist res = new Receptionist();\n assertEquals(1,res.Operations());\n assertEquals(2,res.Operations());\n assertEquals(3,res.Operations());\n assertEquals(4,res.Operations());\n assertEquals(5,res.Operations());\n\n }", "public void setOp(Operator op) {\n this.op = op;\n }", "private void checkBinaryOperation(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.getRightOp();\n if(leftSide instanceof Local && rightSide instanceof AbstractBinopExpr) {\n AbstractBinopExpr expr = (AbstractBinopExpr) rightSide;\n FlowAbstraction taint1 = isInTaintedSet(expr.getOp1(), in);\n FlowAbstraction taint2 = isInTaintedSet(expr.getOp2(), in);\n if(taint1 != null || taint2 != null) {\n taint(leftSide, d, out);\n }\n }\n }\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void testCreateIndexType() throws Exception {\n//TODO: Test goes here... \n }", "@Override\n public void startUpOperations() {\n }", "private void test() {\n\n\t}", "@Test\n\tpublic void test() {\n\t\t\n\t\t//first add a instance operation component\n\t\t//Same as the test case in AddInstanceOperationGlobalActionTest\n\t\tPaintPanel panel = new PaintPanel();\n\t\tAddInstanceOperationGlobalAction addInsCompAction = new AddInstanceOperationGlobalAction();\n\t\tassertEquals(0, panel.getPaintComponents().size());\n\t\taddInsCompAction.setConstructorToSet(String.class.getConstructors()[0]);\n\t\taddInsCompAction.execute(panel);\n\t\tassertEquals(1, panel.getPaintComponents().size());\n\t\tassertTrue(panel.getPaintComponents().get(0) instanceof InstanceOperationComponent);\n\t\t\n\t\t//add a method based on the operation component\n\t\tAddInstanceMethodGlobalAction addInsMthAction = new AddInstanceMethodGlobalAction();\n\t\t//specify the instance operation component to add method on\n\t\taddInsMthAction.setInsComp(addInsCompAction.getInsComp());\n\t\t//take the first method of String for example\n\t\taddInsMthAction.setMethodToSet(String.class.getMethods()[0]);\n\t\taddInsMthAction.execute(panel);\n\t\tassertEquals(2, panel.getPaintComponents().size());\n\t\tassertTrue(panel.getPaintComponents().get(1) instanceof MethodPaintComponent);\n\t}", "public static void main(String[] args) {\n\r\n\t\tOperate op=SimpleFactory.getOperate(\"*\");\r\n\t\t\r\n\t\top.number1=1;\r\n\t\top.number2=3;\r\n\t\tSystem.out.println(op.getResult());\r\n\t}", "@Override\n\tpublic void addOperation(Operation op, ColumnOptMetadata optinfo) {\n\t}", "@Override\n public String toString() {\n return op.toString();\n }", "@Test\n public void test_compteAvecOperations(){\n \t\n \tCompte c = serviceCompte.rechercherCompteAvecOperations(1L);\n \tSystem.out.println(\"compte_1 : \"+c);\n \tfor(Operation op : c.getOperations()){\n \t\tSystem.out.println(\"\\t\"+op);\n \t}\n \tAssert.assertTrue(c.getOperations().size()>0);\n }", "@Test\n public void handleCompositeCommand1() {\n }", "private void addOp(final Op op) {\n result.add(op);\n }", "public Operation getOperation();", "public interface Operation {\n}", "OpFunction createOpFunction();", "public boolean isOp ( ) {\n\t\treturn extract ( handle -> handle.isOp ( ) );\n\t}", "@Test\n public void operator_literal() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new ValueElement(valueOf(\"???\")));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!???\"));\n }", "public void setOperation (String Operation);", "public interface Operation{\r\n\tpublic void operate(Integer[] a);\r\n\tpublic String getOperationName();\r\n}", "@Override\n public abstract void runOpMode();", "public static void run_op(int formact) {\n switch (formact) {\n case 2:\n switch (op.toInt()) {\n case 144: //case ADDR\n addr(select_reg(r1), select_reg(r2));\n break;\n case 4: //case CLEAR\n clear(select_reg(r1));\n break;\n case 160: //case COMPR\n compr(select_reg(r1), select_reg(r2));\n break;\n case 156: //case DIVR\n divr(select_reg(r1), select_reg(r2));\n break;\n case 152: //case MULR\n mulr(select_reg(r1), select_reg(r2));\n break;\n case 172: //case RMO\n rmo(select_reg(r1), select_reg(r2));\n break;\n case 164: //case SHIFTL\n shiftl(select_reg(r1), r2.toInt());\n break;\n case 168: //case SHIFTR\n shiftr(select_reg(r1), r2.toInt());\n break;\n case 148: //case SUBR\n subr(select_reg(r1), select_reg(r2));\n break;\n case 184: //case TIXR\n tixr(select_reg(r1));\n break;\n }\n break;\n case 3:\n case 4:\n switch (op.toInt()) {\n case 24: //case ADD\n add(address.toInt());\n break;\n case 64: //case AND\n and(address.toInt());\n break;\n case 40: //case COMP\n comp(address.toInt());\n break;\n case 36: //case DIV\n div(address.toInt());\n break;\n case 60: //case J\n j(address.toInt());\n break;\n case 48: //case JEQ\n jeq(address.toInt());\n break;\n case 52: //case JGT\n jgt(address.toInt());\n break;\n case 56: //case JLT\n jlt(address.toInt());\n break;\n case 72: //case JSUB\n jsub(address.toInt());\n break;\n case 0: //case LDA\n lda(address.toInt());\n break;\n case 104: //case LDB\n ldb(address.toInt());\n break;\n case 80: //case LDCH\n ldch(address.toInt());\n break;\n case 8: //case LDL\n ldl(address.toInt());\n break;\n case 108: //case LDS\n lds(address.toInt());\n break;\n case 116: //case LDT\n ldt(address.toInt());\n break;\n case 4: //case LDX\n ldx(address.toInt());\n break;\n case 32: //case MUL\n mul(address.toInt());\n break;\n case 68: //case OR\n or(address.toInt());\n break;\n case 76: //case RSUB\n rsub();\n break;\n case 12: //case STA\n sta(address.toInt(), formact);\n break;\n case 120: //case STB\n stb(address.toInt(), formact);\n break;\n case 84: //case STCH\n stch(address.toInt(), formact);\n break;\n case 20: //case STL\n stl(address.toInt(), formact);\n break;\n case 124: //case STS\n sts(address.toInt(), formact);\n break;\n case 132: //case STT\n stt(address.toInt(), formact);\n break;\n case 16: //case STX\n stx(address.toInt(), formact);\n break;\n case 28: //case SUB\n sub(address.toInt());\n break;\n case 44: //case TIX\n tix(address.toInt());\n break;\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic Operation createOperation(String opName, String[] params, OperationCallback caller) {\n\t\t\tthrow new RuntimeException(\"Method 'createOperation' in class 'DummyNode' not yet implemented!\");\n\t\t\t//return null;\n\t\t}", "OpFunctionArg createOpFunctionArg();", "String getOr_op();", "private static boolean isBulkOperation(Operation op, Collection<Operation> ops) {\n if (op instanceof GetOperation) {\n GetOperation gop = (GetOperation) op;\n return gop.getKeys().size() > 1;\n } else if (op instanceof StoreOperation) {\n return ops.size() > 1;\n } else if (op instanceof DeleteOperation) {\n return ops.size() > 1;\n }\n return op.isBulkOperation();\n }", "@Override\n public void beforeProc(OperationContext context) throws CommonException {\n\n }", "@Test\n public void testDescSuportedContext() throws Throwable\n {\n testDescDeployment(\"supported\");\n }", "public String getOp() {\n return op;\n }", "public String getOp() {\n return op;\n }", "public String getOperation() {return operation;}", "interface BinaryOperationProvider {\n\n List<BinaryOperation> getBinaryOperations();\n\n void addOperation(BinaryOperation binaryOperation);\n\n void init();\n}", "public interface Operation {\n String description();\n void command();\n}", "public final TestOperation getOperation()\n\t{\n\t\treturn operation_;\n\t}", "public void setOper(String oper) {\n this.oper = oper;\n }", "@Override\n\tprotected void generatePrimitives(SoAction action) {\n\n\t}", "@Override\n\tpublic boolean hasOperation() {\n\t\treturn false;\n\t}", "protected void testAllowedOperations(final String methodName) {\n final OperationsPolicy policy = new OperationsPolicy();\n\n /*[0] Test getEJBHome /////////////////*/\n try {\n mdbContext.getEJBHome();\n policy.allow(OperationsPolicy.Context_getEJBHome);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[1] Test getCallerPrincipal /////////*/\n try {\n mdbContext.getCallerPrincipal();\n policy.allow(OperationsPolicy.Context_getCallerPrincipal);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[2] Test isCallerInRole /////////////*/\n try {\n mdbContext.isCallerInRole(\"TheMan\");\n policy.allow(OperationsPolicy.Context_isCallerInRole);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[3] Test getRollbackOnly ////////////*/\n try {\n mdbContext.getRollbackOnly();\n policy.allow(OperationsPolicy.Context_getRollbackOnly);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[4] Test setRollbackOnly ////////////*/\n // Rollback causes message redelivery\n\n /*[5] Test getUserTransaction /////////*/\n try {\n mdbContext.getUserTransaction();\n policy.allow(OperationsPolicy.Context_getUserTransaction);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[6] Test getEJBObject ///////////////\n *\n * MDBs don't have an ejbObject\n */\n\n /*[7] Test Context_getPrimaryKey ///////////////\n *\n * Can't really do this\n */\n\n /*[8] Test JNDI_access_to_java_comp_env ///////////////*/\n try {\n final InitialContext jndiContext = new InitialContext();\n\n final String actual = (String) jndiContext.lookup(\"java:comp/env/stateless/references/JNDI_access_to_java_comp_env\");\n\n policy.allow(OperationsPolicy.JNDI_access_to_java_comp_env);\n } catch (final IllegalStateException | javax.naming.NamingException ignored) {\n }\n\n /*[11] Test lookup /////////*/\n try {\n mdbContext.lookup(\"stateless/references/JNDI_access_to_java_comp_env\");\n policy.allow(OperationsPolicy.Context_lookup);\n } catch (final IllegalArgumentException ignored) {\n }\n\n allowedOperationsTable.put(methodName, policy);\n\n }", "public int getOp() {\n\t\treturn op;\n\t}", "public boolean leftDistributive( Operator op){\n\t return false;\n }", "protected void testAllowedOperations(final String methodName) {\n final OperationsPolicy policy = new OperationsPolicy();\n\n /*[1] Test getEJBHome /////////////////*/\n try {\n ejbContext.getEJBHome();\n policy.allow(OperationsPolicy.Context_getEJBHome);\n } catch (final IllegalStateException ise) {\n }\n\n /*[2] Test getCallerPrincipal /////////*/\n try {\n ejbContext.getCallerPrincipal();\n policy.allow(OperationsPolicy.Context_getCallerPrincipal);\n } catch (final IllegalStateException ise) {\n }\n\n /*[3] Test isCallerInRole /////////////*/\n try {\n ejbContext.isCallerInRole(\"TheMan\");\n policy.allow(OperationsPolicy.Context_isCallerInRole);\n } catch (final IllegalStateException ise) {\n }\n\n /*[4] Test getRollbackOnly ////////////*/\n try {\n ejbContext.getRollbackOnly();\n policy.allow(OperationsPolicy.Context_getRollbackOnly);\n } catch (final IllegalStateException ise) {\n }\n\n /*[5] Test setRollbackOnly ////////////*/\n try {\n ejbContext.setRollbackOnly();\n policy.allow(OperationsPolicy.Context_setRollbackOnly);\n } catch (final IllegalStateException ise) {\n }\n\n /*[6] Test getUserTransaction /////////*/\n try {\n ejbContext.getUserTransaction();\n policy.allow(OperationsPolicy.Context_getUserTransaction);\n } catch (final Exception e) {\n }\n\n /*[7] Test getEJBObject ///////////////*/\n try {\n ejbContext.getEJBObject();\n policy.allow(OperationsPolicy.Context_getEJBObject);\n } catch (final IllegalStateException ise) {\n }\n\n /*[8] Test getPrimaryKey //////////////*/\n try {\n ejbContext.getPrimaryKey();\n policy.allow(OperationsPolicy.Context_getPrimaryKey);\n } catch (final IllegalStateException ise) {\n }\n\n /* TO DO:\n * Check for policy.Enterprise_bean_access\n * Check for policy.JNDI_access_to_java_comp_env\n * Check for policy.Resource_manager_access\n */\n allowedOperationsTable.put(methodName, policy);\n }", "OperationalState operationalState();", "OperationalState operationalState();", "@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }", "opmodelFactory getopmodelFactory();", "@Test\n public void testCpuMetric() {\n MetricValue mv = new MetricValue.Builder().load(30).add();\n\n CPU_METRICS.forEach(cmt -> testUpdateMetricWithoutId(cmt, mv));\n CPU_METRICS.forEach(cmt -> testLoadMetric(nodeId, cmt, mv));\n }" ]
[ "0.66244227", "0.6142454", "0.5947424", "0.5851325", "0.57841295", "0.57725227", "0.57725227", "0.57725227", "0.57546985", "0.5687989", "0.5666045", "0.56638634", "0.56200725", "0.5608667", "0.552778", "0.5499034", "0.54486233", "0.5392183", "0.53919095", "0.53919095", "0.5382661", "0.53727275", "0.53727275", "0.53389645", "0.5302238", "0.52942926", "0.5259853", "0.5254233", "0.52453274", "0.52317435", "0.5230465", "0.5213503", "0.5211148", "0.5196405", "0.5195826", "0.5195294", "0.5182054", "0.517919", "0.51734674", "0.51698637", "0.51607656", "0.5160242", "0.51578295", "0.5155023", "0.51413476", "0.5139989", "0.5126111", "0.5119109", "0.511866", "0.51147974", "0.51134145", "0.5109674", "0.509995", "0.50958246", "0.50669014", "0.50651515", "0.5043415", "0.5040272", "0.5025094", "0.5023738", "0.5023123", "0.5019698", "0.50121504", "0.5006895", "0.5006313", "0.49972007", "0.49934798", "0.4988485", "0.4988357", "0.4982761", "0.49810472", "0.498081", "0.4978815", "0.49765185", "0.49748394", "0.497127", "0.49653143", "0.49645966", "0.49581894", "0.49569097", "0.49564654", "0.49484017", "0.49477962", "0.4945261", "0.4945261", "0.4943484", "0.49396515", "0.49379128", "0.49299783", "0.49283653", "0.4928281", "0.49257702", "0.4921266", "0.492031", "0.49194562", "0.49155957", "0.49074224", "0.49074224", "0.49067333", "0.4900585", "0.48998922" ]
0.0
-1
private static final String OBFUSCATED_STORAGE = null;
public static String getType(String securityMeasure){ String result = null; switch (securityMeasure) { case AUTHENTICATION: case IDS_HOST: case ACCESS_LOGS: case PERMISSION_MODEL: case RESTORE_POINTS: case RESOURCE_MONITORING:case USER_DATA_ISOLATION: result = VIRTUALISATION; break; case FIREWALL: case IDS_NETWORK: case PUBLICK_KEY: case CERTIFICATE: case WIRELESS_SECURITY: case IOT_DATA_ENCRYPTION: case NODE_ISOLATION_MECHANISMS: result = COMMUNICATIONS; break; case ENCRYPTED_STORAGE: case BACKUP: case OBFUSCATED_STORAGE: result = DATA; break; case AUDIT: result = SECURITY_AUDIT; break; case ANTI_TAMPERING: case ACCESS_CONTROL: result = PHYSICAL; break; default: break; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private InternalStorage() {}", "@Override\n\tpublic String getFileValue() {\n\t\treturn null;\n\t}", "OStorage getStorage();", "public abstract String generateStorageString();", "@Override\n\tpublic void setStorage() {\n\t\tcom.setStorage(\"256g SSD\");\n\t}", "private BlobFromFile() {\n }", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "protected byte[] getBathWaterVolumeSetting3() {return null;}", "protected byte[] getBathWaterVolumeSetting2() {return null;}", "public static String m19634b() {\n String str;\n try {\n str = Environment.getExternalStorageDirectory().getAbsolutePath();\n } catch (Throwable unused) {\n str = null;\n }\n return str == null ? \"\" : str.trim();\n }", "public DefaultStorage() {\n }", "protected byte[] getBathWaterVolumeSetting() {return null;}", "protected String getSharedFileName()\n\t\t{\n\t\t\treturn null;\n\t\t}", "public StorageUnit beStorageUnit();", "public String toStringFile(){\n return null;\n }", "protected byte[] getBathWaterVolumeSetting1() {return null;}", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "public interface DataVar {\n String APP_ROOT_FILE = Environment.getExternalStorageDirectory().getPath()\n + File.separator + \"NoteMyLife\";\n String APP_IMG_FILE = APP_ROOT_FILE + File.separator + \"img\";\n\n //把当前用户的登陆信息保存到本地时的键\n String SP_FILE = \"USER_DATA\";\n String SP_USER_ID = \"userId\";\n String SP_EMAIL = \"userAccount\";\n String SP_PASSWORD = \"userPassword\";\n String SP_HEAD = \"head\";\n String INIT_HEAD_IMAGE_FILE_NAME = \"0.png\";\n}", "public Storage(String s){\n this.path=s;\n }", "@Override\n public File getSaveFile()\n {\n return null;\n }", "public void nonDefaultBucket() {\n FirebaseStorage storage = FirebaseStorage.getInstance(\"gs://my-custom-bucket\");\n // [END storage_non_default_bucket]\n }", "@Model \r\n\tprivate static String getDefaultName() {\r\n\t\treturn \"new_fileSystem\";\r\n\t}", "String getStorageVendor();", "public BlobName() {}", "@Override\n\tpublic String getFileProperties() {\n\t\treturn null;\n\t}", "java.lang.String getArtifactStorage();", "@Override\n protected String getFileName() {\n return null;\n }", "@Override\n protected String getFileName() {\n return null;\n }", "@Override\n protected String getFileName() {\n return null;\n }", "@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }", "public long getUsedStorage() {\n return usedStorage;\n }", "public StringFileManager() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public short getStorageType() {\n\treturn storageType;\n }", "public String getStoragePath() {\n return this.storagePath;\n }", "public Archivo() {\n fos = null;\n oos = null;\n fis = null;\n ois = null;\n }", "public StorageLocation getStorageLocation() {\n return this.storageLocation;\n }", "protected void initStorageDevices() throws OBStorageException, OBException {\r\n OBStorageConfig conf = new OBStorageConfig();\r\n conf.setTemp(false);\r\n conf.setDuplicates(false);\r\n conf.setBulkMode(! isFrozen());\r\n conf.setIndexType(IndexType.HASH);\r\n this.A = fact.createOBStoreLong(\"A\", conf );\r\n if (!this.isFrozen()) {\r\n conf = new OBStorageConfig();\r\n conf.setTemp(false);\r\n conf.setDuplicates(false);\r\n conf.setBulkMode(false);\r\n conf.setRecordSize(fixedRecordSize);\r\n if(fixedRecord){\r\n conf.setIndexType(IndexType.FIXED_RECORD);\r\n }\r\n this.preFreeze = fact.createOBStore(\"pre\", conf);\r\n }\r\n }", "@SuppressWarnings(\"unused\")\n private HsmFileSystemInfo() {\n this((String) null);\n }", "public String NullSave()\n {\n return \"null\";\n }", "public Storage() {\n\n }", "@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}", "private File m5346f() {\n if (Process.myUid() == 1000) {\n return null;\n }\n File file;\n boolean equals;\n try {\n equals = \"mounted\".equals(Environment.getExternalStorageState());\n } catch (Exception e) {\n equals = false;\n }\n if (!C1222aj.m5343c() || equals) {\n File a = C1222aj.m5334a(this.f4232a);\n if (a != null) {\n File file2 = new File(a.getPath() + File.separator + \"carrierdata\");\n if (file2.exists() && file2.isDirectory()) {\n File[] listFiles = file2.listFiles();\n if (listFiles != null && listFiles.length > 0) {\n ArrayList a2 = C1222aj.m5336a(listFiles);\n if (a2.size() >= 2) {\n a = (File) a2.get(0);\n file = (File) a2.get(1);\n if (a.getName().compareTo(file.getName()) <= 0) {\n file = a;\n }\n return file;\n }\n }\n }\n }\n }\n file = null;\n return file;\n }", "public String getFilePath() {\n return null;\n }", "public StorageConfiguration() {\n }", "public PoseurFileManager()\r\n {\r\n // NOTHING YET\r\n currentFile = null;\r\n currentFileName = null;\r\n saved = true;\r\n poseIO = new PoseIO();\r\n }", "Map<String, Object> getTempStorage();", "public void setStorageLocation(String storageLocation) {\n this.storageLocation = storageLocation;\n }", "@Override\n\tprotected String getFileName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String store(InputStream inputStream, String fileName) {\n\t\treturn null;\n\t}", "private DataManager() {\n ref = FirebaseStorage.getInstance().getReference();\n }", "@Override\n\tpublic String getHDD() {\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString getArtifactStorageBytes();", "public int getStorageplace() {\n\treturn storageplace;\n}", "public StorageConfig() {\n }", "private void uploadFromDataStorage() {\n }", "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "@Override\n public boolean isStorageConnected() {\n return true;\n }", "private StorageFacade() {\n }", "public String getFile() {\n return \"null\"; // getFileTopic().getCompositeValue().getTopic(FILE_PATH);\n }", "public Storage getStorage() {\n return this.storage;\n }", "public TFileStorageType getFileStorageType() {\n\n\t\treturn fileStorageType;\n\t}", "public static String GetvDefaultBilibiliSavePath(Context ctx){\n return GetAppDataPathExternal(ctx);\n }", "public File mo12778a() {\n File externalCacheDir = context.getExternalCacheDir();\n if (externalCacheDir == null) {\n return null;\n }\n String str = str;\n return str != null ? new File(externalCacheDir, str) : externalCacheDir;\n }", "private FileUtility() {\r\n\t}", "@Override\r\n public Object getBufferedFileInputStream(String name) {\n return null; \r\n }", "private static File getRemovableStorage() {\n final String value = System.getenv(\"SECONDARY_STORAGE\");\n if (!TextUtils.isEmpty(value)) {\n final String[] paths = value.split(\":\");\n for (String path : paths) {\n File file = new File(path);\n if (file.isDirectory() && path.toLowerCase().contains(\"sd\")) {\n return file;\n }\n }\n }\n return null;\n }", "private void init() {\n cloudAmount = null;\n cloudGenus = null;\n cloudAltitude = null;\n cloudDescription = null;\n }", "private VolumeDataConstants() {\r\n \r\n }", "public Storage() {\n this(null, DEFAULT_MAX, DEFAULT_MAX_SIZE);\n }", "@Override\n String save() {\n return \"\";\n }", "@Override\n\tprotected void disposeBlob() {\n\t\t\n\t}", "public DataStorage getDataStorage();", "long storageSize();", "public interface IBancoDeDados {\r\n String NOME_BANCO_DADOS_FV = \"viagemBolso.db\";\r\n //String NOME_BANCO_DADOS_FV = Environment.getExternalStorageDirectory() + \"/viagemBolso/viagemBolso.db3\";\r\n}", "@Override\n\tpublic Bundle saveData() {\n\t\t\n\t\treturn null;\n\t}", "@Override\r\n \tpublic File getScratchArea() {\n \t\treturn null;\r\n \t}", "public void clearStorage();", "@Override\n\tpublic String store(byte[] data)\n\t{\n\t\treturn null;\n\t}", "private USBConstant() {\r\n\r\n\t}", "public byte[] getObjectdata()\n {\n return null;\n }", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "protected static File m5334a(Context context) {\n return new File(Environment.getExternalStorageDirectory().getPath() + (\"/Android/data/\" + context.getPackageName() + \"/files/\"));\n }", "private FileUtil() {\n \t\tsuper();\n \t}", "@Override\n public Object fileKey() {\n return Void.TYPE;\n }", "private File m5342c(long j) {\n boolean z = false;\n if (Process.myUid() == 1000) {\n return null;\n }\n File file;\n boolean equals;\n try {\n equals = \"mounted\".equals(Environment.getExternalStorageState());\n } catch (Exception e) {\n equals = z;\n }\n if (!C1222aj.m5343c() || equals) {\n StatFs statFs = new StatFs(Environment.getExternalStorageDirectory().getPath());\n if (((long) statFs.getAvailableBlocks()) * ((long) statFs.getBlockSize()) <= ((long) (this.f4234c / 2))) {\n return null;\n }\n File file2 = new File(C1222aj.m5334a(this.f4232a).getPath() + File.separator + \"carrierdata\");\n if (!(file2.exists() && file2.isDirectory())) {\n file2.mkdirs();\n }\n file = new File(file2.getPath() + File.separator + j);\n try {\n z = file.createNewFile();\n } catch (IOException e2) {\n }\n } else {\n file = null;\n }\n return !z ? null : file;\n }", "public static String m19635c() {\n String str;\n try {\n str = Environment.getDataDirectory().getPath();\n } catch (Throwable unused) {\n str = null;\n }\n return str == null ? \"\" : str.trim();\n }", "@JsonProperty(\"storageLocation\")\n public String getStorageLocation() {\n return storageLocation;\n }", "private String getTempFileString() {\n final File path = new File(getFlagStoreDir() + String.valueOf(lJobId) + File.separator);\n // // If this does not exist, we can create it here.\n if (!path.exists()) {\n path.mkdirs();\n }\n //\n return new File(path, Utils.getDeviceUUID(this)+ \".jpeg\")\n .getPath();\n }", "static public byte[] getDefaultBytes() {\n return defaultByteArray;\n }", "@Override\n public String getSystemDir() {\n return null;\n }", "@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }", "public char[] storage_GET()\n {return storage_GET(new char[120], 0);}", "public interface CFBConstants\n{\n /** Most files use 512 bytes as their big block size */\n public static final int SMALLER_BIG_BLOCK_SIZE = 0x0200;\n public static final BlockSize SMALLER_BIG_BLOCK_SIZE_DETAILS = new BlockSize(SMALLER_BIG_BLOCK_SIZE, (short)9);\n /** Some use 4096 bytes */\n public static final int LARGER_BIG_BLOCK_SIZE = 0x1000;\n public static final BlockSize LARGER_BIG_BLOCK_SIZE_DETAILS = new BlockSize(LARGER_BIG_BLOCK_SIZE, (short)12);\n\n /** How big a block in the small block stream is. Fixed size */\n public static final int SMALL_BLOCK_SIZE = 0x0040;\n\n /** How big a single property is */\n public static final int PROPERTY_SIZE = 0x0080;\n /** \n * The minimum size of a document before it's stored using \n * Big Blocks (normal streams). Smaller documents go in the \n * Mini Stream (SBAT / Small Blocks)\n */\n public static final int BIG_BLOCK_MINIMUM_DOCUMENT_SIZE = 0x1000;\n\n /** The highest sector number you're allowed, 0xFFFFFFFA */\n public static final int LARGEST_REGULAR_SECTOR_NUMBER = -5;\n\n /** Indicates the sector holds a DIFAT block (0xFFFFFFFC) */\n public static final int DIFAT_SECTOR_BLOCK = -4;\n /** Indicates the sector holds a FAT block (0xFFFFFFFD) */\n public static final int FAT_SECTOR_BLOCK = -3;\n /** Indicates the sector is the end of a chain (0xFFFFFFFE) */\n public static final int END_OF_CHAIN = -2;\n /** Indicates the sector is not used (0xFFFFFFFF) */\n public static final int UNUSED_BLOCK = -1;\n}", "public final StorageType mo102949f() {\n return StorageType.CACHE;\n }", "public OutputStream base64Name() throws IOException {\n \t\treturn null;\n \t}", "public String getSavingLocation()\n {\n return Environment.getExternalStorageDirectory() + File.separator + getResources().getString(R.string.app_name);\n }", "private void configStorage(){\n try {\n final StorageReference storageReference = FirebaseStorage.getInstance()\n .getReference(\"motolost/\"+ String.valueOf(Math.random()) + getFileExtension(filePath));\n storageReference.putFile(filePath)\n .continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n return storageReference.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n Uri downloadUri = task.getResult();\n saveRegistry(downloadUri.toString());\n }\n }\n });\n } catch (Exception ex) {\n Constant.showMessage(\"Exception\", ex.getMessage(), this);\n }\n }", "public boolean isEnergyStorage() {\n\t\treturn false;\n\t}", "public StorageResource() {\n }", "@Nullable public String getStorageKey() {\n return storageKey;\n }", "public final String mo19883G() {\n return null;\n }" ]
[ "0.6198206", "0.617781", "0.61294043", "0.6100709", "0.5925341", "0.5793846", "0.5773338", "0.57228863", "0.57228756", "0.5714813", "0.57089967", "0.5680926", "0.56521213", "0.5620593", "0.56056106", "0.5604556", "0.55851763", "0.5538467", "0.5529648", "0.55032045", "0.5495458", "0.5492828", "0.5488968", "0.5488042", "0.5473329", "0.54458696", "0.5437852", "0.5437852", "0.5437852", "0.54266495", "0.54222065", "0.539097", "0.5385934", "0.5382024", "0.5379493", "0.5376203", "0.53704536", "0.53648764", "0.53571653", "0.53568643", "0.5333979", "0.5325655", "0.53093165", "0.53083616", "0.5282471", "0.5275523", "0.5270141", "0.5267934", "0.5267718", "0.52675414", "0.5258161", "0.5255583", "0.5252503", "0.52393866", "0.52359873", "0.52355963", "0.5214954", "0.52137035", "0.52096206", "0.52078176", "0.5193018", "0.5192532", "0.5187758", "0.51874113", "0.5184456", "0.5175527", "0.51752955", "0.5175276", "0.5174997", "0.5173904", "0.51711047", "0.51644695", "0.5158363", "0.51563203", "0.5152946", "0.5152614", "0.51396275", "0.5132555", "0.5127987", "0.5119628", "0.51190317", "0.5115481", "0.5111735", "0.50978535", "0.50927746", "0.50925547", "0.50918484", "0.5089313", "0.5088436", "0.5084305", "0.50784993", "0.5076302", "0.50742096", "0.5067419", "0.5065099", "0.5063924", "0.50633466", "0.5063324", "0.50632715", "0.5063116", "0.5059071" ]
0.0
-1