query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
sequencelengths
19
20
metadata
dict
This sets the data inside of a current node
public void setNodeData(Node node, String data) { node.setData(data); }
[ "private static void setData(Node root, List<Integer> data) {\r\n\r\n\t\t// Searches for the next available spot to put data\r\n\t\troot.left = new Node();\r\n\t\troot.left.index = data.get(0);\r\n\t\troot.right = new Node();\r\n\t\troot.right.index = data.get(1);\r\n\r\n\t}", "void setNode(Node node);", "public void setNodeData(long data){\n validateNodeData(data);\n }", "public synchronized void setNodeData(byte[] nodeData)\n throws ManifoldCFException, InterruptedException\n {\n if (currentConnection == null)\n throw new IllegalStateException(\"Node not yet created for node path '\"+nodePath+\"'\");\n \n currentConnection.setNodeData(nodeData);\n }", "public void setCurrentData(T newData);", "public void setNodeData(int val) {\n\t\tnodeData = val;\n\t}", "public void setCurrentNode(V node) {\n\t}", "public void set( T obj ){\n prevNode.set(node_index_prev,obj);\n// lastItemReturnedT = obj;\n }", "private void setupNode(int data){\n\t\tthis.nodeData = data;\n\t\trightSon = null;\n\t\tleftSon = null;\n\t\theight = 0;\n\t}", "public void set(int index, E newData)\n {\n nodeAt(index).setData(newData);\n }", "public void updateNodeDataChanges(Object src) { \t\n \t\n }", "public void setData(E _data) {\n\t\tdata = _data;\n\t}", "public void setData(E data) {\n\tthis.data = data;\n }", "public void setData(E data)\r\n\t{\tmyData = data;\t}", "public void setData(Object data){\n\t\t\tthis.data = data;\n\t\t}", "public void setXmlValue(DataNode dataNode,\n Stack<Element> domElementStack) {\n }", "public void setValue(Expr node) {\n setChild(node, 0);\n }", "public void setCurrentNode(DefaultMutableTreeNode currentNode) {\n this.currentNode = currentNode;\n }", "public void setElement(E data) {\n\t\telement = data;\n\n\t}", "public void set(int index, E value) {\n /* checkIndex(index); */\n super.set(index, value);\n ListNode<E> current = nodeAt(index);\n current.data = value;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// View Drawing. // Do the subclassspecific parts of drawing for this element. This method is called on the thread of the containing SuraceView. Subclasses should override this to do their drawing.
@Override protected final void drawBody(Canvas canvas, Paint paint, long now) { // Since drawBody may be called more often than we get audio // data, it makes sense to just draw the buffered image here. synchronized (this) { canvas.drawBitmap(specBitmap, dispX, dispY, null); } }
[ "@Override\n\tpublic void viewDrawComplete() {\n\t}", "public interface View {\n /**\n * Make the view visible (for the first time).\n */\n void makeVisible();\n\n /**\n * Signal the view to draw itself again.\n */\n void refresh();\n\n /**\n * Handles the action listeners of the features from the {@link Features} interface.\n *\n * @param features The features\n */\n void addFeatures(Features features);\n\n /**\n * Highlights the cells at the given Coordinates. In the process, it de-highlights any previously\n * highlighted cells.\n * @param cellCoord The coordinate of the cell\n */\n void highlightCell(Coord cellCoord);\n\n}", "public void setupUserDraw() \r\n{\r\n view.setupUserDraw();\r\n}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n view.draw(g);\n Toolkit.getDefaultToolkit().sync();\n }", "@Override\n public void draw() {\n if (draw0 != null) {\n try {\n draw0.invoke(listener);\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n if (debug) {\n Logger.getLogger(ReflectiveActiveElement.class.getName()).log(Level.SEVERE, null, e);\n }\n }\n }\n }", "@Override\n\tpublic void draw() {\n\t\t/*\n\t\t * Only print out the draw() method to test. No need to implement the real\n\t\t * drawing\n\t\t */\n\n\t}", "protected void draw() {\n repaint();\n }", "public void drawContent()\n {\n }", "public void doDraw(Graphics2D g, View view, Transform transform) {\n\t\tif (! (view instanceof View3D && transform instanceof Transform3D))\n\t\t\tsuper.doDraw(g,view,transform);\n\t\telse {\n\t\t\tColor saveColor = g.getColor();\n\t\t\tif ( ((View3D)view).getViewStyle() == View3D.RED_GREEN_STEREO_VIEW )\n\t\t\t\tg.setColor(Color.white); // Needs to be white in Anaglyph stereo view to look prominant enough.\n\t\t\telse\n\t\t\t\tg.setColor(getColor());\n\t\t\tView3D v = (View3D)view;\n\t\t\tv.drawLine(Vector3D.ORIGIN, Vector3D.UNIT_X);\n\t\t\tv.drawLine(Vector3D.ORIGIN, Vector3D.UNIT_Y);\n\t\t\tv.drawLine(Vector3D.ORIGIN, Vector3D.UNIT_Z);\n\t\t\tv.drawString(\"x\",Vector3D.UNIT_X);\n\t\t\tv.drawString(\"y\",Vector3D.UNIT_Y);\n\t\t\tv.drawString(\"z\",Vector3D.UNIT_Z);\n\t\t\tg.setColor(saveColor);\n\t\t}\n\t}", "public void draw() {\n\t\tthis.repaint();\n\t}", "@Override\n\tpublic void draw()\n\t{\n\n\t}", "public void draw() {\n setVisible(true) ;\n }", "private static void renderViewToCanvas(Canvas canvas, View view, Paint paint) {\n canvas.save();\n applyTransformations(canvas, view);\n\n // Draw children if the view has children\n if ((view instanceof ViewGroup)) {\n // Draw children\n ViewGroup group = (ViewGroup) view;\n\n // Hide visible children - this needs to be done because view.draw(canvas)\n // will render all visible non-texture/surface views directly - causing\n // views to be rendered twice - once by view.draw() and once when we\n // enumerate children. We therefore need to turn off rendering of visible\n // children before we call view.draw:\n List<View> visibleChildren = new ArrayList<>();\n for (int i = 0; i < group.getChildCount(); i++) {\n View child = group.getChildAt(i);\n if (child.getVisibility() == VISIBLE) {\n visibleChildren.add(child);\n child.setVisibility(View.INVISIBLE);\n }\n }\n\n // Draw ourselves\n view.draw(canvas);\n\n // Enable children again\n for (int i = 0; i < visibleChildren.size(); i++) {\n View child = visibleChildren.get(i);\n child.setVisibility(VISIBLE);\n }\n\n // Draw children\n for (int i = 0; i < group.getChildCount(); i++) {\n View child = group.getChildAt(i);\n\n // skip all invisible to user child views\n if (child.getVisibility() != VISIBLE) continue;\n\n // skip any child that we don't know how to process\n if (child instanceof TextureView) {\n final TextureView tvChild = (TextureView) child;\n tvChild.setOpaque(false); // <-- switch off background fill\n\n canvas.save();\n applyTransformations(canvas, child);\n\n // TextureView should use bitmaps with matching size,\n // otherwise content of the TextureView will be scaled to provided bitmap dimensions\n final Bitmap childBitmapBuffer = tvChild.getBitmap(Bitmap.createBitmap(child.getWidth(), child.getHeight(), Bitmap.Config.ARGB_8888));\n canvas.drawBitmap(childBitmapBuffer, 0, 0, paint);\n\n canvas.restore();\n\n } else if (child instanceof SurfaceView) {\n final SurfaceView svChild = (SurfaceView) child;\n final CountDownLatch latch = new CountDownLatch(1);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n final Bitmap childBitmapBuffer = Bitmap.createBitmap(child.getWidth(), child.getHeight(), Bitmap.Config.ARGB_8888);\n try {\n PixelCopy.request(svChild, childBitmapBuffer, copyResult -> {\n canvas.save();\n applyTransformations(canvas, child);\n canvas.drawBitmap(childBitmapBuffer, 0, 0, paint);\n canvas.restore();\n latch.countDown();\n }, new Handler(Looper.getMainLooper()));\n latch.await(SURFACE_VIEW_READ_PIXELS_TIMEOUT, TimeUnit.SECONDS);\n } catch (Exception e) {\n Log.e(TAG, \"Cannot PixelCopy for \" + svChild, e);\n }\n } else {\n Bitmap cache = svChild.getDrawingCache();\n if (cache != null) {\n canvas.save();\n applyTransformations(canvas, child);\n canvas.drawBitmap(svChild.getDrawingCache(), 0, 0, paint);\n canvas.restore();\n }\n }\n } else {\n // Regular views needs to be rendered again to ensure correct z-index\n // order with texture views and surface views.\n renderViewToCanvas(canvas, child, paint);\n }\n }\n } else {\n // Draw ourselves\n view.draw(canvas);\n }\n\n // Restore canvas\n canvas.restore();\n }", "@Override\n\t\tpublic void with_Draw() {\n\t\t\t\n\t\t}", "public void draw() {\n }", "public void draw()\r\n\t{\r\n\t\tcanvas.display();\r\n\t}", "public void drawing(){\n repaint();\n }", "public interface ViewObject {\n \n /**\n * Draws the view object on the screen\n * @param graphics the graphics object for rendering\n * @param deltaTime the time difference until last render\n */\n public void draw(GraphicsContext graphics, double deltaTime);\n \n}", "@Override\n\tpublic void onDraw(IDisplayProcess c) {\n\t\t\n\t\tsuper.onDraw(c);\n\t}", "@Override\n public void draw() {\n getRenderer().display(BouncersView.getInstance().getGraphics(), this);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: AHTUNG!!!! ATTENTION!!!! SHOULD BE REFACTORED TO USE TEST BUCKED!!!!
private void cleanupBucket(){ if(s3service.isInitialized()){ ObjectListing objectListing = s3service.getS3().listObjects(new ListObjectsRequest().withBucketName(S3Service.IMSU_PLAY_BUCKET)); for (S3ObjectSummary objectSummary : objectListing.getObjectSummaries()) { s3service.remove(objectSummary.getKey()); } s3service.getS3().deleteBucket(S3Service.IMSU_PLAY_BUCKET); } }
[ "private void doTest() {\r\n\r\n\t}", "@Test\n\tpublic void testFindHotNewses() {\n\t}", "public void testSchedbotFF() {\n\t}", "private void testing() {\n\t}", "@Ignore\n @Test\n public void testOrgStructureRequestMT() throws Exception {\n }", "@Test\n\t\tpublic void test()\n\t\t{\n\t\t}", "@Test\r\n\tpublic void test() throws Exception {\n\t\t\r\n\r\n\t}", "@Override\n\t\tpublic void testMe() {\n\t\t\t\n\t\t}", "private void testingPurposes() {\n\t}", "@Override\n\t\t\tpublic void test2() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void test() {\n }", "@Before\n\t@Override\n\tpublic void setUpBefore() {\n\t}", "protected void expectations() { }", "public void testGetRecency() {\n\n\t}", "@Test\n @Ignore(\"Tested in TestWriteXXX procedures\")\n public void testPutNext() {\n }", "@Override\r\n\tpublic void testInit() {\n\r\n\t}", "public void testSample(){\r\n\r\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n \n\t\t\n\t}", "abstract void testPromotionsList() throws Exception;", "@Test\r\n public void testCompareTwoFilesMapAdd() { }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 11 /Coverage entropy=1.2195745472732102
@Test(timeout = 4000) public void test011() throws Throwable { StringReader stringReader0 = new StringReader("<<"); stringReader0.mark(32); JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 406, 406); JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0); MockPrintStream mockPrintStream0 = new MockPrintStream(javaParserTokenManager0.debugStream); javaParserTokenManager0.setDebugStream(mockPrintStream0); javaParserTokenManager0.getNextToken(); assertEquals(1, javaCharStream0.bufpos); assertEquals(407, javaCharStream0.getColumn()); }
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = evaluation0.toSummaryString(true);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test140() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\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 test135() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n CostMatrix costMatrix0 = CostMatrix.parseMatlab(\".uD4;G~)**S]]\");\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test152() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedTrueNegativeRate();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test191() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString();\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.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test178() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test164() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test141() 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.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0, doubleArray0.length);\n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numTrueNegatives(1);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalsePositives((byte)74);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test128() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\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 test155() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\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.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n SimpleLogistic simpleLogistic0 = new SimpleLogistic((-2795), false, true);\n AdditiveRegression additiveRegression0 = new AdditiveRegression(simpleLogistic0);\n Capabilities capabilities0 = additiveRegression0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.correlationCoefficient();\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(2, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertNotNull(doubleArray0);\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "public void test128() throws Exception {\n testNScenario(\"java128\");\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ calcPopTotals uses the number of population counts to create an array and calculate and return an array of population totals.
public static int[] calcPopTotals(int targetStateCode) throws FileNotFoundException { Scanner input = new Scanner(new File(DATA_FILE_NAME)); input.useDelimiter("\t|\r\n|\n|\r"); int[] popTotal = new int[NUM_POPULATION_COUNTS]; while (input.hasNext()) { input.next(); int stateCode = input.nextInt(); if (stateCode == targetStateCode){ for (int i = 0; i < NUM_POPULATION_COUNTS; i++) { popTotal[i] += input.nextInt(); } } } return popTotal; }
[ "public static int totalPopulation(ArrayList<Integer> populations){\n int sum = 0;\n for(int statepop : populations){\n sum += statepop;\n }\n return sum;\n }", "public int getGuppyPopulation() {\n int totalGuppies = 0;\n for (Pool pool : pools) {\n totalGuppies += pool.getPopulation();\n }\n return totalGuppies;\n }", "private long calculateTotalPopulationForAllZip(Logger _log, String population_input_file_name) {\n\t\tPopulationDataManager pdm = new PopulationDataManager(); \r\n\t\tMap<Integer, Long> zipPopulationMap = pdm.getZipPopulationMap(_log, population_input_file_name);\r\n\t\tlong total = 0;\r\n\t\tfor(long population : zipPopulationMap.values()) {\r\n\t\t\ttotal += population;\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "public int averagePop(){ \r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < list.length; i++){\r\n\t\t\tsum += list[i].getPopulation();\r\n\t\t}\r\n\t\t\r\n\t\treturn sum/list.length;\r\n\t}", "int getPopulationsCount();", "private void calculateGrandTotal(){\r\n\t\tint s=0;\r\n\t\tfor(int i=0;i<arr.length;i++){\r\n\t\t\tfor(int j=0;j<arr[i].length;j++)\r\n\t\t\t\ts+=arr[j][i];\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgrandTotal=s;\r\n\t}", "public int getTotalPopulation() {\n return totalPopulation;\n }", "public int getGuppyPopulation() {\n int guppyPopulation = 0;\n for (Pool pool : pools) {\n guppyPopulation += pool.getPopulation();\n }\n return guppyPopulation;\n }", "private void calculateTotals(){\n setValuesToZero();\n for (FoodItem fi: mProducts) {\n Nutrient[] nutrients = fi.getNutrients();\n double multiplier = fi.getWeight()/100/mNoPeople;\n\n mTotalEnergy += nutrients[0].getValuePer100() * multiplier;\n mTotalEnergyCal += nutrients[1].getValuePer100() * multiplier;\n mTotalFat += nutrients[2].getValuePer100() * multiplier;\n mTotalSaturates += nutrients[3].getValuePer100() * multiplier;\n mTotalCarbohydrate += nutrients[4].getValuePer100() * multiplier;\n mTotalSugars += nutrients[5].getValuePer100() * multiplier;\n mTotalFibre += nutrients[6].getValuePer100() * multiplier;\n mTotalProtein += nutrients[7].getValuePer100() * multiplier;\n mTotalSalt += nutrients[8].getValuePer100() * multiplier;\n mTotalGandML += fi.getWeight();\n }\n }", "@java.lang.Override\n public int getTotalsCount() {\n return totals_.size();\n }", "public void computeTotalFitness(){\n\t\n\tfor (int index = 0; index<popSize; index++)\n\t {\n\t\ttotalFitness += fitness[index];\n\t\t\n\t\tif (fitness[index] > bestValue) \n\t\t {\n\t\t\tnewBest = true;\n\t\t\tcopyBest(index);\n\t\t\tbestValue = fitness[index];\n\t\t }\n\t\t\n\t\tif (fitness[index] < worstValue) \n\t\t {\n\t\t\tnewWorst = true;\n\t\t\tcopyWorst(index);\n\t\t\tworstValue = fitness[index];\n\t\t }\n\t\t\n\t }\n }", "public List<Double> getTotals() {\n return totals;\n }", "public int getGrandTotal() {\n int total = getUpperTotal();\n total += getBonus();\n\n for (int i = 7; i < 16; i++) {\n total += points[i];\n }\n\n points[18] = total;\n return total;\n }", "public double getTotals(){return totals;}", "private int readAllPopulationSections(final List<PopulationFile> populationsFiles, final String addingFileMsg) {\n int elementsRead = 0;\n\n for (DataFiles.PopulationFile file : populationsFiles) {\n log.trace(String.format(addingFileMsg, file.getName()));\n final PopulationsFileReader populationsFileReader = new PopulationsFileReader(file, dbImpl);\n elementsRead += populationsFileReader.insert();\n }\n\n if (elementsRead > 0) {\n log.info(\"Read {} population data from {} files.\", elementsRead, populationsFiles.size());\n }\n return elementsRead;\n }", "public long getPageTotals() {\n return pageTotals;\n }", "public int getPopulationSize() {\n return population;\n }", "public void setNumberOfPopulations(int numberOfPopulations) {\n\t\tthis.numberOfPopulations = numberOfPopulations;\n\t}", "public void calculateTotals() {\n Float orderTotal = 0f;\n for (OrderItem orderItem : this.orderItems) {\n if (orderItem.getMenuItem().getPrice() != null && orderItem.getMenuItem().getPrice() > 0) {\n orderItem.setPrice(orderItem.getMenuItem().getPrice());\n } else if (orderItem.getGroup().getPrice() != null && orderItem.getGroup().getPrice() > 0) {\n orderItem.setPrice(orderItem.getGroup().getPrice());\n } else if (orderItem.getSection().getPrice() != null && orderItem.getSection().getPrice() > 0) {\n orderItem.setPrice(orderItem.getSection().getPrice());\n } else\n orderItem.setPrice(0f);\n orderItem.setTotalOptions(getOptionTotal(orderItem.getMenuItem()));\n orderItem.setTotal(orderItem.getPrice() + orderItem.getTotalOptions() );\n orderTotal += orderItem.getTotal();\n }\n setTotalPretax(orderTotal);\n }", "abstract public List<Double> calculate(Population pop,\n double maximum_fitness);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Launch the application. Create the application.
public VentanaResultados() throws IOException { initialize(); this.frame.setVisible(true); }
[ "private static void launchApplication(String[] args) {\r\n\t\t\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Create application base model\r\n\t\t\t\t\tMApplication mapp = new MApplication();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Give controller access to the application \r\n\t\t\t\t\tMainWindowController mwc = new MainWindowController(mapp);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Initialize main window view\r\n\t\t\t\t\tMainWindowView mwv = new MainWindowView(mwc);\r\n\t\t\t\t\tmapp.setMainWindow(mwv);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error initializing main window of the application!\");\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public static void appLaunch()\n\t{\n\t\tSystem.out.println(\"AppLaunch\");\n\t}", "protected void startApp() {\n\t\tif (uiBuilt) return;\n\n\t\tdisplay = Display.getDisplay(this);\n\n\t\tinstalledGroup = new List(Resource.getString(ResourceConstants.MIDLET_MANAGER), List.IMPLICIT);\n\t\tinstalledGroup.addCommand(CMD_EXIT);\n\t\tinstalledGroup.addCommand(CMD_SETTINGS);\n\t\tinstalledGroup.addCommand(CMD_INSTALL);\n\t\tinstalledGroup.setSelectCommand(CMD_RUN);\n\t\tinstalledGroup.setCommandListener(this);\n\n\t\tnotInstalledGroup = new List(Resource.getString(ResourceConstants.MIDLET_MANAGER) + \" - \" + Resource.getString(ResourceConstants.INSTALL), List.IMPLICIT);\n\t\tnotInstalledGroup.addCommand(CMD_BACK);\n\t\tnotInstalledGroup.setCommandListener(this);\n\n\t\tmidletList = new List(\"MIDlets\", List.IMPLICIT);\n\t\tmidletList.setCommandListener(this); \n\t\tmidletList.setSelectCommand(CMD_RUN);\n\n\t\tloadingForm = new Form(Resource.getString(ResourceConstants.LOADING));\n\n\t\trepository = SuiteManager.repository;\n\t\ttry {\n\t\t\tbuildUI();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Application.launch(args);\n }", "public static void main(String[] args)//DO NOT CODE HERE\r\n\t{ //DO NOT CODE HERE\r\n\t\tApplication.launch(args); //DO NOT CODE HERE\r\n\t}", "private LaunchApp() {}", "public static void main(String[] args) {\n\t\tApplication.launch(args); \r\n\t}", "public static void main ( String[] args )\n {\n Application.launch( args );\n }", "public static void main(String[] args){\n\t\tApplication.launch(args);\n\t}", "public static void main(String[] args) {\n Application.launch(args);\n }", "public void launchApp() {\n\tgetStatusLbl().setText(\"Starting client software...\");\n\tgetProgressBar().setCompletion(90);\n\tgetStatusTA().append(\"\\n\\n--- Launching (\" + getDate() + \")\");\n\tgetStatusTA().append(\"\\nStarting Client Software for Customer Connect\");\n\n\tString pgmDir = instcfg.getProperty(\"InstallPath\");\n\n\tString app;\n\tif (plat.equals(\"WIN\"))\n\t\tapp = pgmDir + File.separator + LWIN_FILE;\n\telse\n\t\tapp = pgmDir + File.separator + LUNIX_FILE;\n\n\tdebug(\"app is \" + app);\n\n\tif (isJava1) {\n\t\ttry {\n\t\t\tPrivilegeManager.enablePrivilege(\"UniversalExecAccess\");\n\t\t\tPolicyEngine.assertPermission(PermissionID.EXEC);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tdebug(e.getMessage());\n\t\t\tdeniedAccess();\n\t\t\treturn;\n\t\t}\n\t}\n\n\tgetProgressBar().setCompletion(95);\n\ttry {\n\t\tProcess p = Runtime.getRuntime().exec(app);\n\t\tPrintStream in = new PrintStream(p.getOutputStream());\n\n\t\tInputStream err = p.getErrorStream();\n\t\tInputStream out = p.getInputStream();\n\t\tThread errRun = new Thread(new PipeReader(\"StdErr\",err,debug),\"ErrorRunner\");\n\t\tThread outRun = new Thread(new PipeReader(\"StdOut\",out,debug),\"OutputRunner\");\n\t\terrRun.start();\n\t\toutRun.start();\n\n\t\tString parm = null;\n\n\t\tdebug(\"Writing parms to app:\");\n\t\tif (isSD) {\n\t\t\tin.println(this.command);\n\t\t\tdebug(\"--> \" + this.command);\n\t\t}\n\t\telse if (isDBOX) {\n\t\t\tin.println(\"XFR\");\n\t\t\tdebug(\"--> XFR\");\n\t\t\tin.println(\"-CH_NOUPDATE\");\n\t\t\tdebug(\"--> -CH_NOUPDATE\");\n\t\t}\n\t\telse {\n\t\t\tin.println(\"TUNNEL\");\n\t\t\tdebug(\"--> TUNNEL\");\n\t\t\tin.println(\"-CH_NOUPDATE\");\n\t\t\tdebug(\"--> -CH_NOUPDATE\");\n\t\t}\n\n\t\tin.println(\"-URL \" + url);\n\t\tdebug(\"--> -URL \" + url);\n\n\t\tif (this.nostream != null) {\n\t\t\tin.println(this.nostream);\n\t\t\tdebug(\"--> \" + this.nostream);\n\t\t}\n\n\t\tif (this.debugApp != null) {\n\t\t\tin.println(this.debugApp);\n\t\t\tdebug(\"--> \" + this.debugApp);\n\t\t}\n\n\t\tif (! isDBOX && this.tunnelcommand != null) {\n\t\t\tin.println(\"-CH_TUNNELCOMMAND \" + this.tunnelcommand);\n\t\t\tdebug(\"--> -CH_TUNNELCOMMAND \" + this.tunnelcommand);\n\t\t}\n\n\t\tif (this.project != null) {\n\t\t\tin.println(\"-CH_PROJECT \" + this.project);\n\t\t\tdebug(\"--> -CH_PROJECT \" + this.project);\n\t\t}\n\n\t\tif (this.hostingmachine != null) {\n\t\t\tin.println(\"-CH_HOSTINGMACHINE \" + this.hostingmachine);\n\t\t\tdebug(\"--> -CH_HOSTINGMACHINE \" + this.hostingmachine);\n\t\t}\n\n\t\tif (this.token != null) {\n\t\t\tin.println(\"-CH_TOKEN \" + this.token);\n\t\t\tdebug(\"--> -CH_TOKEN \" + this.token);\n\t\t}\n\n\t\tif (this.callmtg != null) {\n\t\t\tin.println(\"-CH_CALL_MEETINGID \" + this.callmtg);\n\t\t\tdebug(\"--> -CH_CALL_MEETINGID \" + this.callmtg);\n\t\t}\n\n\t\tif (this.callusr != null) {\n\t\t\tin.println(\"-CH_CALL_USERID \" + this.callusr);\n\t\t\tdebug(\"--> -CH_CALL_USERID \" + this.callusr);\n\t\t}\n\n\t\tif (this.callpwd != null) {\n\t\t\tin.println(\"-CH_CALL_PASSWORD \" + this.callpwd);\n\t\t\tdebug(\"--> -CH_CALL_PASSWORD \" + this.callpwd);\n\t\t}\n\n\t\tif (this.sdtoken != null) {\n\t\t\tin.println(\"-SD_TOKEN \" + this.sdtoken);\n\t\t\tdebug(\"-SD_TOKEN \" + this.sdtoken);\n\t\t}\n\n\t\tin.println(\"-THE_END\");\n\t\tdebug(\"-THE_END\");\n\n\t\tin.flush();\n\t\tin.close();\n\n\t\tSystem.out.println(\"stdin of process is now closed.\");\n\n\t\tgetStatusTA().append(\" ...started.\");\n\t\tgetStatusLbl().setText(\"Client software started.\");\n\t\tgetProgressBar().setCompletion(100);\n\n\t\t// Prepare to close our applet window.\n\t\ttry {\n\t\t\t// We need the JSObject class and its getWindow(Applet) and eval(String) methods\n\t\t\tClass js = Class.forName(\"netscape.javascript.JSObject\");\n\t\t\tClass[] gwArgs = { Applet.class };\n\t\t\tClass[] evalArgs = { String.class };\n\t\t\tMethod getWindow = js.getMethod(\"getWindow\",gwArgs);\n\t\t\tMethod eval = js.getMethod(\"eval\",evalArgs);\n\n\t\t\t\n\t\t\tObject[] gwParms = { this };\n\t\t\tObject[] evalParms = { \"if (self.name == \\\"Services\\\") self.setTimeout(\\\"self.close()\\\",3000);\" };\n\t\t\tObject jsWindow = getWindow.invoke(null,gwParms);\n\t\t\teval.invoke(jsWindow,evalParms);\n\t\t}\n\t\tcatch (ClassNotFoundException cnfe) {\n\t\t\tSystem.out.println(\"Class not found: \" + cnfe.getMessage());\n\t\t}\n\t\tcatch (NoSuchMethodException nsme) {\n\t\t\tSystem.out.println(\"No such method: \" + nsme.getMessage());\n\t\t}\n\t\tcatch (IllegalAccessException iae) {\n\t\t\tSystem.out.println(\"Illegal access exception: \" + iae.getMessage());\n\t\t}\n\t\tcatch (IllegalArgumentException iarge) {\n\t\t\tSystem.out.println(\"Illegal argument exception: \" + iarge.getMessage());\n\t\t}\n\t\tcatch (InvocationTargetException ite) {\n\t\t\tSystem.out.println(\"Invocation target exception: \" + ite.getMessage());\n\t\t}\n\t}\n\tcatch (Exception e) {\n\t\tdebug(e.getMessage());\n\t\tgetStatusTA().append(\" ...NOT started.\");\n\t\tgetStatusLbl().setText(\"Client software NOT started.\");\n\t\tgetProgressBar().setCompletion(100);\n\t}\n}", "public static void main(String[] args) {\n\tApplication.launch(args);\n}", "private void startApplication() {\n // dirs\n File filesDir = getExternalFilesDir(null);\n File libDir = new File(getFilesDir().getParentFile(), \"lib\");\n\n // init\n unpackAsset(this, filesDir, \"std.wlib\");\n String wconf = jsonWiltonConfig(\"quickjs\", filesDir, libDir, \"apps\", filesDir.getAbsolutePath() + \"/apps\");\n Log.i(getClass().getPackage().getName(), wconf);\n WiltonJni.initialize(wconf);\n\n // modules\n WiltonJni.wiltoncall(\"dyload_shared_library\", jsonDyload(libDir, \"wilton_logging\"));\n WiltonJni.wiltoncall(\"dyload_shared_library\", jsonDyload(libDir, \"wilton_loader\"));\n WiltonJni.wiltoncall(\"dyload_shared_library\", jsonDyload(libDir, \"wilton_quickjs\"));\n\n // rhino\n String prefix = \"zip://\" + filesDir.getAbsolutePath() + \"/std.wlib/\";\n String codeJni = WiltonJni.wiltoncall(\"load_module_resource\", \"{ \\\"url\\\": \\\"\" + prefix + \"wilton-requirejs/wilton-jni.js\\\" }\");\n String codeReq = WiltonJni.wiltoncall(\"load_module_resource\", \"{ \\\"url\\\": \\\"\" + prefix + \"wilton-requirejs/wilton-require.js\\\" }\");\n WiltonRhinoEnvironment.initialize(codeJni + codeReq);\n WiltonJni.registerScriptGateway(WiltonRhinoEnvironment.gateway(), \"rhino\");\n\n // startup\n WiltonJni.wiltoncall(\"runscript_quickjs\", jsonRunscript(\"android-launcher/start\", \"\"));\n WiltonJni.wiltoncall(\"runscript_rhino\", jsonRunscript(\"wilton/android/initMain\", \"\"));\n }", "public static void main(String[] args) {\n App.launch(App.class, args);\n\n }", "public static void main(String[] args) {\r\n //launch is a method from Application used to launch JavaFX applications\r\n Application.launch(args);\r\n }", "void startApp();", "public static void main(String[] args)\n\t{\n\t\tSystem.out.println(appLaunch1());\n\t}", "public void createApplication() {\n }", "public static void main(String[] args) {\n\t\tLauncher launcher=new Launcher();\r\n\t\tMyMobileApplication mobileApp=new MyMobileApplication();\r\n\t\tlauncher.launch(mobileApp); //creating the link by making the interface\r\n\t\t//System.out.println(mobileApp.info());\r\n\t}", "public final void runApp() {\n \t\ttry {\n \t\t\tjbInit();\n \t\t\tfinal int appSize = 500;\n \t\t\tthis.setSize(appSize, appSize);\n \n \t\t\t// Center the frame on screen\n \t\t\tthis.setLocationRelativeTo(null);\n \n \t\t\t// Display the giu\n \t\t\tthis.setVisible(true);\n \t\t} catch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \n \t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<RTask> getIDbyContent(String content) { return find("from RTask as r where r.content = ?0", content); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function is called once each time the robot enters Disabled mode. You can use it to reset any subsystem information you want to clear when the robot is disabled.
public void disabledInit() { System.out.println("Disabled Intitiated"); }
[ "@Override\n public void disabledInit() {\n // drivetrain.resetSubsystem();\n // shooter.resetSubsystem();\n // intakeStorage.resetSubsystem();\n }", "@Override\n public void disabledInit() {\n System.out.println(\"[code] Robot disabled\");\n }", "@Override\n public void disabledInit() {\n robotState = RobotState.DISABLED;\n\n autoConductor.stop();\n\n controllersConductor.stop();\n slowControllersConductor.stop();\n\n robot.driveSystem.setOpenLoop(DriveSignal.NEUTRAL);\n\n System.gc();\n }", "public void disabledInit()\n\t{\n\t\tgearRotatorDown = false;\n\t\tHLGateOpen = false;\n\t\tdumperGateOpen = false;\n\t\tshooterOn = false;\t\t//set all of the toggle states for everything to false; this prevents unexpected movement on re-enable\n\t\t//shifterLowGear = false;\n\t\t//hangFeedForward = false; //also not sure here\n\t\t\n\t\t//in case the robot was in test mode, shooter motor 1 and 2 may not be in follower mode anymore\n\t\t//to be safe, they are set to follower mode every time the robot is disabled\n\t\tshooterMotor2.changeControlMode(CANTalon.TalonControlMode.Follower);\n\t\tshooterMotor2.set(shooterMotor3.getDeviceID());\n\t\tshooterMotor1.changeControlMode(CANTalon.TalonControlMode.Follower);\n\t\tshooterMotor1.set(shooterMotor3.getDeviceID());\n\t\t\n\t\treachedTargetTime = 999;\n\t\tgearAutonCase = 0;\t//set auton variables back to default; clean up later\n\t}", "@Override\n\tpublic void disabledInit() {\n\t\tif (autonCommand != null){\n\t\t\tautonCommand.cancel();\n\t\t}\n\t//\tDrivetrainSubsystem.getInstance().stopTrapezoidControl(); \n\t\tAutonSelector.getInstance().putAutonChoosers();\n\t\tDrivetrainSubsystem.getInstance().percentVoltageMode();\n\t\tShooterSubsystem.getInstance().setMotorPower(0.0);\n\t\tIndexerSubsystem.getInstance().setMotorPower(0.0);\n\t\tDeflectorSubsystem.getInstance().setMotorPower(0.0);\n\t\tDrivetrainSubsystem.getInstance().tankDrive(0.0,0.0,false);\n\t\tTurretSubsystem.getInstance().getThread().stopTurret();\n\t\tRobotState.getInstance().setState(RobotState.State.DISABLED);\n\t}", "public void disabledInit() {\n arm.reset();\n driver.reset();\n }", "@Override\n public void disabledInit() {\n Robot.drivetrainSubsystem.getFollower().cancel();\n\n Robot.drivetrainSubsystem.holonomicDrive(Vector2.ZERO, 0.0, true);\n\n subsystemManager.disableKinematicLoop();\n vision.ledOff();\n autoHappened = false;\n\n \n }", "@Override\n\tpublic void disabledInit() {\n\t\tif (drvByDistanceCmd != null) drvByDistanceCmd.cancel();\n\t\tif (turnByGyroCmd != null) turnByGyroCmd.cancel();\n\t\t\n\t\tif (robotAutoDriveLCmd != null) {\n\t\t\trobotAutoDriveLCmd.cancel();\n\t\n\t\t}\n\t\tif (robotAutoDriveMCmd != null) {\n\t\t\trobotAutoDriveMCmd.cancel();\n\t\t\t\n\t\t}\n\t\tif (robotAutoDriveRCmd != null) {\n\t\t\trobotAutoDriveRCmd.cancel();\n\t\t\t\n\t\t}\n\t\tif (turnByGyroSubsystem != null) turnByGyroSubsystem.disable();\n\t\tif (goStraightByGyroSubSystem != null) goStraightByGyroSubSystem.disable();\n\t\t\n\t\tif (drvByTimeNoCtrlCmd != null) {\n\t\t\tdrvByTimeNoCtrlCmd.cancel();\n\t\t}\n\t\t\n\t}", "public void disabledInit() {\n robotDrive.stopMotor();\n\n winchMotor.stopMotor();\n actuatorRelay.stopMotor();\n }", "@Override\n public void disabledInit(){\n \tRobot.oi.launchPad.setOutputs(0);\n \t//limeLighttable.getEntry(\"ledMode\").setValue(1);\n\n }", "public void disabledInit()\n\t{\n\t\tlimelight.getEntry(\"ledMode\").setValue(1);\n\t\tlimelight.getEntry(\"camMode\").setValue(1);\n\n\t}", "private void disablePower() {\r\n\t\tif(robot.driveEnabled) {\r\n\t\t\trobot.leftDrive.set(ControlMode.PercentOutput, 0);\r\n\t\t\trobot.rightDrive.set(ControlMode.PercentOutput, 0);\r\n\t\t}\r\n\t}", "@Override\n public void disabledInit() {\n // Put motor in IDLE state and stop motor\n state = WristState.IDLE;\n wristMotor.set(ControlMode.PercentOutput,0);\n }", "protected void cruiseDisable()\n\t{\n\t\tspeed = 0;\n\t\tstatus = \"Disabled\";\n\t}", "@Override\n\tpublic void disabledInit() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tswerveDriveSubsystem.getSwerveModule(i).robotDisabledInit();\n\t\t}\n\t}", "@Override\n public void disabledInit() {\n // Set the limelight so that it can be configured.\n LimelightUtility.EnableDriverCamera(false);\n LimelightUtility.StreamingMode(StreamMode.Standard);\n Robot.ballShooter.teleopWithIdle = false;\n Robot.ballShooter.setShootIdleVelocity(0);\n Robot.climb.getBuddyPiston().set(false);\n }", "void resetEnabled();", "public void disabledInit() {\n\t\tDrive.getInstance().running = false;\n\t}", "public void disabledInit() {\r\n\t\tRobotMap.disabledInit();\r\n\t}", "public void disabledPeriodic()\n\t{\n\t\tif (calGyro)\t//if \"Gyro Calibrate\" is checked\n\t\t{\n\t\t\trobotGyro.calibrate();\t//calibrate the gyro\n\t\t}\n\t\t//reachedTargetTime = 999; // bug fix for auto ask chris sorry\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method returns a vector of this Object taken from a 2D object Array
public static Vector getVector(JTable j){ Vector v = new Vector(); for(int i=0;i<j.getRowCount();i++){ v.addElement(new ChemListData(j.getValueAt(i,0).toString(),j.getValueAt(i,1).toString())); } return v; }
[ "public Object[] aVector() {\n if (this.esVacia()) {\n return (null);\n }\n Object vector[] = new Object[this.getTamanio()];\n Iterator<T> it = this.iterator();\n int i = 0;\n while (it.hasNext()) {\n vector[i++] = it.next();\n }\n return (vector);\n }", "public Vector toVector() {\n return new Vector(this.x, this.y, this.z);\n }", "public Vector getDataAsVectorOfVector()\r\n {\r\n Vector vov = new Vector();\r\n for (int heat = 0; heat < this.size(); heat++)\r\n {\r\n HeatScheduleVector hsv = this.getHeatScheduleVector(heat);\r\n if (hsv != null)\r\n {\r\n Vector currentHeat = hsv.getHeatPersons();\r\n vov.add(currentHeat);\r\n }\r\n }\r\n return vov;\r\n }", "VectorType2 getVector();", "public gp_Vec2d Vec2d() {\n return new gp_Vec2d(OCCwrapJavaJNI.Geom2d_Vector_Vec2d(swigCPtr, this), true);\n }", "public P2Array() {\n\t\tthis.values = new Vector<P2Object>();\n\t}", "public Comparable[] getVector() {\r\n\t\treturn vector;\r\n\t}", "public Vector toVector() {\n return new Vector(x, y, z);\n }", "public IVirtualArrayList1D getArray( ) {\n return Varray1D;\n }", "public abstract Vector getOwnObjects();", "public Vector getModelVector();", "public vec V(pt P) {return new vec(P.x,P.y); }", "List<Vector> toArrayVectors();", "public int[] getVector() {\n\t\treturn vector;\n\t}", "public Vector2 getVector(Pose obj){\n Pose object = new Pose(obj);\n object.x -= location.x;\n object.y -= location.y;\n Vector2 temp = new Vector2();\n temp.setFromPolar(getStrength(object.radius()), object.angleOfVector());\n temp.rotate(location.angle);\n return temp;\n }", "@Override\n public Vector<T> data() { return this.data; }", "public BigVectorArray() {\n varr = new ArrayList<BigVector>(16);\n }", "public Object[] getGeneVector(){\n Vector v = new Vector();\n for(int i=0; i<genes.size(); i++){\n v.addElement(((Gene)genes.elementAt(i)).getName());\n }\n return v.toArray();\n }", "com.blacksquaremedia.reason.UtilProtos.Vector getVector();", "FieldVector getVector(int columnIndex) {\n return fieldVectors.get(columnIndex);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sleep for the given number of milliseconds
public void sleep(long ms);
[ "static void sleep(int milliseconds) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void sleep(long millis) throws InterruptedException;", "private void sleep(long milliseconds) {\n\t\t// synchronized (sleepSync) {\n\t\ttry {\n\t\t\tsleeping = true;\n\t\t\tthread.sleep(milliseconds);\n\t\t} catch (InterruptedException e) {\n\t\t} finally {\n\t\t\tsleeping = false;\n\t\t}\n\t\t// }\n\t}", "public static void sleep(long milliseconds)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(milliseconds);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "private void sleepMilliseconds(int milliseconds) {\n\t\tthis.parent.getDisplay().timerExec (milliseconds, new Runnable () {\n\t\t\tpublic void run () {\n\t\t\t\t//System.out.println (\"100 milliseconds\");\n\t\t\t}\n\t\t});\n\t}", "private void sleep(long ms) {\n\t\ttry {\n\t\t\tThread.sleep(ms);//sleep 0,25 seconds\n\t\t}catch(Throwable t) {\n\t\t\t//pups\n\t\t}\n\t}", "public static void sleep(int msec){\n try {\n Thread.sleep(msec);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static void sleepSeconds(long milliseconds) {\n\n try {\n Thread.sleep(TimeUnit.SECONDS.toMillis(milliseconds));\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }", "void sleep(Duration sleepDuration);", "void sleep(long delay) throws InterruptedException;", "void threadSleep(int milliseconds){\n try {\n Thread.sleep(milliseconds);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void sleep(long time) {\n\r\n\t}", "static void sleep(long ms) {\n\t try {\n\t \tThread.sleep(ms); \n\t }\n\t catch(InterruptedException ex) {\n\t \tThread.currentThread().interrupt(); \n\t }\n\t}", "void delay(int ms) {\n try {\n Thread.sleep(ms);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n }", "private static void wait(int milliseconds) {\r\n try {\r\n Thread.sleep(milliseconds);\r\n } catch (Exception e) {\r\n }\r\n }", "public void sleepSome(int miliseconds){\n // pause a bit so that two canvases do not compete when being opened\n // almost at the same time\n long start = System.currentTimeMillis();\n long tmp = System.currentTimeMillis();\n //System.out.println(\"Going to sleep.\");\n\n while(tmp - start < miliseconds){\n tmp = System.currentTimeMillis();\n }\n }", "private static void sleep(int millis) {\n long now = System.currentTimeMillis();\n while (System.currentTimeMillis() - now < millis) {\n long remaining = millis - (System.currentTimeMillis() - now);\n try {\n Thread.sleep(remaining);\n } catch (InterruptedException e) {\n // it's all good\n }\n }\n }", "public void sleep(int microseconds) {\n try {\n Thread.sleep(microseconds);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void delayDriver(long milliseconds) {\n synchronized (this.driver) {\n try {\n this.driver.wait(milliseconds);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }\n }", "public static void milliseconds(int time) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch(InterruptedException e) {}\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo para agregar un descuento a un producto dado
public void cambiarDescuento(String nombre,String descuento,String fecha) { Producto aux=repProducto.findByNombre(nombre); aux.setDescuento(descuento); aux.setFecha(fecha); repProducto.save(aux); }
[ "public void aplicarDescuento(){\r\n\t\tif(getNota().getTipo().equals(\"V\")){\t\t\t\r\n\t\t\tfor(NotasDeCreditoDet det:getPartidas()){\r\n\t\t\t\tfinal Venta factura=det.getFactura();\r\n\t\t\t\tdouble desc=0;\r\n\t\t\t\tif(getNota().getBonificacion().equals(ConceptoDeBonificacion.FINANCIERO))\r\n\t\t\t\t\t desc=NotasUtils.calcularDescuentoFinanciero(factura, getNota().getFecha(), getNota().getDescuento());\r\n\t\t\t\telse if(getNota().getBonificacion().equals(ConceptoDeBonificacion.ADICIONAL)){\t\t\t\t\t\r\n\t\t\t\t\tdesc=getNota().getDescuento();\r\n\t\t\t\t}\r\n\t\t\t\tdet.setDescuento(desc);\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tfor(NotasDeCreditoDet det:getPartidas()){\r\n\t\t\t\tdet.setDescuento(getNota().getDescuento());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void adicionarProducto(int posicionArreglo, String nombre, String descripcion, Seccion seccion, int precio)\r\n\t{\r\n\t\t// Crea el producto y la almacena en el arreglo\r\n\t\tinventarioProductos[posicionArreglo] = new Producto(nombre, descripcion, seccion, precio);\r\n\t}", "public void cargarDescuento(Hotel hotel, Descuento descuento){\n\t\thotel.agregarDescuento(descuento);\n\t}", "public void setDescuento(double descuento) {\n this.descuento = descuento;\n }", "private void extende() {\r\n\t\tint size = produtos.length;\r\n\r\n\t\tProdutoPerecivel[] newProdutos = new ProdutoPerecivel[2 * size];\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tnewProdutos[i] = produtos[i];\r\n\t\t}\r\n\t\tthis.produtos = newProdutos;\r\n\r\n\t}", "public List<Producto> getProductDesc();", "public void adicionaProduto(Produto produto){\n String codigoProduto = produto.getCodigo();\n double qtdeProduto = 0;\n try{\n //Se já tem algum produto igual no estoque, apenas incrementa a quantidade\n qtdeProduto = this.produtos.get(codigoProduto).getQuantidade();\n qtdeProduto = qtdeProduto + produto.getQuantidade();\n produto.setQuantidade(qtdeProduto);\n produtos.replace(codigoProduto, produto);\n\n //Se não possui nenhum produto igual no estoque, apenas adiciona o produto\n }catch(NullPointerException e ){\n produtos.put(codigoProduto, produto);\n }\n\n }", "public void hacer_descuento(int precio){\n double temp;\n this.costo_orden = precio;\n temp = 10 / costo_orden; //Porcentaje de descuento\n costo_orden = costo_orden - temp;\n\n ganancia += costo_orden; //Se le suma la orden a la ganancia total\n ordenes_logradas += 1; //Se suma una orden lograda m[as\n\n //No hago return porque no s[e si vaya a ocupar uno.\n\n\n }", "public void setDescuento(Double descuento) {\n this.descuento = descuento;\n }", "public void setDescription(String des)\n {\n this.itemDescription = des;\n }", "@Override\n\tpublic void createAdd1Product() {\n\t\tgetProductList().add(new Product(\"演示DVD\", 5.99f));\n\t}", "public void addProductoExigido(Long oidConcurso) {\n //jrivas 17/8/2006 DBLG50000721 - CAMBIO ANUL_DEVO - gPineda - 30/10/2006\n solicitud.getSolicitudConcurso(oidConcurso).addProductoExigido(this.getPosicionPuntaje(oidConcurso).getOidProductoExigido(),\n this.getPosicionPuntaje(oidConcurso).getMontoSolicitud(),\n this.getPosicionPuntaje(oidConcurso).getUnidadesSolicitud(),\n this.getPosicionPuntaje(oidConcurso).getPuntosSolicitud(), false,\n this.getSolicitud().getIndDevolucion() );\n }", "public void agregarDatosProducto2() {\r\n\r\n if (!(this.cantidadProducto2.matches(\"[0-9]*\")) || this.cantidadProducto2.equals(\"0\") || this.cantidadProducto2.equals(\"\")) {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Correcto\", \"Error, la cantidad es incorrecta\"));\r\n\r\n this.cantidadProducto2 = \"\";\r\n\r\n } else {\r\n\r\n this.listaDetalleFactura.add(new Detallefactura(null, null, this.producto.getCodBarra(),\r\n this.producto.getNombreProducto(), Integer.parseInt(this.cantidadProducto2), this.producto.getPrecioVenta(),\r\n BigDecimal.valueOf(Integer.parseInt(this.cantidadProducto2) * this.producto.getPrecioVenta().floatValue())));\r\n this.cantidadProducto2 = \"\";\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado al detalle\"));\r\n\r\n //llamar al metodo calcular totalFactura\r\n this.calcularTotalFacturaVenta();\r\n\r\n }\r\n }", "public void addProduct(Product product) {\n\r\n\t}", "@Override\n\tpublic void incluirDescendiente(INodo nodo) {\n\t\tthis.descendientes.add(nodo);\n\t}", "public void crear() {\n\t\tthis.articulo = new Tinvproducto();\n\t\tthis.articulo.setEstado(\"A\");\n\t\tthis.articulo.setPeso(0d);\n\t\tthis.articulo.setPreciounitario(0d);\n\t\tthis.edition=Boolean.FALSE;\n\t}", "public void AddProduct(Product pro) {\n\t\t updateProduct( pro);\n\t}", "public String adicionaProduto(String nomeFornecedor, String nome, String descricao, String preco) {\n\t\treturn this.gc.adicionaProdutoSimples(nomeFornecedor, nome, descricao, preco);\n\t}", "public void addProductToCont(Product p){\n\t\tproductCont.addProduct(p);\n\t}", "public void armazenarProduto(Produto aux){\r\n\t\tprodutos.add(aux);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { ToStringTest tt1 = new ToStringTest(); ToStringTest tt2 = new ToStringTest("최말자", 18); Test1 test1 = new Test1(); System.out.println(tt1); //~(tt1.toString)과 동일 System.out.println(tt2); System.out.println(test1); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_add_car) { Toast.makeText(getApplicationContext(), "add car", Toast.LENGTH_SHORT).show(); Intent intent = new Intent(MainActivity.this, AddNewLeaseActivity.class); startActivity(intent); return true; } return super.onOptionsItemSelected(item); }
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n return true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n\t\t\tfinish();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n super.onBackPressed();\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\n\t\tif (id == android.R.id.home) {\n\t\t\tLog.e(\"clik\", \"action bar clicked\");\n\t\t\tfinish();\n\t\t}\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n onBackPressed();\n\t\tdefault:\t\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n // Handle \"up\" button behavior here.\n onBackPressed();\n }\n return true;\n // return true if you handled the button click, otherwise return false.\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t// Handle item selection\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n\t\t\tIntent intent = new Intent(this, ViewLog.class);\n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\tstartActivity(intent);\n\t\t\tfinish();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) finish(); //home\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }//End Switch\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Given the action bar icon that was selected, do something\n switch (item.getItemId()) {\n // If the main action bar icon (left-most icon) was selected\n case android.R.id.home:\n // Go to the home screen\n //\n // Set the Intent to launch to be the home screen\n Intent intent = new Intent(this, HomeScreen.class);\n // These flags are so if there's an instance of the home screen Activity already\n // running, bring that instance on screen instead of starting a new instance\n // of it\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n // Launch the home screen\n startActivity(intent);\n\n return true;\n default:\n // Call the super class version of the method with the selection\n return super.onOptionsItemSelected(item); // Required call to superclass for app lifecycle management\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Take appropriate action for each action item click\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // API 5+ solution\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // this takes the user 'back', as if they pressed the left-facing triangle icon on the main android toolbar.\n // if this doesn't work as desired, another possibility is to call `finish()` here.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if ( id == android.R.id.home){\n // 點擊 ActionBar 返回按鈕時 結束目前的 Activity\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n switch (id){\r\n case android.R.id.home:\r\n this.finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n Log.d(TAG, \"home up button selected\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'ip' field
public com.voole.dungbeetle.ad.record.avro.PlayLog.Builder clearIp() { ip = null; fieldSetFlags()[15] = false; return this; }
[ "public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000020);\n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }", "public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000004);\n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }", "public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000200);\n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }", "public example.gen.idl.Message.Builder clearIpAddress() {\n ipAddress = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "public void reset() {\n ip = h;\n }", "public Builder clearVmIp() {\n vmIp_ = getDefaultInstance().getVmIp();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "public Builder clearPublicIp() {\n bitField0_ = (bitField0_ & ~0x00000002);\n publicIp_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIpAddress() {\n \n ipAddress_ = getDefaultInstance().getIpAddress();\n onChanged();\n return this;\n }", "public Builder clearPreciseIp() {\n copyOnWrite();\n instance.clearPreciseIp();\n return this;\n }", "public Builder clearHostIp() {\n hostIp_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000040);\n onChanged();\n return this;\n }", "public void setIp(String tmp) {\n this.ip = tmp;\n }", "public void reset(String ip) {\n putIpInListIfNotAlready(ip);\n amountOfFailsPerIp.put(ip, 0);\n }", "public Builder clearIpPublic() {\n bitField0_ = (bitField0_ & ~0x00000010);\n ipPublic_ = getDefaultInstance().getIpPublic();\n onChanged();\n return this;\n }", "public taotaole.avro.zz_yundb.Builder setIp(java.lang.CharSequence value) {\n validate(fields()[17], value);\n this.ip = value;\n fieldSetFlags()[17] = true;\n return this; \n }", "public Builder clearIpAddresses() {\n ipAddresses_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n return this;\n }", "public Builder clearIsVip() {\n bitField0_ = (bitField0_ & ~0x00100000);\n isVip_ = false;\n onChanged();\n return this;\n }", "private void setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n ip_ = value;\n }", "public void setIp(Ip ip){\n this.A = ip.getA();\n this.B = ip.getB();\n this.C = ip.getC();\n this.D = ip.getD();\n }", "void setIP(String ip);", "public void setIpAddress(String tmp) {\n this.ipAddress = tmp;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column growth_planning_comment.option_comment
public void setOptionComment(String optionComment) { this.optionComment = optionComment == null ? null : optionComment.trim(); }
[ "public abstract void setComment(Comment comment);", "public abstract void setComment(String c);", "void setProductionDateComment(String productionDateComment);", "public void setComment(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localCommentTracker = true;\r\n } else {\r\n localCommentTracker = true;\r\n \r\n }\r\n \r\n this.localComment=param;\r\n \r\n\r\n }", "public void setComment(String tmp) {\r\n this.comment = tmp;\r\n }", "public void test_setComment() {\n String value = \"new_value\";\n reviewFeedback.setComment(value);\n\n assertEquals(\"'setComment' should be correct.\",\n value, BaseUnitTest.getField(reviewFeedback, \"comment\"));\n }", "public void setComments(String Comments);", "public void setComment(String comment) {\n this.comment = trimmedEmptyStringToNull(comment);\n }", "public void setComment(String newcomment) {\r\n\t\t//D.o(\"Setting comment\");\r\n\t\ttry {\r\n\t\t\tgetModelObject().setComment(newcomment);\r\n\t\t} catch (Exception e) {\r\n\t\t\tD.a(e);\r\n\t\t}\r\n\t}", "public void setComment(String cmt) {\n if (cmt == null){\n cmt = \"\";\n }\n comment = cmt;\n }", "public void setSp_comment(java.lang.String value)\n {\n __sp_comment = value; \n _userDefinedForSp_comment = true;\n }", "public void setOption(Long option) {\n this.option = option;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public CookieConfigType<T> setComment(String comment)\n {\n childNode.getOrCreate(\"comment\").text(comment);\n return this;\n }", "public void setComment (java.lang.String comment) {\r\n\t\tthis.comment = comment;\r\n\t}", "public void setCommentNum(Integer commentNum) {\r\n this.commentNum = commentNum;\r\n }", "public TranslationCondition setJavaDocCommentOp(OpFlag op) {\n\t\tthis.javaDocCommentOperation = op;\n\t\treturn TranslationCondition.this;\n\t}", "public void setAllowComment(Integer allowComment) {\n this.allowComment = allowComment;\n }", "public Builder setSpecificComment(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField1_ |= 0x00080000;\n specificComment_ = value;\n onChanged();\n return this;\n }", "public void setComments(String commentString)\r\n {\r\n if (commentString == null)\r\n {\r\n commentString = Constants.DOUBLE_QUOTES;\r\n }\r\n else\r\n {\r\n comments = commentString;\r\n }\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert the method's description here. Creation date: (13.02.2002 10:25:36)
public void initRecord(javax.servlet.http.HttpServletRequest request) throws Exception { setSalDate(null); setSum2Zero(); }
[ "@Override\n }", "public void mo5201a() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "protected void method_5557() {}", "public void mo9609a() {\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "protected void method_2117() {\n }", "@Override\r\n public void publicando() {\n }", "public void mo12155e() {\n }", "public void mo15109c() {\n }", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "public void mo28221a() {\n }", "public void mo5203c() {\n }", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\n public void extornar() {\n \n }", "public void mo25169t() {\n }", "public void mo26342c() {\n }", "public void mo17751g() {\n }", "public void mo105722a() {\n }", "public void mo19881c() {\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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() { jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); Main_Menu_Bar = new javax.swing.JPanel(); jLabel_Main_Menu_Title = new javax.swing.JLabel(); jButton_Simulation_Return = new javax.swing.JButton(); jButton_Simulation_Pause = new javax.swing.JButton(); jPanel_Simulation_Status = new javax.swing.JPanel(); jLabel_Simulation_Status_Title = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jPanel_Simulation_Area = new javax.swing.JPanel(); jMenu1.setText("File"); jMenuBar1.add(jMenu1); jMenu2.setText("Edit"); jMenuBar1.add(jMenu2); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setPreferredSize(new java.awt.Dimension(1024, 768)); setResizable(false); Main_Menu_Bar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); Main_Menu_Bar.setName("jpanel_menuBar"); // NOI18N jLabel_Main_Menu_Title.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N jLabel_Main_Menu_Title.setForeground(new java.awt.Color(0, 0, 153)); jLabel_Main_Menu_Title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel_Main_Menu_Title.setText("Simulator"); jButton_Simulation_Return.setForeground(new java.awt.Color(0, 0, 102)); jButton_Simulation_Return.setText("Return to main menu"); jButton_Simulation_Return.setMaximumSize(new java.awt.Dimension(240, 23)); jButton_Simulation_Return.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { backToMM(evt); } }); jButton_Simulation_Pause.setForeground(new java.awt.Color(0, 0, 102)); jButton_Simulation_Pause.setText("Pause simulation"); jButton_Simulation_Pause.setToolTipText(""); jButton_Simulation_Pause.setMaximumSize(new java.awt.Dimension(240, 23)); javax.swing.GroupLayout Main_Menu_BarLayout = new javax.swing.GroupLayout(Main_Menu_Bar); Main_Menu_Bar.setLayout(Main_Menu_BarLayout); Main_Menu_BarLayout.setHorizontalGroup( Main_Menu_BarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(Main_Menu_BarLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabel_Main_Menu_Title, javax.swing.GroupLayout.DEFAULT_SIZE, 986, Short.MAX_VALUE) .addContainerGap()) .addGroup(Main_Menu_BarLayout.createSequentialGroup() .addGap(232, 232, 232) .addComponent(jButton_Simulation_Return, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(55, 55, 55) .addComponent(jButton_Simulation_Pause, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); Main_Menu_BarLayout.setVerticalGroup( Main_Menu_BarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(Main_Menu_BarLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabel_Main_Menu_Title, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(Main_Menu_BarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton_Simulation_Return, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE) .addComponent(jButton_Simulation_Pause, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)) .addContainerGap()) ); jPanel_Simulation_Status.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel_Simulation_Status_Title.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N jLabel_Simulation_Status_Title.setForeground(new java.awt.Color(0, 51, 204)); jLabel_Simulation_Status_Title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel_Simulation_Status_Title.setText("Simulation Log"); jLabel_Simulation_Status_Title.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane1.setViewportView(jTextArea1); javax.swing.GroupLayout jPanel_Simulation_StatusLayout = new javax.swing.GroupLayout(jPanel_Simulation_Status); jPanel_Simulation_Status.setLayout(jPanel_Simulation_StatusLayout); jPanel_Simulation_StatusLayout.setHorizontalGroup( jPanel_Simulation_StatusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel_Simulation_StatusLayout.createSequentialGroup() .addContainerGap() .addGroup(jPanel_Simulation_StatusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel_Simulation_Status_Title, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)) .addContainerGap()) ); jPanel_Simulation_StatusLayout.setVerticalGroup( jPanel_Simulation_StatusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel_Simulation_StatusLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabel_Simulation_Status_Title) .addGap(18, 18, 18) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 565, Short.MAX_VALUE) .addContainerGap()) ); jPanel_Simulation_Area.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jPanel_Simulation_Area.setName("Simulation Area"); // NOI18N javax.swing.GroupLayout jPanel_Simulation_AreaLayout = new javax.swing.GroupLayout(jPanel_Simulation_Area); jPanel_Simulation_Area.setLayout(jPanel_Simulation_AreaLayout); jPanel_Simulation_AreaLayout.setHorizontalGroup( jPanel_Simulation_AreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE) ); jPanel_Simulation_AreaLayout.setVerticalGroup( jPanel_Simulation_AreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Main_Menu_Bar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(jPanel_Simulation_Area, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel_Simulation_Status, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(Main_Menu_Bar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel_Simulation_Status, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel_Simulation_Area, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); pack(); }
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public Form_Main() {\n initComponents();\n }", "public arithmuMainForm() {\n initComponents();\n }", "public FormVerTurma() {\n initComponents();\n }", "public Cusromer() {\n initComponents();\n }", "public GradeForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public JFCargo() {\n initComponents();\n }", "public frmHeThongBaiTap() {\n initComponents();\n }", "public Form3() {\n initComponents();\n }", "public GolfGUI3() {\n initComponents();\n }", "public Anual() {\n initComponents();\n }", "public SolidsForm() {\n initComponents();\n initializeComponents();\n }", "public FormDni() {\n initComponents();\n }", "public FirstInputForm() {\n initComponents();\n }", "public Voranmeldung() {\r\n initComponents();\r\n \r\n }", "public E9() {\n initComponents();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column MTL_SYSTEM_ITEMS_B.START_DATE_ACTIVE
public Date getStartDateActive() { return startDateActive; }
[ "@Temporal(TemporalType.DATE)\n @Column(name=\"START_DATE\", length=10)\n public Date getStartDate() {\n return this.startDate;\n }", "public Date getStartDate() {\r\n\t\tsuper.tryFetch();\r\n\t\treturn startDate;\r\n\t}", "public java.util.Date getActiveDate () {\r\n\t\t\treturn activeDate;\r\n\t}", "public Date getStartDate() {\n if (startDate == null) {\n startDate = APIHelpers.stringToDate(start_date);\n }\n return startDate;\n }", "@Accessor(qualifier = \"startDate\", type = Accessor.Type.GETTER)\n\tpublic Date getStartDate()\n\t{\n\t\tif (this._startDate!=null)\n\t\t{\n\t\t\treturn _startDate;\n\t\t}\n\t\treturn _startDate = getPersistenceContext().getValue(STARTDATE, _startDate);\n\t}", "public void setStartDateActive(Date startDateActive) {\n this.startDateActive = startDateActive;\n }", "public Date getStartDate() \r\n\t{\r\n\t\treturn startDate;\r\n\t}", "public Date getStartDate()\r\n {\r\n return startDate;\r\n }", "public long getStartDate()\n {\n return startDate;\n }", "public Timestamp getStartDate() {\r\n return startDate;\r\n }", "@java.lang.Override\n\t\t\tpublic long getStartDate() {\n\t\t\t\treturn startDate_;\n\t\t\t}", "protected AbsoluteDate getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n\n\t\treturn startDate;\n\t}", "@java.lang.Override\n\t\tpublic long getStartDate() {\n\t\t\treturn startDate_;\n\t\t}", "public int getDate_start() {\n return date_start;\n }", "public XMLGregorianCalendar getStartDate() {\n return startDate;\n }", "public Date getTransactionStartTime()\n {\n return transactionStartTime;\n }", "public Date getDateStartTime() {\n return dateStartTime;\n }", "public String getStartDate()\r\n\t{\r\n\t\treturn startDate;\r\n\t}", "public String getStartDate() {\n\n return startDate;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of include.
String getInclude();
[ "public boolean getInclude() {\n return include;\n }", "java.lang.String getIncludeObject();", "@Override\n public String[] getIncludes() {\n return this.includes;\n }", "public java.lang.String getIncludeObject() {\n java.lang.Object ref = includeObject_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n includeObject_ = s;\n }\n return s;\n }\n }", "String[] getIncludes();", "public Optional<String> included() {\n return Optional.empty();\n }", "public boolean isIncluded() {\n return included;\n }", "public String getIncludeFec() {\n return this.includeFec;\n }", "@JSProperty(\"include\")\n void setInclude(String value);", "public ILoaderWithInclude include(Expression<?> path);", "public IncludeModeEnum getIncludeMode() {\n return includeMode;\n }", "public void setIncludes(String includes) {\n this.includes = includes;\n }", "public ILoaderWithInclude include(String path);", "proto.GameVersionFeatureValueIncludedFeatureEnum getIncludedFeature();", "public void setInclude(boolean include) {\n this.include = include;\n }", "public final void addInclude(String include){\r\n\t\tif (include==null || include.trim().length() == 0) return;\r\n\t\ttry {\r\n\t\t\tPattern pattern = Pattern.compile(include.trim());\r\n\t\t\tthis.includes.add(pattern);\r\n\t\t} catch (Exception e){\r\n\t\t\tLog.service(Log.WARNING, String.format(\"%1$-20s Invalid include expression %2$s\", this.getScriptName(),include.trim()));\r\n\t\t}\r\n\t}", "@Override\n public Void visitIncludeDef(IncludeDef include, ElmContext context) {\n newConstruct(\"include\");\n output.append(String.format(\"%s %s\", currentSection, include.getPath()));\n if (!Strings.isNullOrEmpty(include.getVersion())) {\n output.append(String.format(\" version \\'%s\\'\", include.getVersion()));\n }\n if (!Strings.isNullOrEmpty(include.getLocalIdentifier())) {\n output.append(String.format(\" called %s\", include.getLocalIdentifier()));\n }\n return super.visitIncludeDef(include, context);\n }", "private int getIncludeMask() {\n return showSearchInDialogAction.getSearchInDialog().getIncludeMask();\n }", "public HashMap<String, CQLIncludeLibrary> getIncludeLibraryMap() {\n\t\treturn includeLibraryMap;\n\t}", "public List<File> getIncludeDirectories() \n {\n return includeDirectories;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The postHandle method runs always in the main application thread.
public Node postHandle(final Node arg0, final Message<Event, Object> message) { // runs in FX application thread if (!message.messageBodyEquals(FXUtil.MessageUtil.INIT)) { name.setText(message.getTypedMessageBody(String.class)); } return this.pane; }
[ "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tlog.info(\"==============执行顺序: 2、\" + this.getClass().getName() + \" postHandle================\");\r\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tlogger.info(\"postHandle - start..........................\");\r\n\t\tsuper.postHandle(request, response, handler, modelAndView);\r\n\t}", "@Override\n\tprotected void postHandle(ServletRequest req, ServletResponse resp)\n\t\t\tthrows Exception {\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\t@Nullable ModelAndView modelAndView) throws Exception {\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\t@Nullable ModelAndView modelAndView) throws Exception {\n\t\tString uri = request.getRequestURI();\n\t\tSystem.out.println(\"#### posthandle: \"+uri);\n\t}", "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n @Nullable ModelAndView modelAndView) throws Exception {\n System.out.println(\" postHandler interceptor...\");\n\n }", "@Override\n public void postHandle(final HttpServletRequest request, final HttpServletResponse response, final Object handler, final ModelAndView modelAndView)\n throws Exception {\n LOG.info(\"[postHandle][\" + request + \"]\");\n }", "public void post(Runnable runnable){\n handler.post(runnable);\n }", "@Override\r\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {\n }", "public static void handle() {\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tsendPost();\n\t\n\t\t\t\t\t}", "public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\t\t\n\t\t\n\t}", "@Override\n public void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n throws Exception {\n \n }", "@Override\n public void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n throws Exception {\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object obj, ModelAndView modelAndView)\n\t\t\tthrows Exception {\n\t\t\n\t}", "void post(Runnable runnable);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void setController(MainControllerOperations controller) { pagar.addActionListener((event) -> { if(!nombreText.getText().isEmpty()){ controller.pagar(); }else { JOptionPane.showMessageDialog(this, "campos vacios"); } }); gastar.addActionListener((event) -> { // System.out.println(Integer.valueOf(gastarfield.getText())); if (!gastarfield.getText().isEmpty() && esDouble(gastarfield.getText())) { controller.gastar(Double.valueOf(gastarfield.getText())); } else { JOptionPane.showMessageDialog(this, "Caracter invalido o vacio"); } }); balance.addActionListener((event) -> { if(!dineroText.getText().isEmpty() || !deudaText.getText().isEmpty()){ controller.balance(); }else { JOptionPane.showMessageDialog(this, "campos vacios"); } }); limpiar.addActionListener((event) -> { if(!nombreText.getText().isEmpty()){ controller.limpiar(); }else { JOptionPane.showMessageDialog(this, "campos vacios"); } }); baigorria.addActionListener((event)->{ controller.setEmpleadoBaigorria(); }); galvan.addActionListener((event)->{ controller.setEmpleadoGalvan(); }); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
save a couple of customers
@Override public void run(String... args) throws Exception { Record r = new Record("record first"); //rep.save(r); // fetch all customers log.info("Users found with findAll():"); log.info("-------------------------------"); /*List<Record> records = rep.findAll(); for (Record rep : records) { log.info(rep.toString()); } log.info(""); // fetch an individual customer by ID Record rr = rep.findById(r.getId()).orElse(null); log.info("Record found with find(1L):"); log.info("--------------------------------"); System.out.println(rr); log.info("");*/ System.out.println("Done!"); }
[ "public void save(Customer customer) {\n\t}", "static void saveCustomer() {\n\t\tfileController.writeCustomersToFile(manager.getCustomers());\n\t}", "public List<Customer> saveCustomers(List<Customer> customers) {\n\t\treturn customerRepo.saveAll(customers);\n \t \n\t}", "public Customers save(Customers cus) {\n\t\treturn customerRepository.save(cus);\n\t}", "public void storeCust(Customer customer) throws SQLException {\r\n\t\tpstmt.setString(1, customer.getEmail());\r\n\t\tpstmt.setString(2, customer.getPassword());\r\n\t\tpstmt.setString(3, customer.getId());\r\n\t\tpstmt.setString(4, customer.getTitle());\r\n\t\tpstmt.setString(5, customer.getLastName());\r\n\t\tpstmt.setString(6, customer.getFirstName());\r\n\t\tpstmt.setString(7, customer.getNationality());\r\n\t\tpstmt.setString(8, customer.getTel());\r\n\t\tpstmt1.setString(1, customer.getEmail());\r\n\t\tpstmt1.setString(2, customer.getPassword());\r\n\t\tpstmt.executeUpdate();\r\n\t\tpstmt1.executeUpdate();\r\n\t}", "@Override\r\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t//save the customer\r\n\t\tsession.saveOrUpdate(theCustomer);\r\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession curSession=sessionFactory.getCurrentSession();\n\t\t\n\t\t//save object\n\t\tcurSession.saveOrUpdate(theCustomer);\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession=sessionFactory.getCurrentSession();\n\t\t\n\t\t//save/update the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t}", "@Override\n\tpublic <S extends Customer> S save(S customer);", "public synchronized void save(Customer entry) {\n if (entry == null) {\n LOGGER.log(Level.SEVERE,\n \"Customer is null. Are you sure you have connected your form to the application ?\");\n return;\n }\n if (entry.getId() == null) {\n entry.setId(nextId++);\n }\n try {\n entry = (Customer) entry.clone();\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n contacts.put(entry.getId(), entry);\n persistToDisk();\n }", "void saveChanges(String name, Customer update);", "@Override\r\n\tpublic final void saveObjectData() throws BillingSystemException{\r\n\t\tint cnt=0;\r\n\t\t\r\n\t\tString data[][]=new String[listCustomer.size()][COL_LENGTH];\r\n\t\t\t\r\n\t\tfor (Iterator iter = listCustomer.iterator(); iter.hasNext();) {\r\n\t\t\r\n\t\t\tCustomer element = (Customer) iter.next();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdata[cnt][0]=element.getAcct().getAcctNo();\r\n\t\t\t\tdata[cnt][1]=element.getName();\r\n\t\t\t\tdata[cnt][2]=element.getAddress1();\r\n\t\t\t\tdata[cnt][3]=element.getAddress2();\r\n\t\t\t\tdata[cnt][4]=element.getAddress3();\r\n\t\t\t\tdata[cnt][5]=element.getContactTel();\r\n\t\t\t\tdata[cnt][6]=element.getInterest();\r\n\t\t\t\tdata[cnt][7]=String.valueOf(element.isDeleted());\r\n\t\t\t\tdata[cnt][8]=element.getNric();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tcnt++;\t\t\t\t\r\n\t\t\t}\r\n\t\tif(validateData(data,\"Customer\",COL_LENGTH)){\r\n\t\tif(!storeDataByArray(CUSTOMER_DATA_FILE, data))throw new BillingSystemException(\"Saving to File Operation Failed for CustomerData\");\r\n\t\t}\r\n\t}", "public void saveCustomer(Customer customer) {\n\t\tcustomerDao.save(customer);\n\t}", "public static void saveCustomer(String filename, List custAl) throws IOException {\n\t\tList alw = new ArrayList();// to store Professors data\n\t\tfor (int i = 0; i < custAl.size(); i++) {\n\t\t\tCustomer s1 = (Customer) custAl.get(i);\n\t\t\tStringBuilder st = new StringBuilder();\n\t\t\tst.append(s1.getName());\n\t\t\tst.append(SEPARATOR);\n\t\t\tst.append(s1.getContactNumber());\n\t\t\talw.add(st.toString());\n\t\t}\n\t\twrite(filename, alw);\n\t}", "@RequestMapping(\"/save\")\n\tpublic String save() {\n\t\trepository.save(new Customer(\"JSA-1\", \"Jack\", \"Smith\"));\n\n\t\t// save a list of Customers\n\t\trepository.save(Arrays.asList(new Customer(\"JSA-2\", \"Adam\", \"Johnson\"), new Customer(\"JSA-3\", \"Kim\", \"Smith\"),\n\t\t\t\tnew Customer(\"JSA-4\", \"David\", \"Williams\"), new Customer(\"JSA-5\", \"Peter\", \"Davis\")));\n\n\t\treturn \"Done\";\n\t}", "public void saveCustomer(Customer cust) {\r\n\r\n\t\t/* System.out.println(sessionFactory + \" \" + cust); */\r\n\t\tSession session = this.sessionFactory.getCurrentSession();\r\n\r\n\t\t/*\r\n\t\t * Address address = new Address(); address=cust.getAddress(); int\r\n\t\t * aid=(Integer) session.save(address); address.setAdID(aid);\r\n\t\t * cust.setAddress(address);\r\n\t\t */\r\n\r\n\t\tsession.persist(cust);\r\n\r\n\t}", "@Transactional(propagation = Propagation.REQUIRED)\n public Customers saveCustomer(Customers objCustomer, Users objUser);", "public void saveCustomerAndOrderSeparately() throws Exception{\n Session session = sessionFactory.openSession();\n Transaction tx = null;\n try {\n // Create some data and persist it\n tx = session.beginTransaction();\n\n Customer customer=new Customer();\n customer.setName(\"Jack\");\n\n Order order=new Order();\n order.setOrderNumber(\"Jack_Order001\");\n\n session.save(customer);\n session.save(order);\n\n\n // We're done; make our changes permanent\n tx.commit();\n\n }catch (Exception e) {\n if (tx != null) {\n // Something went wrong; discard all partial changes\n tx.rollback();\n }\n e.printStackTrace();\n } finally {\n // No matter what, close the session\n session.close();\n }\n }", "public String saveSale(CustomerAccount customerAccount);", "public void createCustomersInQBO(List<Customer> customers) {\n if (customers == null) {\n throw new RuntimeException(\"No customers to create\");\n }\n DataService dataService = qboServiceFactory.getDataService(customers.get(0).getCompany());\n\n // Determine which customers need to be pushed to QBO\n Set<Customer> customersToPush = new HashSet<>();\n Set<Customer> customersToSave = new HashSet<>();\n determineUsersToPushAndSave(dataService, customers, customersToPush, customersToSave);\n // Save the customers which already exist in QBO, but have had their qboId's updated\n customerDAO.save(customersToSave);\n // Push the Sales Item which do not already exist in QBO to QBO\n if (!customersToPush.isEmpty()) {\n pushCustomersToQBO(dataService, customersToPush);\n }\n // Save the updated customers which were pushed to QBO\n customerDAO.save(customersToPush);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of findByNamePhase method, of class ActivityDAOImpl.
@Test public void test06FindByNamePhase() { ActivityDAO dao = ActivityFactory.create(Activity.class); List<Activity> lista = dao.findByNamePhase("evaluacion"); for (Activity activity : lista) { assertEquals(activity.getActivityPK().getNamePhase(), "evaluacion"); } System.out.println("objetos" + lista); }
[ "@Test\n public void testFindByName() {\n assertEquals(0, service.findByName(\"NOT_FOUND\").size());\n assertEquals(1, service.findByName(city.getName()).size());\n }", "@Test\n\tpublic void findRuleByNameTest() {\n\t\tRule rule = createRule();\n\t\truleDAO.persistRule(rule);\n\t\tassertNotNull(rule.getId());\n\t\tassertNotNull(ruleDAO.findRuleByName(rule.getRuleName()));\n\t}", "@Test\n\tpublic void searchParkByNameShouldReturnTheSameParkIfFound() {\n\t\tString searchParam = \"Acadia\";\n\t\tPark actualResults = pdao.searchParkByName(searchParam);\n\t\tassertEquals(searchParam, actualResults.getParkName());\n\t}", "@Test\n public void whenDoFindByNameThenGetItemByName() {\n this.tracker.addItem(this.itemT1);\n this.tracker.addItem(this.itemT2);\n assertThat(this.itemT2, is(this.tracker.findByName(\"name2\")[0]));\n }", "abstract public int findName(String name);", "@Test\n public void testFindByEmName() {\n System.out.println(\"findByEmName\");\n String emName = \"\";\n EmployeeDAO instance = new EmployeeDAO();\n IEmployee expResult = null;\n IEmployee result = instance.findByEmName(emName);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void validatefindByName() throws NotFoundException {\n\t\tString name = \"mars\"; //Just turn it to null in order to testify\n\t\tassertNotNull(\"Parameter name informed must not be null.\", name);\n\t\tassertNotNull(\"Parameter name informed not found.\", planetBusiness.findByName(name).isEmpty());\n }", "@Test(retryAnalyzer = RetryRule.class)\r\n\tpublic void searchbyname(){\n\t\t// Step-1: Load the application //\r\n\t\t// ------------------------------------------------------------------//\r\n\t\r\n\t\thomePage = loginUser1();\r\n\t\tlog.info(\"Successfully navigated to Preferences Page.\");\r\n\t\t\r\n\t\t// ------------------------------------------------------------------//\r\n\t\t// Step-2: Get the test data //\r\n\t\t// ------------------------------------------------------------------//\r\n\t\tHashedMap testData = ExcelReader.getTestDataByTestCaseId(\r\n\t\t\t\t\"TC_CT_001\", SearchByAnyName.class.getSimpleName());\r\n\t\tlog.info(testData.get(\"TC_ID\").toString() + \" - \");\r\n\t\t\r\n\t\t// ------------------------------------------------------------------//\r\n\t\t// Step-2: Load the application //\r\n\t\t// ------------------------------------------------------------------//\r\n\t\thomePage = PageFactory.initElements(driver, HomePage.class);\t\r\n\t\tHomeScreen homeobject = homePage.navigateToHomePage();\r\n\t\t\r\n\t\tSearchPage searchobject = homePage.navigateToSearchPage();\r\n\t\tlog.info(\"Successfully loaded Home Page elements\");\r\n\t\t\r\n\t\t// ------------------------------------------------------------------//\r\n\t\t// Step-3:Search by name //\r\n\t\t// ------------------------------------------------------------------//\r\n\t\tAssert.assertTrue(homeobject.searchbyanyname(testData));\r\n\t\t\r\n\t\t// ------------------------------------------------------------------//\r\n\t\t// Step-4:Verify Search Screen page //\r\n\t\t// ------------------------------------------------------------------//\r\n\t\tAssert.assertTrue(searchobject.searchPage());\r\n\t\t\t\r\n\t}", "@Test\n void whenFindByExistingName_ThenReturnKeyword() {\n // given\n // when\n foundKeyword = keywordRepository.findByName(keyword1.getName());\n\n // then\n assertThat(foundKeyword).isPresent();\n assertThat(keyword1.getId()).isEqualTo(foundKeyword.get().getId());\n assertThat(keyword1.getName()).isEqualTo(foundKeyword.get().getName());\n }", "@Test\n\tpublic void findNameShouldFindTheObjectNameWhenNameExists() {\n\t\t\n\t\tPageRequest pageRequest = PageRequest.of(0, 10);\n\t\tPage<Client> result = repository.findClientByName(existingName,pageRequest);\n\t\t\n\t\tAssertions.assertFalse(result.isEmpty());\n\t}", "@Override\n\tpublic Integer findName(String name) {\n\t\treturn dao.findName(name);\n\t}", "public Departament findByName(String name);", "@Test\n\tpublic void should_find_venue_when_keyword_exist() {\n\t\twhen(venueService.findByName(\"vn\")).thenReturn(venue);\n\t\twhen(bookingDAO.findByVenue(eq(venue),any())).thenReturn(pageFromJPA);\n\n\t\t//Execute\n\t\tPage4Navigator<Booking> page=bookingService.searchByVenue(\"vn\",0,5,1);\n\t\tArgumentCaptor<Venue> venueCaptor=ArgumentCaptor.forClass(Venue.class);\n\t\tverify(bookingDAO).findByVenue(venueCaptor.capture(),ArgumentCaptor.forClass(Pageable.class).capture());\n\t\tassertEquals(venueCaptor.getValue(),venue);\n\n\t}", "@Test\r\n public void testGetName() {\r\n ArenaDao dao = mock(ArenaDao.class);\r\n when(dao.getString(\"name\")).thenReturn(\"Testnamn\");\r\n System.out.println(\"getName\");\r\n Arena instance = new Arena(dao);\r\n String expResult = \"Testnamn\";\r\n String result = instance.getArenaName();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "@Test\n public void testSearchByName() {\n roomService.add(\"Ampere\", \"CSE\", true, true, building.getId(), 200, 200, \"Open\");\n roomService.add(\"Boole\", \"CSE2\", true, true, building2.getId(), 200, 200, \"Closed\");\n List<Room> rooms = roomService.search(\"name:Ampere\");\n assertTrue(rooms.contains(room));\n assertFalse(rooms.contains(room2));\n }", "@Test\n public void findReleaseByNameTest() throws Exception\n {\n assertNull(\"The result of trying to find a release when no releases are present should be null.\", project.findReleaseByName(\"Doesn't Matter\"));\n\n Release release = new Release();\n release.setId(ObjectId.get());\n release.setName(\"A Release\");\n\n project.addRelease(release);\n assertSame(\"The release we just added should be the same as what is returned from findRelease.\", release, project.findReleaseByName(release.getName()));\n }", "@Test\n\tpublic void patientSearchByName() {\n\t\tboolean testPerformed = true;\n\t\tboolean testPassed = true;\n\t\tassertTrue(testPerformed && testPassed);\n\t}", "@Test\n public void testSearchByName() {\n System.out.println(\"searchByName\");\n String name = \"\";\n ContactList instance = new ContactList();\n instance.searchByName(name);\n }", "@Test\n\tpublic void findMovieByName() {\n\t\tMovie m1 = new Movie(121, \"Avengers\", 2014, \"English\", true, \"Divya\");\n\t\tList<Movie> s = service.findByName(\"Avengers\");\n\t\tassertEquals(m1, s.get(0));\n\t}", "@Test\r\n public void testSearchByName() {\r\n String name = \"Position\";\r\n List<Position> positions = repository.searchByName(name);\r\n this.assertList(Arrays.asList(position1, position2, position3), positions);\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the parent token of a given annotation
public Token getParent(Annotation anno){ for(Dependency d : dependencies){ if(d.getDependent().getBegin() == anno.getBegin() && d.getDependent().getEnd() == anno.getEnd()){ return d.getGovernor(); } } return null; }
[ "private AnnotatedElement getParentOf(AnnotatedElement e) {\n if (e instanceof Member)\n return ((Member)e).getDeclaringClass();\n if (e instanceof Class)\n return ((Class)e).getPackage();\n /*\n if (e instanceof Package)\n it is not possible to make recursive parent package look-up works, because in Java,\n package is only defined when a class is loaded inside it.\n */\n\n return null;\n }", "public IScope getParent();", "public int getParent();", "LexicalScopingResolver getParent();", "public T getParent();", "public Optional<AssemblerScope> getParent() {\n return Optional.ofNullable(parent);\n }", "public String getParentRef() {\n\n //option to take from file as well\n if(parentRef==null && includeParent) {\n return getStringKey(PdfDictionary.Parent);\n } else {\n return parentRef;\n }\n }", "Region getParent();", "@Nullable\n public abstract Long getParentSpanId();", "java.lang.String getParentID();", "String getParentid();", "default _annotation getNestedAnnotation( String name){\n List<_type> ts = listNests( (t)-> t instanceof _annotation && t.getName().equals(name));\n if( ts.size() == 1 ){\n return (_annotation)ts.get(0);\n }\n return null;\n }", "public Tag getParent()\n {\n return this.parent;\n }", "public String getParent() {\n return parent;\n }", "public Scope getParent()\n\t{\n\t\treturn parent;\n\t}", "java.lang.String getParent(int index);", "public YangNodeInstancePath getParent();", "@Override\n public AnnotationMirror getTopAnnotation(AnnotationMirror start) {\n return start;\n }", "int getParentIdx();", "public Operator getParent();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Buffer store for stream
public void run() { byte[] buffer = new byte[1024]; int bytes; String readMessage; StringBuffer forwardBuffer = new StringBuffer(); char c; // Keep listening to the InputStream until an exception occurs while (true) { try { //Read from the InputStream bytes = mmInStream.read(buffer); readMessage = new String(buffer, 0, (bytes != -1) ? bytes : 0 ); for(int i = 0; i < readMessage.length(); i++) { c = readMessage.charAt(i); if(c == START_FLAG) { //Don't do anything with start flag } else if(c == ACK_FLAG) { Log.w("forwardbuffer", forwardBuffer.toString()); forwardBuffer = new StringBuffer(); } else { forwardBuffer.append(c); } } //Create an key press intent //Intent intent = new Intent(""); //intent.putExtra(key, value); //Broadcast it //m_context.sendBroadcast(intent); } catch (IOException e) { break; } } }
[ "public synchronized byte[] getBuffer() \n\t{\n\t\treturn this.buf;\n\t}", "public byte[] buffer() {\n return buffer;\n }", "public TemporaryBuffer getBuffer() {\n\t\treturn buffer;\n\t}", "private Buffer getBuffer() {\n return getSample().getBuffer();\n }", "public byte[] getBuffer() {\n\t\treturn file.buf;\n\t}", "public void stashBuffer(final Buffer buffer) {\n dataFromModem.add(buffer);\n }", "public void startBuffer() {\n\t\tbuffer = new ArrayList<String>();\n\t}", "Appendable getDirectBuffer();", "public PushBufferStream getStream()\n {\n return stream;\n }", "public synchronized ByteBuffer bufferView()\n/* */ {\n/* 34 */ return ByteBuffer.wrap(this.buf, 0, this.count);\n/* */ }", "public PerlList<Byte> getBuffer() {\n\t\treturn buffer;\n\t}", "public blockbuf() {}", "public NettyImmutableDataBuf(@NonNull Buffer buffer) {\n this.buffer = buffer;\n }", "public abstract void save(ByteBuffer buffer);", "protected JBuffer getMemoryBuffer(byte[] buffer) {\n\t\tpool.allocate(buffer.length, memory);\n\t\tmemory.transferFrom(buffer);\n\n\t\treturn memory;\n\t}", "public StringBuffer getBuffer();", "public long getBufferBytes() {\n return bufferBytes;\n }", "void buildDataBuffer(GByteBuffer buf,long connectionId,int streamId,int segment,long pos)throws IOException;", "public double[] getBuffer() {\n return buffer;\n }", "public ByteBuffer getBuffer() {\n\t\t\n\t\treturn buf;\n\t\t\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean onTouchEvent(MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) { No_of_Touches++; if (event.getX() > 0 && event.getX() <= (width / 3) && event.getY() <= (height / 3) && event.getY() >= 0) cell = temp = 1; else if (event.getX() > (width / 3) && event.getX() <= (2 * width / 3) && event.getY() <= (height / 3) && event.getY() >= 0) cell = temp = 2; else if (event.getX() > (2 * width / 3) && event.getX() <= width && event.getY() <= (height / 3) && event.getY() >= 0) cell = temp = 3; else if (event.getX() > 0 && event.getX() <= width / 3 && event.getY() <= (2 * (height) / 3) && event.getY() > (height / 3)) cell = temp = 4; else if (event.getX() > (width / 3) && event.getX() <= (2 * width / 3) && event.getY() <= (2 * height / 3) && event.getY() > height / 3) cell = temp = 5; else if (event.getX() > (2 * width / 3) && event.getX() <= width && event.getY() <= (2 * height / 3) && event.getY() > height / 3) cell = temp = 6; else if (event.getX() > 0 && event.getX() <= (width / 3) && event.getY() <= (height) && event.getY() > 2 * height / 3) cell = temp = 7; else if (event.getX() > (width / 3) && event.getX() <= (2 * width / 3) && event.getY() > (2 * height / 3) && event.getY() <= height) cell = temp = 8; else if (event.getX() > (2 * width / 3) && event.getX() <= width && event.getY() > (2 * height / 3) && event.getY() <= height) cell = temp = 9; confirmPassword += selectedCell[temp - 1] + page[No_of_Touches - 1]; if (No_of_Touches == 5) { if (confirmPassword.contentEquals(SetPass.password)) { set = true; SaveText(); if(!Work.done){ Intent startwork = new Intent( "project.minor.screenlocker.WORK"); startActivity(startwork); } else finish(); } else { Toast.makeText(this, "Mismatch!! Enter Again!!", Toast.LENGTH_LONG).show(); Intent starthome = new Intent( "project.minor.screenlocker.SETPASS"); startActivity(starthome); } } else { if (touch[cell - 1] != 1) { cell = flag; flag++; } drawView.setBackgroundResource(id[cell]); touch[temp - 1]++; } } return super.onTouchEvent(event); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used object in the method argument and had override annotation.
@Override public boolean equals(Object obj) { // Compared reference to this. if(this == obj) { return true; } // Check against proper type. if(!(obj instanceof PhoneNumber)) { return false; } // Typecast to proper type. PhoneNumber pn = (PhoneNumber)obj; // Checked all the significant fields. return pn.lineNum == lineNum && pn.areaCode == areaCode; }
[ "public void setOverride(boolean arg0) {\n\r\n\t}", "Override createOverride();", "private void addOverrides() \n\t{\n\t}", "void setOverridden() {\r\n\r\n isOverridden = true;\r\n\r\n }", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public boolean annotationMethodOverride() {\n ASTNode$State state = state();\n boolean annotationMethodOverride_value = annotationMethodOverride_compute();\n return annotationMethodOverride_value;\n }", "@Override\n public void methodToBeOverridden(int numb) {\n }", "GenOverride1(T o) { \n ob = o; \n }", "private void checkOverride(ContextVisitor tc, TypeSystem ts, Context context, MethodInstance mi, MethodInstance mj) {\n try {\n // due to covariant return type, the first argument should be the one with return type who is a subtype of the second\n MethodInstance mj2 = expandMacros(tc, ts, mi, mj);\n ts.checkOverride(mi, mj2, context);\n } catch (SemanticException e2) {\n try {\n MethodInstance mi2 = expandMacros(tc, ts, mj, mi);\n ts.checkOverride(mj, mi2, context);\n } catch (SemanticException e) {\n e.setPosition(this.position());\n Errors.issue(tc.job(),e, this);\n }\n }\n }", "@Override\n public void method() {\n }", "boolean getMustOverride();", "@Test\n\tpublic final void visitMethodCallsOnMethodOverrideIfDefaultInSuper() throws Exception {\n\t\twhenVisiting(SomeClientClass.class, \"someMethodWhichIsDefaultInSuper\", \"(I,Ljava.lang.String;)I\");\n\t\tonMethodOverrideCalled(SomeFrameworkClass.class, \"someMethodWhichIsDefaultInSuper\", int.class, String.class);\n\t\tonMethodOverrideNotCalledForAnyOtherMethod();\n\t}", "@Override\r\n\tvoid method_A(){\r\n\t\tSystem.out.println(\"Overridden\");\r\n\t}", "@Override\n\tvoid atacar() {\n\n\t}", "@Override\n public void extornar() {\n \n }", "@Override\n protected void beforeHookedMethod(MethodHookParam param) throws Throwable {\n }", "Update withIsOverride(Boolean isOverride);", "void method() {\n//\t\tsuper.method();\n\t}", "@Override\r\n\tpublic void method() {\n\t\tSystem.out.println(\"子类重写父类非final方法\");\r\n\t}", "@Override\n\t\t\t\tpublic Object intercept(Object arg0, Method arg1, Object[] arg2, MethodProxy arg3) throws Throwable {\n\t\t\t\t\treturn arg3.invokeSuper(arg0, arg2);\n\t\t\t\t}", "List overridesImpl();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtem o Ip do vendedor
public String getIp(){ return ip; }
[ "byte[] getRemoteIP();", "int getGameIp();", "public String getIp() {\n\t return ip;\n\t}", "@Override\r\n\tprotected String getIP() {\n\t\treturn this.ip;\r\n\t}", "public abstract String getServerIP();", "public void setIp(String tmp) {\n this.ip = tmp;\n }", "public String myIpAddressEx();", "public void setIpAddress(String tmp) {\n this.ipAddress = tmp;\n }", "public String getIpAddress() {\r\n ExternalContext context =\r\n FacesContext.getCurrentInstance().getExternalContext();\r\n HttpServletRequest req = (HttpServletRequest)context.getRequest();\r\n return req.getRemoteAddr();\r\n }", "public void setIp(InetAddress ip) {\r\n\t\tthis.ip = ip;\r\n\t}", "private void showIP() {\n DhcpInfo dhcpInfo = mEthManager.getSavedEthernetIpInfo();\n\n String IP = NetworkUtils.intToInetAddress(dhcpInfo.ipAddress).getHostAddress();\n mIP.setText(IP);\n\n String mGW = NetworkUtils.intToInetAddress(dhcpInfo.gateway).getHostAddress();\n mGateWay.setText(mGW);\n\n String mNM = NetworkUtils.intToInetAddress(dhcpInfo.netmask).getHostAddress();\n mNetMask.setText(mNM);\n\n String dns1 = NetworkUtils.intToInetAddress(dhcpInfo.dns1).getHostAddress();\n mDNS1.setText(dns1);\n\n String dns2 = NetworkUtils.intToInetAddress(dhcpInfo.dns2).getHostAddress();\n mDNS2.setText(dns2);\n}", "private void initIp() {\n\t\t\n\t\tfinal String Url=new Configs().new ServerInterface().GET_IP;\n\t\tnew Thread() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t \n\t\t\t\ttry {\n\t\t\t\t\t String ip=RequestUtil.getInstance().request(Url);\n\t\t\t\t\t Log.d(\"ip\",ip);\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t boolean isIP = ip.length()>20?false:true; \n\t\t\t\t\t\n\t\t\t\t\t if(isIP){\n\t\t\t\t\t\t Ip=ip;\n//\t\t\t\t\t\t Log.d(\"ip\",Ip);\n\t\t\t\t\t\t mHandler.sendEmptyMessage(IP_INIT);\n\t\t\t\t\t }\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t \n\t\t\t \n\t\t\t}\n\t\t\t\n\t\t}.start();\n//\t\tfn.post(new Configs().new ServerInterface().GET_IP, new AjaxCallBack<Object>(){\n//\n//\t\t\t@Override\n//\t\t\tpublic void onSuccess(Object t) {\n//\t\t\t\t// TODO Auto-generated method stub\n//\t\t\t\t String ip=t.toString();\n//\t\t\t\t Log.d(\"debug\",ip);\n//\t\t\t\t boolean isIP = ip.length()>20?false:true; \n//\t\t\t\t\n//\t\t\t\t if(isIP){\n//\t\t\t\t\t mtv_ip.setText(ip);\n//\t\t\t\t }\n//\t\t\t}\n//\t\t\t \n//\t\t});\n\t}", "public void setIpAddress(String ip) {\n this.ipAddress = ip;\n }", "public abstract String getIpAddr();", "private int getIP() {\n return IP;\n }", "public String getIPAddress() {\n return this.IPAddress;\n }", "public void setHost( String host){\n ip = host;\n }", "public static String getIP() {\n return ip;\n }", "public abstract InetAddress getIpAdress();", "public String getIp() {\n return (String) get(26);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated setter method
public void setEducationLevel(java.lang.String param){ if (param != null){ //update the setting tracker localEducationLevelTracker = true; } else { localEducationLevelTracker = true; } this.localEducationLevel=param; }
[ "abstract protected void set(Object value);", "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}", "@Override\n\tpublic void setValue() {\n\t\t\n\t}", "public abstract void _set(int value);", "@Override\n\tprotected Object doSet(String property, Object value) {\n\t\treturn super.doSet(property, value);\n\t}", "public void set(T value) ;", "@Override\n\t\tpublic void setValue(Object value) {\n\t\t}", "public void setValue(String value)\n/* */ {\n/* 74 */ this.value = value;\n/* */ }", "public void set(String name, Object value);", "protected void set(T value) throws CmdLineException\n {\n setter.addValue(value);\n }", "void set(String name, String value);", "public interface SetProxy { void set(String name, Object val); }", "abstract public void set(String property, String value);", "public void set(T value);", "public void setValue(String value)\r\n/* 16: */ {\r\n/* 17:46 */ this.value = value;\r\n/* 18: */ }", "@Override\r\n public void set(T value){\r\n this.data = value;\r\n }", "public final void setValue(String attributeName, Object value) {\n if (getValueObject() == null) {\n return;\n }\n try {\n Method[] writeMethods = (Method[]) voSetterMethods.get(attributeName);\n if (writeMethods != null) {\n Object oldValue = getValue(attributeName);\n if (value != null) {\n if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(java.sql.Date.class)\n && value.getClass().equals(java.util.Date.class)) {\n value = new java.sql.Date(((java.util.Date) value).getTime());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(java.sql.Timestamp.class)\n && value.getClass().equals(java.util.Date.class)) {\n value = new java.sql.Timestamp(((java.util.Date) value).getTime());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(java.sql.Timestamp.class)\n && value.getClass().equals(java.sql.Date.class)) {\n value = new java.sql.Timestamp(((java.sql.Date) value).getTime());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Integer.class)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Integer(((java.math.BigDecimal) value).intValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Integer.TYPE)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Integer(((java.math.BigDecimal) value).intValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Long.class)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Long(((java.math.BigDecimal) value).longValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Long.TYPE)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Long(((java.math.BigDecimal) value).longValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Double.class)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Double(((java.math.BigDecimal) value).doubleValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Double.TYPE)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Double(((java.math.BigDecimal) value).doubleValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Float.class)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Float(((java.math.BigDecimal) value).floatValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Float.TYPE)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Float(((java.math.BigDecimal) value).floatValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Short.class)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Short(((java.math.BigDecimal) value).shortValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].equals(Short.TYPE)\n && value.getClass().equals(java.math.BigDecimal.class)) {\n value = new Short(((java.math.BigDecimal) value).shortValue());\n } else if (writeMethods[writeMethods.length - 1].getParameterTypes()[0].isEnum() //Nelson Moncada\n && value.getClass().isEnum()) {\n Class c = value.getClass();\n value = Enum.valueOf(c, value.toString());\n }\n }\n\n Object obj = getValueObject();\n if (obj != null) {\n for (int i = 0; i < writeMethods.length - 1; i++) {\n obj = writeMethods[i].invoke(obj, new Object[0]);\n\n // check if the inner v.o. is null...\n if (obj == null) {\n if (!createInnerVO) {\n return;\n } else {\n obj = (ValueObject) writeMethods[i].getReturnType().newInstance();\n }\n }\n }\n }\n\n if (value == null && oldValue != null\n || value != null && oldValue == null\n || value != null && oldValue != null && !value.equals(oldValue)) {\n boolean isOk =\n form.getFormController() == null\n ? true\n : form.getFormController().validateControl(\n attributeName,\n oldValue,\n value);\n if (isOk) {\n writeMethods[writeMethods.length - 1].invoke(obj, new Object[]{value});\n fireValueChanged(attributeName, oldValue, value);\n } else {\n form.pull(attributeName);\n }\n }\n }\n } catch (Exception ex) {\n Logger.error(this.getClass().getName(), \"setValue\", \"Error while writing the value object attribute '\" + attributeName + \"'\", ex);\n }\n }", "public abstract void setValue(final Object value);", "public Method getSetter() {\n\n return setter;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use DEFAULTHRULEWIDTH for the default.
public int getWidth() { return (Integer) getStructElement("Width"); }
[ "public int getDefaultWidth() {\n return 150;\n }", "public void setNilMaxWidth()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlShort target = null;\r\n target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(MAXWIDTH$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlShort)get_store().add_element_user(MAXWIDTH$4);\r\n }\r\n target.setNil();\r\n }\r\n }", "@Override\n\t@SimpleProperty()\n\tpublic void Width(int width) {\n\t\tif (width == LENGTH_PREFERRED) {\n\t\t\twidth = LENGTH_FILL_PARENT;\n\t\t}\n\t\tsuper.Width(width);\n\t}", "protected int getMaxFieldWidth() {\r\n\t\treturn convertWidthInCharsToPixels(40);\r\n\t}", "void setWidth(Expression width);", "public double getDesiredWidth();", "public int getWIDTH() {\n\t\treturn 0;\r\n\t}", "public int getDxaWidth()\n {\n return field_45_dxaWidth;\n }", "public static float getDefaultBorderWidth() {\r\n\t\treturn defaultBorderWidth;\r\n\t}", "public int getFillRule() {\n\tsubclassFunctionMission();\n\treturn 0;\n}", "public void setWidth(String tmp) {\n this.width = tmp;\n }", "public int getMaxWidth() {\r\n return -1;\r\n }", "private double getPrecalculatedWidth() {\n\t\tText sample = new Text(\"00:00\");\n\t\tsample.setFont(getFont());\n\t\tnew Scene(new Group(sample));\n\t\tsample.applyCss();\n\t\treturn sample.getLayoutBounds().getWidth();\n\t}", "@Override\n public void setWidth(double fValue) {\n this.getRenderable().setWidth(fValue);\n }", "public int getFixedCellWidth() {\n\treturn(runMapping(new MapIntegerAction(\"getFixedCellWidth\") {\n\t\tpublic int map() {\n\t\t return(((JList)getSource()).getFixedCellWidth());\n\t\t}}));}", "@Override\r\n\t\t\t\tprotected int getConfiguredWidthInPixel() {\n\t\t\t\t\treturn 130;\r\n\t\t\t\t}", "private void setColumnWidth() {\n nameTc.prefWidthProperty().bind(pendingOvertimeTv.widthProperty().divide(11));\n pendingOvertimeTc.prefWidthProperty().bind(pendingOvertimeTv.widthProperty().divide(11));\n dateTc.prefWidthProperty().bind(pendingOvertimeTv.widthProperty().divide(11));\n buttonTc.prefWidthProperty().bind(pendingOvertimeTv.widthProperty().divide(11));\n }", "public BigDecimal getDefaultLength() {\n return defaultLength;\n }", "private static int getSetWidth( int width )\n {\n width = ( width / 2 ) * 2 + 1;\n if ( width == 1 ) width = 3;\n return width;\n }", "@Override\n\tpublic int getWidthUnits() {\n\t\treturn 0;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes with a description and the time that deadline should be completed by.
public Deadline(String desc, String by) { super(desc); this.type = TaskType.DEADLINE; this.time = by; parseDate(by); }
[ "public TaskDeadline(String description, LocalDateTime deadline) {\n super(description);\n this.deadline = deadline;\n }", "public Deadline(String description, String deadlineDate) {\n super(description);\n this.deadlineDate = deadlineDate;\n }", "public Task(String title, String description, Calendar deadlineDate) throws NullPointerException {\n\t\tthis(title, description, deadlineDate, null);\n\t}", "public Deadline(String description, LocalDate deadline, boolean isDone) {\n super(description, isDone);\n this.deadline = deadline;\n }", "public Deadline(String description, String deadline, String notes, boolean completed) throws InvalidDateFormat {\r\n super(description, notes, completed);\r\n try {\r\n this.date = LocalDate.parse(deadline, dayInputFormatter);\r\n } catch (DateTimeParseException e) {\r\n throw new InvalidDateFormat();\r\n }\r\n }", "public Deadline(String deadlineName, String deadlineTime) {\n super(deadlineName, deadlineTime);\n }", "public Task(String title, String description, Calendar deadlineDate, UUID groupID) throws NullPointerException {\n\t\tsuper(title, description, groupID);\n\t\tmDeadlineDate = new SimpleObjectProperty<Calendar>();\n\t\tthis.setDeadlineDate(deadlineDate);\n\t}", "public Deadline(String description, String by) throws DukeException\n {\n super(description); //return book\n this.by = by; //Sunday\n //String str = \"2007-32-32T70:70:30\";\n //LocalDateTime dt = LocalDateTime.now();\n try\n {\n dt = LocalDateTime.parse(by, formatter);\n }\n catch(Exception E)\n {\n //System.out.println(\"die liao la\");\n throw new DukeException(\"Please enter in the following syntax: deadline (task) /by YYYY-MM-DD HH:MM\");\n }\n }", "public Deadline(String description, LocalDate by) {\n super(description);\n this.dueBy = by;\n }", "public Deadline(\n String desc) throws WrongDateFormatException,\n WrongTimeFormatException,\n WrongEventOrDeadlineFormatException {\n super(desc, HAS_DATE_TIME, TASK_DIRECTIVE);\n }", "public Deadline(String description, String by) {\n super(description);\n parseDateAndTime(by);\n this.by = by;\n super.typeOfTask = \"D\";\n }", "public ToDoList(String listName, String category, LocalDate deadlineDate, LocalTime deadlineTime){\n this.listName = listName;\n this.deadlineDate = deadlineDate;\n this.deadlineTime = deadlineTime;\n this.category = category;\n this.creationTime = LocalDateTime.now().withNano(0).withSecond(0);\n this.tasks = new ArrayList<>();\n }", "public abstract void of(Deadline expectedDeadline);", "public Deadline(String description, LocalDateTime dateTime) {\n super(description, \"D\");\n dateOfDeadline = dateTime.toLocalDate();\n timeOfDeadline = dateTime.toLocalTime();\n }", "public PlannerTask(String title, long deadline, int durationInMinutes) {\n super(title);\n if (deadline < 0) {\n Log.e(TAG, \"Invalid deadline\");\n return;\n }\n if (durationInMinutes <= 0) {\n Log.e(TAG, \"Invalid duration\");\n return;\n }\n this.deadline = deadline;\n this.maxSessionTimeInMinutes = 120; // 2 hours as a default\n this.minSessionTimeInMinutes = DEFAULT_MIN_SESSION_IN_MINUTES;\n this.maxDivisionsNumber = 3;\n this.priority = 5;\n childEvents = null;\n\n if (durationInMinutes < minSessionTimeInMinutes) {\n this.durationInMinutes = DEFAULT_MIN_SESSION_IN_MINUTES;\n } else {\n this.durationInMinutes = durationInMinutes;\n }\n }", "public Task createNewDeadline() throws MissingTaskDescriptionException {\n try {\n\n String[] deadlineParts = commandParts[1].split(\"/by\");\n DateFormat deadlineInputFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n DateFormat deadlineOutputFormat = new SimpleDateFormat(\"dd MMM yyyy hh:mm aa\");\n Date deadline = deadlineInputFormat.parse(deadlineParts[1].trim());\n String afterDateTimeFormat = deadlineOutputFormat.format(deadline);\n Task newDeadlineTask = new Deadline(deadlineParts[0].trim(), afterDateTimeFormat);\n return newDeadlineTask;\n\n } catch (Exception e) {\n String emptyDescription = \"Oops! The description cannot be empty :(\";\n String deadlineKeyword = \"Did you remember to put /by ?\";\n String deadlineFormat = \"The format should be dd/MM/yyyy HH:mm (24 hour clock)\";\n throw new MissingTaskDescriptionException(emptyDescription\n + \"\\r\\n\"\n + deadlineKeyword\n + \"\\r\\n\"\n + deadlineFormat);\n }\n }", "protected Deadline(String description, String by) {\n super(description);\n assert by != null : \"due time is null\";\n\n try {\n date = LocalDate.parse(by);\n hasDate = true;\n this.by = by;\n } catch (DateTimeParseException e) {\n hasDate = false;\n this.by = by;\n }\n }", "public Deadline(boolean isDone, String description, LocalDate by) {\n super(isDone, description);\n this.by = by;\n }", "public Deadline(String description, int status, LocalDateTime by) {\n super(description, status);\n this.by = by;\n }", "public Deadline(String taskName, String dueDate) {\n super(taskName);\n this.dueDate = new Datetime(dueDate);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores this journalist in XML.
@Override public boolean saveToXML(File file) { // Instanciamos el motor de XML XMLHandler xml = new XMLHandler(); try{ OutputFormat format = new OutputFormat(xml.engine); format.setIndenting(true); XMLSerializer serializerTofile = new XMLSerializer( new FileOutputStream(file) , format); serializerTofile.serialize(this.getElement(xml)); return true; } catch(IOException ie) { ie.printStackTrace(); } return false; }
[ "public void save() throws Exception {\n XStream xstream = new XStream(new DomDriver());\n ObjectOutputStream out = xstream.createObjectOutputStream(new FileWriter(\"scouts.xml\"));\n out.writeObject(scouts);\n out.close();\n }", "public void salvar()\n {\n ArrayList<AbstractModel> elementos = obterElementos();\n \n elementos.add(this);\n \n try\n {\n FileOutputStream fout = new FileOutputStream(this.getClass().getName() + \".data\");\n ObjectOutputStream oos = new ObjectOutputStream(fout);\n oos.writeObject(elementos);\n }\n catch(FileNotFoundException e)\n {\n e.printStackTrace();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n \n }", "public synchronized void saveRepository() {\r\n\r\n if (this.customersJaxbXml.getValue().getCustomer().isEmpty()) {\r\n // If no customers, but there is an existing file - simply delete it.\r\n if (this.xmlFile != null) {\r\n if (this.xmlFile.exists()) {\r\n this.xmlFile.delete();\r\n }\r\n }\r\n } else {\r\n\r\n // Marshall the XML object to file\r\n FileOutputStream fileOutput = null;\r\n try {\r\n Marshaller marshaller = JAXB_CONTEXT.createMarshaller();\r\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n marshaller.setProperty(javax.xml.bind.Marshaller.JAXB_ENCODING, \"UTF-8\");\r\n\r\n // This enables schema validation\r\n marshaller.setSchema(SCHEMA);\r\n\r\n fileOutput = new FileOutputStream(XML_STORAGE_FILE_PATH, false);\r\n marshaller.marshal(this.customersJaxbXml, fileOutput);\r\n\r\n // Indicate that there is a file now\r\n if (this.xmlFile == null) {\r\n this.xmlFile = new File(XML_STORAGE_FILE_PATH);\r\n }\r\n\r\n } catch (Exception exception) {\r\n throw new RuntimeException(\r\n \"Fel då XML-databasen skulle sparas. Felmeddelande: \" + exception.getMessage(),\r\n exception);\r\n } finally {\r\n this.closeResource(fileOutput);\r\n }\r\n }\r\n }", "public void save() throws Exception\n {\n XStream xstream = new XStream(new DomDriver());\n ObjectOutputStream out = xstream.createObjectOutputStream(new FileWriter(\"scouts.xml\"));\n out.writeObject(scouts);\n out.close();\n }", "public void save() {\n // Create technical objects\n Document doc = Framework.newDoc();\n\n // Root\n Node root = doc.createElement(\"calendar\");\n doc.insertBefore(root, doc.getLastChild());\n\n // List\n String list = \"\";\n Iterator iter = main.myData.getTypes().iterator();\n while (iter.hasNext()) {\n Map.Entry me = (Map.Entry) iter.next();\n if (((Boolean)me.getValue()).booleanValue())\n list += (String)me.getKey() + \",\";\n }\n if (list.length() > 0) {\n Element eltypes = doc.createElement(\"types\");\n eltypes.setAttribute(\"list\", list.substring(0,list.length() - 1));\n root.insertBefore(eltypes, null);\n }\n\n // Write the document to the file\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(doc, new StreamResult(file), null);\n }", "public final void createAndSaveXML() {\n\n DocumentBuilderFactory docFactory =\n DocumentBuilderFactory.newInstance();\n\n try {\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n Element personRootElement = doc.createElement(\"entries\");\n doc.appendChild(personRootElement);\n\n String selectStmt = \"SELECT * FROM TEST\";\n ResultSet rsField = Database.dbExecuteQuery(selectStmt);\n while (rsField.next()) {\n Element entry = doc.createElement(\"entry\");\n Element field = doc.createElement(\"field\");\n field.appendChild(doc.createTextNode(\n Integer.toString(rsField.getInt(1))));\n entry.appendChild(field);\n personRootElement.appendChild(entry);\n }\n\n TransformerFactory transformerFactory =\n TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n DOMSource source = new DOMSource(doc);\n\n StreamResult file = new StreamResult(new File(path));\n\n transformer.transform(source, file);\n System.out.println(\"Complete prepare a xml file with path = \"\n + path);\n } catch (ParserConfigurationException | TransformerException\n | SQLException e) {\n e.printStackTrace();\n }\n }", "public void persist(XACMLElement elem) {\r\n // TODO\r\n }", "private void persist(String xml) {\n\t\tString fileName = \"fm_\" + getName() + \".xml\";\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter buffer = new BufferedWriter(new FileWriter(fileName));\n\t\t\tbuffer.write(xml);\n\t\t\tbuffer.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void save() {\n\t\tsave(this.root);\n\t}", "public void writeInitialDatabaseToXML(LibrarySystem otterLibrary) {\n DocumentBuilderFactory icFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder icBuilder;\n\n\n\n\n try {\n icBuilder = icFactory.newDocumentBuilder();\n Document doc = icBuilder.newDocument();\n Element mainRootElement = doc.createElementNS(\"edu.csumb.asymkowick\", \"Customers\");\n doc.appendChild(mainRootElement);\n\n\n mainRootElement.appendChild(getCustomer(doc, \"1\", otterLibrary.customers.get(0).getUsername(),\n otterLibrary.customers.get(0).getPassword()));\n\n Transformer transformer = TransformerFactory.newInstance().newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n DOMSource source = new DOMSource(doc);\n StreamResult console = new StreamResult(System.out);\n transformer.transform(source, console);\n\n System.out.println(\"\\nXML DOM Created Successfully..\");\n\n }\n\n\n\n\n\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void writeToFile() throws ParserConfigurationException,\n\t\t\tTransformerException {\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory\n\t\t\t\t.newInstance();\n\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t// root elements\n\t\tDocument doc = docBuilder.newDocument();\n\t\tElement rootElement = doc.createElement(\"Favorites\");\n\t\tdoc.appendChild(rootElement);\n\n\t\t// user elements\n\t\tElement user = doc.createElement(\"User\");\n\t\trootElement.appendChild(user);\n\n\t\t// set attribute to user element\n\t\tAttr attr = doc.createAttribute(\"id\");\n\t\tattr.setValue(curUser);\n\t\tuser.setAttributeNode(attr);\n\n\t\t// write the content into xml file\n\t\tTransformerFactory transformerFactory = TransformerFactory\n\t\t\t\t.newInstance();\n\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\tDOMSource source = new DOMSource(doc);\n\t\tStreamResult result = new StreamResult(new File(\"\"\n\t\t\t\t+ \".\\\\Twitter4j\\\\favorites\\\\\" + curUser + \".xml\"));\n\n\t\ttransformer.transform(source, result);\n\n\t\tSystem.out.println(\"File saved!\");\n\n\t}", "public void save() throws Exception\n\t{\n\t\tXStream xstream = new XStream(new DomDriver());\n ObjectOutputStream out = xstream.createObjectOutputStream(new FileWriter(\"gymapp.xml\"));\n out.writeObject(members);\n out.writeObject(trainers);\n out.close(); \n\t}", "protected synchronized void writeXML() {\r\n\t\tSystem.out.println(\"IQM: Writing the annotations to XML file...\");\r\n\t\tOutputStreamWriter out;\r\n\t\ttry {\r\n\t\t\tout = new OutputStreamWriter(new FileOutputStream(xmlFile), \"UTF-8\");\r\n\t\t\ttry {\r\n\t\t\t\t// set context (fully qualified package name)\r\n\t\t\t\tthis.jaxbContext = JAXBContext\r\n\t\t\t\t\t\t.newInstance(AnnotationLayers.class.getPackage()\r\n\t\t\t\t\t\t\t\t.getName());\r\n\r\n\t\t\t\tthis.marshaller = this.jaxbContext.createMarshaller();\r\n\t\t\t\tthis.marshaller.setProperty(Marshaller.JAXB_ENCODING, \"UTF-8\");\r\n\t\t\t\tthis.marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\tthis.marshaller.marshal(allLayersJAXB, out);\r\n\t\t\t} catch (JAXBException ex) {\r\n\t\t\t\tSystem.out.println(\"IQM Error: \"+ ex);\r\n\t\t\t}\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(\"IQM Error: \"+ ex);\r\n\t\t}\r\n\t}", "public final void save() {\n try {\n getConfigXmlFile().write(this);\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, String.format(\"Could not save %s.\", getConfigXmlFileName()), ex);\n }\n }", "public final void writeQuestionnaireToXML() {\n\n try {\n final XMLOutputFactory factory = XMLOutputFactory.newInstance();\n // Saves the questionaire to the $HOMEDIR of the $USER\n final XMLStreamWriter writer = factory.createXMLStreamWriter(\n new FileOutputStream(SWTGUIApp.getAppConfiguration().\n getProperty(ConfigurationModel.KEY_OFFLINE_STOREDIRECTORY)\n + File.separator + \"questionnaire.xml\"));\n\n // Beginning of the questionaire.xml document\n writer.writeStartDocument();\n writer.writeStartElement(\"questionnaire\");\n writer.writeAttribute(\"name\", this.getQuestionnaireEntity().\n getName());\n\n // For loop for qetting all questions and answers\n for (QuestionEntity currentQuestion : this.getQuestionnaireEntity().\n getQuestions()) {\n writer.writeStartElement(\"questionset\");\n writer.writeAttribute(\"id\", String.valueOf(currentQuestion.\n getQuestionId()));\n\n // Internalization for DE, EN and RU (Question in 3 lang.)\n writer.writeAttribute(\"lang\", java.util.ResourceBundle.\n getBundle(\"swt/client/resources/PrintingEntryPoint\").\n getString(\"lang.question\"));\n\n // Current question\n writer.writeStartElement(\"question\");\n writer.writeCharacters(currentQuestion.getContentHTML());\n writer.writeEndElement();\n\n // Answer tag which surrounds all answers\n writer.writeStartElement(\"answers\");\n\n // Inner for loop for getting the current answers and if its\n // true or false\n for (AnswerEntity currentAnswer : currentQuestion.\n getAnswers()) {\n writer.writeStartElement(\"answer\");\n writer.writeAttribute(\"id\", String.valueOf(currentAnswer.\n getAnswerId()));\n\n // Internalization for DE, EN and RU\n // (True/False in 3 lang.)\n if (currentAnswer.isIsCorrect()) {\n writer.writeAttribute(\"truth\", java.util.ResourceBundle\n .getBundle(\n \"swt/client/resources/PrintingEntryPoint\").\n getString(\"msg.true\"));\n } else {\n writer.writeAttribute(\"truth\", java.util.ResourceBundle.\n getBundle(\n \"swt/client/resources/PrintingEntryPoint\").\n getString(\"msg.false\"));\n }\n\n // Current answer\n writer.writeCharacters(\"• \"\n + currentAnswer.getContentHTML());\n writer.writeEndElement();\n }\n writer.writeEndElement();\n writer.writeEndElement();\n }\n writer.writeEndDocument();\n writer.close();\n\n // Ending of the questionaire.xml document.\n writer.writeEndDocument();\n } catch (FileNotFoundException e) {\n Logger.getLogger(PrintingEntryPoint.class.getName()).log(\n Level.INFO, e.toString());\n } catch (XMLStreamException e) {\n Logger.getLogger(PrintingEntryPoint.class.getName()).log(\n Level.INFO, e.toString());\n }\n }", "public void saveFiLovecoinJournal(FiLovecoinJournal fiLovecoinJournal);", "private void saveFile()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFileWriter writer = new FileWriter(new File_System_Controller().getModel().findFile(accountFile));\n\t\t\tXMLOutputter outputter = new XMLOutputter();\n\t\t\toutputter.setFormat(Format.getPrettyFormat());\n\t\t\toutputter.output(doc, writer); // Save the new document\n\t\t} catch (IOException e) {\n\t\t\tLogger.write(\"IOException while writing new XML file\", Logger.Level.ERROR);\n\t\t}\n\t}", "public void save() {\n try {\n DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = dbfac.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n \n /*\n * NotwaConfiguration\n */\n Element notwaConfigurationElement = doc.createElement(\"NotwaConfiguration\");\n doc.appendChild(notwaConfigurationElement);\n \n /*\n * ApplicationSettings\n */\n Element appSettings = doc.createElement(\"ApplicationSettings\");\n notwaConfigurationElement.appendChild(appSettings);\n \n /*\n * ApplicationSettings - childs\n */\n Element skin = doc.createElement(\"Skin\");\n skin.setAttribute(\"name\", as.getSkin());\n \n Element rememberLogin = doc.createElement(\"RememberLogin\");\n rememberLogin.setAttribute(\"remember\", as.isRememberNotwaLogin() ? \"1\" : \"0\");\n \n appSettings.appendChild(skin);\n appSettings.appendChild(rememberLogin);\n \n /*\n * AvailableDatabases \n */\n Element availableDatabases = doc.createElement(\"AvailableDatabases\");\n notwaConfigurationElement.appendChild(availableDatabases);\n \n /*\n * AvailableDatabases - childs \n */\n for (NotwaConnectionInfo nci : connections) {\n Element database = doc.createElement(\"Database\");\n \n database.setAttribute(\"label\", nci.getLabel());\n database.setAttribute(\"dbname\", nci.getDbname());\n database.setAttribute(\"host\", nci.getHost());\n database.setAttribute(\"port\", nci.getPort());\n database.setAttribute(\"user\", nci.getUser());\n database.setAttribute(\"password\", nci.getPassword());\n database.setAttribute(\"notwaLogin\", nci.getNotwaUserName());\n \n availableDatabases.appendChild(database);\n }\n \n //set up a transformer\n TransformerFactory transfac = TransformerFactory.newInstance();\n Transformer trans = transfac.newTransformer();\n trans.setOutputProperty(OutputKeys.INDENT, \"yes\");\n trans.setOutputProperty(OutputKeys.METHOD, \"xml\");\n trans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\",\"3\");\n\n StringWriter sw = new StringWriter();\n StreamResult result = new StreamResult(sw);\n DOMSource source = new DOMSource(doc);\n trans.transform(source, result);\n \n File configFile = new File(configFilePath);\n if (configFile.delete() || !configFile.exists()) {\n FileWriter fw = new FileWriter(configFile, true);\n fw.append(sw.toString());\n fw.close();\n }\n else {\n throw new Exception(\"Config file cannot be deleted!\");\n }\n } catch (Exception ex) {\n log.error(\"Error occured while saving the config file!\", ex);\n }\n }", "@Override\r\n\t\tpublic void save(OutputStream stream) throws IOException {\n\t\t}", "default void persist(Path p) throws IOException {\n CatalogMapperHelper.serialize(this, p);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pointer index table to update after a BuildToRun Conversion.
public int[] getNewPointers() { return conversionTable; }
[ "protected int tableIndexToDataIndex(int tableIndex) {\n if (tableIndex >= indexArray.size()) {\n return 0;\n }\n\n return indexArray.get(tableIndex);\n }", "long makeIndex(long time) throws T2Exception;", "@Override\r\n\tpublic void addtIndex() {\n\r\n\t}", "private void buildIndex() {\n // Read the current buffer position.\n long position = buffer.mark().position();\n\n // Read the first entry length.\n int length = buffer.readInt();\n\n // While the length is non-zero...\n while (length != 0) {\n // Read the full entry into memory.\n buffer.read(memory.clear().limit(length));\n\n // Flip the in-memory buffer.\n memory.flip();\n\n // Read the 64-bit entry checksum.\n long checksum = memory.readUnsignedInt();\n\n // Read the 64-bit entry offset.\n long offset = memory.readLong();\n\n // If the term is set on the entry, read the term.\n Long term = memory.readBoolean() ? memory.readLong() : null;\n\n // Calculate the entry position and length.\n int entryPosition = (int) memory.position();\n int entryLength = length - entryPosition;\n\n // Compute the checksum for the entry bytes.\n Checksum crc32 = new CRC32();\n crc32.update(memory.array(), entryPosition, entryLength);\n\n // If the computed checksum equals the stored checksum...\n if (checksum == crc32.getValue()) {\n // If the entry contained a term, index the term.\n if (term != null) {\n termIndex.index(offset, term);\n }\n\n // Index the entry offset.\n offsetIndex.index(offset, position);\n } else {\n break;\n }\n\n // Store the next entry start position.\n position = buffer.position();\n\n // Read the next entry length.\n length = buffer.mark().readInt();\n }\n\n // Reset the buffer back to the start of the next entry.\n buffer.reset();\n }", "private void fixIndices() {\n for (int row = 0; row < ((DefaultTableModel) cvTermsJTable.getModel()).getRowCount(); row++) {\n ((DefaultTableModel) cvTermsJTable.getModel()).setValueAt(new Integer(row + 1), row, 0);\n }\n }", "@Override\n public Game.viewIndexes update() {\n return returnIndex;\n }", "protected void setIndexColumn() {\n indexColumn.setCellValueFactory((TableColumn.CellDataFeatures<E, Number> p)\n -> new ReadOnlyObjectWrapper<>((entryTable.getItems().indexOf(p.getValue()) + 1)));\n }", "protected IndexData mutateAddIndexData(TableUpdater mutator) throws IOException\n {\n IndexBuilder index = mutator.getIndex();\n JetFormat format = mutator.getFormat();\n\n ////\n // calculate how much more space we need in the table def\n mutator.addTdefLen(format.SIZE_INDEX_DEFINITION +\n format.SIZE_INDEX_COLUMN_BLOCK);\n\n ////\n // load current table definition and add space for new info\n ByteBuffer tableBuffer = loadCompleteTableDefinitionBufferForUpdate(\n mutator);\n\n IndexData newIdxData = null;\n boolean success = false;\n try {\n\n ////\n // update various bits of the table def\n ByteUtil.forward(tableBuffer, 39);\n tableBuffer.putInt(_indexCount + 1);\n\n // move to end of index data def blocks\n tableBuffer.position(format.SIZE_TDEF_HEADER +\n (_indexCount * format.SIZE_INDEX_DEFINITION));\n\n // write index row count definition (empty initially)\n ByteUtil.insertEmptyData(tableBuffer, format.SIZE_INDEX_DEFINITION);\n IndexData.writeRowCountDefinitions(mutator, tableBuffer, 1);\n\n // skip columns and column names\n ByteUtil.forward(tableBuffer,\n (_columns.size() * format.SIZE_COLUMN_DEF_BLOCK));\n skipNames(tableBuffer, _columns.size());\n\n // move to end of current index datas\n ByteUtil.forward(tableBuffer, (_indexCount *\n format.SIZE_INDEX_COLUMN_BLOCK));\n\n // allocate usage maps and root page\n TableMutator.IndexDataState idxDataState = mutator.getIndexDataState(index);\n int rootPageNumber = getPageChannel().allocateNewPage();\n Map.Entry<Integer,Integer> umapInfo = addUsageMaps(1, rootPageNumber);\n idxDataState.setRootPageNumber(rootPageNumber);\n idxDataState.setUmapPageNumber(umapInfo.getKey());\n idxDataState.setUmapRowNumber(umapInfo.getValue().byteValue());\n\n // write index data def\n int idxDataDefPos = tableBuffer.position();\n ByteUtil.insertEmptyData(tableBuffer, format.SIZE_INDEX_COLUMN_BLOCK);\n IndexData.writeDefinition(mutator, tableBuffer, idxDataState, null);\n\n // sanity check the updates\n validateTableDefUpdate(mutator, tableBuffer);\n\n // before writing the new table def, create the index data\n tableBuffer.position(0);\n newIdxData = IndexData.create(\n this, tableBuffer, idxDataState.getIndexDataNumber(), format);\n tableBuffer.position(idxDataDefPos);\n newIdxData.read(tableBuffer, _columns);\n\n ////\n // write updated table def back to the database\n writeTableDefinitionBuffer(tableBuffer, _tableDefPageNumber, mutator,\n mutator.getNextPages());\n success = true;\n\n } finally {\n if(!success) {\n // need to discard modified table buffer\n _tableDefBufferH.invalidate();\n }\n }\n\n ////\n // now, update current TableImpl\n\n for(IndexData.ColumnDescriptor iCol : newIdxData.getColumns()) {\n _indexColumns.add(iCol.getColumn());\n }\n\n ++_indexCount;\n _indexDatas.add(newIdxData);\n\n completeTableMutation(tableBuffer);\n\n // don't forget to populate the new index\n populateIndexData(newIdxData);\n\n return newIdxData;\n }", "private int getCacheIndex(long tableIndex)\n\t{\n\t\t// Direct mapping\n\t\treturn Math.round(tableIndex % (getConfiguration().getNumCacheRows() - 1)); \n\t}", "java.lang.Long getIndex();", "protected void updateIndexes(Object value, Object key){\n if (value == null) throw new NullPointerException(\"Cannot handle a null value!\");\n TransactionContext transactionContext = new TransactionalEventTransactionContext(transactionManager);\n searchFactory.getWorker().performWork(new Work<Object>(value, keyToString(key), WorkType.UPDATE), transactionContext);\n \n }", "public boolean needsIndexRebuild();", "@VTID(15)\r\n int index();", "private void rebuild() {\n populated = 0;\n // Copy the old table\n MapEntry[] old_table = table.clone();\n // Create a new table and set it as class variable\n table = new MapEntry[max_size];\n for (MapEntry m : old_table) {\n // For each index in the table\n if (m == null) {\n continue;\n }\n // Insert the found entry in the new table\n put(m.key, (V) m.value);\n MapEntry current = m;\n while (current.get_next() != null) {\n // Go through all elements in this index\n current = current.get_next();\n put(current.key, (V) current.value);\n }\n }\n }", "void createIndexTransaction(SearchIndexBuilderWorker worker);", "public void run(){\n\t\tfor(int i=0;i<Matrix.COL;i++){\r\n\t\t\tMatrixArrayWriter.index = Matrix.addColToArray(i,MatrixArrayWriter.arr,MatrixArrayWriter.index);\r\n\t\t}\r\n\t}", "@Override \r\n\t\t public void run() {\n\t\t\t prev = new BigInteger(index.toString());\r\n\t\t }", "public Map<Integer, Integer> buildIdsMapping() {\n Map<Integer, Integer> buildIdToIdx = new HashMap<>();\n int idx = 0;\n\n for (Invocation next : invocationList) {\n buildIdToIdx.put(next.buildId(), idx);\n idx++;\n }\n\n return buildIdToIdx;\n }", "void tableUpdated();", "public Index getIndex() {\n return this.targetIndex;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public User getUserById() { return userMapper.selectByPrimaryKey(1); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Same as next_token but also prints the token to standard out for debugging.
public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException { java_cup.runtime.Symbol s = next_token(); System.out.println( "line:" + (yyline+1) + " col:" + (yycolumn+1) + " --"+ yytext() + "--" + getTokenName(s.sym) + "--"); return s; }
[ "private void next()\n {\n token=tokenizer.next();\n }", "private String next() {\n\t\t\t\n\t\t\treturn tokens.get(tokenIndex++);\n\t\t}", "private void printToken(Token token)\n {\n if (token.specialToken != null)\n {\n printToken(token.specialToken);\n }\n\n _outStream.print(token.image);\n }", "public Token nextToken() {\n\t\textractNextToken();\n\t\treturn getToken();\n\t}", "public String nextToken() \n {\n try {\n\t while (st.nextToken() != StreamTokenizer.TT_EOF) {\n\t\tif (st.ttype < 0) {\n\t\t return st.sval;\n\t\t} else {\n\t\t return String.valueOf((char)st.ttype);\n\t\t}\n\t }\n\t return \"EOF\";\n } catch (IOException e) {}\n return \"error\";\n }", "public Token viewNextToken();", "public Token getNextToken(){\n\t\tnextToken();\n\t\treturn currentToken();\n\t}", "public Token next() {\r\n\t\treturn next;\r\n\t}", "private Token next()\r\n {\r\n Token t = current_token;\r\n current_token = token_iter.next();\r\n return t;\r\n }", "final public Token getNextToken() {\r\n if (token.next != null) token = token.next;\r\n else token = token.next = token_source.getNextToken();\r\n jj_ntk = -1;\r\n return token;\r\n }", "public void displayOutput(Token token){\n\t\t System.out.format(\"%2s%10s%15s%20s\", token.getLinenum(), token.getType(), token.getLexeme(),token.getValue());\n\t System.out.println();\n\t\t //\t System.out.println(token.getLinenum() + \" \" + token.getType() + \" \" + token.getLexeme()+ \" \" + token.getValue());\n\t\t \n\t }", "public String nextToken() throws NoSuchElementException, ParseException {\n/* 107 */ if (this.currentToken == null) {\n/* 108 */ throw new NoSuchElementException(\"Iteration already finished.\");\n/* */ }\n/* */ \n/* 111 */ String result = this.currentToken;\n/* */ \n/* 113 */ this.searchPos = findNext(this.searchPos);\n/* */ \n/* 115 */ return result;\n/* */ }", "public final void println(final String token) {\n print(token);\n println();\n }", "Token peek();", "public void nextToken() {\n\t try{\n if(eof){\n curr_token.setType(Token.EOF);\n curr_token.setValue(\"\");\n } else {\n StringBuffer buf = new StringBuffer();\n //Holds the value of the token being constructed.\n\t\t\tif (character() != '\\'')\n \t buf.append(character());\n //The buffer is originally empty. This appends the first character\n //to it.\n switch(character()){\n //Basically this switch covers each of the different types of tokens.\n //It looks at the characters one character at a time until it has\n //matched a symbol, string, or identifier. It then creates a new\n //token from the accumlated characters (stored in \"buf\") and the\n //known type.\n\n //It is often considered bad style if we have methods this big.\n // However, for comprehension purposes it is better to have one long\n //switch rather than multiple methods just to satisfy an arbitrary law.\n case ':':\n nextChar();\n if(character() == '-'){\n buf.append(character());\n nextChar();\n curr_token.setType(Token.COLON_DASH);\n curr_token.setValue(buf.toString());\n } else {\n curr_token.setType(Token.COLON);\n curr_token.setValue(buf.toString());\n };\n break;\n case ',':\n nextChar();\n curr_token.setType(Token.COMMA);\n curr_token.setValue(buf.toString());\n break;\n case '(':\n nextChar();\n curr_token.setType(Token.LEFT_PAREN);\n curr_token.setValue(buf.toString());\n break;\n case '.':\n nextChar();\n curr_token.setType(Token.PERIOD);\n curr_token.setValue(buf.toString());\n break;\n case '?':\n nextChar();\n curr_token.setType(Token.Q_MARK);\n curr_token.setValue(buf.toString());\n break;\n case ')':\n nextChar();\n curr_token.setType(Token.RIGHT_PAREN);\n curr_token.setValue(buf.toString());\n break;\n case '=':\n nextChar();\n curr_token.setType(Token.EQ);\n curr_token.setValue(buf.toString());\n break;\n case '<':\n nextChar();\n if(character() == '='){\n buf.append(character());\n nextChar();\n curr_token.setType(Token.LE);\n curr_token.setValue(buf.toString());\n } else {\n curr_token.setType(Token.LT);\n curr_token.setValue(buf.toString());\n };\n break;\n case '>':\n nextChar();\n if(character() == '='){\n buf.append(character());\n nextChar();\n curr_token.setType(Token.GE);\n curr_token.setValue(buf.toString());\n } else {\n curr_token.setType(Token.GT);\n curr_token.setValue(buf.toString());\n };\n break;\n case '!':\n nextChar();\n if(character() == '='){\n buf.append(character());\n nextChar();\n curr_token.setType(Token.NE);\n curr_token.setValue(buf.toString());\n } else {\n System.out.println(\"Parse Error\");\n };\n break;\n case '\\'':\n nextChar();\n //we have seen a \"'\" so accumulate characters until we see another \"'\"\n while(!eof && character() != '\\''){\n buf.append(character());\n nextChar();\n };\n if(eof){\n\t\t\t\t\t\tSystem.out.println(\"EOF found early\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n //buf.append(character());\n nextChar();\n curr_token.setType(Token.STRING);\n curr_token.setValue(buf.toString());\n break;\n default:\n if(Character.isLetter(character())){\n nextChar();\n //Once we see a letter, accumulate letters and digits.\n while(!eof && Character.isLetterOrDigit(character())){\n buf.append(character());\n nextChar();\n };\n curr_token.setType(Token.ID);\n curr_token.setValue(buf.toString());\n check_for_keyword(curr_token); //if the string is a keyword;\n //change the type approrpiately\n } else {\n System.out.println(\"Parse Error\");\n };\n break;\n };\n };\n\n skip_ws(); //skip any whitespace after the token\n\n\t } catch (IOException e){\n\t\t\t\tSystem.out.println(\"IOException caught in nextToken\");\n }\n }", "private String getNextToken() throws ArmaniException {\n\t\tif (currentToken < input.size()) {\n\t\t\treturn this.input.get(currentToken);\n\t\t} else\n\t\t\tthrow new ArmaniException(\"Invalid end of expression\");\n\t}", "public static int getNextToken() {\r\n\t\treturn _nextToken;\r\n\t}", "public CharSequence getToken() {\n return token;\n }", "public static void outputLine(){\n if (nextToken == EOL){\n /* Uncomment this block to add an end of line Token\n String output = \"Next token is: \" + nextToken;\n output += padRight(output);\n output += \"Next lexeme is \";\n for (char t :\n lexeme) {\n output += t;\n }\n System.out.println(output);*/\n }\n\n\n else {\n String output = \"Next token is: \" + nextToken;\n output += padRight(output);\n output += \"Next lexeme is \";\n for (char t :\n lexeme) {\n output += t;\n }\n System.out.println(output);\n }\n }", "@Override\n\t public Token nextToken() {\n\t if (getInputStream().LA(1) == IntStream.EOF && Indents.size() != 0) {\n\t // Remove any trailing EOF tokens from our buffer.\n\t for (Token node = Tokens.getFirst(); node != null; ) {\n\t//\t var temp = node.Next;\n\t Token temp = node.getTokenSource().nextToken();\n\t if (node.getType() == Token.EOF) {\n\t Tokens.remove(node);\n\t }\n\t node = temp;\n\t }\n\n\t // First emit an extra line break that serves as the end of the statement.\n\t this.emit(commonToken(YarnSpinnerParser.NEWLINE, \"\\n\"));\n\n\t // Now emit as much DEDENT tokens as needed.\n\t while (Indents.size() != 0) {\n\t emit(createDedent());\n\t Indents.pop();\n\t }\n\n\t // Put the EOF back on the token stream.\n\t emit(commonToken(YarnSpinnerParser.EOF, \"<EOF>\"));\n\t }\n\n\t Token next = super.nextToken();\n\t if (next.getChannel() == DEFAULT_CHANNEL) {\n\t // Keep track of the last token on the default channel.\n\t LastToken = next;\n\t }\n\n\t if (Tokens.size() == 0) {\n\t return next;\n\t } else {\n\t Token x = Tokens.getFirst();\n\t Tokens.removeFirst();\n\t return x;\n\t }\n\t }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Each Arraylist has a linked List of trials who temperature and pulse parameters are the same
Step2and3Calc(double LOther) { this.LOther=LOther; Step23Table= new ArrayList<>(); }
[ "@Test\n public void testTABRMulti() {\n for (int x = 1; x != 30; x++) {\n ArrayList<Float> parametres = new ArrayList<>();\n Information i = new Information();\n Information wanted = new Information();\n parametres.add((float) x);\n parametres.add(1f);\n parametres.add((float) 2 * x);\n parametres.add(1f);\n parametres.add((float) 3 * x);\n parametres.add(1f);\n parametres.add((float) 4 * x);\n parametres.add(1f);\n parametres.add((float) 5 * x);\n parametres.add(1f);\n TransmetteurAnalogiqueBruitReel testTABR = new TransmetteurAnalogiqueBruitReel(1000000000, parametres);\n i.add(new ArrayList(Collections.nCopies(5 * x, 5f)));\n i.add(new ArrayList(Collections.nCopies(6 * x, 0f)));\n try {\n testTABR.recevoir(i);\n testTABR.emettre();\n } catch (InformationNonConforme e) {\n }\n wanted.add(new ArrayList(Collections.nCopies(x, 5f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 10f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 15f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 20f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 25f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 25f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 20f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 15f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 10f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 5f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 0f)));\n assertEquals(wanted, testTABR.informationEmise);\n }\n }", "@Test\n public void testTABRMono() {\n for (int x = 1; x != 30; x++) {\n ArrayList<Float> parametres = new ArrayList<>();\n Information i = new Information();\n Information wanted = new Information();\n parametres.add((float) x);\n parametres.add(1f);\n TransmetteurAnalogiqueBruitReel testTABR = new TransmetteurAnalogiqueBruitReel(1000000000, parametres);\n i.add(new ArrayList(Collections.nCopies(2 * x, 5f)));\n i.add(new ArrayList(Collections.nCopies(2 * x, 0f)));\n try {\n testTABR.recevoir(i);\n testTABR.emettre();\n } catch (InformationNonConforme e) {\n }\n wanted.add(new ArrayList(Collections.nCopies(x, 5f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 10f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 5f)));\n wanted.add(new ArrayList(Collections.nCopies(x, 0f)));\n assertEquals(wanted, testTABR.informationEmise);\n }\n }", "public void computeAllTailsX(){\r\n int r = this.computeR(4);\r\n\r\n //print(\"r\",r);\r\n\r\n //initialize the tails;\r\n for(int node: Sample){\r\n tails.put(node, new LinkedList<String>());\r\n }\r\n // perform r different s-instances.\r\n for(int i =0; i<r;i++){\r\n //print(\"i\",i);\r\n this.buildRoutingTables();\r\n for(int node: Sample){\r\n Node tNode = Network.get(node);\r\n Integer[] tmpArray = new Integer[tNode.routingTable.keySet().size()];\r\n int tnode = tNode.routingTable.keySet().toArray(tmpArray)[rnd.nextInt(tmpArray.length)];\r\n\r\n Node currentNode;\r\n currentNode = tNode;\r\n Node nextNode;\r\n Node prevNode;\r\n int ctr;\r\n nextNode = Network.get(tnode);\r\n ctr = 0;\r\n ctr++;\r\n while(ctr<RWL){\r\n prevNode = currentNode;\r\n currentNode = nextNode;\r\n nextNode = Network.get(currentNode.routingTable.get(prevNode.ID));\r\n ctr++;\r\n }\r\n tails.get(node).add(currentNode.ID+\":\"+nextNode.ID);\r\n }\r\n\r\n }\r\n }", "@Test\n public void testTABRNone() {\n ArrayList<Float> parametres = new ArrayList<>();\n for (int x = 1; x != 30; x++) {\n Information i = new Information();\n Information wanted = new Information();\n TransmetteurAnalogiqueBruitReel testTABR = new TransmetteurAnalogiqueBruitReel(1000000000, parametres);\n i.add(new ArrayList(Collections.nCopies(2 * x, 5f)));\n i.add(new ArrayList(Collections.nCopies(2 * x, 0f)));\n try {\n testTABR.recevoir(i);\n testTABR.emettre();\n } catch (InformationNonConforme e) {\n System.err.println(e);\n }\n wanted.add(new ArrayList(Collections.nCopies(2 * x, 5f)));\n wanted.add(new ArrayList(Collections.nCopies(2 * x, 0f)));\n assertEquals(wanted, testTABR.informationEmise);\n }\n }", "public List<List<Integer>> allTriples(int[] array, int t) {\n List<List<Integer>> ans = new ArrayList<>();\n Set<String> set = new HashSet<>();\n Arrays.sort(array);\n for (int i=0; i<array.length; i++) {\n int target = t - array[i];\n int start = i + 1;\n int end = array.length - 1;\n \n while (start < end) {\n if (array[start] + array[end] == target) {\n String key = new StringBuilder()\n .append(array[i])\n .append(\"-\")\n .append(array[start])\n .append(\"-\")\n .append(array[end])\n .toString();\n if (!set.contains(key)) {\n List<Integer> list = Arrays.asList(array[i], array[start], array[end]);\n ans.add(list);\n set.add(key);\n }\n \n start++;\n end--;\n }\n else if (array[start] + array[end] < target) {\n start++;\n }\n else {\n end--;\n }\n }\n }\n \n return ans;\n }", "public static void merge2(int ROUNDS) throws Exception{\n \n double maxPairAccuracy = 0;\n int maxIndexLeftHand = 0;\n int maxIndexRightHand = 0;\n int index=1;\n \n ArrayList<ArrayList<Integer>> multiArrayListCopy = new ArrayList<ArrayList<Integer>>(multiArrayList);\n \n for (int round = 0; round < ROUNDS; round++) { \n System.out.println(\"Round: \" + (round+1) );\n System.out.println(multiArrayListCopy.size());\n System.out.println(multiAccuracyList.size());\n \n for (int i = 0; i < multiArrayListCopy.size(); i++) {\n for (int j = i+1; j < multiArrayListCopy.size(); j++) {\n// int i = 422;\n// int j = 423;\n ArrayList<Integer> currentPair = new ArrayList<>(multiArrayListCopy.get(i));\n currentPair.addAll(multiArrayListCopy.get(j));\n \n arffFunctions.generateArff(currentPair, \"docs/samsung_header.txt\", \"currentPair.arff\");\n DataSource sourceCurrentPair = new DataSource(\"docs/currentPair.arff\");\n Instances dataCurrentPair = sourceCurrentPair.getDataSet();\n double currentPairAccuracy = wekaFunctions.trainAndEval\n (dataCurrentPair, dataCurrentPair, classIndex);\n// System.out.print((index++) + \": \");\n// for(Integer temp:multiArrayListCopy.get(i)){ \n// System.out.print(temp);\n// System.out.print(\" \");\n// }\n// System.out.print(\",\");\n// for(Integer temp:multiArrayListCopy.get(j)){ \n// System.out.print(temp);\n// System.out.print(\" \");\n// }\n// System.out.println(\":\" + currentPairAccuracy);\n if (currentPairAccuracy == 100.0) {\n maxPairAccuracy = currentPairAccuracy;\n maxIndexLeftHand = i;\n maxIndexRightHand = j;\n break;\n }\n else if (currentPairAccuracy > maxPairAccuracy) {\n maxPairAccuracy = currentPairAccuracy;\n maxIndexLeftHand = i;\n maxIndexRightHand = j;\n }\n }\n if (maxPairAccuracy == 100.0) {\n break; \n }\n }\n\n System.out.println(maxIndexLeftHand + \",\" + maxIndexRightHand + \": \" + maxPairAccuracy);\n ArrayList<Integer> leftHand = multiArrayListCopy.get(maxIndexLeftHand);\n //System.out.println(\"LefthandAcc: \" + multiAccuracyList.get(maxIndexLeftHand));\n leftHand.addAll(multiArrayListCopy.get(maxIndexRightHand));\n multiAccuracyList.set(maxIndexLeftHand, maxPairAccuracy);\n //System.out.println(\"LefthandAcc: \" + multiAccuracyList.get(maxIndexLeftHand));\n //System.out.println(\"Lefthand: \" + leftHand);\n multiArrayListCopy.remove(maxIndexRightHand);\n multiAccuracyList.remove(maxIndexRightHand);\n \n System.out.println(\"---------------------------------------\");\n System.out.println(\"ROUNDS end: \");\n for (ArrayList<Integer> next : multiArrayListCopy) {\n printRow(next);\n }\n System.out.println(\"======================================\");\n maxPairAccuracy = 0;\n maxIndexLeftHand = 0;\n maxIndexRightHand = 0;\n index = 1;\n } \n }", "public ArrayList<String> getSteelPlazaTimes(){\r\n ArrayList<String> times = new ArrayList();\r\n for(int i=1; i<numRedTrains; i++){\r\n times.add(redData[i][7].toString());\r\n }\r\n return times;\r\n }", "public void createTrips() {\n int tripTotal = IConstants.DRONE_TRIP_TOTAL / IConstants.MAX_DRONES_PER_TRIP;\n System.out.println(\"Total de viajes:\" + tripTotal);\n for (int currentTrip = 0; currentTrip < tripTotal; currentTrip++) {\n int selectedOption = random.nextInt(graphPaths.size());\n tripList.add(new Trip(graphPaths.get(selectedOption), pathDurations.get(selectedOption)));\n }\n }", "public void getTeller() {\n\t\tsmallestindex=0;\n\t\tArrayList<Integer> keeptrack = new ArrayList<>(); //ArrayList to keep track of the same lowest possible time for each teller to have helped customer and is another data structure used\n\t\tint min=TellerArray[0];\n\t\t\t for (int i = 0; i < TellerArray.length; i++) {\n\t\t if (TellerArray[i] < min) {\n\t\t min = TellerArray[i];\n\t\t smallestindex=i;\n\t\t }\n\t\t\t }\n\t\t\t TrackTeller[smallestindex]=false;\n\t\t\t lowestValue=TellerArray[smallestindex];\n\t\t\t int tempsmallestindex=smallestindex;\n\t\t\t while(tempsmallestindex<=4) {\n\t\t\t\t if(tempsmallestindex>4)\n\t\t\t\t tempsmallestindex++;\n\t\t\t\t if(TellerArray[tempsmallestindex]==TellerArray[smallestindex]) {\n\t\t\t\t\t keeptrack.add(tempsmallestindex);\n\t\t\t\t }\n\t\t\t\t tempsmallestindex++;\n\t\t\t }\n\t\t\t for(int i=0;i<keeptrack.size();i++) {\n\t\t\t if(keeptrack.get(i)==0) {\n\t\t\t\t a++;\n\t\t\t\t TrackTeller[0]=false;\n\t\t\t }else if(keeptrack.get(i)==1) {\n\t\t\t\t b++;\n\t\t\t\t TrackTeller[1]=false;\n\t\t\t }else if(keeptrack.get(i)==2) {\n\t\t\t\t c++;\n\t\t\t\t TrackTeller[2]=false;\n\t\t\t }else if(keeptrack.get(i)==3) {\n\t\t\t\t d++;\n\t\t\t\t TrackTeller[3]=false;\n\t\t\t }else if(keeptrack.get(i)==4) {\n\t\t\t\t e++;\n\t\t\t\t TrackTeller[4]=false;\n\t\t\t }\n\t\t\t }\n\t\t\t \n\t}", "public List<SimpleEntry> countTemperatures(Double t1,Double t2,Double r){\n Stream<Measurement> preprocessedStream = stations.parallelStream() // represent parallel processing of hadoop map/reduce\n .flatMap(x -> x.getMeasurements().stream()) // using flatmap to flatten input stream of stream to stream of measurements -- Represents Input/preprocessing phase\n .filter(m -> Math.abs(m.getTemperature()-t1)<=r || Math.abs(m.getTemperature()-t2)<=r); // Preprocessing phase - filter those measurement which are of use/ in range\n\n // Represent map phase of mapreduce - SimpleEntry is java inbuilt structure to store generic key-value pair\n Stream<SimpleEntry> mappedStream = preprocessedStream.parallel()\n .map(m-> new SimpleEntry<>(m.getTemperature(), 1)); // represent map phase of hadoop mapreduce - m is mapped to (m,1)\n\n List<SimpleEntry> reduceOutput = new ArrayList<>(); // data structure to store final reduced output\n\n // Represent Shuffling phase of mapreduce\n mappedStream.parallel().collect(groupingBy(SimpleEntry::getKey)) // represents the shuffle phase of mapreduce - collecting on basis of key (temperature)\n .forEach((k,v)->{\n reduceOutput.add(new SimpleEntry(k,v.size()));\n });\n\n // global counter to count final temperature in range of t1\n AtomicInteger t1count = new AtomicInteger(0);\n // global counter to count final temperature in range of t2\n AtomicInteger t2count = new AtomicInteger(0);\n\n // the reduceOutput is much smaller as compare to original provided data so its easier to traverse it now\n // Represent the final result phase after reduce phase of mapreduce\n reduceOutput.parallelStream().forEach( (k)->{\n Double temp= (Double) k.getKey();\n Integer count= (Integer) k.getValue();\n if(Math.abs(temp-t1)<=r){\n t1count.set((t1count.get()+count)); // t1count stores count of temperature in range of t1\n }\n if(Math.abs(temp-t2)<=r){\n t2count.set((t2count.get()+count)); // t2count stores count of temperature in range of t2\n }\n });\n\n // Data structure to return result in desired format\n List<SimpleEntry> ans=new ArrayList<>();\n ans.add(new SimpleEntry(t1,t1count));\n ans.add(new SimpleEntry(t2,t2count));\n return ans;\n }", "private ArrayList<TemporalVertex> getInputVertices() {\n ArrayList<TemporalVertex> input = new ArrayList<>();\n long txFrom = 0L;\n long txTo = 10000L;\n long validFrom = 1000000L;\n long validTo = 2000000L;\n for (int i = 0; i < 5000; i++) {\n TemporalVertex vertex = new TemporalVertex();\n vertex.setLabel(\"test\");\n vertex.setTransactionTime(new Tuple2<>(txFrom, txTo));\n vertex.setValidTime(new Tuple2<>(validFrom, validTo));\n txFrom++;\n txTo++;\n validFrom++;\n validTo++;\n input.add(vertex);\n }\n return input;\n }", "ArrayList<Integer> buildSubTourList(ArrayList<Integer> tour){\n ArrayList<Integer> candidates = new ArrayList<>();\n for(int i = 0; i < tour.size(); i++)\t\n candidates.add(tour.get(i));\n return candidates;\n }", "public LineDataSet makeDataIntoAux(ArrayList<Float> lists, String name) {\n List<Entry> indicatorEntries = new ArrayList<Entry>();\n Entry indicatorEntry;\n float value = 0;\n\n for (int i = 0; i < lists.size(); i++) {\n\n //Calendar date = historical.get(i).getDate();\n\n value = lists.get(i);\n //still fucking 0\n //Toast.makeText(this,Float.toString(value),Toast.LENGTH_LONG).show();\n indicatorEntry = new Entry(testInts.get(i), value);\n indicatorEntries.add(indicatorEntry);\n\n }\n //Turn into data\n LineDataSet indicatorData = new LineDataSet(indicatorEntries, name);\n indicatorData.setAxisDependency(YAxis.AxisDependency.LEFT);\n\n //Set color depending on the name of indicator\n\n\n if (name.equals(\"MACDs\")) {\n indicatorData.setColor(Color.BLUE);\n indicatorData.setCircleColor(Color.BLUE);\n }\n if (name.equals(\"Signal Line\")) {\n indicatorData.setColor(Color.YELLOW);\n }\n if (name.equals(\"ADXs\")) {\n indicatorData.setColor(Color.CYAN);\n indicatorData.setCircleColor(Color.CYAN);\n\n\n }\n if (name.equals(\"MFVs\")) {\n indicatorData.setColor(Color.BLACK);\n indicatorData.setCircleColor(Color.BLACK);\n\n\n }\n if (name.equals(\"RSIs\")) {\n //TODO fix RSIs first\n }\n if (name.equals(\"Upper Boillinger band\")) {\n indicatorData.setColor(Color.MAGENTA);\n indicatorData.setCircleColor(Color.MAGENTA);\n\n\n }\n if (name.equals(\"Lower Boillinger band\")) {\n indicatorData.setColor(Color.MAGENTA);\n indicatorData.setCircleColor(Color.MAGENTA);\n\n }\n\n //Tecnically we should make LineData that holds multiple LineDataSets, but meh\n\n\n return indicatorData;\n\n\n }", "public void addTrips(ArrayList<Trip> newList)\n\t{\n\t\thistory.addAll(newList);\t\t\t\t\n\t}", "@Test\r\n\tpublic void deleteEqualstest() {\r\n\r\n\t\tCombinedFileReader list1= new CombinedFileReader();\r\n\t\tCombinedFileReader list2= new CombinedFileReader();\r\n\r\n\t\tlist1.Lines.add(new WifiScan(\"26/10/2017\" ,\"15:50:20\", \"Lenovo PB2-690Y\",32.152, 34.751, 40, -70, \"DD123\",\"fc:4f:db:7e:50:a6\" ,1));\r\n\t\tlist1.Lines.add(new WifiScan(\"26/10/2017\" ,\"16:35:20\", \"Lenovo PB2-690Y\",32.151, 34.755, 40, -80, \"AA333\",\"fc:7f:db:7e:70:v6\" ,3));\r\n\t\tlist1.Lines.add(new WifiScan(\"26/10/2017\" ,\"15:50:20\", \"LG-H850\",32.149, 34.752, 42, -59, \"DD123\",\"ff:3f:db:7e:60:a6\" ,14));\r\n\t\tlist1.Lines.add(new WifiScan(\"26/10/2017\" ,\"16:16:31\", \"Lenovo PB2-690Y\",32.155, 34.755, 41, -69, \"AA333\",\"fs:5f:db:7e:60:a6\" ,6));\r\n\t\tlist1.Lines.add(new WifiScan(\"27/10/2017\" ,\"16:16:35\", \"LG-H850\",32.417, 34.411, 53, -70, \"CC1414\",\"fn:7f:db:7e:20:a6\" ,9));\r\n\t\tlist1.Lines.add(new WifiScan(\"27/10/2017\" ,\"12:34:30\", \"Lenovo PB2-690Y\",32.742, 34.963, 39, -59, \"DD123\",\"fu:9f:db:7e:25:a6\" ,8));\r\n\t\tlist1.Lines.add(new WifiScan(\"26/10/2017\" ,\"12:34:30\", \"Lenovo PB2-690Y\",32.147, 34.752, 29, -40, \"AA333\",\"fk:1f:db:7e:09:a6\" ,6));\r\n\t\tlist1.Lines.add(new WifiScan(\"28/10/2017\" ,\"17:50:20\", \"LG-H850\",32.258, 34.257, 41, -50, \"CC1414\",\"fe:2f:db:7e:59:a6\" ,36));\r\n\t\tlist1.Lines.add(new WifiScan(\"28/10/2017\" ,\"18:34:15\", \"LG-H850\",32.369, 34.756, 38, -60, \"CC1414\",\"fc:1f:db:7e:72:a6\" ,44));\r\n\t\tlist1.Lines.add(new WifiScan(\"28/10/2017\" ,\"18:00:17\", \"LG-H850\",32.147, 34.741, 40, -72, \"CC1414\",\"fg:8f:db:7e:52:a6\" ,2));\r\n\r\n\t\tlist1.deleteEquals();\r\n\t\t\r\n\t\tlist2.Lines.add(new WifiScan(\"26/10/2017\" ,\"15:50:20\", \"LG-H850\",32.149, 34.752, 42, -59, \"DD123\",\"ff:3f:db:7e:60:a6\" ,14));\r\n\t\tlist2.Lines.add(new WifiScan(\"28/10/2017\" ,\"17:50:20\", \"LG-H850\",32.258, 34.257, 41, -50, \"CC1414\",\"fe:2f:db:7e:59:a6\" ,36));\r\n\t\tlist2.Lines.add(new WifiScan(\"26/10/2017\" ,\"12:34:30\", \"Lenovo PB2-690Y\",32.147, 34.752, 29, -40, \"AA333\",\"fk:1f:db:7e:09:a6\" ,6));\r\n\r\n\r\n\t\tboolean flag=true;\r\n\t\tif (list1.Lines.size()==list2.Lines.size()){\r\n\t\t\tfor (int i = 0; i < list1.Lines.size(); i++) {\r\n\t\t\t\tif(!list1.Lines.get(i).date.equals(list2.Lines.get(i).date) || \r\n\t\t\t\t\t\t!list1.Lines.get(i).time.equals(list2.Lines.get(i).time) ||\r\n\t\t\t\t\t\t!list1.Lines.get(i).id.equals(list2.Lines.get(i).id) ||\r\n\t\t\t\t\t\tlist1.Lines.get(i).p.longtitude!=list2.Lines.get(i).p.longtitude ||\r\n\t\t\t\t\t\tlist1.Lines.get(i).p.latitude!=list2.Lines.get(i).p.latitude || \r\n\t\t\t\t\t\tlist1.Lines.get(i).p.altitude!=list2.Lines.get(i).p.altitude || \r\n\t\t\t\t\t\tlist1.Lines.get(i).wifis.get(0).Signal!=list2.Lines.get(i).wifis.get(0).Signal || \r\n\t\t\t\t\t\t!list1.Lines.get(i).wifis.get(0).SSID.equals(list2.Lines.get(i).wifis.get(0).SSID) ||\r\n\t\t\t\t\t\t!list1.Lines.get(i).wifis.get(0).mac.equals(list2.Lines.get(i).wifis.get(0).mac) || \r\n\t\t\t\t\t\tlist1.Lines.get(i).wifis.get(0).frequncy!=list2.Lines.get(i).wifis.get(0).frequncy )\t\r\n\t\t\t\t\tflag=false;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse \r\n\t\t\tflag=false;\r\n\t\t\r\n\t\tassertTrue(\"delete equals eror\", flag);\r\n\t}", "public void listTupleParser(JSONArray listData){\n mRealTimeItems.clear();\n for(int i=0; i < listData.length(); i++){\n RealTimeDataItem airDataTuple = null;\n String[] tuple = new String[0];\n try {\n tuple = listData.get(i).toString().split(\",\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n// if (tuple.length == TUPLE_LENGTH){\n// String wifiMacAddress = tuple[0];\n// String timestamp = tuple[1];\n// String temperature = tuple[2];\n// String coAqi = tuple[3];\n// String o3Aqi = tuple[4];\n// String no2Aqi = tuple[5];\n// String so2Aqi = tuple[6];\n// String pm25Aqi = tuple[7];\n// String pm10Aqi = tuple[8];\n// Double latitude = Double.valueOf(tuple[9]);\n// Double longitude = Double.valueOf(tuple[10]);\n// airDataTuple = new RealTimeDataItem(wifiMacAddress, timestamp, temperature, coAqi,\n// o3Aqi, no2Aqi, so2Aqi, pm25Aqi, pm10Aqi, latitude, longitude);\n// }\n if(true){\n String wifiMacAddress = tuple[0];\n String timestamp = tuple[1];\n String temperature = tuple[4];\n String coAqi = tuple[11];\n String o3Aqi = tuple[12];\n String no2Aqi = tuple[13];\n String so2Aqi = tuple[14];\n String pm25Aqi = tuple[15];\n String pm10Aqi = tuple[16];\n Double latitude = Double.valueOf(tuple[2]);\n Double longitude = Double.valueOf(tuple[3]);\n airDataTuple = new RealTimeDataItem(wifiMacAddress, timestamp, temperature, coAqi,\n o3Aqi, no2Aqi, so2Aqi, pm25Aqi, pm10Aqi, latitude, longitude);\n }\n try {\n mRealTimeItems.add(airDataTuple);\n } catch (Exception e){\n e.printStackTrace();\n };\n }\n setUpCluster();\n }", "public Timetable() {\n trips = new ArrayList<>();\n timesMap = new HashMap<>();\n infoMap = new HashMap<>();\n }", "public void training(List<Entry> tra, List<Entry> tes);", "private ObservableList<Tipo> stampaListaT(List<Tipo> lista) {\n\t\ttableTipiData.clear();\n\t\tfor (Tipo i : lista) {\n\t\t\ttableTipiData.add(i);\n\t\t}\n\t\treturn tableTipiData;\n\t}", "public static void createTrials() throws IncorrectNumberOfTrialsException {\n \tif (Experiment.pp == null) {\n \t\tSystem.err.println(\"Cannot create trials before participant is defined!\");\n \t} else {\n \t\tint ssOffset = Experiment.pp.ssNb % CONDITION_MATRIX.length; //1 to 2\n \t\tif (ssOffset == 0) {\n \t\t\tssOffset = CONDITION_MATRIX.length;\n \t\t}\n\n \t\t//create all trials, in 8 groups of 40 (one group per condition)\n \t\tList<Trial> lowLoadTrials = new ArrayList<Trial>();\n \t\tList<Trial> highLoadTrials = new ArrayList<Trial>();\n\n \t\twhile (!IO.stimStrings.isEmpty()) {\n \t\t\tString[] trialLine = IO.stimStrings.remove(0); //the line containing the text of this trial \t\t\n \t\t\tString cue = trialLine[0];\n \t\t\tint list = Integer.parseInt(trialLine[1]);\n \t\t\t \t\t\t\n \t\t\tboolean[] condition = CONDITION_MATRIX[(ssOffset - 1) % CONDITION_MATRIX.length]; //-1 because ssOffset starts at 1, while conditionMatrix starts at 0\n \t\t\tboolean list1lowload = condition[0];\n\n \t\t\tboolean lowLoad = ((list == 1 && list1lowload) || (list == 2 && !list1lowload));\n \t\t\t\n \t\t\tTrial t = new Trial(cue, lowLoad, false, list);\n \t\t\t\n \t\t\tif\t(lowLoad) {\n \t\t\t\tlowLoadTrials.add(t);\n \t\t\t} else {\n \t\t\t\thighLoadTrials.add(t); \t\t\t\n \t\t\t}\n \t\t}\n \t\t \t\t\n \t\t//randomize the order within each list\n \t\tCollections.shuffle(lowLoadTrials);\n \t\tCollections.shuffle(highLoadTrials);\n\n \t\texperimentTrialGroups = new ArrayList<TrialGroup>();\n \t\texperimentTrialGroups.addAll(TrialGroup.createTrialGroups(lowLoadTrials));\n \t\texperimentTrialGroups.addAll(TrialGroup.createTrialGroups(highLoadTrials)); \t\t\n \t\tCollections.shuffle(experimentTrialGroups); \t\t\n \t}\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The base interface that defines a presenter in the MVP patterns.
public interface MvpPresenter<V extends MvpView> { /** * Sets the view to this presenter instance. * * @param view the view to be attached to this presenter */ @UiThread void attachView(V view); /** * This method will be called when the view is destroyed. * If the view is an activity, it will be invoked from <code>Activity.onDestroy()</code>. * If the view is a fragment, it will be invoked from <code>Fragment.onDestroyView()</code>. */ @UiThread void detachView(); }
[ "public interface Presenter {\r\n\r\n\t/**\r\n\t * Binds the view with its presenter\r\n\t */\r\n\tpublic void bind();\r\n}", "interface Presenter {\n\n }", "public interface MvpPresenter<V extends MvpView> {\n //绑定view\n public void attachView(V view);\n //解除view绑定\n public void detachView();\n}", "public interface BasePresenter{\n\n void onAttach(BaseMvpView v);\n\n void onDetach();\n}", "public interface BasePresenter<T> {\n\n /**\n * Binds presenter with a view when resumed. The Presenter will perform initialization here.\n */\n void takeView(T view);\n\n /**\n * Drops the reference to the view when destroyed\n */\n void dropView();\n\n /**\n * handle no network connection\n */\n void networkDisconnected();\n\n /**\n * called when network is connected\n */\n void networkConnected();\n\n /**\n * view update requested\n */\n void update();\n\n}", "public interface Presenter<V extends View> {\n\n V getView();\n\n void addPresenterListener(PresenterListener presenterListener);\n\n void removePresenterListener(PresenterListener presenterListener);\n}", "public interface HomePresenter extends Presenter {\n\n}", "public interface Presenter<V extends MvpView> {\n\n void attachView(V view);\n void detachView();\n}", "public interface Presenter<T> {\n\n T presenter();\n}", "public interface IPresenter<V extends IView> {\n\n /**\n * function to be called to set the view\n *\n * @param view the view associated with the presenter\n */\n @UiThread\n void takeView(final V view);\n\n\n /**\n * function release the view from the presenter there by blocking\n * all updates to the view. Possible call from {@link Activity#onDetachedFromWindow()} or\n * {@link Fragment#onDestroyView()}\n */\n @UiThread\n void releaseView();\n\n /**\n * function which will be called {@link Activity#onDestroy()} or\n * {@link Fragment#onDestroy()}\n */\n void onDestroy();\n\n}", "public interface BasePresenter<T> {\n void setView(T view);\n void onStart();\n void onStop();\n}", "public interface View<T extends Presenter> {\n\n /**\n * Sets presenter.\n *\n * @param presenter the presenter\n */\n void setPresenter(T presenter);\n}", "public interface IBaseView<T> {\n\n\tvoid setPresenter(T t);\n}", "public interface Presenter<V> {\n void attachView(V view);\n\n void detachView();\n\n}", "public interface BasePresenter<V extends BaseView> {\n\n void attachView(V view);\n\n void detachView();\n\n}", "interface Presenter {\r\n /**\r\n * Set the view for presenting data.\r\n *\r\n * @param view The view for presenting data\r\n */\r\n void setView(View view);\r\n\r\n /**\r\n * Load product data according product Ids.\r\n *\r\n * @param productIds Product Ids\r\n */\r\n void load(List<String> productIds);\r\n\r\n /**\r\n * Refresh owned subscriptions.\r\n */\r\n void refreshSubscription();\r\n\r\n /**\r\n * Buy a subscription product according to productId.\r\n *\r\n * @param productId The ID of the product to be purchased.\r\n */\r\n void buy(String productId);\r\n\r\n /**\r\n * Show subscription detail.\r\n *\r\n * @param productId The ID of a purchased subscription.\r\n */\r\n void showSubscription(String productId);\r\n\r\n /**\r\n * Check whether to offer subscription service.\r\n *\r\n * @param productId Subscription product id.\r\n * @param callback Result callback.\r\n */\r\n void shouldOfferService(String productId, ResultCallback<Boolean> callback);\r\n\r\n }", "public interface IClassicMusicMvpPresenter<V extends IClassicMusicMvpView> extends MvpPresenter<V> {\n void onViewPrepared();\n}", "public interface IPresenterManager<P> {\n\n void setaPresenter(P presenter);\n\n}", "public interface Presenter {\n void get();\n}", "public interface HealthDataListMvpPresenter<V extends HealthDataListMvpView> extends MvpPresenter<V> {\n void getHealthData(String userId);\n\n void getUser(String userId);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setup the config manager
public void setup() { // Reload the global config reloadGlobalConfig(); // Reload the world configs reloadWorldConfigs(); }
[ "protected void setUp() throws Exception {\r\n ConfigManager manager = ConfigManager.getInstance();\r\n manager.add(CONFIG_FILE);\r\n }", "public static void initConfig(ModelManagerFactory.Impl modelManagerImplementation) throws IOException {\n configDir = loadConfigDirectory(CONFIG_DIR_NAME);\n LOG.info(\"Configuration directory located: \" + configDir.getAbsolutePath());\n\n ModelManagerFactory.setImplementation(modelManagerImplementation);\n itemsManager = ModelManagerFactory.createItemsManager();\n invoicesManager = ModelManagerFactory.createInvoiceManager();\n }", "private void initialize() {\n if (configManagerInitialized) {\n return;\n }\n\n synchronized (initLock) {\n while (initCount != 0) {\n if (configManagerInitialized) {\n return;\n }\n try {\n initLock.wait(500);\n } catch (InterruptedException e) {\n throw new ConfigRuntimeException(\"ConfigManager JMX fatal exception:\", e);\n }\n }\n initCount++;\n }\n\n /* Register config manager bean if not registered yet. */\n try {\n ObjectName beanName = new ObjectName(ConfigManagerJvm.CONFIG_MGR_MBEAN_NAME + getAppName());\n if (!ManagementFactory.getPlatformMBeanServer().isRegistered(beanName)) {\n try {\n ManagementFactory.getPlatformMBeanServer().registerMBean(new ConfigManagerJmx(getAppName()),\n beanName);\n } catch (InstanceAlreadyExistsException e) {\n throw new ConfigRuntimeException(\"Failed to register JMX bean: \"\n + ConfigManagerJvm.CONFIG_MGR_MBEAN_NAME + getAppName(),\n e);\n } catch (MBeanRegistrationException e) {\n throw new ConfigRuntimeException(\"Failed to register JMX bean: \"\n + ConfigManagerJvm.CONFIG_MGR_MBEAN_NAME + getAppName(),\n e);\n } catch (NotCompliantMBeanException e) {\n throw new ConfigRuntimeException(\"Failed to register JMX bean: \"\n + ConfigManagerJvm.CONFIG_MGR_MBEAN_NAME + getAppName(),\n e);\n }\n }\n } catch (MalformedObjectNameException e) {\n throw new ConfigRuntimeException(\"ConfigManager JMX fatal exception:\", e);\n }\n\n try {\n getInternalConfig();\n\n logger.info(\"Resize config cache to \" + internalConfig.getMaxCacheSize().intValue() + \".\");\n // resize cache to config value\n configObjectsCache.setMaxSize(internalConfig.getMaxCacheSize().intValue());\n\n if (annotatedClazzez == null) {\n scanAnnotatedClasses();\n }\n\n if (internalConfig.getLoadFrom().equals(\"JMX\")) {\n isLoaderDone = false;\n long endTime = System.currentTimeMillis() + internalConfig.getConfigLoaderSyncInterval().toMillis();\n synchronized (waitLoaderLock) {\n try {\n logger.error(\"Waiting for ConfigLoader to set the values for \"\n + internalConfig.getConfigLoaderSyncInterval().toSeconds() + \"s\");\n while (!isLoaderDone && (endTime > System.currentTimeMillis())) {\n waitLoaderLock.wait(500);\n }\n } catch (InterruptedException e) {\n Thread.interrupted();\n throw new ConfigRuntimeException(\"Failed to attach to ConfigLoader jvm: \", e);\n }\n\n }\n if (!isLoaderDone) {\n throw new ConfigRuntimeException(\"Failed to load config from ConfigLoader after \"\n + internalConfig.getConfigLoaderSyncInterval());\n }\n\n } else {\n for (Class<?> configClass : annotatedClazzez) {\n ConfigResource anno = configClass.getAnnotation(ConfigResource.class);\n ConfigAdapter<String> configAdapter = null;\n if (anno != null) {\n String uri = anno.name();\n if (uri != null) {\n try {\n if (uri.toLowerCase().endsWith(\".json\")) {\n configAdapter = new ConfigAdapterJson(uri, UTF8, internalConfig);\n configAdapter.loadValue(configManagerCache);\n } else if (uri.toLowerCase().endsWith(\".properties\")) {\n configAdapter = new ConfigAdapterProperties(uri, UTF8, internalConfig);\n configAdapter.loadValue(configManagerCache);\n }\n } catch (ConfigException e) {\n /* Catch here because we do not want to fail initialize if one config is bad */\n logger.error(\"Error loading config \" + uri + \" \", e);\n }\n }\n }\n }\n //trigger flipping of cache\n resetAndFlipCache();\n }\n configManagerInitialized = true;\n } finally {\n initCount--;\n }\n }", "public void initConfig() {\n\n }", "protected void setup() {\n setupMappers(objectManager);\n setupNetwork(networkManager);\n setupStorage(storageManager);\n preflightChecks();\n this.setupComplete = true;\n }", "public ConfigurationManager() {\n logger = Logger.getLogger(\"configurationmanager\");\n\n }", "@Before\r\n public void setUp() throws Exception {\r\n config = TestsHelper.getConfig();\r\n }", "public ConfigManage() {\r\n\t\tsuper();\r\n\t}", "public ConfigPropertiesManager() {\n\t\t\n\t\tthis.configPropertiesPath = System.getProperty(\"user.dir\") +\n\t\t\t\tPropertyDefaultValues.CONFIG_PROPERTIES_PATH_RELATIVE;\n\t}", "public void setupConfigurationSettings() {\r\n\r\n this.registerSetting(Setting.databaseHost, \"localhost\");\r\n this.registerSetting(Setting.databasePort, 3306);\r\n this.registerSetting(Setting.databaseName, \"my_database\");\r\n this.registerSetting(Setting.databaseUsername, \"user\");\r\n this.registerSetting(Setting.databasePassword, \"password\");\r\n\r\n }", "private static void setup() throws Exception {\n log.trace(\"startup()\");\n\n Version.outputVersionInfo(APP_NAME);\n\n actorSystem = ActorSystem.create(\"ConfigurationProxy\",\n ConfigFactory.load().getConfig(\"configuration-proxy\")\n .withFallback(ConfigFactory.load()));\n\n SignerClient.init(actorSystem);\n }", "private static void startUp(String name, CertificateConfigurationManager configManager) {\r\n\r\n LOG.debug(\"SAMLEngine: Initialize OpenSAML instance=\"+name);\r\n try {\r\n DefaultBootstrap.bootstrap();\r\n } catch (ConfigurationException e) {\r\n LOG.error(\"Problem initializing the OpenSAML library.\");\r\n throw new EIDASSAMLEngineRuntimeException(e);\r\n }\r\n\r\n LOG.trace(\"Read all file configurations. (instances of SAMLEngine)\");\r\n Map<String, InstanceEngine> engineInstances = instanceConfigs.get(name);\r\n if (null == engineInstances) {\r\n loadConfig(name, configManager);\r\n }\r\n\r\n }", "@BeforeClass\n public static void setupClass() throws Exception {\n config = ConfigUtility.getConfigProperties();\n }", "public static Configuration initManagers(String[] args)\n {\n return initManagers(args, false);\n }", "public ConfigManager(final ToolContext toolContext) {\n ArgumentChecker.notNull(toolContext, \"toolContext\");\n _configMaster = ArgumentChecker.notNull(toolContext.getConfigMaster(), \"toolContext.configMaster\");\n _configSource = ArgumentChecker.notNull(toolContext.getConfigSource(), \"toolContext.configSource\");\n }", "private void initialize(){\r\n\r\n FileManager.createFolders(\"Config Files\");\r\n\r\n // create config files\r\n misc();\r\n debug();\r\n autosave();\r\n permission();\r\n censor();\r\n\r\n \r\n }", "public static void setupFiles(FileManagerUtil fm) {\n fileManager = fm;\n Files.CONFIG.load(fm);\n Files.DATA.load(fm);\n }", "public void loadConfig() {\n ConfigList.loadConfig(this);\n }", "protected void setUp() {\n cp = new ConfigProperties() {\n public void save() {\n }\n public void load() {\n }\n public Object clone() {\n return null;\n }\n };\n }", "private void configureApplicationManagers() {\n\t\tbind(IDataManager.class).to(MongoDataManager.class);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
No args constructor for use in serialization
public CertmanagerSchema() { }
[ "private Serializer() {\n }", "public BPlusTree() {\n //Pedro -- I need an empty constructor to Jgroups deserialize the object\n }", "public User() {\n //no arg constructor for serializable\n }", "private NonSerializables() {\n\t}", "private SerializationUtils() {\n throw new Error(\"Do not allow instantiation!\");\n }", "public RollbarSerializer() {\n this(false);\n }", "public ResultSequenceSerializer() {\n\t}", "public Serializer() {\n this(Witness.class);\n }", "public Servizio() {\n this(\"\", \"\");\n }", "public SerializedDataManager() {\n\t}", "public ConstructorEmpty() {}", "public SerializableResponse() {\r\n this(null);\r\n }", "public SerializationException()\n {\n }", "public abstract T constructor();", "public HashMapSerializer() {\n\t}", "protected Serie() {}", "private ObjectSerializerFactory() {\n serializer = new JavaSerializer();\n }", "public Data() {\r\n\t\r\n}", "private DataRecord() {\n }", "private ObjectCreator() {\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the height of the status bar.
private int getStatusBarHeight(Context context) { int height = 0; int resourceId = context.getResources() .getIdentifier("status_bar_height", "dimien", "android"); if(resourceId > 0) { height = context.getResources().getDimensionPixelSize(resourceId); } return height; }
[ "public static int getStatusBarHeight() {\n int result = 0;\n int resourceId = IM.resources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = IM.resources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public static float getStatusBarHeight(Context context) {\n Resources resources = context.getResources();\n int statusBarIdentifier = resources.getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (0 != statusBarIdentifier) {\n return resources.getDimension(statusBarIdentifier);\n }\n return 0;\n }", "public static int getStatusBarHeight(final Context context) {\n int statusBarHeight;\n try {\n /* TODO Identify or request robust APIs to obtain the status bar height */\n final Resources resources = context.getResources();\n statusBarHeight = resources.getDimensionPixelSize(\n resources.getIdentifier(\"status_bar_height\", \"dimen\", \"android\"));\n } catch (Resources.NotFoundException e) {\n statusBarHeight = 0;\n }\n\n return statusBarHeight;\n }", "public static int getStatusBarHeightLegacy(Context context) {\n int result = 0;\n int resourceId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = context.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public int getWindowHeight(){\n return WINDOW_HEIGHT;\n }", "public int getWindowHeight() {\n String height = instance.getProperty(\"WINDOW_HEIGHT\");\n\n return (height != null) ? Integer.parseInt(height) : 800;\n }", "public static int getStatusH(Context ctx) {\n int statusHeight = -1;\n try {\n Class<?> clazz = Class.forName(\"com.android.internal.R$dimen\");\n Object object = clazz.newInstance();\n int height = Integer.parseInt(clazz.getField(\"status_bar_height\").get(object).toString());\n statusHeight = ctx.getResources().getDimensionPixelSize(height);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return statusHeight;\n }", "public static float getScreenHeight(){\n DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics();\n return metrics.heightPixels;\n }", "public static int getScreenHeight() {\n\t\tGraphicsDevice currentScreen = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\n\t\tint height = currentScreen.getDisplayMode().getHeight();\n\t\treturn height;\n\t}", "public static int getScreenHeight(Context context) {\n WindowManager wm = (WindowManager) context\n .getSystemService(Context.WINDOW_SERVICE);\n DisplayMetrics outMetrics = new DisplayMetrics();\n wm.getDefaultDisplay().getMetrics(outMetrics);\n return outMetrics.heightPixels;\n }", "public static int getScreenHeight() {\r\n\t\treturn screenHeight;\r\n\t}", "public static int getScreenHeight(Context context) {\n WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Point point = new Point();\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {\n //noinspection ConstantConditions\n wm.getDefaultDisplay().getRealSize(point);\n } else {\n //noinspection ConstantConditions\n wm.getDefaultDisplay().getSize(point);\n }\n return point.y;\n }", "public float getHeight() {\n return progressBar.getHeight();\n }", "public int getDisplayHeight() {\n return getAppState().getDisplayHeightPixels();\n }", "public int getHeight() {\n return this.screen.getHeight();\n }", "public static int getDeviceHeight(Context context) {\n\t\tWindowManager manager = (WindowManager) context\n\t\t\t\t.getSystemService(Context.WINDOW_SERVICE);\n\t\treturn manager.getDefaultDisplay().getHeight();\n\t}", "@Override\r\n\tpublic int getHeight() {\r\n\t\treturn this.getRootGui().getEndY();\r\n\t}", "public final int getDisplayHeight() {\n AppMethodBeat.m2504i(130166);\n int systemDisplayHeight = ((int) (((float) this.bSv.getSystemDisplayHeight()) * getContext().getResources().getDisplayMetrics().density)) + 1;\n AppMethodBeat.m2505o(130166);\n return systemDisplayHeight;\n }", "@java.lang.Override\n public int getScreenHeight() {\n return screenHeight_;\n }", "public int getScreenHeight() {\r\n return screenHeight;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns current shelter or ghost shelter
public Apartment getCurrentShelter() { return currentShelter == null ? ghostHouse : currentShelter; }
[ "public com.ictti.orrs.business.entity.Shelter getShelter () {\n\t\treturn shelter;\n\t}", "public Shelter getShelter() {\n return Shelter.getShelter(shelterId);\n }", "public java.lang.String getShelterName () {\n\t\treturn shelterName;\n\t}", "public void setShelter (com.ictti.orrs.business.entity.Shelter shelter) {\n\t\tthis.shelter = shelter;\n\t}", "public void makeShelter() {\n\t\tSystem.out.println(this.getName() + \" tore down leaves and to a small shelter\");\n\t}", "public void setShelterLocation (java.lang.String shelterLocation) {\n\t\tthis.shelterLocation = shelterLocation;\n\t}", "public Resource getTypeShelf(int s){\n return shelves.get(s-1).getResourceType();\n }", "public static int getNextShelterId() {\n// if (sheltersLoaded()) throw new RuntimeException(\"Problem loading shelters.\");\n return maxChildId + 1;\n }", "public java.lang.Integer getShelterDeleteStatus () {\n\t\treturn shelterDeleteStatus;\n\t}", "public final SlingScriptHelper getSling() {\n\t\treturn (SlingScriptHelper) getPageContext().getAttribute(\"sling\");\n\t}", "public void setShelterLoginName (java.lang.String shelterLoginName) {\n\t\tthis.shelterLoginName = shelterLoginName;\n\t}", "public MHScreen getScreen()\n {\n return screenStack.top.screen;\n }", "@Basic\n\t@Raw\n\tpublic Ship getShooter ()\n\t{\n\t\treturn shooter;\n\t}", "public Shark getShark(){\n\t\treturn s;//Returning the shark\n\t}", "TskDeployer getTskDeployer();", "private DexTherapist getCurrentTherapist() {\n DexUser user = securityService.getCurrentUser();\n return (DexTherapist) user.getActor();\n }", "public Tool getCurrentTool()\n {\n return my_current_tool;\n }", "public static String getHome() {\n\t\treturn System.getProperty(\"swifts.home\", System.getProperty(\"user.dir\"));\n\t}", "protected Shell getShell() {\n return LaunchUIPlugin.getActiveWorkbenchShell();\n }", "public Speler getHuidigeSpeler() {\n\t\treturn spelers[huidigeSpeler];\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the java script for edit massive table.
public Return getJavaScript4EditMassiveTable(final Parameter _parameter) throws EFapsException { final Return retVal = new Return(); retVal.put(ReturnValues.SNIPLETT, getTableDeactivateScript(_parameter, "inventoryTable", true, true).toString()); return retVal; }
[ "void getFormTable1(){\n web.evaluateJavascript(getcmd(\"var rows=document.getElementsByTagName('table')[1].rows;var c;for(c=0;c<rows.length;c++){if(rows[c].cells.length==15){rows[c].deleteCell(0)}}\"), new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String value) {\n web.evaluateJavascript(\"var rows=document.getElementsByTagName('table')[1].rows;var c;for(c=0;c<rows.length;c++){if(rows[c].cells.length==14){rows[c].deleteCell(0)}}\", new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String value) {\n web.evaluateJavascript(getcmd(\"return document.getElementsByTagName('table')[1].rows.length.toString()\"), new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String value) {\n int rows=Integer.parseInt(trim(value));\n for(int row=1;row<rows-2;row++){\n final int rowa=row;\n web.evaluateJavascript(getcmd(\"return document.getElementsByTagName('table')[1].rows[\" + row + \"].cells[8].innerText.toString()\"), new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String value) {\n final String room=trim(value);\n if(!room.equals(\"NIL\")){\n final subject sub= new subject();\n sub.room=room;\n //Toast.makeText(getApplicationContext(),room,Toast.LENGTH_LONG).show();\n //CODE\n web.evaluateJavascript(getcmd(\"return document.getElementsByTagName('table')[1].rows[\" + rowa + \"].cells[1].innerText.toString()\"), new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String code) {\n sub.code=trim(code);\n }\n });\n //NAME\n web.evaluateJavascript(getcmd(\"return document.getElementsByTagName('table')[1].rows[\" + rowa + \"].cells[2].innerText.toString()\"), new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String name) {\n sub.title=trim(name);\n }\n });\n //TEACHER\n web.evaluateJavascript(getcmd(\"return document.getElementsByTagName('table')[1].rows[\" + rowa + \"].cells[9].innerText.toString()\"), new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String teacher) {\n String rawTeacher= trim(teacher).split(\"-\")[0];\n sub.teacher=rawTeacher.substring(0,rawTeacher.length()-1);\n }\n });\n //TYPE\n web.evaluateJavascript(getcmd(\"return document.getElementsByTagName('table')[1].rows[\" + rowa + \"].cells[3].innerText.toString()\"), new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String rawtype) {\n String type=trim(rawtype);\n switch (type)\n {\n case \"Embedded Theory\":\n sub.type = \"ETH\";\n break;\n case \"Theory Only\":\n sub.type = \"TH\";\n break;\n case \"Lab Only\":\n sub.type = \"LO\";\n break;\n case \"Embedded Lab\":\n sub.type = \"ELA\";\n break;\n case \"Soft Skill\":\n sub.type = \"SS\";\n break;\n }\n }\n });\n vClass.subList.add(sub);\n }\n }\n });\n }\n }\n });\n }\n });\n }\n });\n getFromTable2();\n }", "void tableUpdated();", "@VTID(83)\n com.exceljava.com4j.office.Script getScript();", "public TableCellEditor\n getEditor\n (\n int col \n );", "private JTable getJTable() throws Exception {\n JTable table = (JTable) TestHelper.getField(this.tagEditor, \"tagTable\");\n return table;\n }", "public UIComponent getBuildTable() {\n final FacesContext fc = FacesContext.getCurrentInstance();\n final Application application = fc.getApplication();\n final ExpressionFactory ef = application.getExpressionFactory();\n\n final DataTable table = (DataTable) application.createComponent(DataTable.COMPONENT_TYPE);\n table.setValue(this.tasks);\n table.setSelectionMode(\"single\");\n table.setVar(\"item\");\n table.setRowKey(\"#{item.id}\");\n table.setId(\"tableId\");\n\n final Column column = (Column) application.createComponent(Column.COMPONENT_TYPE);\n column.setHeaderText(\"id\");\n final List<UIColumn> columns = new ArrayList<>();\n columns.add(column);\n table.setColumns(columns);\n\n final MethodExpression me = ef.createMethodExpression(fc.getELContext(), \"#{taskListSo.onSelect}\", String.class, new Class[0]);\n final MethodExpression meArg = ef.createMethodExpression(fc.getELContext(), \"#{taskListSo.onSelect}\", String.class,\n new Class[] { SelectEvent.class });\n final AjaxBehavior ajaxBehavior = new AjaxBehavior();\n ajaxBehavior.addAjaxBehaviorListener(new AjaxBehaviorListenerImpl(me, meArg));\n table.addClientBehavior(\"rowSelect\", ajaxBehavior);\n\n final ContextMenu ctxMenu = new ContextMenu();\n ctxMenu.setFor(\"tableId\");\n\n final DynamicMenuModel ctxModel = new DynamicMenuModel();\n final DefaultMenuItem menuItem = new DefaultMenuItem();\n menuItem.setValue(\"Hello Menu Item\");\n ctxModel.addElement(menuItem);\n\n ctxMenu.setModel(ctxModel);\n\n final UIComponent component = application.createComponent(Panel.COMPONENT_TYPE);\n\n // final UIComponent component = fc.getViewRoot().findComponent(\"ctxmenu\");\n component.getChildren().add(ctxMenu);\n component.getChildren().add(table);\n\n // RequestContext.getCurrentInstance().update(TreeManagedBean.rightCenterForm);\n return component;\n }", "public String table() {\n\t\ttry {\n\t\t\treturn render( tableList, dao.find() );\n\t\t} catch (Exception e) {\n\t\t\tthrow this.renderingEngine.handleExceptionHtml( e );\n\t\t}\n\t}", "private String html(final TableFacade tableFacade, final HttpServletRequest request) {\n\t\ttableFacade.setColumnProperties(\"fenSerieFactura\",\"fenNumeroFactura\",\n\t\t\t\t\"fenFechaFactura\",\"fenTotalVenta\",\"facCliCliente.cliCodigo\");\n\t\tTable table = tableFacade.getTable();\n\t\t//---- Titulo de la tabla\n\t\ttable.setCaptionKey(\"tbl.facturaManual.captionV\");\n\t\t\n\t\tRow row = table.getRow();\n\t\t\n\t\tColumn nombreColumna = row.getColumn(\"fenSerieFactura\");\n\t\tnombreColumna.setTitleKey(\"tbl.facturaManual.fenSerieFactura\");\n\t\t\n\t\tnombreColumna = row.getColumn(\"fenNumeroFactura\");\n\t\tnombreColumna.setTitleKey(\"tbl.facturaManual.fenNumeroFactura\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor(){\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property, rowcount);\n\t\t\t\tFacFenFacturaEncabezado encabezado = (FacFenFacturaEncabezado)item;\n\t\t\t\tHtmlBuilder html = new HtmlBuilder();\n\t\t\t\tString link = tableFacade.getWebContext().getContextPath();\n\t\t\t\tlink += \"/facturacion/facturaManual.do?fenId=\"+encabezado.getFenId().toString()+\"&accion=view\";\n\t\t\t\thtml.a().href().quote().append(link).quote().close();\n\t\t\t\thtml.append(value);\n\t\t\t\thtml.aEnd();\n\t\t\t\treturn html.toString();\n\t\t\t}\n\t\t});\n\t\t\n\t\tnombreColumna = row.getColumn(\"fenFechaFactura\");\n\t\tnombreColumna.setTitleKey(\"tbl.facturaManual.fenFechaFactura\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new DateCellEditor(\"dd-MMM-yyyy\"));\n\t\t\n\t\tnombreColumna = row.getColumn(\"fenTotalVenta\");\n\t\tnombreColumna.setTitleKey(\"tbl.facturaManual.fenTotalVenta\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor(){\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property, rowcount);\n\t\t\t\tFacFenFacturaEncabezado encabezado = (FacFenFacturaEncabezado)item;\n\t\t\t\tString total = Format.formatDinero(encabezado.getFenTotalVenta());\n\t\t\t\treturn total;\n\t\t\t}\n\t\t});\n\t\t\n\t\tnombreColumna = row.getColumn(\"facCliCliente.cliCodigo\");\n\t\tnombreColumna.setTitleKey(\"tbl.facturaManual.cliCodigo\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor(){\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property, rowcount);\n\t\t\t\tFacFenFacturaEncabezado encabezado = (FacFenFacturaEncabezado)item;\n\t\t\t\tFacCliClienteDAO clienteDAO = new FacCliClienteDAO(getSessionHibernate(request));\n\t\t\t\tFacCliCliente cliente = clienteDAO.findById(encabezado.getFacCliCliente().getCliCodigo());\n\t\t\t\treturn cliente.getCliCodigo() + \" - \" + cliente.getCliNombre();\n\t\t\t}\n\t\t});\n\t\t\n\t\treturn tableFacade.render();\n\t}", "public String editar()\r\n/* 264: */ {\r\n/* 265: 308 */ cargarDatosContabilizar();\r\n/* 266: 309 */ mostrarColummnas();\r\n/* 267: 310 */ setEditado(true);\r\n/* 268: 311 */ return \"\";\r\n/* 269: */ }", "public String getTable() {\n\n // This can't work without a servlet context.\n if (this.context == null) {\n return \"<p>Error: the context property is not set \" +\n \"in the tabulator bean.</p>\";\n }\n\n // Swallow all errors. Do not throw exceptions.\n try {\n\n // Get the current web.xml as a source transformable by XSLT.\n InputStream webXmlStream =\n this.context.getResourceAsStream(\"/WEB-INF/web.xml\");\n StreamSource webXmlSource = new StreamSource(webXmlStream);\n\n // Build a transformer that can produce a web form from web.xml.\n InputStream xsltStream =\n this.context.getResourceAsStream(\"/webDotXmlToForm.xsl\");\n StreamSource xsltSource = new StreamSource(xsltStream);\n TransformerFactory factory = TransformerFactory.newInstance();\n Transformer transformer = factory.newTransformer(xsltSource);\n\n // Make the output stream for this page a possible target\n // for the transformation.\n StringWriter writer = new StringWriter();\n StreamResult result = new StreamResult(writer);\n\n // Run the transformer on web.xml.\n transformer.transform(webXmlSource, result);\n\n // Return the result of the transformation.\n return writer.getBuffer().toString();\n\n }\n catch (Exception e) {\n return \"<p>Error: failed to extract the table: \" + e + \"</p>\";\n }\n }", "private void setGraphicTableAlumniEdit3() throws ClassNotFoundException, SQLException\n\t{\n\t\tDataTable info = TableCreate.graphicTableSetup();\n\t\t\n\t\t//Unpacking the ArrayLists from the object\n\t\tArrayList<String> columnNames = info.getFirst();\n\t\tArrayList<Object> tableData = info.getSecond();\n\t\t\t \n\t\t//Creating a new vector to hold the column name strings\n\t\tVector<String> columnNamesVector = new Vector<String>();\n\t\t//Creating a new vector to hold the objects that contain the table data\n\t\tVector<Object> alumniDataVector = new Vector<Object>();\n\t\t\n\t\t//takes the arraylist of objects and adds them to the data vector\n\t\tfor (int counter = 0; counter < tableData.size(); counter++)\n\t\t{\n\t\t \tArrayList<Object> subArray = (ArrayList)tableData.get(counter);\n\t\t \tVector<Object> subVector = new Vector<Object>();\n\t\t \t\n\t\t \tfor (int j = 0; j < subArray.size(); j++)\n\t\t \t{\n\t\t \tsubVector.add(subArray.get(j));\n\t\t \t}\n\t\t \t\n\t\t \talumniDataVector.add(subVector);\n\t\t}\n\t\t\n\t\t//takes the arraylist of column names and adds them to the column names vector\n\t\tfor (int counter2 = 0; counter2 < columnNames.size(); counter2++ )\n\t\t{\n\t\t \tcolumnNamesVector.add(columnNames.get(counter2));\n\t\t}\n\t\t\n\t\t//creates a new jtable with the above data and column names\n\t\tJTable table = new JTable(alumniDataVector,columnNamesVector);\n\t\t\n\t\t//adding the table to a scrollpanel and adding the final product to a panel\n\t\ttable.setFillsViewportHeight(false);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(1000, 400));\n\t\tJScrollPane finalTable = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\teditAlumni3GraphicTablePanel.add(finalTable);\n\t}", "public interface BeanTableEditHandler extends TablePanelEditHandler {\n\n /**\n * @param bean\n * @param propertyName\n * @return true if the given property of the given bean is checked.\n */\n public Boolean getCheckValue(Object bean, String propertyName);\n\n /**\n * sets the property of the bean as checked / unchecked\n * \n * @param bean the bean, for which to set the attribute as checked\n * @param propertyName the propertyName to select\n * @param value true for select, false for deselect\n */\n public void setCheckValue(Object bean, String propertyName, boolean value);\n\n /**\n * @return true if the table cells shall be editable, false otherwise\n */\n public boolean isEditable();\n}", "public String getCodeAndSnapshot() {\n this.editingCode = (String ) webview.getEngine().executeScript(\"editor.getValue();\");\n return editingCode;\n }", "public void paramTable() {\n jTable4.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\n mode = (DefaultTableModel) jTable4.getModel();\n dtcm = (DefaultTableColumnModel) jTable4.getColumnModel();\n jTable4.setRowHeight(40);\n largeurColoneMax(dtcm, 0, 60);\n //largeurColoneMax(dtcm, 1, 200);\n // largeurColoneMax(dtcm, 2, 90);\n largeurColoneMax(dtcm, 3, 90);\n //largeurColoneMax(dtcm, 4, 150);\n // largeurColoneMax(dtcm, 5, 150);\n //largeurColoneMax(dtcm, 6, 90);\n\n TableCellRenderer tbcProjet = getTableCellRenderer();\n TableCellRenderer tbcProjet2 = getTableHeaderRenderer();\n for (int i = 0; i < jTable4.getColumnCount(); i++) {\n TableColumn tc = jTable4.getColumnModel().getColumn(i);\n tc.setCellRenderer(tbcProjet);\n tc.setHeaderRenderer(tbcProjet2);\n\n }\n\n }", "private void editTableSnippet(TableView table) {\n Snippet s = this.getFocusedSnippet(table);\n if (s != null) {\n this.clearFormElements();\n this.startEdit(s);\n } else {\n System.out.println(\"failed to start snippet edit, possibly no focus\");\n }\n }", "String cellTableCheckboxColumnCell();", "protected abstract String getShowTablesCommand();", "public JTable getTable()\r\n {\r\n\t return table;\r\n }", "public String getCouponSqlEdit() {\r\n\t\tString sql = \"update coupon set company_id = ?, category_id = ?, title = ?, description = ?, start_date = ?, end_date = ?, amount = ?, price = ?, image = ? where id = ?;\";\r\n\t\treturn sql;\r\n\r\n\t}", "private void atualizarTabela() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
clears all visual background noise from minimap w/out opening it (via javascript)
public void configureMiniMap(){ try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('cities');"); } catch (Exception e) {e.printStackTrace();} try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('own_town');"); } catch (Exception e) {e.printStackTrace();} try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('forts');"); } catch (Exception e) {e.printStackTrace();} try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('fort_allied');"); } catch (Exception e) {e.printStackTrace();} try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('own_char');"); } catch (Exception e) {e.printStackTrace();} try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('quests');"); } catch (Exception e) {e.printStackTrace();} try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleBackgroundImages(this);"); } catch (Exception e) {} //this always throws exc. //e.printStackTrace();} this.toggleMiniMap(); //is this needed? try { //if pin is set to be pinned_on, then click the pin image to set it to off driver.findElement(By.className("minimap_e_pin_pinned_on")).click(); wait4.until(Web.classNameExists("minimap_e_pin_pinned_off")); }catch (Exception e){} this.toggleMiniMap(); //is this needed? // <a title="" class="minimap_e_pin_pinned_on" id="minimap_e_pin" href="javascript:WMinimap.togglePin()"></a> }
[ "static void clearBackground() {\n backgrounds.clear();\n }", "public void clearScreen() {\r\n\t\tfor (Tile itr : tileset)\r\n\t\t\tnew SimpleTile(itr.getPos()).drawTile(tileManager, bp);\r\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < pixels.length; i++) {\n\t\t\tpixels[i] = 0x000000;\n\t\t}\n\n\t}", "public void resetImage(){\r\n bg.clearRect( 0, 0, wx, wy );\r\n }", "public void clear() {\n offscreen.setColor(background);\n offscreen.fillRect(0, 0, width, height);\n offscreen.setColor(foreground);\n }", "@Override\n\tpublic void unSetBackground()\n\t{\n\t\t\n\t}", "void clear() {\n\t\tthis.theScreen.setColor(Preferences.COLOR_BACKGROUND);\n\t\tthis.theScreen.fillRect(0, 0, this.width, this.height);\n\t\tthis.theScreen.setColor(Preferences.TITLE_COLOR);\n\t\tthis.theScreen.drawRect(0, 0, this.width - 1,\n\t\t\t\tPreferences.GAMEBOARDHEIGHT - 1);\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < pixels.length; i++) {\n\t\t\tpixels[i] = 0;\n\t\t}\n\t}", "public void hideMine() {\n setBackground(COLORS[0]);\n }", "public void clear(){\n\t\tfor(int i = 0;i<this.pixels.length;i++){\n\t\t\tthis.pixels[i] = 0;\n\t\t}\n\t}", "public void clear() {\r\n\t\tArrays.fill(this.getPixels(), 0);\r\n\t}", "public void clearScreen()\n {\n choice = CLEAR;\n //delete all circles\n circles.clear();\n }", "public void clear_screen() {\n\t\tscroll_window(_main_height);\n\t}", "void onBackground() {\n // release images\n mapViewer.reslice();\n }", "public static void off() {\r\n\t\tclip.stop();\r\n\t}", "public void resetScreen() {\r\n // iterate through rows\r\n for (int y = 0; y < 3; y++) {\r\n // iterate through columns and remove marks\r\n for (int z = 0; z < 3; z++) {\r\n screen[y][z] = ' ';\r\n }\r\n }\r\n }", "public void clearMarkers(){\n gm.clear();\n }", "public void clearScreen()\n {\n showText(\"\", 300, 100);\n List objects = getObjects(null);\n \n if( objects != null)\n {\n removeObjects(objects);\n }\n }", "public void resetPane() {\r\n analysisFile = null;\r\n content.getChildren().clear();\r\n spectrogramImage = null;\r\n areagramImage = null;\r\n waveform_x = null;\r\n waveform_y = null;\r\n energy_x = null;\r\n energy_y = null;\r\n pitch_x = null;\r\n pitch_y = null;\r\n data_jaw_x = null;\r\n data_jaw_y = null;\r\n poa_x = null;\r\n poa_y = null;\r\n menuBar.disableAnalysis();\r\n menuBar.disableAnimation();\r\n control.disableAllControls();\r\n playBar.disablePlayControls();\r\n if (isLeft) {\r\n getPlayBar().studMsg.setDisable(true);\r\n getPlayBar().studMsg.setText(\"\");\r\n } else {\r\n getPlayBar().refMsg.setDisable(true);\r\n getPlayBar().refMsg.setText(\"\");\r\n }\r\n }", "void clearCurrentTextures();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { }
[ "public Controller(){\t\n\t}", "public GameEriController() {\r\n\t\tinit();\r\n\t\t\r\n\t}", "public MainController(){\n \n }", "public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo(10000);\n\t}", "public MainController() {\n try {\n log.debug(\"Starting MainController\");\n transactionSql = new TransactionSqlRepository();\n categorySql = new CategorySqlRepository();\n classifier = new FuzzyClassifier();\n } catch (RepositoryConnectionException e) {\n log.error(\"Failed to initialise a controller\", e);\n System.exit(1);\n }\n }", "void initialize(@NonNull Controller controller);", "public LibraryManagerController() {\n\t}", "protected Controller() {\n\t\tsetupFrame(); // Set up basic frame with trading program controls (do not remove)\n\t\tinitialize(); // Initialize all program settings (do not remove)\n\t}", "public Controller() {\r\n\t\tthis.view = null;\r\n\t}", "public Controller() {\n gui = new GUI();\n gui.initStartScene();\n handlePlayButtonClick();\n }", "public RolController() {\n \n }", "public controllerApp() {\n }", "public Controller() {\n\t\t_database = new DBFacade();\n\t}", "public rolController() {\n }", "public LessonController() {\n\n\t\tthis.databaseController = DatabaseController.getInstance();\n\n\t\tthis.exerciseController = new ExerciseController();\n\t}", "public Controller_de() {\t\n\t}", "public void setupController() {\n\t\tSystem.out.println(\"loading controller\");\n\n\t\t// controller = new SPController(character,\n\t\t// new ParameterizedLyingGenerator(),\n\t\t// FileUtils.readParameters(\"../SPParameters/dart.par\"));\n\t\tcontroller = new SPController(\n\t\t\t\tcharacter,\n\t\t\t\tnew WarpedLyingPatternGenerator(),\n\t\t\t\tFileUtils\n\t\t\t\t\t\t.readParameters(\"../SPParameters/warpedImprovement200.par\"));\n\t\t// setGroundAngle(-.19f);\n\t\t// controller = new SPController(character, new\n\t\t// LyingPatternGenerator());\n\n\t}", "public Controller()\n {\n screen = new Screen();\n logic = new Logic();\n screen.setVisible(true);\n\n currentUser = new User();\n }", "public StudentController() {\n\t\tsuper();\n\t\tdao = new StudentDao();\n\t}", "public MortgageController() {\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
"hh:mma MMM dd, yyyy" | PATTERN_FRIENDLY_TIME_AM_PM_DATE_YEAR
public abstract ZoneId defaultZoneId();
[ "private final String getDateTimePattern(String dt, boolean toTime) throws Exception {\n/* 2679 */ int dtLength = (dt != null) ? dt.length() : 0;\n/* */ \n/* 2681 */ if (dtLength >= 8 && dtLength <= 10) {\n/* 2682 */ int dashCount = 0;\n/* 2683 */ boolean isDateOnly = true;\n/* */ \n/* 2685 */ for (int k = 0; k < dtLength; k++) {\n/* 2686 */ char c = dt.charAt(k);\n/* */ \n/* 2688 */ if (!Character.isDigit(c) && c != '-') {\n/* 2689 */ isDateOnly = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* 2694 */ if (c == '-') {\n/* 2695 */ dashCount++;\n/* */ }\n/* */ } \n/* */ \n/* 2699 */ if (isDateOnly && dashCount == 2) {\n/* 2700 */ return \"yyyy-MM-dd\";\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 2707 */ boolean colonsOnly = true;\n/* */ \n/* 2709 */ for (int i = 0; i < dtLength; i++) {\n/* 2710 */ char c = dt.charAt(i);\n/* */ \n/* 2712 */ if (!Character.isDigit(c) && c != ':') {\n/* 2713 */ colonsOnly = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ \n/* 2719 */ if (colonsOnly) {\n/* 2720 */ return \"HH:mm:ss\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 2729 */ StringReader reader = new StringReader(dt + \" \");\n/* 2730 */ ArrayList<Object[]> vec = new ArrayList();\n/* 2731 */ ArrayList<Object[]> vecRemovelist = new ArrayList();\n/* 2732 */ Object[] nv = new Object[3];\n/* */ \n/* 2734 */ nv[0] = Constants.characterValueOf('y');\n/* 2735 */ nv[1] = new StringBuffer();\n/* 2736 */ nv[2] = Constants.integerValueOf(0);\n/* 2737 */ vec.add(nv);\n/* */ \n/* 2739 */ if (toTime) {\n/* 2740 */ nv = new Object[3];\n/* 2741 */ nv[0] = Constants.characterValueOf('h');\n/* 2742 */ nv[1] = new StringBuffer();\n/* 2743 */ nv[2] = Constants.integerValueOf(0);\n/* 2744 */ vec.add(nv);\n/* */ } \n/* */ int z;\n/* 2747 */ while ((z = reader.read()) != -1) {\n/* 2748 */ char separator = (char)z;\n/* 2749 */ int maxvecs = vec.size();\n/* */ \n/* 2751 */ for (int count = 0; count < maxvecs; count++) {\n/* 2752 */ Object[] arrayOfObject = vec.get(count);\n/* 2753 */ int n = ((Integer)arrayOfObject[2]).intValue();\n/* 2754 */ char c = getSuccessor(((Character)arrayOfObject[0]).charValue(), n);\n/* */ \n/* 2756 */ if (!Character.isLetterOrDigit(separator)) {\n/* 2757 */ if (c == ((Character)arrayOfObject[0]).charValue() && c != 'S') {\n/* 2758 */ vecRemovelist.add(arrayOfObject);\n/* */ } else {\n/* 2760 */ ((StringBuffer)arrayOfObject[1]).append(separator);\n/* */ \n/* 2762 */ if (c == 'X' || c == 'Y') {\n/* 2763 */ arrayOfObject[2] = Constants.integerValueOf(4);\n/* */ }\n/* */ } \n/* */ } else {\n/* 2767 */ if (c == 'X') {\n/* 2768 */ c = 'y';\n/* 2769 */ nv = new Object[3];\n/* 2770 */ nv[1] = (new StringBuffer(((StringBuffer)arrayOfObject[1]).toString())).append('M');\n/* */ \n/* 2772 */ nv[0] = Constants.characterValueOf('M');\n/* 2773 */ nv[2] = Constants.integerValueOf(1);\n/* 2774 */ vec.add(nv);\n/* 2775 */ } else if (c == 'Y') {\n/* 2776 */ c = 'M';\n/* 2777 */ nv = new Object[3];\n/* 2778 */ nv[1] = (new StringBuffer(((StringBuffer)arrayOfObject[1]).toString())).append('d');\n/* */ \n/* 2780 */ nv[0] = Constants.characterValueOf('d');\n/* 2781 */ nv[2] = Constants.integerValueOf(1);\n/* 2782 */ vec.add(nv);\n/* */ } \n/* */ \n/* 2785 */ ((StringBuffer)arrayOfObject[1]).append(c);\n/* */ \n/* 2787 */ if (c == ((Character)arrayOfObject[0]).charValue()) {\n/* 2788 */ arrayOfObject[2] = Constants.integerValueOf(n + 1);\n/* */ } else {\n/* 2790 */ arrayOfObject[0] = Constants.characterValueOf(c);\n/* 2791 */ arrayOfObject[2] = Constants.integerValueOf(1);\n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 2796 */ int k = vecRemovelist.size();\n/* */ \n/* 2798 */ for (int m = 0; m < k; m++) {\n/* 2799 */ Object[] arrayOfObject = vecRemovelist.get(m);\n/* 2800 */ vec.remove(arrayOfObject);\n/* */ } \n/* */ \n/* 2803 */ vecRemovelist.clear();\n/* */ } \n/* */ \n/* 2806 */ int size = vec.size();\n/* */ int j;\n/* 2808 */ for (j = 0; j < size; j++) {\n/* 2809 */ Object[] arrayOfObject = vec.get(j);\n/* 2810 */ char c = ((Character)arrayOfObject[0]).charValue();\n/* 2811 */ int n = ((Integer)arrayOfObject[2]).intValue();\n/* */ \n/* 2813 */ boolean bk = (getSuccessor(c, n) != c);\n/* 2814 */ boolean atEnd = ((c == 's' || c == 'm' || (c == 'h' && toTime)) && bk);\n/* 2815 */ boolean finishesAtDate = (bk && c == 'd' && !toTime);\n/* 2816 */ boolean containsEnd = (((StringBuffer)arrayOfObject[1]).toString().indexOf('W') != -1);\n/* */ \n/* */ \n/* 2819 */ if ((!atEnd && !finishesAtDate) || containsEnd) {\n/* 2820 */ vecRemovelist.add(arrayOfObject);\n/* */ }\n/* */ } \n/* */ \n/* 2824 */ size = vecRemovelist.size();\n/* */ \n/* 2826 */ for (j = 0; j < size; j++) {\n/* 2827 */ vec.remove(vecRemovelist.get(j));\n/* */ }\n/* */ \n/* 2830 */ vecRemovelist.clear();\n/* 2831 */ Object[] v = vec.get(0);\n/* */ \n/* 2833 */ StringBuffer format = (StringBuffer)v[1];\n/* 2834 */ format.setLength(format.length() - 1);\n/* */ \n/* 2836 */ return format.toString();\n/* */ }", "@Override\n public String validatorPattern() {\n return \"<DATE2><HHMM>4!n<DATE2><HHMM>3!n6!n6!n\";\n }", "@org.junit.Test\n public void formatDateTime013a() {\n final XQuery query = new XQuery(\n \"format-dateTime($t, '[Y,4-4]')\",\n ctx);\n try {\n query.bind(\"t\", new XQuery(\"xs:dateTime('0985-03-01T09:15:06.456')\", ctx).value());\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"0985\")\n );\n }", "public String getDateFormatPattern();", "@org.junit.Test\n public void formatDateTime013m() {\n final XQuery query = new XQuery(\n \"format-dateTime($t, '[M,*-2]')\",\n ctx);\n try {\n query.bind(\"t\", new XQuery(\"xs:dateTime('0985-03-01T09:15:06.456')\", ctx).value());\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"3\")\n );\n }", "String yearSeparator();", "@org.junit.Test\n public void formatDateTime002d() {\n final XQuery query = new XQuery(\n \"format-dateTime($t,\\\"[H]:[m]:[s]\\\")\",\n ctx);\n try {\n query.bind(\"t\", new XQuery(\"xs:dateTime('2011-07-01T09:15:06.456')\", ctx).value());\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"9:15:06\")\n );\n }", "public static DateTimeFormatter makeDateTimeFormatter(String pattern, String zone) {\n //always deal with proleptic YEAR (-1=2 BCE, 0=1 BCE, 1=1 CE), not YEAR_OF_ERA\n //https://docs.oracle.com/javase/8/docs/api/java/time/temporal/ChronoField.html#YEAR_OF_ERA\n //??? Are there cases where y is used not as year? eg as literal?\n String yy = \"yy\";\n int po = pattern.indexOf(yy);\n if (po < 0) {\n yy = \"YY\";\n po = pattern.indexOf(yy);\n }\n if (po >= 0 && pattern.indexOf(yy + yy) < 0)\n throw new SimpleException(\"DateTime formats with \" + yy + \" are not allowed. \" +\n \"Change the source values to use 4-digit years, and use \" + yy + yy + \" in the dateTime format.\");\n \n pattern = String2.replaceAll(pattern, yy.charAt(0), 'u'); \n\n //https://stackoverflow.com/questions/34637626/java-datetimeformatter-for-time-zone-with-an-optional-colon-separator\n pattern = String2.replaceAll(pattern, \"Z\", \"[XXX][X]\"); //most flexible time offset support\n\n //https://stackoverflow.com/questions/38307816/datetimeformatterbuilder-with-specified-parsedefaulting-conflicts-for-year-field\n DateTimeFormatter dtf = new DateTimeFormatterBuilder()\n .parseCaseInsensitive() //needed for supporting e.g., WED in addition to official Wed\n //.parseLenient() //My test pass without this. It's effect is unclear.\n .appendPattern(pattern)\n //.parseDefaulting(ChronoField.MONTH_OF_YEAR, 1) //this approach didn't work\n .toFormatter();\n //so dtf has either an offset (via X) or a timezone\n if (pattern.indexOf('X') < 0 && pattern.indexOf('x') < 0)\n dtf = dtf.withZone(ZoneId.of(zone));\n return dtf;\n }", "public static String timeConversion(String s) {\n // Write your code here\n String regex = \"(\\\\d{2}):(\\\\d{2}):(\\\\d{2})(.{2})\";\n // Backslash im Java Sourcecode verdoppeln!\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(s);\n if (matcher.matches()) {\n int hours = Integer.valueOf(matcher.group(1));\n int minutes = Integer.valueOf(matcher.group(2));\n int seconds = Integer.valueOf(matcher.group(3));\n String period = matcher.group(4);\n\n if (period.equalsIgnoreCase(\"PM\") && hours < 12) \n {\n hours = hours + 12;\n }\n if (period.equalsIgnoreCase(\"AM\") && hours == 12)\n {\n hours = 0;\n }\n return String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\n }\n else\n return \"\";\n\n }", "String getReleaseYear() {\n String regex = \"\\\\d{4}-\\\\d{2}-\\\\d{2}\";\n if (!Pattern.compile(regex).matcher(releaseDate).matches()) {\n return \"unknown\";\n }\n return releaseDate.substring(0, 4);\n }", "public static String getddHifenMMHifenyyyy() {\n\t\treturn \"dd-MM-yyyy\";\n\t}", "private static String getByDateTimeString(String input) {\n String action = getAction(input);\n String remainingTokens = getRemainingTokens(input);\n if (action.equals(DEADLINE) && remainingTokens.contains(\"/by\")) {\n return remainingTokens.split(\"/by\", 2)[1].trim();\n }\n return \"\";\n }", "@org.junit.Test\n public void formatDateTime003m() {\n final XQuery query = new XQuery(\n \"format-dateTime($t,\\\"[H]:[m]:[s].[f,1-1]\\\")\",\n ctx);\n try {\n query.bind(\"t\", new XQuery(\"xs:dateTime('2003-09-07T09:15:06.456')\", ctx).value());\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"9:15:06.5\")\n );\n }", "@Test \n\tpublic void testDateTimeFormatter() {\n\n\t DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy年MM月dd日 HH:mm:ss E\");\n\n\t LocalDateTime ldt = LocalDateTime.now(); \n\t String strDate = ldt.format(dtf); \n\t System.out.println(strDate); \n\n\t LocalDateTime newLdt = ldt.parse(strDate, dtf); \n\t System.out.println(newLdt); \n\t}", "@org.junit.Test\n public void formatDateTime013g() {\n final XQuery query = new XQuery(\n \"format-dateTime($t, '[Y,3]')\",\n ctx);\n try {\n query.bind(\"t\", new XQuery(\"xs:dateTime('0985-03-01T09:15:06.456')\", ctx).value());\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"985\")\n );\n }", "@Test\n\tpublic void testToStringFormat() {\n\t\t//Pattern pattern = Pattern.compile(\"(0[0-9]|1[12]):([0-5][0-9]):([0-5][0-9])\");\n\t\tassertTrue(\"[The format of Time.toString method is not right. Expected pattern<(0[0-9]|1[012]):([0-5][0-9]):([0-5][0-9])> actual String<\" + time + \">]\", time.toString().matches(\"(0[0-9]|1[012]):([0-5][0-9]):([0-5][0-9])\"));\n\t}", "private String extractYear(String release_date){\n StringTokenizer date=new StringTokenizer(release_date,\"-\");\n String year=null;\n\n year=date.nextToken();\n //Log.v(LOG_TAG,year);\n\n return year;\n }", "@org.junit.Test\n public void formatDateTime013h() {\n final XQuery query = new XQuery(\n \"format-dateTime($t, '[M,4-4]')\",\n ctx);\n try {\n query.bind(\"t\", new XQuery(\"xs:dateTime('0985-03-01T09:15:06.456')\", ctx).value());\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"0003\")\n );\n }", "static String formatTime(Date t)\n {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"hh:mma\");\n SimpleDateFormat timeFormat2 = new SimpleDateFormat(\"hh:mm\");\n String timeString = timeFormat.format(t);\n\n if (timeString.endsWith(\"AM\"))\n timeString = timeFormat2.format(t) + \"a\";\n else\n timeString = timeFormat2.format(t) + \"p\";\n\n return timeString;\n }", "@org.junit.Test\n public void formatDateTime002c() {\n final XQuery query = new XQuery(\n \"format-dateTime($t,\\\"[H01]:[m01]:[s01]\\\")\",\n ctx);\n try {\n query.bind(\"t\", new XQuery(\"xs:dateTime('2011-07-01T09:15:06.456')\", ctx).value());\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"09:15:06\")\n );\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implementa el metodo ordenar del repositorio que permite a un usuario/a dar la orden de subscribirse a un torneo (item). El usuario/a y el item/torneo ya existen en la bbdd (NO has de crearlos). El metodo devuelve la orden de subscripcion de tipo Orden creada. Guarda la orden en la base de datos.
@Test @Transactional public void test_ordenar_ok() throws NotEnoughProException { assertNotNull(repo); Orden orden = repo.ordenar("McCracken", "Murfreesboro Strike and Spare"); assertNotNull(orden); assertNotNull(orden.getId()); assertEquals("McCracken", orden.getUser().getNombre()); assertEquals("Murfreesboro Strike and Spare", orden.getItem().getNombre()); }
[ "public static void registrarAuditoria(Connexion connexion,Long idUsuario,TipoRequisicion tiporequisicion,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TipoRequisicionConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tiporequisicion.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoRequisicionDataAccess.TABLENAME, tiporequisicion.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TipoRequisicionConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TipoRequisicionLogic.registrarAuditoriaDetallesTipoRequisicion(connexion,tiporequisicion,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(tiporequisicion.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!tiporequisicion.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,TipoRequisicionDataAccess.TABLENAME, tiporequisicion.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////TipoRequisicionLogic.registrarAuditoriaDetallesTipoRequisicion(connexion,tiporequisicion,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoRequisicionDataAccess.TABLENAME, tiporequisicion.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(tiporequisicion.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoRequisicionDataAccess.TABLENAME, tiporequisicion.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TipoRequisicionConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TipoRequisicionLogic.registrarAuditoriaDetallesTipoRequisicion(connexion,tiporequisicion,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,TipoNovedadNomi tiponovedadnomi,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TipoNovedadNomiConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tiponovedadnomi.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoNovedadNomiDataAccess.TABLENAME, tiponovedadnomi.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TipoNovedadNomiConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TipoNovedadNomiLogic.registrarAuditoriaDetallesTipoNovedadNomi(connexion,tiponovedadnomi,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(tiponovedadnomi.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!tiponovedadnomi.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,TipoNovedadNomiDataAccess.TABLENAME, tiponovedadnomi.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////TipoNovedadNomiLogic.registrarAuditoriaDetallesTipoNovedadNomi(connexion,tiponovedadnomi,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoNovedadNomiDataAccess.TABLENAME, tiponovedadnomi.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(tiponovedadnomi.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TipoNovedadNomiDataAccess.TABLENAME, tiponovedadnomi.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TipoNovedadNomiConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TipoNovedadNomiLogic.registrarAuditoriaDetallesTipoNovedadNomi(connexion,tiponovedadnomi,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public boolean vistoCompleto(Usuario unUsuario) {\r\n return unUsuario.estoEstaEnTuBolsa(this);\r\n}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,SecuencialUsuario secuencialusuario,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(SecuencialUsuarioConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(secuencialusuario.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,SecuencialUsuarioDataAccess.TABLENAME, secuencialusuario.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(SecuencialUsuarioConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////SecuencialUsuarioLogic.registrarAuditoriaDetallesSecuencialUsuario(connexion,secuencialusuario,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(secuencialusuario.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!secuencialusuario.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,SecuencialUsuarioDataAccess.TABLENAME, secuencialusuario.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////SecuencialUsuarioLogic.registrarAuditoriaDetallesSecuencialUsuario(connexion,secuencialusuario,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,SecuencialUsuarioDataAccess.TABLENAME, secuencialusuario.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(secuencialusuario.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,SecuencialUsuarioDataAccess.TABLENAME, secuencialusuario.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(SecuencialUsuarioConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////SecuencialUsuarioLogic.registrarAuditoriaDetallesSecuencialUsuario(connexion,secuencialusuario,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,EstadoMovimientoInventario estadomovimientoinventario,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(EstadoMovimientoInventarioConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(estadomovimientoinventario.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,EstadoMovimientoInventarioDataAccess.TABLENAME, estadomovimientoinventario.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(EstadoMovimientoInventarioConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////EstadoMovimientoInventarioLogic.registrarAuditoriaDetallesEstadoMovimientoInventario(connexion,estadomovimientoinventario,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(estadomovimientoinventario.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!estadomovimientoinventario.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,EstadoMovimientoInventarioDataAccess.TABLENAME, estadomovimientoinventario.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////EstadoMovimientoInventarioLogic.registrarAuditoriaDetallesEstadoMovimientoInventario(connexion,estadomovimientoinventario,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,EstadoMovimientoInventarioDataAccess.TABLENAME, estadomovimientoinventario.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(estadomovimientoinventario.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,EstadoMovimientoInventarioDataAccess.TABLENAME, estadomovimientoinventario.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(EstadoMovimientoInventarioConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////EstadoMovimientoInventarioLogic.registrarAuditoriaDetallesEstadoMovimientoInventario(connexion,estadomovimientoinventario,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public interface RespuestaItemsUsuario {\n\n\t/**\n\t * @return id de la respuesta\n\t */\n\tpublic Integer getIdRespuesta();\n\n\t/**\n\t * @param idRespuesta id de la respuesta\n\t */\n\tpublic void setIdRespuesta(Integer idRespuesta);\n\n\t/**\n\t * @return Usuario quien realiza la respuesta\n\t */\n\tpublic Usuario getIdUsuario();\n\n\t/**\n\t * @param idUsuario Usuario quien realiza la respuesta\n\t */\n\tpublic void setIdUsuario(Usuario idUsuario);\n\t\n\t/**\n\t * @return ItemPlan asociado a la respuesta\n\t */\n\tpublic ItemPlan getIdItemPlan();\n\n\t/**\n\t * @param idItemPlan ItemPlan asociado a la respuesta\n\t */\n\tpublic void setIdItemPlan(ItemPlan idItemPlan);\t\n\n\t/**\n\t * @return comentarios del usuario ejecutor a la respuesta\n\t */\n\tpublic String getRetroalimentacion_usuario();\n\n\t/**\n\t * @param retroalimentacion_usuario comentarios del usuario ejecutor a la respuesta\n\t */\n\tpublic void setRetroalimentacion_usuario(String retroalimentacion_usuario);\n\n\t/**\n\t * @return feedback del usuario planeador de la respuesta\n\t */\n\tpublic String getRetroalimentacion_profesor();\n\n\t/**\n\t * @param retroalimentacion_profesor feedback de la respuesta\n\t */\n\tpublic void setRetroalimentacion_profesor(String retroalimentacion_profesor);\t\n\t\n\t/**\n\t * @return nombre del archivo (si aplica)\n\t */\n\tpublic String getArchivo();\n\t\n\t/**\n\t * @param nombreArchivo nombre del archivo(si aplica)\n\t */\n\tpublic void setArchivo(String nombreArchivo);\n\t\n\t/**\n\t * @return fecha de realizacion de la respuesta\n\t */\n\tpublic Date getFecha();\n\n\t/**\n\t * @param fecha fecha de realizacion de la respuesta\n\t */\n\tpublic void setFecha(Date fecha);\n}", "public ReservaEntity crearReserva(Long idUsuario, ReservaEntity entity ) throws BusinessLogicException{\r\n \r\n UsuarioEntity usuario = persistenceUsuario.find(idUsuario);\r\n entity.setUsuarioReserva(usuario);\r\n List<ReservaEntity> reservasUsuario = usuario.getReservas();\r\n List<ReservaEntity> reservasEstacion;\r\n \r\n EstacionEntity estacionSalida;\r\n \r\n \r\n \r\n if(entity.getEstado()<0||entity.getEstado()>4){\r\n throw new BusinessLogicException(\"El estado indicado no existe\");\r\n }\r\n \r\n if(entity.getEstacionSalida() != null){\r\n \r\n estacionSalida = persistenceEstacion.find(entity.getEstacionSalida().getId());\r\n \r\n if(estacionSalida == null)\r\n {\r\n throw new BusinessLogicException(\"La estacion de salida asignada no existe\");\r\n }\r\n reservasEstacion = estacionSalida.getReservas();\r\n }\r\n else\r\n {\r\n throw new BusinessLogicException(\"Debe proporciar la estacion de salida\");\r\n }\r\n \r\n ReservaEntity reservaNueva;\r\n\r\n \r\n \r\n entity.setEstacionSalida(estacionSalida);\r\n entity.setUsuarioReserva(usuario);\r\n entity.setEstado(1);\r\n \r\n \r\n Iterator<ReservaEntity> iter = reservasUsuario.iterator();\r\n while(iter.hasNext()){\r\n ReservaEntity local= iter.next();\r\n if(local.getEstado()!=2){\r\n \r\n \r\n if(local.getFechaInicio().compareTo( entity.getFechaInicio() )== 0 && \r\n local.getEstacionSalida().getId().equals(entity.getEstacionSalida().getId()))\r\n {\r\n throw new BusinessLogicException(\"No es posible crear una reserva a la misma hora en la misma estacion \");\r\n }\r\n if(local.getFechaInicio().compareTo( entity.getFechaInicio())== 0){\r\n throw new BusinessLogicException(\"No es posible crear una reserva a la misma hora en diferente estacion\");\r\n }\r\n \r\n }\r\n }\r\n \r\n\r\n \r\n if(entity.getFechaInicio().compareTo(entity.getFechaEntrega())==0){\r\n throw new BusinessLogicException(\"No es posible crear una reserva con la misma hora de salida y llegada \");\r\n }\r\n if(entity.getFechaInicio().before(entity.getFechaReserva())){\r\n throw new BusinessLogicException(\"No es posible crear una reserva antes de la fecha actual \");\r\n }\r\n if(entity.getFechaEntrega().before(entity.getFechaInicio())){\r\n throw new BusinessLogicException(\"No es posible crear una reserva con la entrega antes del inicio \");\r\n }\r\n \r\n if(entity.getFechaInicio().getDay()-entity.getFechaEntrega().getDay()!= 0){\r\n throw new BusinessLogicException(\"La reserva debe finalizar el mismo dia de creacion \");\r\n }\r\n \r\n \r\n reservaNueva=persistence.create(entity);\r\n \r\n reservasUsuario.add(reservaNueva);\r\n \r\n reservasEstacion.add(reservaNueva);\r\n \r\n return reservaNueva;\r\n }", "@Test\r\n public void createItemTest()\r\n {\r\n try\r\n {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n ItemCarritoEntity nuevo = factory.manufacturePojo(ItemCarritoEntity.class);\r\n nuevo.setComprador(c);\r\n nuevo.setBicicleta(bc);\r\n ItemCarritoEntity resultado = itemLogic.addItemCarrito(c.getId(), nuevo);\r\n Assert.assertNotNull(\"lo que retorna el método no debería ser null\", resultado);\r\n ItemCarritoEntity userBd = em.find(resultado.getClass(), resultado.getId());\r\n Assert.assertNotNull(\"lo que retorna la base de datos no debería ser null\", userBd);\r\n Assert.assertEquals(\"lo que retorna la base de datos no es lo que se esperaba\", resultado, userBd);\r\n }\r\n catch (BusinessLogicException ex)\r\n {\r\n Logger.getLogger(VendedorLogicTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,CajeroTurno cajeroturno,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(CajeroTurnoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(cajeroturno.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajeroTurnoDataAccess.TABLENAME, cajeroturno.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajeroTurnoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajeroTurnoLogic.registrarAuditoriaDetallesCajeroTurno(connexion,cajeroturno,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(cajeroturno.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!cajeroturno.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,CajeroTurnoDataAccess.TABLENAME, cajeroturno.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////CajeroTurnoLogic.registrarAuditoriaDetallesCajeroTurno(connexion,cajeroturno,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajeroTurnoDataAccess.TABLENAME, cajeroturno.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(cajeroturno.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajeroTurnoDataAccess.TABLENAME, cajeroturno.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajeroTurnoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajeroTurnoLogic.registrarAuditoriaDetallesCajeroTurno(connexion,cajeroturno,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public void crearOrdenTraslado() throws Exception {\n\n logger.debug(\"Crear orden de traslado de inventario\");\n\n try {\n\n //Obtener manager de inventario\n ManagerInventarioServiceBusiness mgrInventario = getMgrInventarioService();\n\n //Crear registro orden traslado\n OrdenTraslado ordenTraslado = mgrInventario.crearOrdenTraslado(getFechaAlta(), getFechaSolicitud(), getAlmacenSalida().getId(),\n getAlmacenIngreso().getId(), getPersonaEntrega(), getPersonaRecibe(), getDescripcion(), getArticulos());\n\n //Setting articulos persist\n this.ordenTraslado = ordenTraslado;\n\n //Init Modificacion\n initModificacion();\n\n } catch (ManagerInventarioServiceBusinessException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n } catch (RemoteException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n }\n }", "public void pendiente(NotaDebito n) throws CRUDException;", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ProveedorProductoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,ProveedorProductoDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "@Override\n\tpublic void darLikeComentario(String usuario, String topico, String comentario, String comentarioUsuario) {\n\t\t\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,DetaFormaPago detaformapago,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(DetaFormaPagoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(detaformapago.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DetaFormaPagoDataAccess.TABLENAME, detaformapago.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DetaFormaPagoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DetaFormaPagoLogic.registrarAuditoriaDetallesDetaFormaPago(connexion,detaformapago,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(detaformapago.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!detaformapago.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,DetaFormaPagoDataAccess.TABLENAME, detaformapago.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////DetaFormaPagoLogic.registrarAuditoriaDetallesDetaFormaPago(connexion,detaformapago,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DetaFormaPagoDataAccess.TABLENAME, detaformapago.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(detaformapago.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DetaFormaPagoDataAccess.TABLENAME, detaformapago.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DetaFormaPagoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DetaFormaPagoLogic.registrarAuditoriaDetallesDetaFormaPago(connexion,detaformapago,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "Ordenacion createOrdenacion();", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,InformacionEconomica informacioneconomica,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(InformacionEconomicaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(informacioneconomica.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,InformacionEconomicaDataAccess.TABLENAME, informacioneconomica.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(InformacionEconomicaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////InformacionEconomicaLogic.registrarAuditoriaDetallesInformacionEconomica(connexion,informacioneconomica,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(informacioneconomica.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!informacioneconomica.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,InformacionEconomicaDataAccess.TABLENAME, informacioneconomica.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////InformacionEconomicaLogic.registrarAuditoriaDetallesInformacionEconomica(connexion,informacioneconomica,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,InformacionEconomicaDataAccess.TABLENAME, informacioneconomica.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(informacioneconomica.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,InformacionEconomicaDataAccess.TABLENAME, informacioneconomica.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(InformacionEconomicaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////InformacionEconomicaLogic.registrarAuditoriaDetallesInformacionEconomica(connexion,informacioneconomica,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public boolean finalizarVentaPorCredito()\n\t{\n\t\t\n\t\t\n\t\t/* comentado el 09/10/2017 para evitar que sea obligatorio el trabajo de taller finalizado\n\t\tif(comboVta!=null)\n\t\t{\n\t\t\tSystem.out.println(\"Entro a como venta\");\n\t\t\tSystem.out.println(\"cotizacion combVta\"+cotizacion.getId());\n\t\t\tSystem.out.println(\"idCliente \"+cotizacion.getCliente().getId());\n\t\t\t\n\t\t\t//System.out.println(\"cotizacion combVta\"+cotizacion.ge);\n\t\t\tReparacionCliente rpCl=(ReparacionCliente) getEntityManager().createQuery(\"SELECT r FROM ReparacionCliente r where r.cliente=:idCliente and r.idCot=:idCot and r.tipoRep='CRE'\")\n\t\t\t\t\t.setParameter(\"idCliente\",cotizacion.getCliente())\n\t\t\t\t\t.setParameter(\"idCot\", cotizacion.getId()).getSingleResult();\n\t\t\t\n\t\t\tif(rpCl.getEstado().equals(\"PEN\"))\n\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\tFacesMessages.instance().add(Severity.WARN,\n\t\t\t\t\t\t\"Existe un trabajo de taller pendiente\");\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tif(comboVtaBin!=null)\n\t\t{\n\t\t\t\n\t\t\tReparacionCliente rpCl=(ReparacionCliente) getEntityManager().createQuery(\"SELECT r FROM ReparacionCliente r where r.cliente=:idCliente and r.idCot=:idCot and r.tipoRep='CRE'\")\n\t\t\t\t\t.setParameter(\"idCliente\",cotizacion.getCliente())\n\t\t\t\t\t.setParameter(\"idCot\", cotizacion.getHijoBin().get(0).getId()).getResultList().get(0);\n\t\t\t\n\t\t\tif(rpCl.getEstado().equals(\"PEN\"))\n\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\tFacesMessages.instance().add(Severity.WARN,\n\t\t\t\t\t\t\"Existe un trabajo de taller pendiente\");\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}*/\n\t\t\n\t\t\n\t\tif(!preSave())\n\t\t\treturn false;\n\t\t//\n\t\t\n\t\t\n\t\t\n\t\t//Se registra la venta\n\t\tinstance.setEstado(\"ABF\");\n\t\t//instance.setMonto(0f); comentado el 10/07/2017\n\t\tgetEntityManager().persist(instance);\n\t\t\n\t\t\n\t\t// Generamos el movimiento del inventario\n\t\tMovimiento mov = new Movimiento();\n\t\tmov.setFecha(new Date());\n\t\tmov.setSucursal(loginUser.getUser().getSucursal());\n\t\tmov.setTipoMovimiento(\"S\");\n\t\tmov.setUsuario(loginUser.getUser());\n\t\tmov.setRazon(\"V\");\n\t\tmov.setObservacion(\"Salida por la venta generada automaticamente de un combo de aparato, detalle de la venta:\"\n\t\t\t\t+ instance.getDetalle());\n\t\t\n\t\t//getEntityManager().persist(mov);\n\t\t//getEntityManager().flush();\n\t\t\n\t\tMap<Integer, ItemComboApa> lstProdsMov = new HashMap<Integer, ItemComboApa>(20);\n\t\t//Map<Integer, ItemComboApa> lstProdsMovBin = new HashMap<Integer, ItemComboApa>(20);\n\t\tSet<Integer> prdsRep = new HashSet<Integer>();\n\t\t\n\t\t//Para el combo seleccionado de la izquierda\n\t\tAparatoCliente apaCli = aparatoClienteHome.getInstance();\n\t\t\n\t\tif(comboVta!=null)\n\t\t{\n\t\t\tSystem.out.println(\"*** Entro al comboVTa items \"+itemsComboApa.size());\n\t\t\tfor (ItemComboApa tmpItm : itemsComboApa) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(tmpItm.isGeneraRequisicion()==false)\n\t\t\t\t{\n\t\t\t\t\tif (!lstProdsMov.containsKey(tmpItm.getProducto().getId())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\ttmpItm.setCantidad((short) 1);\n\t\t\t\t\t\ttmpItm.setInventario(tmpItm.getInventario());\n\t\t\t\t\t\t//tmpItm.setPrecioCotizado();\n\t\t\t\t\t\tlstProdsMov.put(tmpItm.getProducto().getId(), tmpItm);\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshort qty = lstProdsMov.get(tmpItm.getProducto().getId()).getCantidad();\n\t\t\t\t\t\tlstProdsMov.get(tmpItm.getProducto().getId()).setCantidad(++qty);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"inventsrio nombre o id \"+ tmpItm.getInventario().getId());\n\n\t\t\t\tItem item = new Item();\n\t\t\t\titem.setCantidad(1);\n\t\t\t\titem.setInventario(tmpItm.getInventario());\n\t\t\t\titem.setItemId(new ItemId());\n\t\t\t\titem.getItemId().setInventarioId(tmpItm.getInventario().getId());\n\t\t\t\titem.getItemId().setMovimientoId(mov.getId());\n\t\t\t\titem.setMovimiento(mov);\n\t\t\t\t\n\t\t\t\t//item.setCostoUnitario(tmpItm.getPrecioCotizado());//????\n\t\t\t\titem.setCostoUnitario(tmpItm.getProducto().getCosto());//???\n\t\t\t\titem.setPrecioCotizado(tmpItm.getPrecioCotizado());//??\n\t\t\t\titem.setPrecioVenta(tmpItm.getPrecioCotizado());//??\n\t\t\t\t\n\t\t\t\t//item.setCodProducto(itemCmb.getCodProducto());\n\t\t\t\t/*if(codCombo1!=null)\n\t\t\t\t\titem.setCodProducto(codCombo1);*/\n\t\t\t\t\n\t\t\t\titem.setTipoPrecio(tmpItm.getTipPreCotizado());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"For\");\n\t\t\t\tif(tmpItm.isPrincipal())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"*** Entro a es principal\");\n\t\t\t\t\t\n\t\t\t\t\tif(codCombo1!=null)\n\t\t\t\t\t\titem.setCodProducto(codCombo1);\n\t\t\t\t\t\n\t\t\t\t\t//Si requiere molde o ensamblaje el producto ya fue registrado al cliente pero en estado PNP= pendiente de pago\n\t\t\t\t\tif(tmpItm.getCategoria().getReqMolde()==true || tmpItm.getCategoria().getCategoriaPadre().getReqMolde()==true || \n\t\t\t\t\t\t\ttmpItm.getCategoria().getReqEnsamble()==true || tmpItm.getCategoria().getCategoriaPadre().getReqEnsamble()==true)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"*** aparato requiere molde o ensamblaje\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*//Seleccionar el producto que se registro al cliente para su reparacion idProducto, idCotizacion, estado=pnp . Posiblemente haya mas de un aparatp registrado en reparacion del mismo producto, pero solo queremos uno de la lista\n\t\t\t\t\t\tReparacionCliente rpCl=(ReparacionCliente) getEntityManager().createQuery(\"SELECT r FROM ReparacionCliente r where r.cliente=:idCliente and r.idCot=:idCot and r.tipoRep='CRE'\")\n\t\t\t\t\t\t\t\t.setParameter(\"idCliente\",instance.getCliente())\n\t\t\t\t\t\t\t\t.setParameter(\"idCot\", cotizacion.getId()).getSingleResult();\n\t\t\t\t\t\t*/\n\t\t\t\t\t\t\n\t\t\t\t\t\tapaCli=(AparatoCliente) getEntityManager().createQuery(\"SELECT r.aparatoRep FROM ReparacionCliente r where r.cliente=:idCliente and r.idCot=:idCot and r.tipoRep='CRE'\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setParameter(\"idCliente\",instance.getCliente())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setParameter(\"idCot\", cotizacion.getId()).getSingleResult();\n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t\t/*if(rpCl.getEstado().equals(\"PEN\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tFacesMessages.instance().add(Severity.WARN,\n\t\t\t\t\t\t\t\t\t\"Existe un trabajo de taller pendiente\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\treturn false;\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\t\t//apaCli=rpCl.getAparatoRep();\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\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"*** aparato extraido \"+ \"Estado=\" +apaCli.getEstado() + \"IdAparato\" +apaCli.getId());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tmpItm.getCategoria().isTieneNumLote()) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Asignar el numero de lote al producto que se registro en la reparacion, idProducto,idCotizacion,estado= pnp\n\t\t\t\t\t\t\t//apaCli.setNumLote(tmpItm.getCodProducto().getNumLote());\n\t\t\t\t\t\t\tapaCli.setNumLote(codCombo1.getNumLote());\n\t\t\t\t\t\t\tapaCli.setEstado(\"ACT\"); // Se actualiza el estado del aparato del cliente\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//tmpItm.getCodProducto().setEstado(\"USD\"); // se desabilita el numero de lote\n\t\t\t\t\t\t\tcodCombo1.setEstado(\"USD\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//getEntityManager().merge(tmpItm.getCodProducto());\n\t\t\t\t\t\t\tgetEntityManager().merge(codCombo1);\n\t\t\t\t\t\t\tgetEntityManager().merge(apaCli);\n\t\t\t\t\t\t\tgetEntityManager().flush();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"*** entro a numero de lote\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (tmpItm.getCategoria().isTieneNumSerie()) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\titem.setCodsSerie(codCombo1.getNumSerie());//Item \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//apaCli.setNumSerie(tmpItm.getCodProducto().getNumSerie());\n\t\t\t\t\t\t\tapaCli.setNumSerie(codCombo1.getNumSerie());\n\t\t\t\t\t\t\tapaCli.setEstado(\"ACT\");\n\n\t\t\t\t\t\t\t//tmpItm.getCodProducto().setEstado(\"USD\");\n\t\t\t\t\t\t\tcodCombo1.setEstado(\"USD\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//getEntityManager().merge(tmpItm.getCodProducto());\n\t\t\t\t\t\t\tgetEntityManager().merge(codCombo1);\n\t\t\t\t\t\t\tgetEntityManager().merge(apaCli);\n\t\t\t\t\t\t\tgetEntityManager().flush();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"*** entro a numero de serie\");\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\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse //si el aparato no requiere molde ni ensamblaje el producto no ha sido registrado al cliente\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"*** No requiere trabajo de taller\");\n\t\t\t\t\t\t//Iniciar el registro del aparato al cliente,\n\t\t\t\t\t\t//Asignarle el numero de seria o lote\n\t\t\t\t\t\t//Reducir del inventario los numeros de serie/lote y el producto seleccionado\n\t\t\t\t\t\t//Generar la venta con estado abono finalizado, agregar el codigo de la cotizacion en descripcion\n\t\t\t\t\t\t\n\t\t\t\t\t\tapaCli.setCliente(instance.getCliente());\n\t\t\t\t\t\tapaCli.setActivo(true);\n\t\t\t\t\t\tapaCli.setCostoVenta(getTotalCostos());\n\t\t\t\t\t\tapaCli.setCustomApa(false);\n\t\t\t\t\t\tapaCli.setEstado(\"ACT\");\n\t\t\t\t\t\tif (tieneGarantia)\n\t\t\t\t\t\t\tapaCli.setPeriodoGarantia(comboVta.getPeriodoGarantia());\n\t\t\t\t\t\tapaCli.setFechaAdquisicion(new Date());\n\t\t\t\t\t\tapaCli.setHechoMedida(false);\n\t\t\t\t\t\tapaCli.setNombre(comboVta.getNombre());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tmpItm.getCategoria().isTieneNumLote()) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//apaCli.setNumLote(tmpItm.getCodProducto().getNumLote());\n\t\t\t\t\t\t\tapaCli.setNumLote(codCombo1.getNumLote());\n\t\t\t\t\t\t\t//tmpItm.getCodProducto().setEstado(\"USD\"); // se desabilita el numero de lote\n\t\t\t\t\t\t\tcodCombo1.setEstado(\"USD\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//getEntityManager().merge(tmpItm.getCodProducto());\n\t\t\t\t\t\t\tgetEntityManager().merge(codCombo1);\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\tif (tmpItm.getCategoria().isTieneNumSerie()) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\titem.setCodsSerie(codCombo1.getNumSerie());//item del movimiento\n\t\t\t\t\t\t\t//apaCli.setNumSerie(tmpItm.getCodProducto().getNumSerie());\n\t\t\t\t\t\t\tapaCli.setNumSerie(codCombo1.getNumSerie());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//tmpItm.getCodProducto().setEstado(\"USD\"); // se desabilita el numero de serie\n\t\t\t\t\t\t\tcodCombo1.setEstado(\"USD\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//getEntityManager().merge(tmpItm.getCodProducto());\n\t\t\t\t\t\t\tgetEntityManager().merge(codCombo1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tgetEntityManager().persist(apaCli); //Se registra el aparato al cliente\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\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Reduciendo de inventario los productos del combo\n\t\t\t\t/*System.out.println(\"sucursal\"+cotizacion.getSucursal().getNombre());\n\t\t\t\tInventario inveProd=(Inventario) getEntityManager()\n\t\t\t\t\t\t.createQuery(\"Select i From Inventario i where i.producto.id=:productoCom and i.sucursal.id=:sucursalCom\")\n\t\t\t\t\t\t.setParameter(\"productoCom\",tmpItm.getProducto().getId())\n\t\t\t\t\t\t.setParameter(\"sucursalCom\", cotizacion.getSucursal().getId()) //La cotizacion tiene datos? \n\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Cantidad Actual\"+inveProd.getCantidadActual());\n\t\t\t\tSystem.out.println(\"sucursal actual \"+ cotizacion.getSucursal().getId());\n\t\t\t\t\n\t\t\t\tinveProd.setCantidadActual(inveProd.getCantidadActual()-1);\n\t\t\t\tgetEntityManager().merge(inveProd);*/\n\t\t\t\t//getEntityManager().flush();//nuevo el 14/02/2017\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"item actual \" + tmpItm.getProducto().getNombre());\n\t\t\t\t\n\t\t\t\t// Generamos el detalle de la venta\n\t\t\t\tDetVentaProdServ detVta = new DetVentaProdServ();\n\t\t\t\tdetVta.setCantidad(tmpItm.getCantidad().intValue());\n\t\t\t\tdetVta.setMonto(tmpItm.getPrecioCotizado());\n\t\t\t\tdetVta.setVenta(instance);\n\t\t\t\tdetVta.setCodExacto(tmpItm.getInventario().getProducto()\n\t\t\t\t\t\t.getReferencia());\n\t\t\t\tdetVta.setCodClasifVta(\"PRD\");\n\t\t\t\tdetVta.setCosto(tmpItm.getInventario().getProducto().getCosto());\n\t\t\t\tdetVta.setProducto(tmpItm.getProducto());\n\t\t\t\t\n\t\t\t\tif(tmpItm.isPrincipal())\n\t\t\t\t{\n\t\t\t\t\t//if (tmpItm.getCodProducto() != null && tmpItm.getCodProducto().getNumSerie() != null)\n\t\t\t\t\tif (codCombo1 != null && codCombo1.getNumSerie() != null)\n\t\t\t\t\t\tdetVta.setNumSerie(codCombo1.getNumSerie());//detVta.setNumSerie(tmpItm.getCodProducto().getNumSerie());\n\t\t\t\t\t\n\t\t\t\t\t//if (tmpItm.getCodProducto() != null && tmpItm.getCodProducto().getNumLote() != null)\n\t\t\t\t\tif (codCombo1 != null && codCombo1.getNumLote() != null)\n\t\t\t\t\t\tdetVta.setNumLote(codCombo1.getNumLote());//detVta.setNumLote(tmpItm.getCodProducto().getNumLote());\n\t\t\t\t}\n\n\t\t\t\t// Formamos el detalle\n\t\t\t\tStringBuilder bld = new StringBuilder();\n\t\t\t\tbld.append(tmpItm.getInventario().getProducto().getNombre());\n\t\t\t\t\n\t\t\t\tif (tmpItm.getInventario().getProducto().getModelo() != null)\n\t\t\t\t\tbld.append(\", Modelo \"\n\t\t\t\t\t\t\t+ tmpItm.getInventario().getProducto().getModelo());\n\t\t\t\tif (tmpItm.getInventario().getProducto().getMarca() != null)\n\t\t\t\t\tbld.append(\", Marca \"\n\t\t\t\t\t\t\t+ tmpItm.getInventario().getProducto().getMarca()\n\t\t\t\t\t\t\t\t\t.getNombre());\n\t\t\t\tdetVta.setDetalle(bld.toString());\n\t\t\t\t\n\t\t\t\tdetVta.setCombo(comboVta);\n\t\t\t\tdetVta.setCodCoti(cotizacion.getId());\n\t\t\t\t\n\t\t\t\tgetEntityManager().persist(detVta);\n\t\t\t\t\n\t\t\t\t//getEntityManager().persist(item);//item del movimiento\n\t\t\t\t\n\t\t\t\t//getEntityManager().flush();\n\t\n\t\t\t}//Fin for\n\t\t\t\n\n\t\t\t\t\n\t\t\t\n\t\t\t//Servicios del combo\n\t\t for (CostoServicio srv : comboVta.getCostosCombo()) {\n\t\t \t\n\t\t\t totalservprod+=srv.getServicio().getCosto().floatValue();\n\t\t\t\tDetVentaProdServ dtVta = new DetVentaProdServ();\n\t\t\t\tdtVta.setCantidad(1);\n\t\t\t\tStringBuilder bld = new StringBuilder();\n\t\t\t\tbld.append(srv.getServicio().getName());\n\t\t\t\tdtVta.setDetalle(bld.toString());\n\t\t\t\tdtVta.setEscondido(true);\n\t\t\t\tdtVta.setMonto(srv.getServicio().getCosto().floatValue());\n\t\t\t\tdtVta.setVenta(instance);\n\t\t\t\tdtVta.setCodClasifVta(\"SRV\");\n\t\t\t\tdtVta.setCodExacto(srv.getServicio().getCodigo());\n\t\t\t\tdtVta.setServicio(srv.getServicio());\n\t\t\t\tgetEntityManager().persist(dtVta); //Descomentado el 29/11/2016\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Tamanio movimiento\"+lstProdsMov.size());\n\t\t\t\n\t\t\t/*for (Integer idPrd : lstProdsMov.keySet()) {\n\t\t\t\t\n\t\t\t\tItem item = new Item();\n\t\t\t\titem.setCantidad(lstProdsMov.get(idPrd).getCantidad()\n\t\t\t\t\t\t.intValue());\n\t\t\t\titem.setInventario(lstProdsMov.get(idPrd).getInventario());\n\t\t\t\titem.setItemId(new ItemId());\n\t\t\t\titem.getItemId().setInventarioId(item.getInventario().getId());\n\t\t\t\t\n\t\t\t\t//item.setPrecioCotizado(lstProdsMov.get(idPrd).getPrecioCotizado()); se cambio el 06/12/2016\n\t\t\t\titem.setCostoUnitario(lstProdsMov.get(idPrd).getProducto().getCosto());\n\t\t\t\titem.setPrecioCotizado(lstProdsMov.get(idPrd).getPrecioCotizado());\n\t\t\t\titem.setPrecioVenta(lstProdsMov.get(idPrd).getPrecioCotizado());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (lstProdsMov.keySet().contains(idPrd)) {\n\t\t\t\t\tInteger cantAct = item.getCantidad();\n\t\t\t\t\tcantAct += lstProdsMov.get(idPrd).getCantidad();\n\t\t\t\t\titem.setCantidad(cantAct);\n\t\t\t\t\tprdsRep.add(idPrd);\n\t\t\t\t}\n\t\t\t\tmovimientoHome.getItemsAgregados().add(item);\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\t/*DetVentaProdServ detVta = new DetVentaProdServ();\n\t\t\tdetVta.setCantidad(1);\n\t\t\t//detVta.setMonto( +totalservprod);\n\t\t\tdetVta.setMonto(totalCostos);\n\t\t\ttotalservprod = 0f;\n\t\t\t// detVta.setMonto(0f);\n\t\t\tdetVta.setVenta(instance);\n\t\t\tdetVta.setCodExacto(comboVta.getCodigo());\n\t\t\tdetVta.setCodClasifVta(\"CMB\");\n\t\t\t// Formamos el detalle\n\t\t\tStringBuilder bld = new StringBuilder();\n\t\t\tbld.append(\"COMBO \" + comboVta.getNombre());\n\n\t\t\tdetVta.setDetalle(bld.toString());\n\t\t\n\t\t\t\n\t\t\t//nuevo 09/11/2016\n\t\t\tdetVta.setCombo(comboVta);\n\t\t\tdetVta.setCodCoti(cotizacion.getId());\n\t\t\n\t\t\tfor(ItemComboApa itm:itemsComboApa)\n\t\t\t{\n\t\t\t\tif(itm.isPrincipal())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"*** asignar serie\");\n\t\t\t\t\tif(itm.getCategoria().isTieneNumLote())\n\t\t\t\t\t\tdetVta.setNumLote(codCombo1.getNumLote());\n\t\t\t\t\t\n\t\t\t\t\tif(itm.getCategoria().isTieneNumSerie())\n\t\t\t\t\t\tdetVta.setNumSerie(codCombo1.getNumSerie());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tgetEntityManager().persist(detVta);*/\n\t\t\t\n\t\t\t//Actualizar estado cotizacion \n\t\t\tcotizacion.setEstado(\"APL\");\n\t\t\tcotizacion.setFechaVenta(new Date());\n\t\t\tcotizacion.setIdVta(instance);\n\t\t\tgetEntityManager().merge(cotizacion);\n\t\t\t\n\t\t\t/*movimientoHome.setInstance(mov);\n\t\t\tm*/\n\t\t\t\n\t\t}\n\t\t\n\t\t//Para el combo seleccionado de la derecha\n\t\tAparatoCliente apaCliBin = new AparatoCliente();\n\t\tif(comboVtaBin!=null)\n\t\t{\n\t\t\tCotizacionComboApa cotizacionBin = cotizacion.getHijoBin().get(0);\n\t\t\tfor (ItemComboApa tmpItm : itemsComboApaBin) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tItem itemBin = new Item();\n\t\t\t\titemBin.setCantidad(1);\n\t\t\t\titemBin.setInventario(tmpItm.getInventario());\n\t\t\t\titemBin.setItemId(new ItemId());\n\t\t\t\titemBin.getItemId().setInventarioId(\n\t\t\t\ttmpItm.getInventario().getId());\n\t\t\t\titemBin.getItemId().setMovimientoId(mov.getId());\n\t\t\t\titemBin.setMovimiento(mov);\n\t\t\t\t\n\t\t\t\t//itemBin.setCostoUnitario(tmpItm.getPrecioCotizado());\n\t\t\t\titemBin.setCostoUnitario(tmpItm.getProducto().getCosto());\n\t\t\t\titemBin.setPrecioCotizado(tmpItm.getPrecioCotizado()); //??????\n\t\t\t\titemBin.setPrecioVenta(tmpItm.getPrecioCotizado());//?????\n\t\t\t\t\n\t\t\t\tif(tmpItm.isPrincipal())\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//Si requiere molde o ensamblaje el producto ya fue registrado al cliente pero en estado PNP= pendiente de pago\n\t\t\t\t\tif(tmpItm.getCategoria().getReqMolde()==true || tmpItm.getCategoria().getCategoriaPadre().getReqMolde()==true || \n\t\t\t\t\t\t\ttmpItm.getCategoria().getReqEnsamble()==true || tmpItm.getCategoria().getCategoriaPadre().getReqEnsamble()==true)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Seleccionar el producto que se registro al cliente para su reparacion idProducto, idCotizacion, estado=pnp . Posiblemente haya mas de un aparatp registrado en reparacion del mismo producto, pero solo queremos uno de la lista\n\t\t\t\t\t\tapaCliBin=(AparatoCliente) getEntityManager().createQuery(\"SELECT r.aparatoRep FROM ReparacionCliente r where r.cliente=:idCliente and r.idCot=:idCot and r.tipoRep='CRE'\")\n\t\t\t\t\t\t\t\t.setParameter(\"idCliente\",instance.getCliente())\n\t\t\t\t\t\t\t\t.setParameter(\"idCot\", cotizacionBin.getId()).getSingleResult();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tmpItm.getCategoria().isTieneNumLote()) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Asignar el numero de lote al producto que se registro en la reparacion, idProducto,idCotizacion,estado= pnp\n\t\t\t\t\t\t\t//apaCliBin.setNumLote(tmpItm.getCodProducto().getNumLote());\n\t\t\t\t\t\t\tapaCliBin.setNumLote(codCombo2.getNumLote());\n\t\t\t\t\t\t\tapaCliBin.setEstado(\"ACT\"); // Se actualiza el estado del aparato del cliente\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//tmpItm.getCodProducto().setEstado(\"USD\"); // se desabilita el numero de lote\n\t\t\t\t\t\t\tcodCombo2.setEstado(\"USD\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//getEntityManager().merge(tmpItm.getCodProducto());\n\t\t\t\t\t\t\tgetEntityManager().merge(codCombo2);\n\t\t\t\t\t\t\tgetEntityManager().merge(apaCliBin);\n\t\t\t\t\t\t\tgetEntityManager().flush();\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\tif (tmpItm.getCategoria().isTieneNumSerie()) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\titemBin.setCodsSerie(codCombo2.getNumSerie());//item del movimiento\n\t\t\t\t\t\t\t//apaCliBin.setNumSerie(tmpItm.getCodProducto().getNumSerie());\n\t\t\t\t\t\t\tapaCliBin.setNumSerie(codCombo2.getNumSerie());\n\t\t\t\t\t\t\tapaCliBin.setEstado(\"ACT\");\n\n\t\t\t\t\t\t\t//tmpItm.getCodProducto().setEstado(\"USD\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcodCombo2.setEstado(\"USD\");\n\t\t\t\t\t\t\t//tmpItm.setCodProducto(codCombo2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//getEntityManager().merge(tmpItm.getCodProducto());\n\t\t\t\t\t\t\tgetEntityManager().merge(codCombo2);\n\t\t\t\t\t\t\tgetEntityManager().merge(apaCliBin);\n\t\t\t\t\t\t\tgetEntityManager().flush();\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\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse //si el aparato no requiere molde ni ensamblaje el producto no ha sido registrado al cliente\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Iniciar el registro del aparato al cliente,\n\t\t\t\t\t\t//Asignarle el numero de seria o lote\n\t\t\t\t\t\t//Reducir del inventario los numeros de serie/lote y el producto seleccionado\n\t\t\t\t\t\t//Generar la venta con estado abono finalizado, agregar el codigo de la cotizacion en descripcion\n\t\t\t\t\t\t\n\t\t\t\t\t\tapaCliBin.setCliente(cotizacionBin.getCliente());\n\t\t\t\t\t\tapaCliBin.setActivo(true);\n\t\t\t\t\t\tapaCliBin.setCostoVenta(getTotalCostos());\n\t\t\t\t\t\tapaCliBin.setCustomApa(false);\n\t\t\t\t\t\tapaCliBin.setEstado(\"ACT\");\n\t\t\t\t\t\tif (tieneGarantiaBin)\n\t\t\t\t\t\t\tapaCliBin.setPeriodoGarantia(comboVtaBin.getPeriodoGarantia());\n\t\t\t\t\t\tapaCliBin.setFechaAdquisicion(new Date());\n\t\t\t\t\t\tapaCliBin.setHechoMedida(false);\n\t\t\t\t\t\tapaCliBin.setNombre(comboVtaBin.getNombre());\n\t\t\t\t\t\tapaCliBin.setLadoAparatoBin(apaCli.getLadoAparatoBin());\n\t\t\t\t\t\tapaCliBin.setRetroAuricular(apaCli.isRetroAuricular());\n\t\t\t\t\t\tapaCliBin.setDetalleAparato(apaCli.getDetalleAparato());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tmpItm.getCategoria().isTieneNumLote()) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//apaCliBin.setNumLote(tmpItm.getCodProducto().getNumLote());\n\t\t\t\t\t\t\tapaCliBin.setNumLote(codCombo2.getNumLote());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcodCombo2.setEstado(\"USD\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgetEntityManager().merge(codCombo2);\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\tif (tmpItm.getCategoria().isTieneNumSerie()) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\titemBin.setCodsSerie(codCombo2.getNumSerie());//item del movimiento\n\t\t\t\t\t\t\t//apaCliBin.setNumSerie(tmpItm.getCodProducto().getNumSerie());\n\t\t\t\t\t\t\tapaCliBin.setNumSerie(codCombo2.getNumSerie());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcodCombo2.setEstado(\"USD\");\n\t\t\t\t\t\t\tgetEntityManager().merge(codCombo2);\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\tgetEntityManager().persist(apaCliBin); //Se registra el aparato al cliente\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\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Reduciendo de inventario los productos del combo\n\t\t\t\tSystem.out.println(\"sucursal\"+cotizacion.getSucursal().getNombre());\n\t\t\t\tSystem.out.println(\"sucursalBin\"+cotizacionBin.getSucursal().getNombre());\n\t\t\t\tInventario inveProd=(Inventario) getEntityManager()\n\t\t\t\t\t\t.createQuery(\"Select i From Inventario i where i.producto=:productoCom and i.sucursal=:sucursalCom\")\n\t\t\t\t\t\t.setParameter(\"productoCom\",tmpItm.getProducto())\n\t\t\t\t\t\t.setParameter(\"sucursalCom\", cotizacion.getSucursal()) //La cotizacion tiene datos? \n\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Inventario actual \"+inveProd.getCantidadActual());\n\t\t\t\t\n\t\t\t\tinveProd.setCantidadActual(inveProd.getCantidadActual()-1);\n\t\t\t\tgetEntityManager().merge(inveProd);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Generamos el detalle de la venta\n\t\t\t\tDetVentaProdServ detVta = new DetVentaProdServ();\n\t\t\t\tdetVta.setCantidad(tmpItm.getCantidad().intValue());\n\t\t\t\tdetVta.setMonto(tmpItm.getPrecioCotizado());\n\t\t\t\tdetVta.setVenta(instance);\n\t\t\t\tdetVta.setCodExacto(tmpItm.getInventario().getProducto()\n\t\t\t\t\t\t.getReferencia());\n\t\t\t\tdetVta.setCodClasifVta(\"PRD\");\n\t\t\t\tdetVta.setCosto(tmpItm.getInventario().getProducto().getCosto());\n\t\t\t\tdetVta.setProducto(tmpItm.getProducto());\n\n\t\t\t\tif (tmpItm.getCodProducto() != null\n\t\t\t\t\t\t&& tmpItm.getCodProducto().getNumSerie() != null)\n\t\t\t\t\tdetVta.setNumSerie(tmpItm.getCodProducto().getNumSerie());\n\t\t\t\tif (tmpItm.getCodProducto() != null\n\t\t\t\t\t\t&& tmpItm.getCodProducto().getNumLote() != null)\n\t\t\t\t\tdetVta.setNumLote(tmpItm.getCodProducto().getNumLote());\n\t\t\t\t\n\t\t\t\tif(tmpItm.isPrincipal())\n\t\t\t\t{\t\n\t\t\t\t\tif (codCombo2 != null\n\t\t\t\t\t\t\t&& codCombo2.getNumSerie() != null)\n\t\t\t\t\t\tdetVta.setNumSerie(codCombo2.getNumSerie());\n\t\t\t\t\tif (codCombo2 != null\n\t\t\t\t\t\t\t&& codCombo2.getNumLote() != null)\n\t\t\t\t\t\tdetVta.setNumLote(codCombo2.getNumLote());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Formamos el detalle\n\t\t\t\tStringBuilder bld = new StringBuilder();\n\t\t\t\tbld.append(tmpItm.getInventario().getProducto().getNombre());\n\t\t\t\tif (tmpItm.getInventario().getProducto().getModelo() != null)\n\t\t\t\t\tbld.append(\", Modelo \"\n\t\t\t\t\t\t\t+ tmpItm.getInventario().getProducto().getModelo());\n\t\t\t\tif (tmpItm.getInventario().getProducto().getMarca() != null)\n\t\t\t\t\tbld.append(\", Marca \"\n\t\t\t\t\t\t\t+ tmpItm.getInventario().getProducto().getMarca()\n\t\t\t\t\t\t\t\t\t.getNombre());\n\t\t\t\tdetVta.setDetalle(bld.toString());\n\t\t\t\t\n\t\t\t\tdetVta.setCombo(comboVtaBin);\n\t\t\t\t\n\t\t\t\t//24/11/2016\n\t\t\t\tdetVta.setCodCoti(cotizacionBin.getId());\n\t\t\t\t\n\t\t\t\tgetEntityManager().persist(detVta);\n\t\t\t\t\n\t\t\t\t//getEntityManager().persist(itemBin);//item del movimiento\n\t\t\t\t\n\t\t\tif(tmpItm.isGeneraRequisicion()==false)\n\t\t\t{\n\t\t\t\tif (!lstProdsMov.containsKey(tmpItm.getProducto().getId())) {\n\t\t\t\t\tlstProdsMov.put(tmpItm.getProducto().getId(),tmpItm);\n\t\t\t\t\ttmpItm.setCantidad((short) 1);\n\t\t\t\t} else {\n\t\t\t\t\tshort qty = lstProdsMov.get(tmpItm.getProducto().getId()).getCantidad();\n\t\t\t\t\tlstProdsMov.get(tmpItm.getProducto().getId()).setCantidad(++qty);\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t}//Fin for\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// Servicios del combo\n\t\t\t for (CostoServicio srv : comboVtaBin.getCostosCombo()) {\n\t\t\t\tDetVentaProdServ dtVta = new DetVentaProdServ();\n\t\t\t\tdtVta.setCantidad(1);\n\t\t\t\tStringBuilder bld = new StringBuilder();\n\t\t\t\tbld.append(srv.getServicio().getName());\n\t\t\t\tdtVta.setDetalle(bld.toString());\n\t\t\t\tdtVta.setEscondido(true);\n\t\t\t\tdtVta.setMonto(srv.getServicio().getCosto().floatValue());\n\t\t\t\tdtVta.setVenta(instance);\n\t\t\t\tdtVta.setCodExacto(srv.getServicio().getCodigo());\n\t\t\t\tdtVta.setCodClasifVta(\"SRV\");\n\t\t\t\tdtVta.setServicio(srv.getServicio());\n\t\t\t\tgetEntityManager().persist(dtVta);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/*DetVentaProdServ detVta = new DetVentaProdServ();\n\t\t\tdetVta.setCantidad(1);\n\t\t\t//detVta.setMonto( +totalservprod);\n\t\t\tdetVta.setMonto(totalCostosBin);\n\t\t\t//totalservprod = 0f;\n\t\t\t// detVta.setMonto(0f);\n\t\t\tdetVta.setVenta(instance);\n\t\t\tdetVta.setCodExacto(comboVtaBin.getCodigo());\n\t\t\tdetVta.setCodClasifVta(\"CMB\");\n\t\t\t// Formamos el detalle\n\t\t\tStringBuilder bld = new StringBuilder();\n\t\t\tbld.append(\"COMBO \" + comboVta.getNombre());\n\n\t\t\tdetVta.setDetalle(bld.toString());\n\t\t\n\t\t\t\n\t\t\t//nuevo 09/11/2016\n\t\t\tdetVta.setCombo(comboVtaBin);\n\t\t\t\n\t\t\t//24/11/2016\n\t\t\tdetVta.setCodCoti(cotizacionBin.getId());\n\t\t\n\t\t\tfor(ItemComboApa itm:itemsComboApaBin)\n\t\t\t{\n\t\t\t\tif(itm.isPrincipal())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"*** asignar serie\");\n\t\t\t\t\tif(itm.getCategoria().isTieneNumLote())\n\t\t\t\t\t\tdetVta.setNumLote(codCombo2.getNumLote());\n\t\t\t\t\t\n\t\t\t\t\tif(itm.getCategoria().isTieneNumSerie())\n\t\t\t\t\t\tdetVta.setNumSerie(codCombo2.getNumSerie());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tgetEntityManager().persist(detVta);*/\n\t\t\t\n\t\t\t\t//Actualizamos el estado de la cotizacion\n\t\t\t\t\n\t\t\tcotizacionBin.setEstado(\"APL\");\n\t\t\tcotizacionBin.setIdVta(instance);\n\t\t\tcotizacionBin.setFechaVenta(new Date());\n\t\t\tgetEntityManager().merge(cotizacionBin);\n\t\t\t\t\n\t\t\tcotizacion.setEstado(\"APL\");\n\t\t\tcotizacion.setFechaVenta(new Date());\n\t\t\tcotizacion.setIdVta(instance);\n\t\t\tgetEntityManager().merge(cotizacion);\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (Integer idPrd : lstProdsMov.keySet()) {\n\t\t\t\n\t\t\t\n\t\t\tif (!prdsRep.contains(idPrd)) {\n\t\t\t\tItem item = new Item();\n\t\t\t\titem.setCantidad(lstProdsMov.get(idPrd).getCantidad()\n\t\t\t\t\t\t.intValue());\n\t\t\t\titem.setInventario(lstProdsMov.get(idPrd)\n\t\t\t\t\t\t.getInventario());\n\t\t\t\t\n\t\t\t\titem.setCostoUnitario(lstProdsMov.get(idPrd).getProducto().getCosto());\n\t\t\t\titem.setPrecioCotizado(lstProdsMov.get(idPrd).getPrecioCotizado());\n\t\t\t\titem.setPrecioVenta(lstProdsMov.get(idPrd).getPrecioCotizado());\n\t\t\t\t\n\t\t\t\t//item.setCodsSerie(lstProdsMov.get(idPrd).getCodProducto().getNumSerie());\n\t\t\t\t\n\t\t\t\titem.setItemId(new ItemId());\n\t\t\t\titem.getItemId().setInventarioId(\n\t\t\t\t\t\titem.getInventario().getId());\n\t\t\t\tmovimientoHome.getItemsAgregados().add(item);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//movimientoHome.select(mov);\n\t\tmovimientoHome.setInstance(mov);\n\t\tmovimientoHome.save();\n\t\t\n\t\tgetEntityManager().flush();\n\t\t\n\t\tFacesMessages.instance().add(Severity.INFO,\n\t\t\t\t\"Datos actualizados, la venta ha sido generada\");\n\t\t\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic void InserirProdutosServicosVenda(ItemVenda item) {\n\t\ttry {\n\t\t\tmanager.persist(item);\n\t\t\t//return true;\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t throw new RuntimeException(e);\n\t\t}finally{\n\t\t\tmanager.close();\n\t\t}\t\t\t\n\t}", "private static void registrarAuditoriaDetallesDescuentoMonto(Connexion connexion,DescuentoMonto descuentomonto)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getid_empresa().equals(descuentomonto.getDescuentoMontoOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getid_sucursal().equals(descuentomonto.getDescuentoMontoOriginal().getid_sucursal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getid_sucursal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getid_sucursal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.IDSUCURSAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getid_usuario().equals(descuentomonto.getDescuentoMontoOriginal().getid_usuario()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getid_usuario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getid_usuario().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getid_usuario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getid_usuario().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.IDUSUARIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getid_bodega().equals(descuentomonto.getDescuentoMontoOriginal().getid_bodega()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getid_bodega()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getid_bodega().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getid_bodega()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getid_bodega().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.IDBODEGA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getdescripcion().equals(descuentomonto.getDescuentoMontoOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getporcentaje().equals(descuentomonto.getDescuentoMontoOriginal().getporcentaje()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getporcentaje()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getporcentaje().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getporcentaje()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getporcentaje().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.PORCENTAJE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getvalor_inicio().equals(descuentomonto.getDescuentoMontoOriginal().getvalor_inicio()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getvalor_inicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getvalor_inicio().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getvalor_inicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getvalor_inicio().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.VALORINICIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getvalor_fin().equals(descuentomonto.getDescuentoMontoOriginal().getvalor_fin()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getvalor_fin()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getvalor_fin().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getvalor_fin()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getvalor_fin().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.VALORFIN,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(descuentomonto.getIsNew()||!descuentomonto.getesta_activo().equals(descuentomonto.getDescuentoMontoOriginal().getesta_activo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(descuentomonto.getDescuentoMontoOriginal().getesta_activo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=descuentomonto.getDescuentoMontoOriginal().getesta_activo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(descuentomonto.getesta_activo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=descuentomonto.getesta_activo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DescuentoMontoConstantesFunciones.ESTAACTIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,ParametroFactuEmpresa parametrofactuempresa,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ParametroFactuEmpresaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(parametrofactuempresa.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ParametroFactuEmpresaDataAccess.TABLENAME, parametrofactuempresa.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ParametroFactuEmpresaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ParametroFactuEmpresaLogic.registrarAuditoriaDetallesParametroFactuEmpresa(connexion,parametrofactuempresa,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(parametrofactuempresa.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!parametrofactuempresa.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ParametroFactuEmpresaDataAccess.TABLENAME, parametrofactuempresa.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ParametroFactuEmpresaLogic.registrarAuditoriaDetallesParametroFactuEmpresa(connexion,parametrofactuempresa,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ParametroFactuEmpresaDataAccess.TABLENAME, parametrofactuempresa.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(parametrofactuempresa.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ParametroFactuEmpresaDataAccess.TABLENAME, parametrofactuempresa.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ParametroFactuEmpresaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ParametroFactuEmpresaLogic.registrarAuditoriaDetallesParametroFactuEmpresa(connexion,parametrofactuempresa,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Permite generar aplicaciones para la list de cuentas por pagar indicada
public void aplicar(List<Cargo> cuentas){ if(cuentas.isEmpty()) return; for(Cargo cuenta:cuentas){ AplicacionDeNota aplicacion=AbstractNotasRules.generarAplicaionParaNotaDeBonificacion(getNota(), cuenta); aplicacion=atenderAltaDeAplicacion(aplicacion); if(aplicacion!=null) aplicaciones.add(aplicacion); } actualizar(); }
[ "Page<Conta> listar( Pageable pageable);", "public List<Noticia> generarListadoCompletoNoticias(Context context);", "private void listar(HttpPresentationComms comms, String _operacion) throws HttpPresentationException, KeywordValueException {\n/* 264 */ activarVista(\"consulta\");\n/* */ \n/* 266 */ int ciclo = 0;\n/* */ try {\n/* 268 */ ciclo = Integer.parseInt(comms.request.getParameter(\"ciclo\"));\n/* */ }\n/* 270 */ catch (Exception e) {\n/* 271 */ ciclo = Utilidades.getAnnoActual();\n/* */ } \n/* */ \n/* */ \n/* 275 */ HTMLSelectElement combo = this.pagHTML.getElementFciclo();\n/* 276 */ llenarCombo(combo, \"POA_CICLOS\", \"CODIGO_CICLO\", \"DESCRIPCION\", \"1=1\", \"\" + ciclo, false);\n/* */ \n/* 278 */ if (_operacion.equals(\"X\")) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 283 */ PoaMaestroDAO rs = new PoaMaestroDAO();\n/* 284 */ if (!rs.getEstadoConexion()) {\n/* 285 */ throw new ClientPageRedirectException(comms.request.getAppFileURIPath(\"Mensaje.po?codigo=LoginNoValido\"));\n/* */ }\n/* 287 */ Collection<PoaMaestroDTO> arr = rs.cargarTodos(ciclo);\n/* 288 */ rs.close();\n/* 289 */ HTMLTableSectionElement hte = this.pagHTML.getElementDetalle();\n/* 290 */ int cuantas = 0;\n/* 291 */ Iterator<PoaMaestroDTO> iterator = arr.iterator();\n/* 292 */ while (iterator.hasNext()) {\n/* 293 */ PoaMaestroDTO reg = (PoaMaestroDTO)iterator.next();\n/* 294 */ HTMLElement eltr = (HTMLElement)this.pagHTML.createElement(\"tr\");\n/* 295 */ eltr.appendChild(newtd(\"\" + reg.getCodigoPoa()));\n/* 296 */ String url = \"PoaMaestro.po?_operacion=V&codigoPoa=\" + reg.getCodigoPoa() + \"\";\n/* 297 */ eltr.appendChild(newtdhref(\"\" + reg.getNombreProceso(), url));\n/* 298 */ eltr.appendChild(newtd(\"\" + reg.getNombreArea()));\n/* 299 */ eltr.appendChild(newtd(\"\" + reg.getNombreResponsable()));\n/* 300 */ eltr.appendChild(newtd(\"\" + reg.getNombreCiclo()));\n/* 301 */ eltr.appendChild(newtd(\"\" + reg.getNombreEstado()));\n/* 302 */ hte.appendChild(eltr);\n/* 303 */ cuantas++;\n/* */ } \n/* 305 */ arr.clear();\n/* 306 */ this.pagHTML.setTextNroRegistros(\"\" + cuantas);\n/* */ }", "@PreAuthorize(\"hasAnyRole('ADMIN')\")\n\t@GetMapping(value = \"/page\")\n\tpublic ResponseEntity<Page<Cliente>> listAllPaginated(PaginacaoDTO paginacao) {\n\t\t\n\t\tPage<Cliente> listAllPaginated = this.clienteService.listAllPaginated(paginacao);\n\t\t\n\t\treturn ResponseEntity.ok(listAllPaginated);\n\t}", "public PageOrigemComercialResponse listarOrigensComerciais(List<String> sort, Integer page, Integer limit, Long id, String nome, Integer status, Long idEstabelecimento, Long idProduto, String descricao, Long idTipoOrigemComercial, Long idGrupoOrigemComercial, Boolean flagPreAprovado, Boolean flagAprovacaoImediata, String nomeFantasiaPlastico, Boolean flagCartaoProvisorio, Boolean flagCartaoDefinitivo, String usuario, String senha, Boolean flagOrigemExterna, Boolean flagModificado, Boolean flagEnviaFaturaUsuario, Boolean flagCreditoFaturamento, Boolean flagConcedeLimiteProvisorio, Boolean flagDigitalizarDoc, Boolean flagEmbossingLoja, Boolean flagConsultaPrevia, String tipoPessoa) throws ApiException {\n Object postBody = null;\n \n // create path and map variables\n String path = \"/api/origens-comerciais\".replaceAll(\"\\\\{format\\\\}\",\"json\");\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n Map<String, String> headerParams = new HashMap<String, String>();\n Map<String, Object> formParams = new HashMap<String, Object>();\n\n \n queryParams.addAll(apiClient.parameterToPairs(\"multi\", \"sort\", sort));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"page\", page));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"limit\", limit));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"id\", id));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"nome\", nome));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"status\", status));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"idEstabelecimento\", idEstabelecimento));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"idProduto\", idProduto));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"descricao\", descricao));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"idTipoOrigemComercial\", idTipoOrigemComercial));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"idGrupoOrigemComercial\", idGrupoOrigemComercial));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagPreAprovado\", flagPreAprovado));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagAprovacaoImediata\", flagAprovacaoImediata));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"nomeFantasiaPlastico\", nomeFantasiaPlastico));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagCartaoProvisorio\", flagCartaoProvisorio));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagCartaoDefinitivo\", flagCartaoDefinitivo));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"usuario\", usuario));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"senha\", senha));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagOrigemExterna\", flagOrigemExterna));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagModificado\", flagModificado));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagEnviaFaturaUsuario\", flagEnviaFaturaUsuario));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagCreditoFaturamento\", flagCreditoFaturamento));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagConcedeLimiteProvisorio\", flagConcedeLimiteProvisorio));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagDigitalizarDoc\", flagDigitalizarDoc));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagEmbossingLoja\", flagEmbossingLoja));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"flagConsultaPrevia\", flagConsultaPrevia));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"tipoPessoa\", tipoPessoa));\n \n\n \n\n \n\n final String[] accepts = {\n \"application/json\"\n };\n final String accept = apiClient.selectHeaderAccept(accepts);\n\n final String[] contentTypes = {\n \"application/json\"\n };\n final String contentType = apiClient.selectHeaderContentType(contentTypes);\n\n //String[] authNames = new String[] {\"client_id\", };\n String[] authNames = new String[] {\"client_id\", \"access_token\"};\n\n \n GenericType<PageOrigemComercialResponse> returnType = new GenericType<PageOrigemComercialResponse>() {};\n return apiClient.invokeAPI(path, \"GET\", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);\n \n }", "@HystrixCommand\n @GetMapping(\"/pagos/byestado\")\n public List<Pago> getPagosByEstado(@RequestParam String estado){\n List<Pago> resultado = new ArrayList<>();\n\n if(!estado.equals(\"Pendiente\") && !estado.equals(\"Pagado\") && !estado.equals(\"Impagado\")){\n Pago p = new Pago();\n p.setEstado(\"Estado de pago inválido\");\n resultado.add(p);\n return resultado;\n }\n\n resultado = pagoService.getPagosByEstado(estado);\n\n if(resultado.isEmpty()){\n Pago p = new Pago();\n p.setEstado(\"No hay pagos con ese estado\");\n resultado.add(p);\n return resultado;\n }\n\n return resultado;\n }", "@GetMapping(value = \"/indexPaginate\")\n\tpublic String mostrarIndexPaginado(Model model, @RequestParam int page) {\n\t\t\t\t\n\t\tPage<Pelicula> lista = servicePeliculas.buscarTodas(page, size);\n\t\tmodel.addAttribute(\"peliculas\", lista);\n\t\tmodel.addAttribute(\"generos\", serviceGeneros.generosActivos());\n\t\t\n\t\tmodel.addAttribute(\"currentPage\", page);\t\t\n\t\tmodel.addAttribute(\"number\", lista.getNumberOfElements());\n\t\tmodel.addAttribute(\"totalElements\", lista.getTotalElements());\n\t\tmodel.addAttribute(\"totalPages\", lista.getTotalPages());\n\t\t\n\t\tmodel.addAttribute(\"size\", lista.getSize());\n\t\tmodel.addAttribute(\"data\",lista.getContent());\n \n\t\treturn \"peliculas/listPeliculas\";\n\t}", "public PageStatusContaResponse listarStatusConta(List<String> sort, Integer page, Integer limit, Long id, String nome, Integer permiteAlterarVencimento, Integer permiteAlterarLimite, Integer permiteEmitirNovaViaCartao, Integer permiteFazerTransferencia, Integer permiteReceberTransferencia, Integer permiteCriarAcordoCobranca, Integer permiteAtribuirComoBloqueio, Integer permiteDesbloquear, Integer permiteAtribuirComoCancelamento) throws ApiException {\n Object postBody = null;\n \n // create path and map variables\n String path = \"/api/status-contas\".replaceAll(\"\\\\{format\\\\}\",\"json\");\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n Map<String, String> headerParams = new HashMap<String, String>();\n Map<String, Object> formParams = new HashMap<String, Object>();\n\n \n queryParams.addAll(apiClient.parameterToPairs(\"multi\", \"sort\", sort));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"page\", page));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"limit\", limit));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"id\", id));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"nome\", nome));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteAlterarVencimento\", permiteAlterarVencimento));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteAlterarLimite\", permiteAlterarLimite));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteEmitirNovaViaCartao\", permiteEmitirNovaViaCartao));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteFazerTransferencia\", permiteFazerTransferencia));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteReceberTransferencia\", permiteReceberTransferencia));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteCriarAcordoCobranca\", permiteCriarAcordoCobranca));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteAtribuirComoBloqueio\", permiteAtribuirComoBloqueio));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteDesbloquear\", permiteDesbloquear));\n \n queryParams.addAll(apiClient.parameterToPairs(\"\", \"permiteAtribuirComoCancelamento\", permiteAtribuirComoCancelamento));\n \n\n \n\n \n\n final String[] accepts = {\n \"application/json\"\n };\n final String accept = apiClient.selectHeaderAccept(accepts);\n\n final String[] contentTypes = {\n \"application/json\"\n };\n final String contentType = apiClient.selectHeaderContentType(contentTypes);\n\n //String[] authNames = new String[] {\"client_id\", };\n String[] authNames = new String[] {\"client_id\", \"access_token\"};\n\n \n GenericType<PageStatusContaResponse> returnType = new GenericType<PageStatusContaResponse>() {};\n return apiClient.invokeAPI(path, \"GET\", queryParams, postBody, headerParams, formParams, accept, contentType, authNames, returnType);\n \n }", "public String list(){\n\t\tlist = connP.getAll();\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistPayment.add(list.get(i));\t\t\t\t\n\t\t}\n\t\treturn \"list\";\n\t}", "public static void obtenerListaPresupuestos(Activity actividad) {\n listaGanancias = new ArrayList<>(); listaGastos = new ArrayList<>();\n ganancias = Double.valueOf(0); gastos = Double.valueOf(0); total = Double.valueOf(0);\n Parametros.setMetodo(\"Modulo3/ListaPresupuesto?idUsuario=\"+ControlDatos.getUsuario().getIdusuario());\n new Recepcion(actividad,interfaz).execute(\"GET\");\n }", "@Path(\"/list/page\")\r\n\t@POST\r\n\t@Produces(\"application/json\")\r\n\tpublic Response getAllUsersPagination(PaginationWrapper pgw) throws JSONException {\r\n\r\n\t\tList<Users> users = userManager.loadAllUsers();\r\n\r\n\t\tList<UserWrapper> uw_list = new ArrayList<UserWrapper>();\r\n\t\tint counter = 0;\r\n\t\tfor (Users item : users) {\r\n\t\t\tcounter++;\r\n\t\t\t//only needed page data\r\n\t\t\tif (pgw.getPageIndex() * pgw.getPageSize() <= counter\r\n\t\t\t\t\t&& counter < (pgw.getPageIndex() + 1) * pgw.getPageSize()) \r\n\t\t\t{\r\n\t\t\t\t//convert to user wrapper format list that maching client side\r\n\t\t\t\tUserWrapper uw = new UserWrapper(item.getUserId(), item.getUsername(), item.getUserRole().name(),\r\n\t\t\t\t\t\titem.getUserFirstName(), item.getUserSecondName(), item.getUserPassword(), \"\");\r\n\t\t\t\tuw.setAvator(item.getAvator());\r\n\t\t\t\tuw_list.add(uw);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn Response.status(200).entity(uw_list).build();\r\n\t}", "void appPublicSeaCustomerList(\n String UserName,\n int UserId,\n String token,\n int ClubId,\n int CurrentPage,\n String StartDate,\n String EndDate,\n String PublicSeaId,\n String sort,\n String order);", "private void buscarTodosPaginadosOrdenadosJpa() {\n\t\tPage<Categoria> categoriasPage = repoCategorias.findAll(PageRequest.of(0, 5, Sort.by(\"nombre\").descending())); // se agrega el sort by al pageRequest para paginarlo y ordenarlo\n\t\tSystem.out.println(\"Total de registros: \" + categoriasPage.getTotalElements());\n\t\tSystem.out.println(\"Total de paginas: \" + categoriasPage.getTotalPages());\n\t\tfor(Categoria c: categoriasPage.getContent() ) {\n\t\t\tSystem.out.println(c.getId()+\" \"+c.getNombre());\n\t\t}\t\t\t\t\t\n\t}", "@RequestMapping({\"/admin/gestionProfe\"})\n public String teachInicio(Model model,\n @RequestParam(value = \"page\", defaultValue = \"1\") int page) {\n final int maxResult = 6; // Cantidad de resultados por pagina\n final int maxNavigationPage = 10; // cantidad maxima de paginas\n\n final int pageIndex = page - 1 < 0 ? 0 : page - 1;\n\n // Cuantos resultados existen en total\n int totalRecords = teaRep.findAll().size();\n\n // calcular cuantas paginas se debe tener\n int totalPages = 0;\n if (totalRecords % maxResult == 0) {\n totalPages = totalRecords / maxResult;\n } else {\n totalPages = (totalRecords / maxResult) + 1;\n }\n\n int currentPage = pageIndex + 1;\n\n List<Integer> navigationPages = new ArrayList<>();\n int current = currentPage > totalPages ? totalPages : currentPage;\n\n int begin = current - maxNavigationPage / 2;\n int end = current + maxNavigationPage / 2;\n\n // La primera pagina\n navigationPages.add(1);\n if (begin > 2) {\n navigationPages.add(-1);\n }\n\n // Llenar un arreglo con los numero de paginas\n for (int i = begin; i < end; i++) {\n if (i > 1 && i < totalPages) {\n System.out.println(\"En navigationPages.add \" + i);\n navigationPages.add(i);\n }\n }\n\n if (end < totalPages - 2) {\n navigationPages.add(-1);\n }\n\n navigationPages.add(totalPages);\n // -------------- Fin algoritmos de paginacion\n\n /*\n Ir a la base de datos pero ..a buscar una pagina de datos\n */\n Pageable pagina = PageRequest.of(pageIndex, maxResult);\n System.out.println(pageIndex);\n System.out.println(maxResult);\n // Invocar al repositorio para que retorne la pagina indicada\n Page<Teacher> result0 = teaRep.findAll(pagina);\n\n // Convertir la lista de Entidad a Modelo\n List<Teacher1> ltmp = new ArrayList<>();\n\n for (Teacher t : result0) {\n\n Teacher1 t1 = new Teacher1(t.getCode(), t.getNames(), t.getLast_names(), \" \", \" \");\n Gender ide_ge = t.getGender_id();\n System.out.println(\"#################################################\");\n System.out.println(ide_ge.getName());\n System.out.println(\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\");\n t1.setGender_name(ide_ge.getName());\n\n TeacherType ide_ty = t.getTeacher_type_id();\n t1.setTeacher_type(ide_ty.getName());\n\n ltmp.add(t1);\n System.out.println(\"******************************************************************\");\n System.out.println(ltmp);\n }\n\n // Generar una pagina\n Page<Teacher1> result = new PageImpl(ltmp);\n\n // POner todo en el modelo\n model.addAttribute(\"paginationTeach\", result);\n model.addAttribute(\"totalPages\", totalPages);\n model.addAttribute(\"navigationPages\", navigationPages);\n\n return \"adminGestCargProfe\";\n }", "@GetMapping(\"/apontamentos\")\n\tpublic String viewApontamentoPage(Model model) {\n\t\treturn findPaginated(1, \"data\", \"desc\", model);\t\t\n\t}", "@RequestMapping(\"/ProgramacionJava/{pagina}\")\r\n\tpublic String programacionJava(Model modelo,@PathVariable int pagina,HttpSession sesion) {\n\t\tmodelo.addAttribute(\"Header\", \"HeaderDefault\");\r\n\t\tmodelo.addAttribute(\"Navbar\", \"NavbarDefault\");\r\n\t\tmodelo.addAttribute(\"Section\", \"SectionProgramacionJava\");\r\n\t\tmodelo.addAttribute(\"Aside\", \"AsideDefault\");\r\n\t\tmodelo.addAttribute(\"Footer\", \"FooterDefault\");\r\n\t\t\r\n\t\t\r\n\t\t//Sector para la paginacion de los anuncios \r\n\t\t//------------------------------------------------------------------------\r\n\t\t//------------------------------------------------------------------------\r\n\t\t\r\n\t\t//Se le resta 1 a pagina dado que empiezan en cero\r\n\t\tAbstractPageRequest consulta = new QPageRequest((pagina-1),5);\r\n\t\tPage<JavaAnuncio> consultaPageSiguiente= repositoryJava.findAll(consulta);\r\n\t\t\r\n\t\t\r\n\t\tmodelo.addAttribute(\"Entidad\", \"java\");\r\n\t\tmodelo.addAttribute(\"pestania\", \"Programación Java\");\r\n\t\tmodelo.addAttribute(\"Anuncios\", consultaPageSiguiente);\r\n\t\t\r\n\t\t\tmodelo.addAttribute(\"Pagina\", pagina);\r\n\t\t\tmodelo.addAttribute(\"url\", \"/ProgramacionJava/\");\r\n\t\r\n\t\t\t\r\n\t\t\tif(pagina==1) {\r\n\t\t\t\tmodelo.addAttribute(\"mostrarPaginaBegin\", false);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarAnterior\", false);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarPaginaEnd\", true);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarSiguiente\", true);\r\n\t\t\t}else if(pagina==2) {\r\n\t\t\t\tmodelo.addAttribute(\"mostrarAnterior\", false);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarPaginaBegin\", true);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarPaginaEnd\", true);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarSiguiente\", true);\r\n\t\t\t}else if(!consultaPageSiguiente.hasNext()){\r\n\t\t\t\tmodelo.addAttribute(\"mostrarAnterior\", true);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarPaginaBegin\", true);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarPaginaEnd\", false);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarSiguiente\", false);\r\n\t\t\t}else {\r\n\t\t\t\tmodelo.addAttribute(\"mostrarPaginaBegin\", true);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarAnterior\", true);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarPaginaEnd\", true);\r\n\t\t\t\tmodelo.addAttribute(\"mostrarSiguiente\", true);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t//------------------------------------------------------------------------\r\n\t\t//------------------------------------------------------------------------\r\n\t\t\t\r\n\t\t\t//Atributos del modelo para mostrar o no los botones Login/Logout\r\n\t\t\t\r\n\t\t\t//Si no esta logueado pone login=true / logout=false\r\n\t\t\tif(sesion.getAttribute(\"codigo-autorizacion\") == null) {\r\n\t\t\t\tmodelo.addAttribute(\"login\", true);\r\n\t\t\t\tmodelo.addAttribute(\"logout\", false);\r\n\t\t\t//Si esta logueado asigna login=false / logout=true\r\n\t\t\t}else {\r\n\t\t\t\tmodelo.addAttribute(\"login\", false);\r\n\t\t\t\tmodelo.addAttribute(\"logout\", true);\r\n\t\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\treturn \"viewFragment\";\r\n\t}", "private void aplazamientosSolicitud(HttpPresentationComms comms, int numeroSolicitud) throws HttpPresentationException, KeywordValueException {\n/* 971 */ AplazamientosSolicitudDAO rs = new AplazamientosSolicitudDAO();\n/* 972 */ if (!rs.getEstadoConexion()) {\n/* 973 */ throw new ClientPageRedirectException(comms.request.getAppFileURIPath(\"Mensaje.po?codigo=LoginNoValido\"));\n/* */ }\n/* 975 */ Collection arr = rs.cargarTodos(numeroSolicitud);\n/* 976 */ rs.close();\n/* */ \n/* 978 */ Iterator iterator = arr.iterator();\n/* 979 */ boolean fondo = false;\n/* */ \n/* 981 */ int cuantas = 0;\n/* */ \n/* 983 */ HTMLTableSectionElement tabla = this.pagHTML.getElementTblAplazamientos();\n/* 984 */ while (iterator.hasNext()) {\n/* */ HTMLElement tdJustificacion; HTMLInputElement inp; HTMLElement tdDescripcion; HTMLOptionElement op; Attr escogida; HTMLOptionElement opv; HTMLSelectElement combo;\n/* 986 */ AplazamientosSolicitudDTO reg = (AplazamientosSolicitudDTO)iterator.next();\n/* 987 */ HTMLElement eltr = (HTMLElement)this.pagHTML.createElement(\"tr\");\n/* 988 */ eltr.setAttributeNode(newAttr(\"class\", \"ct\" + (fondo ? \"1\" : \"2\")));\n/* */ \n/* 990 */ eltr.appendChild(newtd(\"\" + reg.getJustificacion()));\n/* 991 */ eltr.appendChild(newtd(\"\" + Utilidades.darFormatoFecha(reg.getFecha())));\n/* */ \n/* */ \n/* 994 */ int estadoA = reg.getEstado();\n/* 995 */ switch (estadoA) {\n/* */ case 0:\n/* 997 */ eltr.appendChild(newtd(\"POR ATENDER\"));\n/* 998 */ eltr.appendChild(newtd(\"\"));\n/* */ \n/* 1000 */ combo = (HTMLSelectElement)this.pagHTML.createElement(\"Select\");\n/* */ \n/* 1002 */ combo.setAttributeNode(newAttr(\"onkeyDown\", \"return f_salto2(event)\"));\n/* 1003 */ combo.setAttributeNode(newAttr(\"onkeyUp\", \"return f_salto(event)\"));\n/* */ \n/* 1005 */ combo.setName(\"APL_\" + reg.getConsecutivo() + \"_\" + Utilidades.darFormatoFecha(reg.getFecha()));\n/* */ \n/* 1007 */ opv = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 1008 */ opv.setValue(\"\");\n/* 1009 */ opv.appendChild(this.pagHTML.createTextNode(\"Seleccione Una Opción\"));\n/* */ \n/* 1011 */ escogida = this.pagHTML.createAttribute(\"selected\");\n/* 1012 */ escogida.setValue(\"on\");\n/* 1013 */ opv.setAttributeNode(escogida);\n/* 1014 */ combo.appendChild(opv);\n/* */ \n/* 1016 */ op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 1017 */ op.setValue(\"S\");\n/* 1018 */ op.appendChild(this.pagHTML.createTextNode(\"ACEPTAR\"));\n/* 1019 */ combo.appendChild(op);\n/* */ \n/* 1021 */ op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 1022 */ op.setValue(\"N\");\n/* 1023 */ op.appendChild(this.pagHTML.createTextNode(\"NEGAR\"));\n/* 1024 */ combo.appendChild(op);\n/* */ \n/* 1026 */ tdDescripcion = (HTMLElement)this.pagHTML.createElement(\"td\");\n/* 1027 */ tdDescripcion.appendChild(combo);\n/* 1028 */ eltr.appendChild(tdDescripcion);\n/* */ \n/* */ \n/* 1031 */ inp = (HTMLInputElement)this.pagHTML.createElement(\"input\");\n/* 1032 */ inp.setMaxLength(255);\n/* 1033 */ inp.setSize(\"70\");\n/* */ \n/* 1035 */ inp.setName(\"JUS_\" + reg.getConsecutivo());\n/* 1036 */ inp.setId(\"JUS_\" + reg.getConsecutivo());\n/* */ \n/* 1038 */ inp.setAttributeNode(newAttr(\"onkeyDown\", \"return f_salto2(event)\"));\n/* 1039 */ inp.setAttributeNode(newAttr(\"onkeyUp\", \"return f_salto(event)\"));\n/* */ \n/* 1041 */ tdJustificacion = (HTMLElement)this.pagHTML.createElement(\"td\");\n/* 1042 */ tdJustificacion.appendChild(inp);\n/* 1043 */ eltr.appendChild(tdJustificacion);\n/* 1044 */ cuantas++;\n/* */ break;\n/* */ \n/* */ case 1:\n/* 1048 */ eltr.appendChild(newtd(\"ACEPTADA\"));\n/* 1049 */ eltr.appendChild(newtd(\"\" + Utilidades.darFormatoFecha(reg.getFechaestado())));\n/* 1050 */ eltr.appendChild(newtd(\"\"));\n/* 1051 */ eltr.appendChild(newtd(\"\"));\n/* */ break;\n/* */ case 2:\n/* 1054 */ eltr.appendChild(newtd(\"RECHAZADA\"));\n/* 1055 */ eltr.appendChild(newtd(\"\" + Utilidades.darFormatoFecha(reg.getFechaestado())));\n/* 1056 */ eltr.appendChild(newtd(\"\"));\n/* 1057 */ eltr.appendChild(newtd(\"\" + reg.getJustificacionNega()));\n/* */ break;\n/* */ case 3:\n/* 1060 */ eltr.appendChild(newtd(\"ANULADO\"));\n/* 1061 */ eltr.appendChild(newtd(\"\" + Utilidades.darFormatoFecha(reg.getFechaestado())));\n/* 1062 */ eltr.appendChild(newtd(\"\"));\n/* 1063 */ eltr.appendChild(newtd(\"\"));\n/* */ break;\n/* */ } \n/* */ \n/* 1067 */ tabla.appendChild(eltr);\n/* */ } \n/* 1069 */ if (cuantas == 0) {\n/* 1070 */ Element divAplazamientos = this.pagHTML.getElementTrPie();\n/* 1071 */ divAplazamientos.getParentNode().removeChild(divAplazamientos);\n/* */ } \n/* */ \n/* */ \n/* 1075 */ if (arr.size() == 0) {\n/* 1076 */ Element divAplazamientos = this.pagHTML.getElementIdAplazamientos();\n/* 1077 */ divAplazamientos.getParentNode().removeChild(divAplazamientos);\n/* */ } \n/* 1079 */ arr.clear();\n/* */ }", "@RequestMapping(method = RequestMethod.GET, path = \"/encontrarTodos\")\n public List<Proyecto> encontrarTodos(){\n return proyectoService.encontrarTodos();\n }", "public String listarActividadesPresupuestales(int idPresupuesto){\n String rta = \"\";\n \n ArrayList<ActividadPresupuestalDto> AP = new ActividadPresupuestalDao().cargarActividadesPresupuestales(idPresupuesto);\n \n if (AP.isEmpty())\n return \"\";\n \n \n for (ActividadPresupuestalDto a: AP){\n \n rta += \"<option value=\\\"\"+a.getIdActPresupuestal()+\"\\\">\"+a.getIdActPresupuestal()+\" - \"+a.getNomActividadPresupuestal()+\"</option>\\n\";\n }\n \n \n return rta;\n }", "public ArrayList<ObraBean> getPageXRepertorio(int idActo, int idAgrupacion, int intRegsPerPag, int intPage, ArrayList<FilterBeanHelper> alFilter, HashMap<String, String> hmOrder, Integer expand) throws Exception {\n strSQLCount = \"SELECT COUNT(*) FROM repertorio r, obra o, agrupacion ag, acto ac \"\n + \"WHERE r.id_acto = ac.id AND r.id_obra = o.id AND r.id_agrupacion = ag.id \"\n + \"AND r.id_acto = \" + idActo + \" AND r.id_agrupacion = \" + idAgrupacion;\n strSQL = \"SELECT o.titulo, o.subtitulo, o.notas, o.id_compositor \"\n + \"FROM repertorio r, obra o, agrupacion ag, acto ac \"\n + \"WHERE r.id_acto = ac.id AND r.id_obra = o.id AND r.id_agrupacion = ag.id \"\n + \"AND r.id_acto = \" + idActo + \" AND r.id_agrupacion = \" + idAgrupacion;\n// strSQL += SqlBuilder.buildSqlWhere(alFilter);\n// strSQL += SqlBuilder.buildSqlOrder(hmOrder);\n strSQL += SqlBuilder.buildSqlLimit(oMysql.getCount(strSQLCount), intRegsPerPag, intPage);\n ArrayList<ObraBean> arrUser = new ArrayList<>();\n ResultSet oResultSet = null;\n try {\n oResultSet = oMysql.getAllSQL(strSQL);\n while (oResultSet.next()) {\n ObraBean oUserBean = new ObraBean();\n arrUser.add((ObraBean) oUserBean.fill(oResultSet, oConnection, oPuserSecurity, expand));\n }\n if (oResultSet != null) {\n oResultSet.close();\n }\n } catch (Exception ex) {\n Log4j.errorLog(this.getClass().getName() + \":\" + (ex.getStackTrace()[0]).getMethodName(), ex);\n throw new Exception();\n } finally {\n if (oResultSet != null) {\n oResultSet.close();\n }\n }\n return arrUser;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if this graph is empty; otherwise, returns false.
boolean isFull();
[ "public boolean isEmpty() {\n return nodeSize == 0;\n }", "public boolean isEmpty() {\n\t\t\n\t\t//Bag is empty if there are no nodes\n\t\tif (size == 0) return true;\n\t\telse return false;\n\t}", "public boolean isEmpty() {\n return edgeSet().isEmpty() && vertexSet().isEmpty();\n }", "public boolean isEmpty() {\n return vertices.size() == 0;\n }", "public boolean isEmpty() {\n\t\treturn nodes.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn lastNode == null;\n\t}", "public boolean empty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return (top == null);\n }", "public boolean isEmpty()\n\t{ return vtxMap.size() == 0; }", "public boolean empty() {\n return stack.isEmpty() && top.isEmpty();\n }", "public boolean empty() {\r\n\t\treturn this.size == 0;\r\n\t}", "public boolean isEmpty() {\n return (top == null);\n }", "public boolean isEmpty() {\n return root.isEmpty();\n }", "public boolean isEmpty() {\n return bTree.isEmpty();\n }", "public boolean isEmpty() {\r\n\t\t\r\n\t\tif (this.top == null) return true;\r\n\t\treturn false;\r\n\t}", "public boolean isEmpty() {\n boolean is_empty = true;\n // if stack has any nodes\n if (this.size > 0) {\n // set flag to false\n is_empty = false;\n }\n // return flag\n return is_empty;\n }", "public boolean empty () {\r\n return (this.root == null);\r\n }", "final public boolean empty() {\n return size <= 0;\n }", "public boolean isEmpty() {\n\n return (firstNode == null);\n\n }", "public boolean isEmpty() {\n return this.top == -1;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
find out how many brick bricks
public Integer[] CalculateNumberBrick(){ numBrick[0] = getWidth()/brickDimension[0];// column numBrick[1] = getHeight()/brickDimension[1];// row System.out.println(getNumBrick()[0]+"000"+getNumBrick()[1]);//delete return numBrick; }
[ "int getBagOfTricksCount();", "public int availableBalls() {\r\n\t\tint availableBalls = 15;\r\n\t\t\r\n\t\tfor (Boule ball : myBall) {\r\n\t\t\tif (ball.isOnBoard()) {\r\n\t\t\t\tavailableBalls--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn availableBalls;\r\n\t}", "public void setBrickCounter () {\n BRICK_NUMBER_LEFT= BRICKS_IN_ROW* BRICK_ROWS;\n BRICK_COUNTER= new GLabel (\"Bricks Remaining: \"+ BRICK_NUMBER_LEFT, GAME_WIDTH/8, GAME_HEIGHT+(DROPBAR_HEIGHT/4));\n add(BRICK_COUNTER);\n }", "private double checkBricks(GOval ball) {\r\n GObject brick;\r\n if (getElementAt(ball.getX(), ball.getY()) != null && ball.getY() < getHeight() / 2.0) {\r\n brick = getElementAt(ball.getX(), ball.getY());\r\n remove(brick);\r\n vy = -vy;\r\n bricksCounter--;\r\n } else if (getElementAt(ball.getX() + BALL_SIZE, ball.getY()) != null && ball.getY() < getHeight() / 2.0) {\r\n brick = getElementAt(ball.getX() + BALL_SIZE, ball.getY());\r\n remove(brick);\r\n vy = -vy;\r\n bricksCounter--;\r\n } else if (getElementAt(ball.getX(), ball.getY() + BALL_SIZE) != null && ball.getY() < getHeight() / 2.0) {\r\n brick = getElementAt(ball.getX(), ball.getY() + BALL_SIZE);\r\n remove(brick);\r\n vy = -vy;\r\n bricksCounter--;\r\n } else if (getElementAt(ball.getX() + BALL_SIZE, ball.getY() + BALL_SIZE) != null && ball.getY() < getHeight() / 2.0) {\r\n brick = getElementAt(ball.getX() + BALL_SIZE, ball.getY() + BALL_SIZE);\r\n remove(brick);\r\n bricksCounter--;\r\n }\r\n if (bricksCounter == 0) {\r\n winGame();\r\n }\r\n return vy;\r\n }", "public int leastBricks(List<List<Integer>> wall) {\n if(wall.size() == 0) return 0;\n int count = 0;\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for(List<Integer> list : wall){\n int length = 0;\n for(int i = 0; i < list.size() - 1; i++){\n length += list.get(i);\n map.put(length, map.getOrDefault(length, 0) + 1);\n count = Math.max(count, map.get(length));\n }\n }\n return wall.size() - count;\n }", "long getBinCount();", "private void buildBricks() {\r\n double x = (getWidth() -((BRICK_SEP + BRICK_WIDTH) * NBRICKS_PER_ROW) + BRICK_SEP) / 2.0 - 1 ;\r\n double y = BRICK_Y_OFFSET;\r\n Color color = Color.BLACK;\r\n\r\n for (int i = 0; i < NBRICK_ROWS; i++) {\r\n for (int j = 0; j < NBRICKS_PER_ROW; j++) {\r\n switch (i) {\r\n case 0:\r\n color = Color.red;\r\n break;\r\n case 2:\r\n color = Color.ORANGE;\r\n break;\r\n case 4:\r\n color = Color.yellow;\r\n break;\r\n case 6:\r\n color = Color.green;\r\n break;\r\n case 8:\r\n color = Color.blue;\r\n break;\r\n }\r\n makeOneBrick(x, y, color);\r\n x = x + BRICK_SEP + BRICK_WIDTH;\r\n }\r\n x = (getWidth() -((BRICK_SEP + BRICK_WIDTH) * NBRICKS_PER_ROW) + BRICK_SEP) / 2.0 - 1;\r\n y = y + BRICK_HEIGHT + BRICK_SEP;\r\n }\r\n\r\n }", "private void checkBrick(){\n if (brickwall.getElementAt(ball.getX(), ball.getY()) != null) {\n //GObject e1=getElementAt(ball.getX(),ball.getY());\n brickwall.removeBrick(brickwall.getElementAt(ball.getX(), ball.getY()));\n brickCount=brickCount-1;\n }\n else if (brickwall.getElementAt(ball.getX()+BALL_SIZE, ball.getY()+BALL_SIZE) != null) {\n //GObject e1=getElementAt(ball.getX(),ball.getY());\n brickwall.removeBrick(brickwall.getElementAt(ball.getX()+BALL_SIZE, ball.getY()+BALL_SIZE));\n brickCount=brickCount-1;\n }\n else if (brickwall.getElementAt(ball.getX(), ball.getY()+BALL_SIZE) != null) {\n //GObject e1=getElementAt(ball.getX(),ball.getY());\n brickwall.removeBrick(brickwall.getElementAt(ball.getX(), ball.getY()+BALL_SIZE));\n brickCount=brickCount-1;\n }\n else if (brickwall.getElementAt(ball.getX()+BALL_SIZE, ball.getY()) != null) {\n //GObject e1=getElementAt(ball.getX(),ball.getY());\n brickwall.removeBrick(brickwall.getElementAt(ball.getX()+BALL_SIZE, ball.getY()));\n brickCount=brickCount-1;\n }\n }", "int getBcsCount();", "public int getAvailableBalls() { return balls; }", "@Override\r\n public int numberOfBalls() {\r\n return this.ballsVelo9.size();\r\n }", "public static int leastBricks(List<List<Integer>> wall) {\n int l=wall.size();\n Map<Integer, Integer> pos=new HashMap<>();\n for(List<Integer> level: wall){\n int last=0;\n for(int i=0; i<level.size()-1; i++){\n int w=level.get(i);\n pos.put(last+w, pos.getOrDefault(last+w, 0)+1);\n last+=w;\n }\n }\n int count=0;\n for(int key: pos.keySet()){\n count=Math.max(count, pos.get(key));\n }\n return l-count;\n }", "int getNumBombs();", "public int numBands() {\n\t\treturn this.bands.size();\n\t}", "public int birdsInWetLands()\n\t\t{\n\t\t\tint numBirds = 0;\n\t\t\tfor(int i =0 ; i < width; i++)\n\t\t\t{\n\t\t\t\tif(!board[2][i].getCardName().equals(\"-\"))\n\t\t\t\t\tnumBirds++;\n\t\t\t}\n\t\t\treturn numBirds;\n\t\t}", "protected abstract int getBranchCount();", "int getGameBagCount();", "@Override\r\n public int numberOfBalls() {\r\n return 3;\r\n }", "private void setupBricks()\t{\n\t\tint xCoordinate;\n\t\tint yCoordinate;\n\t\t\n\t/** 1st and 2nd brick rows of initial setup */\n\t\tfor (int i = 0; i < 2; i += 1)\t{\n\t\t\t\n\t\t\tfor (int j = 0; j < NBRICKS_PER_ROW; j += 1)\t{\n\t\t\t\t\n\t\t\t\txCoordinate = BRICK_SEP + j * (BRICK_WIDTH + BRICK_SEP);\n\t\t\t\tyCoordinate = BRICK_Y_OFFSET + i * (BRICK_HEIGHT + BRICK_SEP);\n\t\t\t\t\n\t\t\t\tbrick = new GRect(BRICK_WIDTH, BRICK_HEIGHT);\n\t\t\t\tbrick.setFilled(true);\n\t\t\t\tbrick.setFillColor(Color.RED);\n\t\t\t\tbrick.setColor(Color.RED);\n\t\t\t\tadd(brick, xCoordinate, yCoordinate);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/** 3rd and 4th brick rows of initial setup */\n\t\tfor (int i = 0; i < 2; i += 1)\t{\n\t\t\t\n\t\t\tfor (int j = 0; j < NBRICKS_PER_ROW; j += 1)\t{\n\t\t\t\t\n\t\t\t\txCoordinate = BRICK_SEP + j * (BRICK_WIDTH + BRICK_SEP);\n\t\t\t\tyCoordinate = BRICK_Y_OFFSET + 2 * (BRICK_HEIGHT + BRICK_SEP) + i * (BRICK_HEIGHT + BRICK_SEP);\n\t\t\t\t\n\t\t\t\tbrick = new GRect(BRICK_WIDTH, BRICK_HEIGHT);\n\t\t\t\tbrick.setFilled(true);\n\t\t\t\tbrick.setFillColor(Color.ORANGE);\n\t\t\t\tbrick.setColor(Color.ORANGE);\n\t\t\t\tadd(brick, xCoordinate, yCoordinate);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t/** 5th and 6th brick rows of initial setup */\n\t\tfor (int i = 0; i < 2; i += 1)\t{\n\t\t\t\n\t\t\tfor (int j = 0; j < NBRICKS_PER_ROW; j += 1)\t{\n\t\t\t\t\n\t\t\t\txCoordinate = BRICK_SEP + j * (BRICK_WIDTH + BRICK_SEP);\n\t\t\t\tyCoordinate = BRICK_Y_OFFSET + 4 * (BRICK_HEIGHT + BRICK_SEP) + i * (BRICK_HEIGHT + BRICK_SEP);\n\t\t\t\t\n\t\t\t\tbrick = new GRect(BRICK_WIDTH, BRICK_HEIGHT);\n\t\t\t\tbrick.setFilled(true);\n\t\t\t\tbrick.setFillColor(Color.YELLOW);\n\t\t\t\tbrick.setColor(Color.YELLOW);\n\t\t\t\tadd(brick, xCoordinate, yCoordinate);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t/** 7th and 8th brick rows of initial setup */\n\t\tfor (int i = 0; i < 2; i += 1)\t{\n\t\t\t\n\t\t\tfor (int j = 0; j < NBRICKS_PER_ROW; j += 1)\t{\n\t\t\t\t\n\t\t\t\txCoordinate = BRICK_SEP + j * (BRICK_WIDTH + BRICK_SEP);\n\t\t\t\tyCoordinate = BRICK_Y_OFFSET + 6 * (BRICK_HEIGHT + BRICK_SEP) + i * (BRICK_HEIGHT + BRICK_SEP);\n\t\t\t\t\n\t\t\t\tbrick = new GRect(BRICK_WIDTH, BRICK_HEIGHT);\n\t\t\t\tbrick.setFilled(true);\n\t\t\t\tbrick.setFillColor(Color.GREEN);\n\t\t\t\tbrick.setColor(Color.GREEN);\n\t\t\t\tadd(brick, xCoordinate, yCoordinate);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t/** 9th and 10th brick rows of initial setup */\n\t\tfor (int i = 0; i < 2; i += 1)\t{\n\t\t\t\n\t\t\tfor (int j = 0; j < NBRICKS_PER_ROW; j += 1)\t{\n\t\t\t\t\n\t\t\t\txCoordinate = BRICK_SEP + j * (BRICK_WIDTH + BRICK_SEP);\n\t\t\t\tyCoordinate = BRICK_Y_OFFSET + 8 * (BRICK_HEIGHT + BRICK_SEP) + i * (BRICK_HEIGHT + BRICK_SEP);\n\t\t\t\t\n\t\t\t\tbrick = new GRect(BRICK_WIDTH, BRICK_HEIGHT);\n\t\t\t\tbrick.setFilled(true);\n\t\t\t\tbrick.setFillColor(Color.CYAN);\n\t\t\t\tbrick.setColor(Color.CYAN);\n\t\t\t\tadd(brick, xCoordinate, yCoordinate);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public Integer countSickLeaves();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if a number is a valid double
public static boolean validateDouble(TextInputLayout txt, String error) { try { Double.valueOf(txt.getEditText().getText().toString().trim()); return true; } catch (Exception e) { txt.setError(error); txt.setErrorEnabled(true); return false; } }
[ "public boolean valiadateDouble(String digit) {\n\t\treturn digit.matches(DOUBLE_REGEX);\n\t}", "boolean isTypeDouble();", "private boolean isDouble()\n {\n try\n {\n Double.parseDouble(my_field.getText());\n }\n catch (NumberFormatException exception)\n {\n return false;\n }\n return true;\n }", "public boolean isDoubleType();", "private static boolean IsValidDoubleValue(Object value) \r\n {\r\n double d = (double)value; \r\n\r\n return !(DoubleUtil.IsNaN(d) || Double.IsInfinity(d));\r\n }", "public static boolean isDouble(String val) {\r\n try {\r\n Double.parseDouble(val);\r\n return (!val.endsWith(\"f\") && !val.endsWith(\"D\"));\r\n } catch (NumberFormatException e) {\r\n return false;\r\n }\r\n }", "public static boolean validDouble(String str) {\t\r\n\t\ttry {\r\n\t\t\tdouble num = Double.parseDouble(str);\r\n\t\t\treturn true;}\r\n\t\tcatch (NumberFormatException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Number(s) entered was not in double-format.\");\r\n\t\t\treturn false;}\r\n\t}", "private boolean isDouble(String str){\n try {\n Double.parseDouble(str);\n return true;\n } catch (NumberFormatException e){\n return false;\n }\n }", "private static boolean isNumber(String n){\n try{\n Double.valueOf(n);\n return false;\n }\n catch (NumberFormatException nfe){\n return true;\n }\n }", "public static Boolean doubleCheck(final String val) {\n try {\n Double.parseDouble(val);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public static boolean isDouble(String str) {\r\n try {\r\n Double.parseDouble(str);\r\n if (str.matches(\"^[0-9]*\\\\.?[0-9]*$\")) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n }", "public boolean isDouble(String s){\n try{\n Double.parseDouble(s);\n return true;\n }catch(NumberFormatException e){\n return false;\n }\n }", "private static boolean isDouble(String str) {\r\n try {\r\n Double.parseDouble(str);\r\n return true;\r\n } catch (Exception e) {}\r\n return false;\r\n }", "private boolean isDouble(String str) {\n try {\n //attempt to parse string\n Double.parseDouble(str);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public static boolean isDouble(String s) {\n if (ApiFunctions.isEmpty(s)) return false;\n\n try {\n Double.parseDouble(s);\n }\n catch (NumberFormatException e) {\n return false;\n }\n\n return true;\n }", "public boolean isNumber(String number) { \r\n try {\r\n Double.parseDouble(number); \r\n } catch (NumberFormatException ex) {\r\n return false;\r\n } \r\n return true;\r\n }", "public static boolean isDouble(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException | NullPointerException e) {\n\t\t\tExceptionUtils.register(e, true);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean isNumber(String test) {\n try {\n double testDouble = Double.parseDouble(test);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public boolean isDouble() {\n return MXLibrary.INSTANCE.mxIsDouble(this);\n }", "boolean tryParseDouble(String value) {\n try {\n Double.parseDouble(value);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method is used to close the program or come back to the main menu
public void quit() { boolean close = false; do { // this loop runs when the user does not type the input showed on the screen System.out.println("Would like to close the program?"); System.out.println("yes [y] no [n]"); try { // try to do something BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String quit = br.readLine(); if(quit.equalsIgnoreCase("y")){ System.out.println("Thank you"); System.exit(0); // is used to close the program } else if (quit.equalsIgnoreCase("n")) { menu(); // method } } catch(Exception e){close = false;} //catch any error System.out.println("[Not Found] type the right letter"); } while(close!= true); }
[ "private void closeProgram(){\r\n\t\tBoolean answer = ConfirmBox.display(\"Quit\", \"Are you Sure\");\r\n\t\tif(answer)\r\n\t\t\tPlatform.exit();\r\n\t}", "private void exit() {\n\t\tgui.exitApp();\n\t\tfrmMain.setVisible(false);\n\t\tfrmMain.dispose();\n\t}", "@Override\r\n\tprotected void _menu() {\n\t\tfinish();\r\n\t}", "void closeProgram() {\r\n AQEngine.stop();\r\n if (isFullScreen) {\r\n screen.setDisplayMode(originalDisplayMode);\r\n }\r\n System.exit(0);\r\n }", "public void menuQuit()\n\t{\n\t\tsetVisible(false);\n\t}", "private void closeApp() {\n\t\tfinal DialogBox quitConfirm = new DialogBox(mainWindow, \"Quit?\", \"Exit to main menu?\");\n\t\tquitConfirm.setAlwaysOnTop(true);\n\t\tquitConfirm.setVisible(true);\n\t\t\n\t\tif(quitConfirm.getResult()) {\n\t\t\t// Notify user\n\t\t\tSystem.out.println(\"Closing DuckHunter...\");\n\t\t\t\n\t\t\t// Stop sound effects\n\t\t\tSystem.out.println(\"Stopping sound threads...\");\n\t\t\tsoundCache.stopAllSounds(soundsAmbience);\n\t\t\tsoundCache.stopAllSounds(soundsDuckAlive);\n\t\t\tsoundCache.getPool().close();\n\t\t\t\n\t\t\t// Get rid of main window\n\t\t\tmainWindow.dispose();\n\t\t\tThread.currentThread().interrupt();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.currentThread().join();\n\t\t\t} catch(InterruptedException ex) {\n\t\t\t\t// Should never happen\n\t\t\t}\n\t\t\t\n\t\t\t// Create new main menu and show\n\t\t\tfinal MainMenu mainMenu = new MainMenu(this.getSpriteCache(),\n\t\t\t\t\tthis.getSoundCache(), this.getGameOptions());\n\t\t\tmainMenu.setVisible(true);\n\t\t\tfinal Thread menuThread = new Thread(mainMenu);\n\t\t\tmenuThread.setDaemon(false);\n\t\t\tmenuThread.setPriority(Thread.NORM_PRIORITY);\n\t\t\tmenuThread.start();\n\n\t\t} else {\n\t\t\tquitConfirm.dispose();\n\t\t\tthis.setPaused(false);\n\t\t}\n\t}", "public void exitClicked()\n {\n Intent i = new Intent(this, MainMenu.class);\n setResult(2);\n startActivity(i);\n finish();\n }", "private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n \n }", "public void exitProgram()\r\n {\r\n Boolean ans = Close.display(\"Exit Program\", \"Are you sure you want to exit?\");\r\n if (ans)\r\n window.close();\r\n }", "void quitApp() {\n // drop activity from memory\n finish();\n\n System.exit(0);\n }", "private void closingApp(byte choice) {\n System.exit(choice);\n }", "public void closeProgram() {\t\t\r\n\t\t\t\r\n\t\tPlatform.exit();\r\n\t\tSystem.exit(0);\r\n\t\t\t\r\n\t}", "public void leaveProgram() {\r\n Platform.exit();\r\n System.exit(0);\r\n }", "public void Quit() {\r\n \tSystem.exit(0);\r\n }", "public void close() {\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.addCategory(Intent.CATEGORY_HOME);\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n }", "private void closeMainMenu()\n\t{\n\t\tgray_background.setVisible(false);\n\t\tcontentPane.remove(gray_background);\n\t\ttoolbar_menu.setVisible(true);\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(140);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}", "private void closeProgram() {\r\n\t\twindow.close();\r\n\t}", "private void close()\n\t{\n\t\tdisplay.displayText(\"Goodbye\");\n\t\tSystem.exit(0);\n\t}", "public void exit() {\n\t\ttry {\n\t\t\tmainWindow.dispose();\n\t\t\tcleanUp();\n\t\t} \n\t\tcatch (Exception exc) {\n\t\t\texc.printStackTrace(); //TODO\n\t\t}\n\t\tSystem.exit(0);\n\t}", "private void exit()\n {\n int response;\n \n response = JOptionPane.showConfirmDialog(mainWindow,\n \"Exit this application?\",\n \"Exit?\", \n JOptionPane.YES_NO_OPTION);\n\n if (response == JOptionPane.YES_OPTION)\n {\n mainWindow.setVisible(false); \n stop(); \n mainWindow.dispose(); \n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implementation of the XmlModelListener interface.
public void fileSaved(XmlModel sourceXmlModel) {}
[ "public interface Listener\n {\n /**\n * Called whenever the model associated to this observable has been\n * modified.\n */\n void onModelChange();\n }", "public ModelListener getModelListener() { return ev; }", "public abstract Document getModelXML();", "public void modelChanged(SoapEvent e)\n\t{\n\t Object source = e.getSource();\n Object[] inserted = e.getInserted(); \t\n Object[] parents = e.getParents();\n\t Object[] removed = e.getRemoved();\n\t //System.out.println(\"modelChanged : parent : \"+parents[0]+\" inserted : \"+inserted[0]);\n Map extras = e.getAttributes();\n if(inserted != null)\n { \n handleInsert(inserted,parents,extras ) ;\n }\n else\n {\n if(removed != null)\n {\n handleRemove(removed,parents,extras);\n }\n }\n \n\t}", "@Override\n\tprotected void onModelChanged()\n\t{\n\t\tsuper.onModelChanged();\n\t}", "public void addModelListener(Listener l){\r\n\t\tif (!getModelListeners().contains(l)){\r\n\t\t\tgetModelListeners().add(l);\r\n\t\t}\r\n\t\treceipt.addModelListener(l);\r\n\t}", "public void addModelListener( ModelListener l )\n {\n\t\tlisteners.add( l );\n\t}", "public void registerListener(ModelListener listener) {\n\t\tthis.listener = listener;\n\n\t}", "public void acceptModelChangeNotification(Notification nt) {\n\t\t\n\t}", "public interface ModelChangedListener {\r\n\r\n\tpublic void addedStatement(Statement statement);\r\n\r\n\tpublic void addedStatements(Iterator<? extends Statement> statements);\r\n\r\n\tpublic void removedStatement(Statement statement);\r\n\r\n\tpublic void removedStatements(Iterator<? extends Statement> statements);\r\n\r\n\tpublic void performedUpdate(DiffReader diff);\r\n\r\n}", "public void notifyModelEvent(ModelEvent event);", "public interface SingleDocumentListener {\n\t\n\t/**\n\t * Gets triggered when document's modified status changes.\n\t * \n\t * @param model document whose modified status changed\n\t */\n\tvoid documentModifyStatusUpdated(SingleDocumentModel model);\n\t\n\t/**\n\t * Gets triggered when document's file path changes.\n\t * \n\t * @param model document whose file path changed\n\t */\n\tvoid documentFilePathUpdated(SingleDocumentModel model);\n}", "void onModelEvent(EditableModelEvent event);", "public void removeModelElementChangeListener(ECPModelElementChangeListener listener);", "protected void OnXmlValueChanged() \r\n { \r\n // treat this as a property change at the top level\r\n Object item = PW.GetItem(0); \r\n OnSourcePropertyChanged(item, null);\r\n }", "public void modelChanged() {\n\t\tformatMgr.modelChanged(this);\n\t}", "public void addListener( IModelFactory<IModelNode<T>> listener ){\r\n\t\tthis.listeners.add( listener );\r\n\t}", "public interface XmlStorage {\n boolean storeModel(String name, XmlDoc doc);\n\n XmlDoc loadModel(String name);\n}", "public void addTreeModelListener(TreeModelListener l) {\r\n\t\t}", "public interface ModelUpdateListener {\r\n\r\n\t/**\r\n\t * Listener method which is implemented by logic controller which updates model\r\n\t * corresponds to view which has been just modified.\r\n\t * @param changedViewType type of screen which is modified.\r\n\t * @param nextChangeViewType sub view updated or which has to be updated next \r\n\t * else null\r\n\t * <p>\r\n\t * Note: Don't always rely on second parameter.\r\n\t */\r\n\tpublic void onViewChange(ViewType changedViewType,ViewType nextChangeViewType);\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Resets the current instance of PertGraf to an empty one.
static void resetInstance() { pertInstance = new PertGraf(); }
[ "public void reset(){\n\t\tthis.graph = null;\n\t\tsetPatillscript(null);\n\t\tthis.graph = null;\n\t\tthis.feedbackContainer = null;\n\t\tthis.sessSetting = null;\n\t}", "public void reset() {\n clear();\n grid.randomGeneration(random);\n }", "public void reset() {\n\t\tclear();\n\t\t\n\t}", "public static void reset() {\n\t\tbounds.clear();\n\t\tfreshIndex = 0;\n\t}", "static void reset() {\n ALL_GENERATIONS.clear();\n generations = 0;\n }", "public void reset() {\n this.state = State.FREE;\n this.level = Integer.MAX_VALUE;\n this.mark = 0;\n this.reason = null;\n }", "public void reset() {\r\n\t\ttransform.data.transform = Transform.identity();\r\n\t}", "public void reset() {\r\n\t\tset(0.0f);\r\n\t}", "public void reset() {\r\n this.name = null;\r\n this.nameProbability = 0;\r\n }", "public void Reset() {\n\t\t\n\t\tKDNode.Reset();\n\t\tLoadGraph();\n\t\t\n\t\tfor(KDNode k : KDNode.RootSet()) {\n\t\t\tk.space.sample_buff.clear();\n\t\t}\n\t}", "public void resetTree(){\n _passengers.clear();\n }", "public void reset() {\n particleSystem = ParticleSystem.get();\n particleSystem.removeAll();\n particleSystem.getBatches().clear();\n }", "protected void clear ()\r\n {\r\n pstate.clear();\r\n display.setLegend(\"\");\r\n ship = null;\r\n }", "@Override\r\n\tpublic void reset() {\r\n\t\tdata.reset(this);\r\n\t}", "public void reset() {\r\n }", "public void resetGraph() {\n\n\t}", "public void reset()\n {\n proxy = null;\n old = null;\n patient = null;\n oldRevision = null;\n antibioticBatchEntryCollection = null;\n sourceBatchEntryCollection = null;\n supplementalCollection = null;\n patient = null;\n oldRevision = null;\n observationMap = null;\n super.resetLDF();\n }", "public void reset() {\r\n\t}", "public void reset() {\n init();\n this.gameMap = null;\n }", "public void reset() {\r\n initialize();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The list of criteria for matching attributes of a request to this routeRule. This list has OR semantics: the request matches this routeRule when any of the matchRules are satisfied. However predicates within a given matchRule have AND semantics. All predicates within a matchRule must match for the request to match the rule. repeated .google.cloud.compute.v1.HttpRouteRuleMatch match_rules = 376200701;
public com.google.cloud.compute.v1.HttpRouteRuleMatch.Builder addMatchRulesBuilder(int index) { return getMatchRulesFieldBuilder() .addBuilder(index, com.google.cloud.compute.v1.HttpRouteRuleMatch.getDefaultInstance()); }
[ "public RequestSchemeMatchConditionParameters withMatchValues(\n List<RequestSchemeMatchConditionParametersMatchValuesItem> matchValues) {\n this.matchValues = matchValues;\n return this;\n }", "@Override\r\n\tpublic String getMatchRules() {\n\t\treturn matchRules;\r\n\t}", "public RemoteAddressMatchConditionParameters withMatchValues(List<String> matchValues) {\n this.matchValues = matchValues;\n return this;\n }", "public MatchCriteria getMatchCriteria()\n {\n return matchCriteria;\n }", "java.util.List<? extends com.google.cloud.compute.v1.HttpHeaderMatchOrBuilder>\n getHeaderMatchesOrBuilderList();", "@java.lang.Override\n public java.util.List<? extends com.google.cloud.compute.v1.HttpQueryParameterMatchOrBuilder>\n getQueryParameterMatchesOrBuilderList() {\n return queryParameterMatches_;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3.Match> getMatchesList();", "public List<MatchingRule> getMatchingRules()\n {\n return matchingRulesList;\n }", "public NetworkTapRuleInner withMatchConfigurations(List<NetworkTapRuleMatchConfiguration> matchConfigurations) {\n if (this.innerProperties() == null) {\n this.innerProperties = new NetworkTapRuleProperties();\n }\n this.innerProperties().withMatchConfigurations(matchConfigurations);\n return this;\n }", "@java.lang.Override\n public java.util.List<com.google.cloud.compute.v1.HttpQueryParameterMatch>\n getQueryParameterMatchesList() {\n return queryParameterMatches_;\n }", "public String getFilterMatchCriteria() {\n return filterMatchCriteria;\n }", "public final String getMatchCriteria() {\n return properties.get(MATCH_CRITERIA_PROPERTY);\n }", "public String getFilterMatchCriteria() {\n return filterMatchCriteria;\n }", "com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchesOrBuilder(int index);", "public String getMatchRule()\n {\n return matchRule;\n }", "public final ScanAttribute setMatchCriteria(final String matchCriteria) {\n properties.put(MATCH_CRITERIA_PROPERTY, matchCriteria);\n return this;\n }", "public List<String> getMatchExpressions() {\n\t\treturn matchExpressions;\n\t}", "public java.util.List<com.google.cloud.compute.v1.HttpHeaderMatch> getHeaderMatchesList() {\n if (headerMatchesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(headerMatches_);\n } else {\n return headerMatchesBuilder_.getMessageList();\n }\n }", "Observable<Reply<List<RouteDto>>> RoutesFindByDifficulty(\n Observable<List<RouteDto>> oRoutes, DynamicKey difficulty, EvictDynamicKey update);", "public Builder setFilterMatchCriteria(String filterMatchCriteria) {\n this.filterMatchCriteria = filterMatchCriteria;\n return this;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.com.elarian.hera.proto.Cash available = 2;
@java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeAvailable(com.elarian.hera.proto.CommonModel.Cash value) { value.getClass(); if (available_ != null && available_ != com.elarian.hera.proto.CommonModel.Cash.getDefaultInstance()) { available_ = com.elarian.hera.proto.CommonModel.Cash.newBuilder(available_).mergeFrom(value).buildPartial(); } else { available_ = value; } }
[ "public int getMoney(){\r\n return localMoney;\r\n }", "public interface Account extends AccountState {\n\n /** The constant DEFAULT_NONCE. */\n long DEFAULT_NONCE = 0L;\n /** The constant MAX_NONCE. */\n long MAX_NONCE = -1; // per twos compliment rules -1 will be the unsigned max number\n /** The constant DEFAULT_BALANCE. */\n Wei DEFAULT_BALANCE = Wei.ZERO;\n\n /**\n * The account address.\n *\n * @return the account address\n */\n Address getAddress();\n}", "private BigDecimal getAvailableBalance(){\n return cash;\n }", "public static int getMoney(){return money;}", "public String getCashDepositSlipNbr();", "int getBetPro();", "com.aldren.wallet.grpc.MoneyOrBuilder getMoneyOrBuilder();", "public static void receiveMoney(int payment){money += payment;}", "public int getCoin(){\n return coin;\n }", "public interface Const {\n String BASE_URL = \"https://blockchain.info\";\n String ID = \"id\";\n int BEST = 10;\n int GOOD = 5;\n int NORMAL = 0;\n int BAD = -5;\n int WORST = -10;\n int TERRIBLE = -20;\n String BUY = \"Покупай!\";\n String SELL = \"Продавай!\";\n String WAIT = \"Погоди пока\";\n String USD_ID = \"isdId\";\n /** Покупаем доллары*/\n int BUY_OPERATION = -1;\n /** Продаем доллары*/\n int SELL_OPERATION = 1;\n int NO_OPERATION = 0;\n}", "public void setMoney(int param){\r\n \r\n this.localMoney=param;\r\n \r\n\r\n }", "public interface Interface_201501239 extends Remote { \n // public void df() throws RemoteException;\n public int hash_map(long account_number) throws RemoteException;\n public int deposit(long account_number,int money) throws RemoteException;\n public int withdraw(long account_number,int money) throws RemoteException;\n public float balance(long account_number,int flag) throws RemoteException;\n public String trans_de(long account_num,String start,String end) throws RemoteException;\n public String complete_de(long account_number) throws RemoteException;\n}", "public int getBalance()\n {\n return balance;\n }", "public interface Cashback {\n\n public double getCashback(double amt_spent);\n}", "BigInteger avm_getBalanceOfThisContract();", "public int getAccount(){\r\n return localAccount;\r\n }", "public bankAccount() {\n\n this.account = 0.0;\n\n }", "public int getPrintCredit();", "public void mutualfund(){\n System.out.println(\"HSBC implements Brazil bank mutual funds\");\n }", "public java.lang.String getAmount(){\r\n return localAmount;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads a Parameter within a Configuration file
public String ReadConfigValue ( String aConfigFile , String aConfigParameter ) { Properties aProperty = new Properties(); String aValue = ""; try { InputStream resourceStream = getClass().getClassLoader().getResourceAsStream( aConfigFile ); if ( resourceStream == null ) { throw new FileNotFoundException( "The properties file '" + aConfigFile + "' was not found." ); } aProperty.load( resourceStream ); if ( aProperty.isEmpty() ) { throw new Exception( "Configuration File is empty" ); } aValue = aProperty.getProperty( aConfigParameter ); } catch ( Exception e ) { e.printStackTrace(); } return aValue; }
[ "public static void initializeParameters(String parParameterFile){\t\t\n\t\ttry{\n\t\t\t// Open the file to be read\n\t\t\tFileInputStream fstream = new FileInputStream(parParameterFile);\n\t\t\t// Create an object of DataInputStream\n\t\t\tDataInputStream in = new DataInputStream(fstream);\n\t\t\tBufferedReader buff = new BufferedReader(new InputStreamReader(in));\n\t\t\tint nLine = 0; // Line number\n\t\t\tString line;\n\t\t\twhile((line = buff.readLine())!= null){\n\t\t\t\tnLine++; \t\t\t\t\t\t// Increment line number\n\t\t\t\tif(line.length() > 0){\t\t \t// Ignore empty lines\n\t\t\t\t\tif(line.charAt(0) != '#'){ \t// Ignore comments\n\t\t\t\t\t\tScanner scanner = new Scanner(line);\n\t\t\t\t\t\tscanner.useDelimiter(\"=\");\n\t\t\t\t\t\t// Get option name and value. If not valid, exit program!\n\t\t\t\t\t\tString optionName = scanner.next().trim();\n\t\t\t\t\t\tvalidateOptionName(line, optionName, nLine);\n\t\t\t\t\t\tString optionValue = scanner.next().trim(); \n\t\t\t\t\t\tvalidateOptionValue(optionName, optionValue, nLine); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tin.close();\n\t\t} // Catch open file error.\n\t\tcatch(Exception e){\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t}", "private static Map<String, String> readParameterFile (String parameterFileName)\n throws IOException {\n\n Map<String, String> parameters = new HashMap<String, String>();\n\n File parameterFile = new File (parameterFileName);\n\n if (! parameterFile.canRead ()) {\n throw new IllegalArgumentException\n (\"Can't read \" + parameterFileName);\n }\n\n Scanner scan = new Scanner(parameterFile);\n String line = null;\n do {\n line = scan.nextLine();\n String[] pair = line.split (\"=\");\n parameters.put(pair[0].trim(), pair[1].trim());\n } while (scan.hasNext());\n\n scan.close();\n\n if (! (parameters.containsKey (\"indexPath\") &&\n parameters.containsKey (\"queryFilePath\") &&\n parameters.containsKey (\"trecEvalOutputPath\") &&\n parameters.containsKey(\"trecEvalOutputLength\") && \n parameters.containsKey (\"retrievalAlgorithm\"))) {\n throw new IllegalArgumentException\n (\"Required parameters were missing from the parameter file.\");\n }\n\n return parameters;\n }", "public abstract int getIntParameter(String p_paramName)\n throws ConfigException;", "public void readConfiguration(String ficheroScript) {\r\n \t\tparseParameters param = new parseParameters();\r\n \t\tparam.parseConfigurationFile(ficheroScript);\r\n \t\tficheroTraining = param.getTrainingInputFile();\r\n \t\tficheroTest = param.getTestInputFile();\r\n \t\tficheroSalida = new String[2];\r\n \t\tficheroSalida[0] = param.getTrainingOutputFile();\r\n \t\tficheroSalida[1] = param.getTestOutputFile();\r\n \t\tint i = 0;\r\n \t\tk = Integer.parseInt(param.getParameter(i++));\r\n \t\tdistanceEu = param.getParameter(i++).equalsIgnoreCase(\"Euclidean\") ? true : false;\r\n\t\t}", "public void readParameters() {\n }", "public String getProperty(final ConfigurationParameter parameter) {\n\n final String result = configFileProps.getProperty(parameter.getName());\n\n if (result != null) {\n return result;\n } else {\n return parameter.getDefaultValue();\n }\n }", "public void readConfig() {\n final String tempString = fh.readFile(configPath);\n final String[] splitRows = tempString.split(\"\\n\");\n String[] splitCol;\n\n for (int i = 0; i < splitRows.length; i++) {\n splitCol = splitRows[i].split(\",\");\n switch (splitCol[0]) {\n case \"username\":\n username = splitCol[1];\n break;\n case \"gameWidth\":\n gameWidth = Integer.parseInt(splitCol[1]);\n break;\n case \"gameHeight\":\n gameHeight = Integer.parseInt(splitCol[1]);\n break;\n case \"serverIp\":\n \tserverIp = splitCol[1];\n break;\n case \"serverPort\":\n \tserverPort = Integer.parseInt(splitCol[1]);\n break;\n }\n }\n }", "@Override\n protected List<IniParameter> load(String definition) {\n\n ArrayList<IniParameter> params = new ArrayList<IniParameter>();\n String filename = getFileName(definition);\n if ((new File(filename)).exists()) {\n try {\n BufferedReader in = getBufferedReader(filename);\n String ligne;\n while ((ligne = in.readLine()) != null) {\n ligne = ligne.trim();\n if (!ligne.startsWith(\"//\") && !ligne.startsWith(\"#\") && !ligne.startsWith(\";\")) {\n int equalIndex = ligne.indexOf(\"=\");\n if (equalIndex > 0) {\n String paramName = ligne.substring(0, equalIndex).toUpperCase().trim();\n String paramValue = ligne.substring(equalIndex + 1).trim();\n if( ! paramName.isEmpty()) {\n params.add(new IniParameter(paramName, paramValue));\n }\n }\n }\n }\n\n in.close();\n } catch (Exception e) {\n Logs.warning(this.getClass().getName() + \" : Can not open \" + filename + \" : \" + e.getMessage());\n }\n } else {\n Logs.warning(this.getClass().getName() + \" : Can not find \" + filename);\n }\n\n return params;\n }", "public Configuration (String configfile){\n\t\t\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(configfile));\n\t\t\n\t\t\ttry{\n\t\t\t\tString line = null;\n\t\t\t\t\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\t\n\t\t\t\t\tif (!line.equals(\"\") && !line.startsWith(\"#\")){\n\t\t\t\t\t\tString key = line.split(\" = \")[0];\n\t\t\t\t\t\tString value = line.split(\" = \")[1].replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\"); //Replacing a single backlash by two ones!\n\t\t\t\t\t\t\n\t\t\t\t\t\tparams.put(key, value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} \n\t\tcatch (FileNotFoundException f){\n\t\t\tf.printStackTrace();\n\t\t}\t\n\t}", "public String getConfigParam(String paramName)\r\n\t\t\tthrows IllegalArgumentException {\r\n\r\n\t\t/* Is this a valid property name? */\r\n\t\tConfigParam param = (ConfigParam) EnvironmentParams.getSupportedParams()\r\n\t\t\t\t.get(paramName);\r\n\t\tif (param == null) {\r\n\t\t\tthrow new IllegalArgumentException(paramName\r\n\t\t\t\t\t+ \" is not a valid BDBJE environment configuration\");\r\n\t\t}\r\n\r\n\t\treturn getVal(param);\r\n\t}", "BatchFileReadConfig getBatchFileReadConfig(String batchFileReadDefinitionName, Map<String, Object> parameters)\r\n throws UnifyException;", "public static Parameters LoadParams() {\n\t\tGson gson = new Gson();\n try (Reader reader = new FileReader(\"parameters.json\")) {\n\t\t\tParameters paramsLoader = gson.fromJson(reader, Parameters.class);\n return paramsLoader;\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n\t}", "public static String getConfigValue(String property) {\n\t String value = \"\";\n\t try {\n\t // FileReader reader = new FileReader(configFile);\n\t InputStream stream = Config.class.getClassLoader().getResourceAsStream(\"config.properties\");\n\t Properties props = new Properties();\n\t props.load(stream);\n\t value = props.getProperty(property);\n\t stream.close();\n\t // reader.close();\n\t } catch (FileNotFoundException ex) {\n\t System.out.println(\"File not found\");\n\t } catch (IOException ex) {\n\t System.out.println(\"Invalid input\");\n\t }\n\t return value;\n\n\t }", "public Parameter readFirstParameter(String name) throws IOException {\n Parameter result = null;\n\n if (this.stream != null) {\n Parameter param = readNextParameter();\n\n while ((param != null) && (result == null)) {\n if (param.getName().equals(name)) {\n result = param;\n }\n\n param = readNextParameter();\n }\n\n this.stream.close();\n }\n\n return result;\n }", "public void readconfig(BufferedReader bf)\n\t{\n\t\tString line = \"\";\n\t\ttry\n\t\t{\n\t\t\tline = bf.readLine();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\twhile(line!=null)\n\t\t{\n\t\t\tif(line.charAt(0)!='#')\n\t\t\t{\n\t\t\t\tString[] linesplit = line.split(\"=\");\n\t\t\t\tconfigholder.put(linesplit[0], linesplit[1]);\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tbf.close();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tLogger.log(\"Configuration file successfully loaded & read.\");\n\t\tLogger.log(toString());\n\t}", "public int getParameter(int parameter)\n {\n int result = alGetSourcei(id, parameter);\n ALError.check();\n\n return result;\n }", "@Override\n\tpublic int getConfiguration(int parameter) {\n\t\treturn 0;\n\t}", "private String readParameter(final Document doc, final String name, final String description, final String defaultValue, final String type) throws InvalidParameterException {\r\n\t\tElement el = null;\r\n\t\tString value = null;\r\n\t\tString path = null;\r\n\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\tel = doc.getElementById(name);\r\n\t\t\tvalue = el.getFirstChild().getNodeValue();\r\n\t\t\tpath = getElementPath(el);\r\n\t\t} catch (final Exception e) {\r\n\t\t\tSystem.err.println(\"Exception reading \" + name + \" parameter. Switching to default value\");\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t} finally {\r\n\t\t\taddParameter(name, path, description, value, defaultValue, type);\r\n\t\t}\r\n\r\n\t\treturn value;\r\n\t}", "public void loadConfiguration() {\n try (InputStream inputStream = new FileInputStream(FILENAME)) {\n\n Properties properties = new Properties();\n properties.load(inputStream);\n height = Integer.parseInt(properties.getProperty(\"game.field.height\"));\n width = Integer.parseInt(properties.getProperty(\"game.field.width\"));\n cellSize = Integer.parseInt(properties.getProperty(\"game.field.cell.size\"));\n gameType = properties.getProperty(\"game.type\");\n hasGrid = Boolean.parseBoolean(properties.getProperty(\"game.field.hasgrid\"));\n refreshDelay = Integer.parseInt(properties.getProperty(\"game.field.refresh.delay\"));\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static String readConfigSetting(String keyName) throws JSONException {\n\t\tString testConfigValue = (String) runConfigJson.get(keyName);\n\t\tLog.logComment(String.format(\"Test config lookup for key: %s, returning value: %s\", keyName, testConfigValue));\n\t\treturn testConfigValue;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column oc_cust_grp_member.update_date
public String getUpdateDate() { return updateDate; }
[ "public java.sql.Timestamp getUpdateDate() {\n return dto.getUpdateDate();\n }", "public long getUpdateDate() { return this.updateDate; }", "public Date getUpdateDate() {\n\t\treturn this.UpdateDate;\n\t}", "@Temporal(TemporalType.TIMESTAMP)\n\t@Column(name = \"DATEUPDATED\", length = 19)\n public Date getDateUpdated()\n {\n return dateUpdated;\n }", "@Schema(description = \"date the vat report was last updated\")\n public OffsetDateTime getUpdate() {\n return update;\n }", "public Date getUpdate() {\n return this.update;\n }", "public Date getuUpdate() {\n return uUpdate;\n }", "public Timestamp getDateUpdate( )\n {\n return _dateUpdate;\n }", "public Date getCuUpdateAt() {\n return cuUpdateAt;\n }", "public Date getUpdateDateTime() {\n\n return updateDateTime;\n }", "public Date getUpdated()\r\n {\r\n return updated;\r\n }", "public java.util.Date getUpdateWhen() {\r\n\t return this.updateWhen;\r\n }", "@ApiModelProperty(value = \"The date that the dynamic scan request was updated\")\n public OffsetDateTime getLastUpdateDate() {\n return lastUpdateDate;\n }", "public void setUpdateDate(java.util.Date updateDate);", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n\tthis.DATE_UPDATED = DATE_UPDATED;\r\n }", "DateTime getUpdated();", "public LocalDateTime getUpdateDate() {\r\n\t\treturn updateDate;\r\n\t}", "public Date getCheckUpdateDate() {\n return checkUpdateDate;\n }", "public Long getUpdateDateWarning() {\n return updateDateWarning;\n }", "public void setUpdateDate(Date updatedate) {\n\t\tthis.UpdateDate = updatedate;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Infor of a viewpoint missing for a view. Inform once.
private void informOfViewpointMissing(FMLRTVirtualModelInstanceResourceImpl viewResource) { if (viewResource.getVirtualModelResource() == null && !vmiWithoutVM.contains(viewResource)) { informOfViewPointMissing(viewResource); vmiWithoutVM.add(viewResource); } }
[ "private void viewIncomplete() {\n int i = 1;\n for (Task task : list) {\n if (!task.isComplete()) {\n System.out.println(i + \". \" + task.getTitle());\n i++;\n }\n }\n if (i == 1) {\n output.noTask();\n }\n }", "public void setEmptyView(View emptyView) {\n/* 294 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean hasView() {\n return view_ != null;\n }", "public static void notFound(String msg) {\n\t\tnotFound(getSectionForView().getPrefix(), msg);\n\t}", "public void notVisited() {\n hasVisited = false;\n }", "void markKnownViewsInvalid() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.color.widget.ColorRecyclerView.Recycler.markKnownViewsInvalid():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorRecyclerView.Recycler.markKnownViewsInvalid():void\");\n }", "boolean isNilArrivedate();", "public int mo3775d(View view) {\n return 0;\n }", "public void verifyNoMatching(AcOriginProjectedRouteItemFlight e)\n {\n }", "private void m42374d(View view) {\n Object parent = view.getParent();\n if (parent != null && parent != this.f34103b) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"View has unexpected parent: ParentClassName=\");\n stringBuilder.append(m42361a(parent));\n stringBuilder.append(\", ViewClassName=\");\n stringBuilder.append(m42361a((Object) view));\n C0001a.c(new RuntimeException(stringBuilder.toString()));\n }\n }", "private void intiViews() {\n }", "public void addDisappearingView(android.view.View r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.color.widget.ColorRecyclerView.LayoutManager.addDisappearingView(android.view.View):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorRecyclerView.LayoutManager.addDisappearingView(android.view.View):void\");\n }", "@Test\r\n public void testOnViewLayoutCreatedWhenRequestIsNotSending() {\r\n presenter.onViewLayoutCreated();\r\n verify(view, never()).showInitialDataLoading();\r\n verify(view, never()).showInitialDataInfoDialog();\r\n }", "public void verifyNoMatching(AcDomesticPlannedRouteLeg e)\n {\n }", "public final void mo17692dG(View view) {\n }", "public void completeItemNotFound()\n {\n // Not implemented\n }", "public void mo82062a(View view) {\n }", "public final void mo17693dH(View view) {\n }", "private void m134436d(View view) {\n if (C39360dw.m125725a().mo97930a(view.getContext())) {\n this.f109988t.mo103711a(view, (C27311c) this.f67534h);\n }\n }", "public void pointView(){\n // show points and stuff\n return;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Windows__Group__3" $ANTLR start "rule__Windows__Group__3__Impl" InternalTargetPlatform.g:1338:1: rule__Windows__Group__3__Impl : ( ( ';' )? ) ;
public final void rule__Windows__Group__3__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalTargetPlatform.g:1342:1: ( ( ( ';' )? ) ) // InternalTargetPlatform.g:1343:1: ( ( ';' )? ) { // InternalTargetPlatform.g:1343:1: ( ( ';' )? ) // InternalTargetPlatform.g:1344:2: ( ';' )? { before(grammarAccess.getWindowsAccess().getSemicolonKeyword_3()); // InternalTargetPlatform.g:1345:2: ( ';' )? int alt10=2; int LA10_0 = input.LA(1); if ( (LA10_0==22) ) { alt10=1; } switch (alt10) { case 1 : // InternalTargetPlatform.g:1345:3: ';' { match(input,22,FOLLOW_2); } break; } after(grammarAccess.getWindowsAccess().getSemicolonKeyword_3()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__GlobalNamespace__Group_3_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSeronetGw.g:1573:1: ( rule__GlobalNamespace__Group_3_3__1__Impl )\n // InternalSeronetGw.g:1574:2: rule__GlobalNamespace__Group_3_3__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__GlobalNamespace__Group_3_3__1__Impl();\n\n state._fsp--;\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 }", "public final void rule__Operation__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:446:1: ( rule__Operation__Group__3__Impl )\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:447:2: rule__Operation__Group__3__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Operation__Group__3__Impl_in_rule__Operation__Group__3859);\r\n rule__Operation__Group__3__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Operation__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:457:1: ( ( ';' ) )\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:458:1: ( ';' )\r\n {\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:458:1: ( ';' )\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:459:1: ';'\r\n {\r\n before(grammarAccess.getOperationAccess().getSemicolonKeyword_3()); \r\n match(input,13,FOLLOW_13_in_rule__Operation__Group__3__Impl887); \r\n after(grammarAccess.getOperationAccess().getSemicolonKeyword_3()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__DSLRuleMO__Group_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSasDsl.g:6384:1: ( rule__DSLRuleMO__Group_1__3__Impl )\n // InternalSasDsl.g:6385:2: rule__DSLRuleMO__Group_1__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DSLRuleMO__Group_1__3__Impl();\n\n state._fsp--;\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 }", "public final void rule__VideoGenInformation__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalVideoGen.g:886:1: ( rule__VideoGenInformation__Group_3__1__Impl )\n // InternalVideoGen.g:887:2: rule__VideoGenInformation__Group_3__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__VideoGenInformation__Group_3__1__Impl();\n\n state._fsp--;\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 }", "public final void rule__Instruction_phi__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.intel.llvm.ireditor.ui/src-gen/com/intel/llvm/ireditor/ui/contentassist/antlr/internal/InternalLLVM_IR.g:24438:1: ( rule__Instruction_phi__Group__3__Impl )\n // ../com.intel.llvm.ireditor.ui/src-gen/com/intel/llvm/ireditor/ui/contentassist/antlr/internal/InternalLLVM_IR.g:24439:2: rule__Instruction_phi__Group__3__Impl\n {\n pushFollow(FollowSets004.FOLLOW_rule__Instruction_phi__Group__3__Impl_in_rule__Instruction_phi__Group__350267);\n rule__Instruction_phi__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "public final void rule__Instruction_phi__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.intel.llvm.ireditor.ui/src-gen/com/intel/llvm/ireditor/ui/contentassist/antlr/internal/InternalLLVM_IR.g:23025:1: ( rule__Instruction_phi__Group__3__Impl )\r\n // ../com.intel.llvm.ireditor.ui/src-gen/com/intel/llvm/ireditor/ui/contentassist/antlr/internal/InternalLLVM_IR.g:23026:2: rule__Instruction_phi__Group__3__Impl\r\n {\r\n pushFollow(FollowSets004.FOLLOW_rule__Instruction_phi__Group__3__Impl_in_rule__Instruction_phi__Group__347298);\r\n rule__Instruction_phi__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Station__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRailLinesMap.g:527:1: ( rule__Station__Group__3__Impl )\n // InternalRailLinesMap.g:528:2: rule__Station__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Station__Group__3__Impl();\n\n state._fsp--;\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 }", "public final void rule__Operation__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.statechart.expressions.ui/src-gen/org/yakindu/sct/statechart/ui/contentassist/antlr/internal/InternalExpressions.g:3824:1: ( rule__Operation__Group_3__1__Impl )\n // ../org.yakindu.sct.statechart.expressions.ui/src-gen/org/yakindu/sct/statechart/ui/contentassist/antlr/internal/InternalExpressions.g:3825:2: rule__Operation__Group_3__1__Impl\n {\n pushFollow(FOLLOW_rule__Operation__Group_3__1__Impl_in_rule__Operation__Group_3__17987);\n rule__Operation__Group_3__1__Impl();\n _fsp--;\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 }", "public final void rule__DSLRuleMO__Group_0__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSasDsl.g:6276:1: ( rule__DSLRuleMO__Group_0__3__Impl )\n // InternalSasDsl.g:6277:2: rule__DSLRuleMO__Group_0__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DSLRuleMO__Group_0__3__Impl();\n\n state._fsp--;\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 }", "public final void rule__Operation__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.robotoworks.mechanoid.ops.ui/src-gen/com/robotoworks/mechanoid/ops/ui/contentassist/antlr/internal/InternalOpServiceModel.g:808:1: ( rule__Operation__Group_3__1__Impl )\n // ../com.robotoworks.mechanoid.ops.ui/src-gen/com/robotoworks/mechanoid/ops/ui/contentassist/antlr/internal/InternalOpServiceModel.g:809:2: rule__Operation__Group_3__1__Impl\n {\n pushFollow(FOLLOW_rule__Operation__Group_3__1__Impl_in_rule__Operation__Group_3__11613);\n rule__Operation__Group_3__1__Impl();\n\n state._fsp--;\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 }", "public final void rule__ComponentInterface__Group_7_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentInterface.g:1091:1: ( rule__ComponentInterface__Group_7_3__1__Impl )\n // InternalComponentInterface.g:1092:2: rule__ComponentInterface__Group_7_3__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ComponentInterface__Group_7_3__1__Impl();\n\n state._fsp--;\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 }", "public final void rule__Feature__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.nagarro.nteg.domain.model.ui/src-gen/org/example/domainmodel/ui/contentassist/antlr/internal/InternalDomainmodel.g:3693:1: ( ( ':' ) )\n // ../de.nagarro.nteg.domain.model.ui/src-gen/org/example/domainmodel/ui/contentassist/antlr/internal/InternalDomainmodel.g:3694:1: ( ':' )\n {\n // ../de.nagarro.nteg.domain.model.ui/src-gen/org/example/domainmodel/ui/contentassist/antlr/internal/InternalDomainmodel.g:3694:1: ( ':' )\n // ../de.nagarro.nteg.domain.model.ui/src-gen/org/example/domainmodel/ui/contentassist/antlr/internal/InternalDomainmodel.g:3695:1: ':'\n {\n before(grammarAccess.getFeatureAccess().getColonKeyword_3()); \n match(input,56,FOLLOW_56_in_rule__Feature__Group__3__Impl7877); \n after(grammarAccess.getFeatureAccess().getColonKeyword_3()); \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 }", "public final void rule__TrigoStatement__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalEduLangauage.g:905:1: ( rule__TrigoStatement__Group__3__Impl )\n // InternalEduLangauage.g:906:2: rule__TrigoStatement__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__TrigoStatement__Group__3__Impl();\n\n state._fsp--;\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 }", "public final void rule__LangDef__Group_1_2_3__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xdoc.ui/src-gen/org/eclipse/xtext/xdoc/ui/contentassist/antlr/internal/InternalXdoc.g:11053:1: ( rule__LangDef__Group_1_2_3__3__Impl )\n // ../org.eclipse.xtext.xdoc.ui/src-gen/org/eclipse/xtext/xdoc/ui/contentassist/antlr/internal/InternalXdoc.g:11054:2: rule__LangDef__Group_1_2_3__3__Impl\n {\n pushFollow(FOLLOW_rule__LangDef__Group_1_2_3__3__Impl_in_rule__LangDef__Group_1_2_3__322320);\n rule__LangDef__Group_1_2_3__3__Impl();\n\n state._fsp--;\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 }", "public final void rule__RelativeNamespace_Impl__Group_3__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSeronetGw.g:1816:1: ( rule__RelativeNamespace_Impl__Group_3__3__Impl rule__RelativeNamespace_Impl__Group_3__4 )\n // InternalSeronetGw.g:1817:2: rule__RelativeNamespace_Impl__Group_3__3__Impl rule__RelativeNamespace_Impl__Group_3__4\n {\n pushFollow(FOLLOW_13);\n rule__RelativeNamespace_Impl__Group_3__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__RelativeNamespace_Impl__Group_3__4();\n\n state._fsp--;\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 }", "public final void rule__Music__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRyml.g:942:1: ( rule__Music__Group_3__1__Impl )\n // InternalRyml.g:943:2: rule__Music__Group_3__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Music__Group_3__1__Impl();\n\n state._fsp--;\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 }", "public final void rule__PermissionMappingSpec__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNavigationRules.g:816:1: ( rule__PermissionMappingSpec__Group__3__Impl )\n // InternalNavigationRules.g:817:2: rule__PermissionMappingSpec__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__PermissionMappingSpec__Group__3__Impl();\n\n state._fsp--;\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 }", "public final void rule__LangDef__Group_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xdoc.ui/src-gen/org/eclipse/xtext/xdoc/ui/contentassist/antlr/internal/InternalXdoc.g:10803:1: ( rule__LangDef__Group_1__3__Impl )\n // ../org.eclipse.xtext.xdoc.ui/src-gen/org/eclipse/xtext/xdoc/ui/contentassist/antlr/internal/InternalXdoc.g:10804:2: rule__LangDef__Group_1__3__Impl\n {\n pushFollow(FOLLOW_rule__LangDef__Group_1__3__Impl_in_rule__LangDef__Group_1__321819);\n rule__LangDef__Group_1__3__Impl();\n\n state._fsp--;\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 }", "public final void rule__Program__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMiniJava.g:802:1: ( rule__Program__Group__1__Impl )\n // InternalMiniJava.g:803:2: rule__Program__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Program__Group__1__Impl();\n\n state._fsp--;\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 }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
These tests are timesensitive, so preload the configuration
@BeforeClass public static void setUpClass() throws Exception { log.debug("loading configuration"); ConfigurationHolder.instance(); log.debug("configuration loaded"); // logs time also! }
[ "@Before\r\n public void setUp() throws Exception {\r\n config = TestsHelper.getConfig();\r\n }", "@Test\n public void configTest() throws Exception {\n }", "@BeforeTest(alwaysRun = true)\n\tpublic void initialSetup() {\n\t\t// Read conf file\n\t\ttry {\n\t\t\tconfig = ConfigFactory.load(\"default.conf\");\n\t\t} catch (Exception e) {\n\t\t\tLogger.error(\"default.conf is not in Valid Json format Or File Not Found, Execution will not Proceed\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\t// Get the API baseURI i.e. Server Name\n\t\tRestAssured.baseURI = config.getString(\"baseURI\");\n\t\tRestAssured.rootPath = \"RestResponse.result\";\n\t\t// Countries List to Verify\n\t\tcountryList = config.getStringList(\"countries\");\n\n\t}", "@Test\n public void testConfigurations() {\n\n assertTrue(actor.getConfiguration() == actorConfig);\n assertTrue(sensor.getConfiguration() == sensorConfig);\n }", "@BeforeClass\n public static void setupClass() throws Exception {\n config = ConfigUtility.getConfigProperties();\n }", "@Test\n public void readConfig(){\n assertTrue(app.ghosts.size() == 5);\n assertTrue(app.fruitLeft == 299);\n assertTrue(app.lives == 10);\n assertTrue(app.frightenedLength == 3);\n assertTrue(app.speed == 1);\n\n }", "private TestConfigReader() {\n\n\t}", "public void partialSetupForAAIConfig(){\n try {\n setFinalStatic(AAIConfig.class.getDeclaredField(\"GlobalPropFileName\"), \"src/test/resources/test_aaiconfig.properties\");\n } \n catch (SecurityException e) {fail();}\n catch (NoSuchFieldException e) {fail();}\n catch (Exception e) {fail();}\n \n AAIConfig.reloadConfig();\n }", "@Before\n public void setUp() throws Exception {\n driver = invokeCorrectBrowser();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n prop = new Properties();\t \n prop.load(new FileInputStream(\"./Configuration/MR_Configuration.properties\"));\n\tsAppURL = prop.getProperty(\"sAppURL\");\n\tsSharedUIMapPath = prop.getProperty(\"SharedUIMap\");\n\ttestDelay=prop.getProperty(\"testDelay\");\n\tprop.load(new FileInputStream(sSharedUIMapPath));\n }", "@BeforeClass(alwaysRun = true)\n\tpublic synchronized void initialize() {\n\t\ttry {\n\t\t\tBufferedReader reader;\n\t\t\treader = new BufferedReader(\n\n\t\t\t\t\tnew FileReader(\"C:/AA_Batch/AA_PDL/src/test/java/pack/Config.properties\"));\n\n\t\t\tprop = new Properties();\n\t\t\tprop.load(reader);\n\t\t\treader.close();\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\n\t\t\tSystem.out.println(\"Object proprties file not found\");\n\t\t}\n\n\t\tString timestamp = new SimpleDateFormat(\"MM.dd.yyyy.HH.mm.ss\").format(new Date());\n\t\t// Date D = new Date();\n\n\t\tString kfilename = prop.getProperty(\"QC_Store_extent_report_file_name\") + timestamp + \".html\";\n\n\t\treports = new ExtentReports(\n\t\t\t\tSystem.getProperty(\"user.dir\") + prop.getProperty(\"QC_Store_extent_report_path\") + kfilename, true);\n\t\t/*\n\t\t * reports = new ExtentReports(System.getProperty(\"user.dir\") +\n\t\t * \"/ExecutionReports/CO_ILP/AA_CO_ILP_Generic Scenarios_\" + timestamp +\n\t\t * \".html\", true); reports.addSystemInfo(\"Browser Version\", \"IE 11.0\");\n\t\t */\n\t}", "@Test\n public void sholdLoadConfig() throws Exception {\n Files.write(FOO_CONFIG_PATH, PERSISTENT_CONFIG_JSON.getBytes());\n\n CONFIGS.load();\n\n assertEquals(PERSISTENT_CONFIG, fooConfig.GET(Config.class));\n }", "static void loadConfig() throws Exception {\n \tclearConfig();\n ConfigManager.getInstance().add(\"stresstests/stress.xml\");\n }", "@Before\r\n public void configTest() {\r\n try {\r\n utx.begin();\r\n clearData();\r\n insertData();\r\n utx.commit();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n try {\r\n utx.rollback();\r\n } catch (Exception e1) {\r\n e1.printStackTrace();\r\n }\r\n }\r\n }", "@Before\n public void setUp() throws Exception {\n assumeFalse(SystemUtils.IS_OS_WINDOWS);\n\n FakeCheck.reset();\n FakeCheck.setReady(true);\n\n // init configuration and service\n configHolder = new ConfigurationHolder(rule.getNuxeoHome(), rule.getNuxeoConf());\n bundles = rule.getNuxeoHome().resolve(\"nxserver/bundles\");\n\n // load backing template\n var loader = new ConfigurationLoader(Map.of(), Map.of(), true);\n backingPath = configHolder.getTemplatesPath().resolve(\"backing\");\n configHolder.putTemplateAll(backingPath, loader.loadNuxeoDefaults(backingPath));\n configHolder.put(\"nuxeo.home\", rule.getNuxeoHome().toString()); // used by backing.check.classpath\n configHolder.put(ConfigurationChecker.PARAM_RETRY_POLICY_MAX_RETRIES, \"5\");\n configHolder.put(ConfigurationChecker.PARAM_RETRY_POLICY_DELAY_IN_MS, \"20\");\n }", "public @Test void testAutoConfig()\n {\n FactoryConfiguration def = ConfigurationUtils.getDefaultTools();\n assertValid(def);\n }", "@BeforeMethod\n public void setUp(){\n Driver.getDriver().get(ConfigReader.getProperty(\"application_url\"));\n }", "protected void setUp() {\n cp = new ConfigProperties() {\n public void save() {\n }\n public void load() {\n }\n public Object clone() {\n return null;\n }\n };\n }", "@BeforeSuite\n\tpublic void beforeSuite()\n\t{\n\t\tLoadPropertiesFiles.setConfigPropertiesPath(System.getProperty(\"user.dir\") +\"\\\\src\\\\test\\\\resources\\\\propertiesFiles\\\\config.properties\");\n\t\tconfigProperties= LoadPropertiesFiles.loadPropertiesFile();\n\t\t\n\t}", "@Override\n @Ignore\n public void testSnapshotConfigurationAndReconfigure() {\n }", "protected abstract void config();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.proto.Game game = 2;
private com.google.protobuf.SingleFieldBuilderV3< triathlon.network.protobuffprotocol.TriathlonProto.Game, triathlon.network.protobuffprotocol.TriathlonProto.Game.Builder, triathlon.network.protobuffprotocol.TriathlonProto.GameOrBuilder> getGameFieldBuilder() { if (gameBuilder_ == null) { gameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< triathlon.network.protobuffprotocol.TriathlonProto.Game, triathlon.network.protobuffprotocol.TriathlonProto.Game.Builder, triathlon.network.protobuffprotocol.TriathlonProto.GameOrBuilder>( getGame(), getParentForChildren(), isClean()); game_ = null; } return gameBuilder_; }
[ "proto.Game getVersionParent();", "proto.Car getCar();", "proto.GameStatusEnum getStatus();", "proto.GameMessageProto.GameMessage getGameMessage();", "public Game getGame(){return _game;}", "public IGame getGame()\n ;", "proto.GameOrBuilder getParentGameOrBuilder();", "protobuf.clazz.coin.CoinProtocol.GameDetailMsgOrBuilder getMsgOrBuilder();", "Triangle.Protocol.GameProtocol.CreateTeamOrBuilder getCreateTeamOrBuilder();", "void game(GameRecord gameRecord);", "protobuf.clazz.s2s.Club_ProxyProto.PlayerStatusOrBuilder getStatusOrBuilder();", "protobuf.clazz.coin.CoinProtocol.GameDetailMsg getMsg();", "void setGame(Game game){\n this.game = game;\n }", "data.PersonProto.PersonOrBuilder getPersonOrBuilder();", "protobuf.clazz.coin.CoinProtocol.GameReliefMsgOrBuilder getMsgOrBuilder();", "public Game AddNewGame (Game newGame);", "Game game();", "POGOProtos.Rpc.BuddyPokemonProto getBuddyPokemonProto();", "public GameProxy()\n {\n }", "public ChessGame getGame(){ return this.game;}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void use3(String search, String filepath) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public <T> AnnotatedBindingBuilder<T> bind(Class<T> type) { return this.mBinder.bind(type); }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "protected void method_2117() {\n }", "protected Exam() {\n\t}", "protected abstract void mo3493a();", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "@Override\n\tprotected void metprot() {\n\t\tsuper.metprot();\n\t\t\n\t}", "protected void a() {}", "public abstract void mo17847T2();", "@Override\n\tpublic void doof() {\n\t\t\n\t}", "public abstract void mo30462c();", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "@Override\n\tpublic void aamir() {\n\n\t}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "public abstract void mo2753d();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Signal that the action GetNetInterface is supported. The action's availability will be published in the device's service.xml. GetNetInterface must be overridden if this is called.
protected void enableActionGetNetInterface() { Action action = new Action("GetNetInterface"); action.addOutputParameter(new ParameterRelated("InterfaceNum", iPropertyNumber)); action.addOutputParameter(new ParameterRelated("CurrentUse", iPropertyInterFace)); action.addOutputParameter(new ParameterRelated("InterfaceList", iPropertyInterFace)); iDelegateGetNetInterface = new DoGetNetInterface(); enableAction(action, iDelegateGetNetInterface); }
[ "@Override\r\n public void networkNotAvailable() {\n }", "private boolean isSupportedInternal() {\n boolean z = false;\n if (this.DBG) {\n Log.d(TAG, \"isSupportedInternal\");\n }\n synchronized (this.mLock) {\n if (this.mServiceManager == null) {\n Log.e(TAG, \"isSupported: called but mServiceManager is null!?\");\n return false;\n }\n try {\n if (this.mServiceManager.getTransport(IWifi.kInterfaceName, HAL_INSTANCE_NAME) != (byte) 0) {\n z = true;\n }\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Exception while operating on IServiceManager: \" + e);\n return false;\n }\n }\n }", "@Override\n public void networkAvailable() {\n }", "public interface INetworkManager {\n boolean networkIsAvailable();\n}", "public interface INetworkInfomation {\n\n void onNetworkValid(boolean valid);\n}", "public interface IsNetworkAvailableListener {\n\n boolean networkAvailable();\n}", "@Override\n public void networkUnavailable() {\n }", "void notifyAvailableResource();", "public void handleNetWorkingStatusChange() {\n\n try {\n if (NetworkingChecker.isOnline(this)) {\n startButton.setEnabled(true);\n } else {\n Toast.makeText(MainActivity.this, getResources().getString(R.string.no_networking_connection), Toast.LENGTH_SHORT).show();\n startButton.setEnabled(false);\n }\n } catch (Exception ex) {\n Log.e(TAG, ex.getMessage() + \" in handleNetWorkingStatusChange.\");\n }\n }", "private void checkNetWorkAvailable(){\n if(isNetworkAvailable()==false){\n AlertDialog dialog=new AlertDialog.Builder(LoadActivity.this).create();\n dialog.setTitle(\"NetWork Not Available !\");\n dialog.setMessage(\"Try Again ?\");\n dialog.setButton(AlertDialog.BUTTON_NEGATIVE, \"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n checkNetWorkAvailable();\n }\n });\n dialog.setCanceledOnTouchOutside(false);\n dialog.show();\n }else {\n MyASyncTask myASyncTask=new MyASyncTask(LoadActivity.this, MY_URL, new MyASyncTask.AsyncResponse() {\n @Override\n public void processFinish(ArrayList<HotGirl> output) {\n mData=output;\n }\n });\n myASyncTask.execute();\n }\n }", "public interface OnNetStatusListener {\n void netCurType(String netType);\n}", "public void notifyAvailable();", "public void tryToGetAware() {\n synchronized (mLock) {\n if (mDbg) {\n Log.d(TAG, \"tryToGetAware: mWifiNanIface=\" + mWifiNanIface + \", mReferenceCount=\"\n + mReferenceCount);\n }\n\n if (mWifiNanIface != null) {\n mReferenceCount++;\n return;\n }\n if (mHalDeviceManager == null) {\n Log.e(TAG, \"tryToGetAware: mHalDeviceManager is null!?\");\n awareIsDown();\n return;\n }\n\n mInterfaceDestroyedListener = new InterfaceDestroyedListener();\n IWifiNanIface iface = mHalDeviceManager.createNanIface(mInterfaceDestroyedListener,\n mHandler);\n if (iface == null) {\n Log.e(TAG, \"Was not able to obtain an IWifiNanIface (even though enabled!?)\");\n awareIsDown();\n } else {\n if (mDbg) Log.v(TAG, \"Obtained an IWifiNanIface\");\n\n try {\n android.hardware.wifi.V1_2.IWifiNanIface iface12 = mockableCastTo_1_2(iface);\n WifiStatus status;\n if (iface12 == null) {\n mWifiAwareNativeCallback.mIsHal12OrLater = false;\n status = iface.registerEventCallback(mWifiAwareNativeCallback);\n } else {\n mWifiAwareNativeCallback.mIsHal12OrLater = true;\n status = iface12.registerEventCallback_1_2(mWifiAwareNativeCallback);\n }\n if (status.code != WifiStatusCode.SUCCESS) {\n Log.e(TAG, \"IWifiNanIface.registerEventCallback error: \" + statusString(\n status));\n mHalDeviceManager.removeIface(iface);\n awareIsDown();\n return;\n }\n } catch (RemoteException e) {\n Log.e(TAG, \"IWifiNanIface.registerEventCallback exception: \" + e);\n awareIsDown();\n return;\n }\n mWifiNanIface = iface;\n mReferenceCount = 1;\n }\n }\n }", "private void notifyWebServAvailableChanged() {\n boolean isAvailable = isNetworkAvailable && isStorageMounted;\n //Log.d(TAG, \"isWebServAvailable:\" + isWebServAvailable);\n //Log.d(TAG, \"isAvailable:\" + isAvailable);\n if (isAvailable != isWebServAvailable) {\n notifyWebServAvailable(isAvailable);\n isWebServAvailable = isAvailable;\n }\n }", "boolean getAvailableOnPlatform();", "private void listenForNfc() {\n try {\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);\n IntentFilter filter = new IntentFilter();\n filter.addAction(NfcAdapter.ACTION_TAG_DISCOVERED);\n filter.addAction(NfcAdapter.ACTION_NDEF_DISCOVERED);\n filter.addAction(NfcAdapter.ACTION_TECH_DISCOVERED);\n nfcAdapter = NfcAdapter.getDefaultAdapter(this);\n nfcAdapter.enableForegroundDispatch(this, pendingIntent, new IntentFilter[]{filter}, this.techList);\n } catch (Exception e) {\n Log.e(\"listenForNfc\", e.getLocalizedMessage());\n customSnackbar(e.getLocalizedMessage(), getString(R.string.ok));\n }\n }", "@Override\n\tpublic void ndlInterface(Resource l, OntModel om, Resource conn,\n\t\t\tResource node, String ip, String mask) {\n\n\t}", "@Override\n\tpublic void onNetworkAvailable() {\n\t\t\n\t}", "public void callActivityNetworkChangeMethod(boolean isNetworkAvailable) {\n if(VcinchApplication.activity instanceof UserListActivity) {\n UserListActivity userListActivity = (UserListActivity) VcinchApplication.activity;\n userListActivity.receiveBackOnline(isNetworkAvailable);\n Log.d(TAG, \"onReceive: internet\");\n }\n }", "List<Class<? extends NetInfMessage>> getSupportedOperations();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set xformer branch model
public void setXfrBranchModel(ODMAclfNetMapper.XfrBranchModel xfrBranchModel) { this.xfrBranchModel = xfrBranchModel; }
[ "void setBizModel(BiexObject bizModel);", "public void setModelAs(StsModel m)\n {\n model = m;\n//\t\tString dirname = model.project.getRootDirString();\n//\t\tString filename = \"vws.\" + model.getName();\n//\t\tobjectFilename = new String(dirname + File.separator + \"BinaryFiles\" + File.separator + filename);\n }", "public void setModel(ModelerWorkspace model) {\n this.model = model;\n }", "public void setX(double x){\n\t\tmodelX = x;\n\t}", "private void setCheckpointToRB() {\n\t\t// reads registry bean from the repository\n\t\tItem item = getBeanPool().read(Item.class, itemId);\n\t\t// set revision manager checkpoint to a registry bean\n\t\ttry {\n\t\t\trevisionManager.setCheckpoint(item, CHECKPOINT_NAME);\n\t\t} catch (CSAppFrameworkException e) {\n\t\t\tlogger.error(\"Could not set checkpoint.\", e);\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "public void interactiveTestSetModel() {\n final JXTreeTable treeTable = new JXTreeTable(treeTableModel);\n treeTable.setColumnControlVisible(true);\n JXFrame frame = wrapWithScrollingInFrame(treeTable, \"toggle model\");\n frame.setVisible(true);\n final TreeTableModel model = new ComponentTreeTableModel(frame);\n Action action = new AbstractAction(\"Toggle model\") {\n \n public void actionPerformed(ActionEvent e) {\n TreeTableModel myModel = treeTable.getTreeTableModel();\n treeTable.setTreeTableModel(myModel == model ? treeTableModel : model);\n \n }\n \n };\n addAction(frame, action);\n }", "void setModel(Sensor sensor);", "private void setupModel() {}", "@Override\n public BranchModel apply(Branch branch)\n {\n BranchModel model = null;\n String name = branch.getName();\n \n try\n {\n ChangesetPagingResult cpr = service.getLogCommand().setBranch(\n name).setPagingLimit(\n CHANGESET_PER_BRANCH).getChangesets();\n Iterable<ChangesetModel> changesets = Iterables.transform(cpr,\n new Function<Changeset,\n ChangesetModel>()\n {\n \n @Override\n public ChangesetModel apply(Changeset changeset)\n {\n return new ChangesetModel(changeset);\n }\n });\n \n model = new BranchModel(name, changesets);\n }\n catch (Exception ex)\n {\n logger.error(\"could not create model for branch: \".concat(name), ex);\n }\n \n return model;\n }", "public void setModel(EObject newValue);", "private void initializeSvmNodes() {\n\t\tif (layers.size() == 0) root = new SvmSetNode();\n\t\telse {\n\t\t\tfor (TreeNode n : layers.getLast()) {\n\t\t\t\t((BranchNode)n).setFeatureOn (new SvmSetNode());\n\t\t\t\t((BranchNode)n).setFeatureOff(new SvmSetNode());\n\t\t\t}\n\t\t}\n\t}", "public void setModel(PegPuzModel model){\n this.model = model;\n }", "public void setModel(java.lang.String param){\r\n \r\n this.localModel=param;\r\n \r\n\r\n }", "public void setXBLManager(XBLManager m) {\n/* */ GenericXBLManager genericXBLManager;\n/* 1728 */ boolean wasProcessing = this.xblManager.isProcessing();\n/* 1729 */ this.xblManager.stopProcessing();\n/* 1730 */ if (m == null) {\n/* 1731 */ genericXBLManager = new GenericXBLManager();\n/* */ }\n/* 1733 */ this.xblManager = (XBLManager)genericXBLManager;\n/* 1734 */ if (wasProcessing) {\n/* 1735 */ this.xblManager.startProcessing();\n/* */ }\n/* */ }", "HibBranch setPreviousBranch(HibBranch branch);", "public void setInitialSource(Branch source) {\n this.source = source;\n }", "protected void beginModel(IvyXmlWriter xw,String name)\n{\n xw.begin(\"PATCHMODEL\");\n xw.field(\"NAME\",name);\n}", "@Override\n public void setModel(TreeModel newModel) {\n super.setModel(newModel);\n if (checkingModel instanceof DefaultTreeCheckingModel) {\n ((DefaultTreeCheckingModel) checkingModel).setTreeModel(newModel);\n }\n }", "public ReinforceModel() {\n\t\ttry {\n\t\t\t//try modelA or modelB here\n\t\t\tmodelA = loadModelInception();\n//\t\t\tmodelB = loadModelConv2D();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setModel(Board board){\n model = board;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check AOP in log mode with 3 complex parameters (JoinPoint)
@Test public void logTest3Complex() { // @formatter:off final String expectedLog = EXPECTED_TEXT + "((String[])[p1]," + " (String[])[p2_0, p2_1, p2_2, p2_3, p2_4, p2_5, p2_6, p2_7, p2_8, p2_9…]," + " (String[])[]," + " (ArrayList)[p4]," + " (ArrayList)[]," + " (Itr)[p6_0, p6_1, p6_2, p6_3, p6_4, p6_5, p6_6, p6_7, p6_8, p6_9…]," + " (HashMap)[key=p7]," + " (TreeMap)[key01=1, key02=2, key03=3, key04=4, key05=5, key06=6, key07=7, key08=8, key09=9, key10=10…]," + " (HashMap)[])"; // @formatter:on AOPObservable target = new AOPObservable(); AspectJProxyFactory factory = new AspectJProxyFactory(target); LoggingAspect aspect = new LoggingAspect(); factory.addAspect(aspect); AOPObservable proxy = factory.getProxy(); this.stream.reset(); String[] p1 = new String[1]; p1[0] = "p1"; String[] p2 = new String[11]; p2[0] = "p2_0"; p2[1] = "p2_1"; p2[2] = "p2_2"; p2[3] = "p2_3"; p2[4] = "p2_4"; p2[5] = "p2_5"; p2[6] = "p2_6"; p2[7] = "p2_7"; p2[8] = "p2_8"; p2[9] = "p2_9"; p2[10] = "p2_10"; String[] p3 = new String[0]; List<String> p4 = new ArrayList<>(); p4.add("p4"); List<String> p5 = new ArrayList<>(); List<String> p6 = new ArrayList<>(); p6.add("p6_0"); p6.add("p6_1"); p6.add("p6_2"); p6.add("p6_3"); p6.add("p6_4"); p6.add("p6_5"); p6.add("p6_6"); p6.add("p6_7"); p6.add("p6_8"); p6.add("p6_9"); p6.add("p6_10"); Map<String, String> p7 = new HashMap<>(); p7.put("key", "p7"); Map<String, String> p8 = new TreeMap<>(); p8.put("key01", "1"); p8.put("key02", "2"); p8.put("key03", "3"); p8.put("key04", "4"); p8.put("key05", "5"); p8.put("key06", "6"); p8.put("key07", "7"); p8.put("key08", "8"); p8.put("key09", "9"); p8.put("key10", "10"); p8.put("key11", "11"); Map<String, String> p9 = new HashMap<>(); proxy.test(p1, p2, p3, p4, p5, p6.iterator(), p7, p8, p9); try { String outputLog = this.stream.toString(EncodingUtils.ENCODING_UTF_8); assertEquals(expectedLog, outputLog); } catch (IOException e) { fail("Errors occurred in AspectTest#logTest3Complex()\n" + e); } }
[ "@Before(\"execution(public void showMessage())\")\n public void log(JoinPoint joinPoint){\n System.out.println(\"Method called\");\n System.out.println(joinPoint.getTarget().getClass().getName());\n }", "@Before(\"com.jonjazzy.demo.aspect.CommonJoinPointConfig.dataLayerExecutionPointcut()\") //\n /*\n PointCut --> Defines what kind of methods you want to intercept\n e.g. execution(* com.jonjazzy.demo.data.*.*(..))\n\n Advice --> What should i do after intercepting\n\n Aspect --> Combination of PointCut & Advice.\n\n JoinPoint --> A specific execution instance (that has been intercepted)\n\n Weaving --> Process of implementing the AOP around your method calls\n\n Weaver --> THe framework which implements weaving, is called a Weaver (in our case Spring AOP)\n\n @Before(\"execution(* com.jonjazzy.demo.business.*.*(..))\")\n This will intercept only the business methods in com.jonjazzy.demo.business\n\n @Before(\"execution(* com.jonjazzy.demo.data.*.*(..))\")\n This will intercept only the dao methods in com.jonjazzy.demo.data\n */\n public void before(JoinPoint joinPoint)\n {\n //Advice\n// LOGGER.info(\"Checking if user has correct access\");\n// LOGGER.info(\"Intercepted a method call:- {}\", joinPoint);\n }", "@AfterReturning(\"execution(* com.dsp.service..*.*(..)) && @annotation(com.dsp.log.MyLog)\")\n//\t@Transactional\n\tpublic void insertLog(JoinPoint joinPoint) throws Throwable {\n\t\t\n\t\tSystem.out.println(joinPoint.getArgs().getClass());\n\t\tObject[] objects=joinPoint.getArgs();\n\t\t\n\t\tClass[] classes=new Class[objects.length];\n\t\t\n\t\tSystem.out.println(objects.length);\n\t\t\n\t\tfor(int i=0;i<objects.length;i++) {\n\t\t\tSystem.out.println(objects[i].getClass().getName());\n\t\t\tclasses[i]=objects[i].getClass();\n\t\t}\n\t\t\n\t\tSystem.out.println(joinPoint.getSignature().getName());\n\t\t\n\t\tMethod method = joinPoint.getTarget().getClass().getMethod(joinPoint.getSignature().getName(),classes);\n\t\t\n\t\tMethodSignature ms = (MethodSignature) joinPoint.getSignature();\n\t\tMethod method2 = ms.getMethod();\n\t\tSystem.out.println(method2.getName());\n\t\t\n\t\tMyLog log = method.getAnnotation(MyLog.class);\n\t\t\n\t\tSystem.out.println(log);\n\t\t\n//\t\tSystem.out.println(joinPoint.getSignature().getName() + \"保存日志ing........\" + \"\\t\\t操作类型: \"+ log.operationType() +\"\\t\\t操作细节: \"+log.operationDetail());\n\t\tSystem.out.println(method.getName() + \"保存日志ing........\" + \"\\t\\t操作类型: \"+ log.operationType() +\"\\t\\t操作细节: \"+log.operationDetail());\n//\t\tSystem.out.println(method2.getName() + \"保存日志ing........\" + \"\\t\\t操作类型: \"+ log2.operationType() +\"\\t\\t操作细节: \"+log2.operationDetail());\n\t\t\n\t}", "@Before(\"LuvAopExpressions.forDaoPackageNoGetterSetter()\")\n public void beforeAddAccountAdvice(JoinPoint theJoinPoint){\n System.out.println(\"====>> Executing @Before advice - MyDemoLoggingAspect\");\n\n //display the method signature\n MethodSignature methodSignature = (MethodSignature) theJoinPoint.getSignature();\n System.out.println(\"Method: \"+methodSignature);\n\n //display method arguments\n Object[] args = theJoinPoint.getArgs();\n for (Object tempArg : args){\n System.out.println(tempArg);\n if(tempArg instanceof AccountDAO){\n AccountDAO theAccount = (AccountDAO) tempArg;\n System.out.println(\"Account name: \"+theAccount.getName()+\", level: \"+theAccount.getServiceCode());\n }\n }\n }", "@Before(\"execution(public * com.java.spring.dta.jpa.controller.MyController.showPerson(*))\")\n public void before(JoinPoint joinPoint) {\n //Advice\n // logger.info(\" Check for user access \");\n //logger.info(\" Allowed execution for {}\", joinPoint);\n System.out.println(\"in aspect\");\n }", "@Before(\"within(online.mrwallet.www.Message)\")\n\tpublic void logBeforeAdviceAllMethod(JoinPoint joinpoint)\n\t{\n\t\t\tSystem.out.println(joinpoint.toString()+\" executed\");\n\t\t\tMessage message=(Message) joinpoint.getTarget();\n\t\t\tSystem.out.println(\"Inside advice logBeforeAdviceAllMethod and message is:\"+message.getMessage());\n\t}", "@Around(\"execution(* website.com.marcioheleno.aspect.services.EmployeeService.getEmployeeById(..))\")\n public Object logAround(ProceedingJoinPoint joinPoint) throws Throwable {\n log.debug(\"logAround running .....\");\n if (log.isDebugEnabled()) {\n log.debug(\"Enter: {}.{}() with argument[s] = {}\", joinPoint.getSignature().getDeclaringTypeName(),\n joinPoint.getSignature().getName(), Arrays.toString(joinPoint.getArgs()));\n }\n try {\n Object result = joinPoint.proceed();\n if (log.isDebugEnabled()) {\n log.debug(\"Exit: {}.{}() with result = {}\", joinPoint.getSignature().getDeclaringTypeName(),\n joinPoint.getSignature().getName(), result);\n }\n return result;\n } catch (IllegalArgumentException e) {\n log.error(\"Illegal argument: {} in {}.{}()\", Arrays.toString(joinPoint.getArgs()),\n joinPoint.getSignature().getDeclaringTypeName(), joinPoint.getSignature().getName());\n throw e;\n }\n\n }", "@Before(\"logAll()\")\n public void logMethodStart(JoinPoint jp) {\n\n // The JoinPoint object represents the point in which we are injecting this advice logic\n String methodSig = extractMethodSignature(jp);\n String argStr = Arrays.toString(jp.getArgs());\n logger.info(\"{} invoked at {}\", methodSig, LocalDateTime.now());\n logger.info(\"Input arguments: {}\", argStr);\n\n }", "public void beforeAdvicePointcut(JoinPoint joinPoint)\n\t{\n\t\tList<String> paramList=joinPoint.getArgs()!=null?\n\t\tStream.of(joinPoint.getArgs())\n\t\t.map(object -> String.valueOf(object))\n\t\t.collect(Collectors.toList())\n\t\t:Collections.emptyList(); \n\t\tSystem.out.println(\"Started Executing \"+\n\t\tjoinPoint.getSignature().getName()+ \"() in \"+\n\t\tjoinPoint.getSignature().getDeclaringTypeName() +\n\t\t\" With Parameters {} \"+paramList);\n\t}", "@Around(value=\"execution(@MethodLog * *(..)) && @annotation(methodLog)\", argNames=\"methodLog\")\n public Object logMethod(ProceedingJoinPoint proceedingJoinPoint, MethodLog methodLog) throws Throwable {\n Level level = Level.toLevel(methodLog.level().toString());\n StaticPart sp = proceedingJoinPoint.getStaticPart();\n String classname = sp.getSignature().getDeclaringTypeName();\n Object[] args = proceedingJoinPoint.getArgs();\n boolean enabledForLevel = Logger.getLogger(classname).isEnabledFor(level);\n\n if (enabledForLevel && methodLog.entry()) {\n String enterMsg = \"ENTER: \" \n + methodLog.prefix() \n + proceedingJoinPoint.getSignature().toShortString() \n + methodLog.suffix();\n Logger.getLogger(classname).log(level, enterMsg);\n if(methodLog.params()){\n String parmsMsg = \"\\tPARAMS: \" + Arrays.toString(args);\n Logger.getLogger(classname).log(level, parmsMsg);\n }\n \n }\n Object methodResult = proceedingJoinPoint.proceed();\n if (enabledForLevel && methodLog.exit()) {\n String exitMsg = \"EXIT: \" \n + methodLog.prefix() \n + proceedingJoinPoint.getSignature().toShortString() \n + methodLog.suffix();\n Logger.getLogger(classname).log(level, exitMsg);\n if(methodLog.returnVal()){\n String rtrnMsg = \"\\tRETURNING: \" \n + (methodResult == null ? \"null\" : methodResult.toString());\n Logger.getLogger(classname).log(level, rtrnMsg);\n }\n }\n return methodResult;\n }", "@Pointcut(\"execution(public * com.ac.reserve.controller..*.*(..))\" + \" || \"\n + \"execution(public * com.ac.reserve.service..*.*(..))\" + \" || \"\n + \"execution(public * com.ac.reserve.temp..*.*(..))\" + \" || \"\n // Annotate Class\n + \"@within(com.ac.reserve.common.utils.log.MySlf4j)\" + \" || \"\n // Annotate Method\n + \"@annotation(com.ac.reserve.common.utils.log.MySlf4j)\")\n public void recordLog() {\n }", "@After(\"execution (* aop_demo.domain.Customer.*(..))\")\n\tpublic void logAfter(JoinPoint p)\n\t{\n\t\tSystem.out.println(\"in log after \");\n\t\tSystem.out.println(\"Intercepted after \"+p.getSignature().getName());\n\t}", "@Before(\"execution(* say*(..)) && args(java.lang.String)\")\n\t// the pointcut signature : void required\n\tprivate void aspectActionOne() {\n\t\tSystem.out.println(\"-AspectActionOne-\");\n\t}", "@Around(\"execution(* com.example.service.CustomerAdvanceService.findAllCustomers())\")\r\n\tpublic Object logAround(ProceedingJoinPoint joinPoint){\r\n\t\tSystem.out.println(\"This is LogAdvice BEFORE excuting Method\");\r\n\t\t\r\n\t\tObject returnObj = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\treturnObj = joinPoint.proceed();\r\n\t\t} catch (Throwable e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"This is LogAdvice AFTER excuting Method\");\r\n\t\t\r\n\t\treturn returnObj;\r\n\t}", "@Before(\"within(com.ir.service.*)\")\n public void before(JoinPoint joinPoint){\n //Advice\n logger.info(\" Check for user access \");\n logger.info(\" Allowed execution for {}\", joinPoint);\n }", "@Around(\"execution(* rs.ac.uns.ftn.informatika.aop.service.SampleService.someMethodAround(..))\")\r\n\tpublic void sampleAdviceAround(ProceedingJoinPoint joinPoint) throws Throwable {\r\n\t\tLOGGER.info(\"@Around: Pre poziva metode - \" + joinPoint.getTarget().getClass().getName() + \" - \" + new Date());\r\n\t\tjoinPoint.proceed();\r\n\t\tLOGGER.info(\"@Around: Posle poziva metode - \" + joinPoint.getTarget().getClass().getName() + \" - \" + new Date());\r\n\t}", "public void interactionAtJoinPoint(JoinPoint jp, Set<Aspect> aspectInterferenceSet, List<PointcutAndAdvice> applicablePAs) {\n\t}", "@Around(\"@annotation(yang.yang.companydemo.aop.LogExecutionTime)\")\n public Object logExecutionTime(ProceedingJoinPoint joinPoint) throws Throwable {\n LOGGER.info(\"start execution:[{}]\", joinPoint.getSignature().toShortString());\n long currentTime = System.currentTimeMillis();\n try {\n return joinPoint.proceed();\n } finally {\n long elapsedTime = System.currentTimeMillis() - currentTime;\n LOGGER.info(\"execution [{}] cost:{} millis\", joinPoint.getSignature().toShortString(), elapsedTime);\n }\n }", "@Before(\"execution(* * (..))\")\n public void logBefore() {\n System.out.println(\"Logging before method being executed...\");\n }", "@Around(\"applicationComprarWSClientPointcut()\")\n\tpublic Object logAround(ProceedingJoinPoint joinPoint) throws Throwable {\n\t\tRedebanBCSDTO redebanDAO = new RedebanBCSDTO();\n\t\tObject resultResponse = null;\n\t\tString jsonResponse = \"\";\n\t\tlog.debug(\"Inicia Aspect Logging Client\");\n\t\ttry {\n\t\t\tlog.debug(\"Transaccion: \" + joinPoint.getSignature().getDeclaringTypeName());\n\t\t\tlog.debug(\"Metodo: \" + joinPoint.getSignature().getName());\n\n\t\t\t/* Comprar */\n\t\t\tif (joinPoint.getSignature().getName().equalsIgnoreCase(\"comprar\")) {\n\t\t\t\tredebanDAO = getComprarInfo(joinPoint);\n\t\t\t}\n\t\t\t/* Reversar */\n\t\t\tif (joinPoint.getSignature().getName().equalsIgnoreCase(\"reversarcompra\")) {\n\t\t\t\tredebanDAO = getReversarCompraInfo(joinPoint);\n\t\t\t}\n\n\t\t\tlog.debug(\"Enter: {}.{}() with argument[s] = {}\", joinPoint.getSignature().getDeclaringTypeName(),\n\t\t\t\t\tjoinPoint.getSignature().getName(), joinPoint.getArgs()[0].toString());\n\n\t\t\tredebanDAO.setFecha(new Timestamp(System.currentTimeMillis()));\n\t\t\tredebanDAO.setMetodo(joinPoint.getSignature().getName());\n\t\t\tredebanDAO.setEstado(\"OK\");\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\ttry {\n\t\t\t\tString json = mapper.writeValueAsString(joinPoint.getArgs()[0]);\n\t\t\t\tredebanDAO.setRequest(json);\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tredebanDAO.setRequest(joinPoint.getArgs()[0].toString());\n\n\t\t\t}\n\n\t\t\tresultResponse = joinPoint.proceed();\n\n\t\t\tjsonResponse = getJSONResponse(resultResponse);\n\n\t\t\tlog.debug(\"Exit: {}.{}() with result = {}\", joinPoint.getSignature().getDeclaringTypeName(),\n\t\t\t\t\tjoinPoint.getSignature().getName(), jsonResponse);\n\n\t\t\tloggingService.auditRedebanBCSService(jsonResponse, redebanDAO);\n\t\t\treturn resultResponse;\n\t\t} catch (Exception e) {\n\n\t\t\tlog.error(\"Illegal argument in LoggingClientAspect: {} in {}.{}()\", Arrays.toString(joinPoint.getArgs()),\n\t\t\t\t\tjoinPoint.getSignature().getDeclaringTypeName(), joinPoint.getSignature().getName(), e);\n\n\t\t\tredebanDAO.setEstado(\"ERROR\");\n\t\t\tStringWriter sw = new StringWriter();\n\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\tString exceptionAsString = sw.toString();\n\t\t\tredebanDAO.setMensajeError(exceptionAsString);\n\t\t\tloggingService.auditRedebanBCSService(jsonResponse, redebanDAO);\n\t\t\tthrow e;\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional bytes attach_data = 20;
public Builder setAttachData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; attachData_ = value; return this; }
[ "void addAttachment(byte[] bytes, String fileName, String description);", "void setAttachmentContent(AttachmentReference attachmentReference, byte[] attachmentData) throws Exception;", "public void setAttachment(byte[] value) {\n this.attachment = value;\n }", "public LinkedHashMap appendDataToAttachment(String attachmentId, String fileNameOnSystem, byte[] fileData, String fileToBeUploadedExtension, String fileToBeUploadedType) throws IOException {\n // data to be returned\n LinkedHashMap dataToBeReturned = new LinkedHashMap();\n String urlString = HelperService.getDefaultInstance().returnServersURLString() + \"/mobileOrTablet/appendDataToAttachment\";\n HttpURLConnection httpURLConnection = null;\n DataOutputStream outputStream = null;\n try {\n URL url = new URL(urlString);\n httpURLConnection = (HttpURLConnection) url.openConnection();\n // post\n httpURLConnection.setRequestMethod(\"POST\");\n // no need\n //httpURLConnection.setConnectTimeout(15000);\n\n // set Content-Type in HTTP header\n // some random number\n String boundary = \"56738788\";\n httpURLConnection.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\" + boundary);\n\n // open output stream\n outputStream = new DataOutputStream(httpURLConnection.getOutputStream());\n\n outputStream.writeBytes(\"--\" + boundary + \"\\r\\n\");\n\n //append fileData or attachment's chunks of data to be uploaded to be file on the server\n HelperService.getDefaultInstance().appendFormData(\"dataToBeAppendedToFile\", fileNameOnSystem + \".\" + fileToBeUploadedExtension, fileToBeUploadedType + \"/\" + fileToBeUploadedExtension, fileData, boundary, outputStream);\n\n // append attachmentId\n HelperService.getDefaultInstance().appendFormData(\"attachmentId\", attachmentId, null, outputStream);\n\n // end boundary\n outputStream.writeBytes(\"--\" + boundary + \"--\\r\\n\");\n\n\n if (httpURLConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n StringBuilder response = new StringBuilder();\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()), 8192);\n String strLine = null;\n while ((strLine = input.readLine()) != null) {\n response.append(strLine);\n }\n input.close();\n Object dataReturnedFromServer = new JSONTokener(response.toString()).nextValue();\n\n if (dataReturnedFromServer instanceof JSONObject) {\n // check if dataReturnedFromServer contains an errorMessage\n String errorMessage = ((JSONObject) dataReturnedFromServer).optString(\"errorMessage\");\n if (!errorMessage.isEmpty()) { // append generic\n dataToBeReturned.put(\"errorMessage\", (String) ((JSONObject) dataReturnedFromServer).getString(\"errorMessage\"));\n }\n } else {// append generic errorMessage\n HelperService.getDefaultInstance().appendGenericErrorMessage((LinkedHashMap<String, String>) dataToBeReturned);\n }\n }\n } catch (Exception e) {\n // append generic errorMessage\n HelperService.getDefaultInstance().appendGenericErrorMessage((LinkedHashMap<String, String>) dataToBeReturned);\n } finally {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n if (httpURLConnection != null) {\n httpURLConnection.disconnect();\n }\n }\n\n return dataToBeReturned;\n }", "public void dumpAttach(String aName, byte[] attach) { \r\n int lastPos = aName.lastIndexOf('\\\\'); \r\n String aNameShort = (lastPos < 0) ? aName : aName.substring(lastPos + 1);\r\n try {\r\n FileOutputStream fos = new FileOutputStream(aNameShort); \r\n fos.write(attach); \r\n fos.close(); \r\n } catch (FileNotFoundException e) { \r\n System.out.println(e.getMessage()); \r\n } catch (IOException e) { \r\n System.out.println(e.getMessage()); \r\n } \r\n }", "InputStream getAttachmentData( Context context, Attachment att ) throws ProviderException, IOException;", "public boolean hasAttachData() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean hasAttachData() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public void addAttachment(Attachment attachment);", "public boolean addMaterial(String institutional_email,String courseName,String name,byte[] data);", "public boolean hasAttachData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasAttachData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasAttachData() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "private ImMsgAttach(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public int addAttachedFileToMessage(int idMessage, Attachment att) throws SQLException;", "void addAttachment(String id, Object value);", "private AttachmentData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public byte[] getAttachmentData(Long fileId) throws LookupException;", "private AttachRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "java.lang.String getAttachId();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required int64 confirmedSeqNr = 1;
public long getConfirmedSeqNr() { return confirmedSeqNr_; }
[ "public long getSeqno();", "long getStartSeqNo();", "long getCurrentSequenceNumber();", "String getSequenceNumber();", "String GetSeqNo() {\n\n String a = \"0001\";\n return (a);\n }", "int getFromSequenceNumber();", "public Long getSeqNum()\r\n/* 130: */ {\r\n/* 131:127 */ return this.seqNum;\r\n/* 132: */ }", "private void setSeqnum(long value) {\n bitField0_ |= 0x00000008;\n seqnum_ = value;\n }", "private void setSeqnum(long value) {\n bitField0_ |= 0x00000001;\n seqnum_ = value;\n }", "private void setSeqnum(long value) {\n bitField0_ |= 0x00000010;\n seqnum_ = value;\n }", "private void setSeqnum(long value) {\n bitField0_ |= 0x00000002;\n seqnum_ = value;\n }", "private void setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n }", "public BigDecimal getSequenceNo()\n {\n return sequenceNo;\n }", "public short get_seq_number(){\n return this.seq_number;\n }", "public void setSeqNum(Long seqNum)\r\n/* 135: */ {\r\n/* 136:131 */ this.seqNum = seqNum;\r\n/* 137: */ }", "void setSeq(long seq) {\n this.seq = seq;\n }", "@Override\n\tpublic long getSequenceNumber() {\n\t\treturn 0;\n\t}", "int getToSequenceNumber();", "public Long getAcctSeqNumber()\r\n\t{\r\n\t\treturn acctSeqNumber;\r\n\t}", "long nextSerial();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of montoMaximoCobroTdcModified
public void setMontoMaximoCobroTdcModified(boolean montoMaximoCobroTdcModified) { this.montoMaximoCobroTdcModified = montoMaximoCobroTdcModified; }
[ "public void setDtCobro(DataTable dtCobro)\r\n/* 172: */ {\r\n/* 173:271 */ this.dtCobro = dtCobro;\r\n/* 174: */ }", "public void setOrdenServicioMantenimiento(OrdenServicioMantenimiento ordenServicioMantenimiento)\r\n/* 143: */ {\r\n/* 144:218 */ this.ordenServicioMantenimiento = ordenServicioMantenimiento;\r\n/* 145: */ }", "public void setMaoDeObra(MaoDeObra mao_de_obra){\n\tthis.mao_de_obra = mao_de_obra;\n }", "public void setSaldoComprometidoMarzo(BigDecimal saldoComprometidoMarzo)\r\n/* 1191: */ {\r\n/* 1192:1179 */ this.saldoComprometidoMarzo = saldoComprometidoMarzo;\r\n/* 1193: */ }", "public void setFolioCotizacionMovilModified(boolean folioCotizacionMovilModified)\r\n\t{\r\n\t\tthis.folioCotizacionMovilModified = folioCotizacionMovilModified;\r\n\t}", "public void setSaldoComprometidoDiciembre(BigDecimal saldoComprometidoDiciembre)\r\n/* 1281: */ {\r\n/* 1282:1251 */ this.saldoComprometidoDiciembre = saldoComprometidoDiciembre;\r\n/* 1283: */ }", "public void setCreditoMaximo(BigDecimal creditoMaximo)\r\n/* 203: */ {\r\n/* 204:314 */ this.creditoMaximo = creditoMaximo;\r\n/* 205: */ }", "public void setCmas_fecnacim(BigDecimal cmas_fecnacim)\r\n/* 104: */ {\r\n/* 105: 94 */ this.cmas_fecnacim = cmas_fecnacim;\r\n/* 106: */ }", "public void setFolioClienteMovilModified(boolean folioClienteMovilModified)\r\n\t{\r\n\t\tthis.folioClienteMovilModified = folioClienteMovilModified;\r\n\t}", "public void setValorMayo(BigDecimal valorMayo)\r\n/* 591: */ {\r\n/* 592: 699 */ this.valorMayo = valorMayo;\r\n/* 593: */ }", "public void setDecrementosMarzo(BigDecimal decrementosMarzo)\r\n/* 741: */ {\r\n/* 742: 819 */ this.decrementosMarzo = decrementosMarzo;\r\n/* 743: */ }", "public void setDecrementosDiciembre(BigDecimal decrementosDiciembre)\r\n/* 921: */ {\r\n/* 922: 963 */ this.decrementosDiciembre = decrementosDiciembre;\r\n/* 923: */ }", "public abstract void setOperacion_comercial(\n\t\tjava.lang.Long newOperacion_comercial);", "public void setOunce(int mOunce) {\n this.mOunce = mOunce;\n recalcValues();\n }", "public void setDocumentoElectronico(DocumentoElectronico documentoElectronico)\r\n/* 183: */ {\r\n/* 184:179 */ this.documentoElectronico = documentoElectronico;\r\n/* 185: */ }", "public void setDecrementosAgosto(BigDecimal decrementosAgosto)\r\n/* 841: */ {\r\n/* 842: 899 */ this.decrementosAgosto = decrementosAgosto;\r\n/* 843: */ }", "public void caucularProjecaoCustoVariavel(Custo custo) {\n if (custo != null) {\n\n int valor = custo.getTotal() * 6;\n custo.setProjecao(valor);\n\n// salvarProjeto();\n ProjetoDao dao = new ProjetoDao();\n dao.update(custo);\n }\n\n }", "public void setIncrementosDiciembre(BigDecimal incrementosDiciembre)\r\n/* 911: */ {\r\n/* 912: 955 */ this.incrementosDiciembre = incrementosDiciembre;\r\n/* 913: */ }", "public void setCmas_idio_cod(BigDecimal cmas_idio_cod)\r\n/* 114: */ {\r\n/* 115:102 */ this.cmas_idio_cod = cmas_idio_cod;\r\n/* 116: */ }", "public void setCeldaActual (Celda c)\r\n\t{\r\n\t\tceldaActual = c;\r\n\t\tspriteManager.actualizar(celdaActual.getPosicion());\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__WebModel__Group__1__Impl" $ANTLR start "rule__WebModel__Group__2" InternalWappm.g:528:1: rule__WebModel__Group__2 : rule__WebModel__Group__2__Impl rule__WebModel__Group__3 ;
public final void rule__WebModel__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalWappm.g:532:1: ( rule__WebModel__Group__2__Impl rule__WebModel__Group__3 ) // InternalWappm.g:533:2: rule__WebModel__Group__2__Impl rule__WebModel__Group__3 { pushFollow(FOLLOW_5); rule__WebModel__Group__2__Impl(); state._fsp--; pushFollow(FOLLOW_2); rule__WebModel__Group__3(); state._fsp--; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__WebApplication__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSwml.g:160:1: ( rule__WebApplication__Group__2__Impl rule__WebApplication__Group__3 )\n // InternalSwml.g:161:2: rule__WebApplication__Group__2__Impl rule__WebApplication__Group__3\n {\n pushFollow(FOLLOW_5);\n rule__WebApplication__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__WebApplication__Group__3();\n\n state._fsp--;\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 }", "public final void rule__Rule__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:1442:1: ( rule__Rule__Group__2__Impl rule__Rule__Group__3 )\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:1443:2: rule__Rule__Group__2__Impl rule__Rule__Group__3\n {\n pushFollow(FOLLOW_rule__Rule__Group__2__Impl_in_rule__Rule__Group__23176);\n rule__Rule__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Rule__Group__3_in_rule__Rule__Group__23179);\n rule__Rule__Group__3();\n\n state._fsp--;\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 }", "public final void rule__Rule__Group_5__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:1744:1: ( rule__Rule__Group_5__2__Impl )\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:1745:2: rule__Rule__Group_5__2__Impl\n {\n pushFollow(FOLLOW_rule__Rule__Group_5__2__Impl_in_rule__Rule__Group_5__23776);\n rule__Rule__Group_5__2__Impl();\n\n state._fsp--;\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 }", "public final void rule__Filter__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalVideoGen.g:2015:1: ( rule__Filter__Group__2__Impl )\n // InternalVideoGen.g:2016:2: rule__Filter__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Filter__Group__2__Impl();\n\n state._fsp--;\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 }", "public final void rule__Protocol__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTechnologyDsl.g:3280:1: ( rule__Protocol__Group__2__Impl rule__Protocol__Group__3 )\n // InternalTechnologyDsl.g:3281:2: rule__Protocol__Group__2__Impl rule__Protocol__Group__3\n {\n pushFollow(FOLLOW_26);\n rule__Protocol__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Protocol__Group__3();\n\n state._fsp--;\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 }", "public final void rule__Type__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMiniJava.g:1612:1: ( rule__Type__Group_0__2__Impl )\n // InternalMiniJava.g:1613:2: rule__Type__Group_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type__Group_0__2__Impl();\n\n state._fsp--;\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 }", "public final void rule__ModelModule__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.nagarro.nteg.domain.model.ui/src-gen/org/example/domainmodel/ui/contentassist/antlr/internal/InternalDomainmodel.g:5809:1: ( rule__ModelModule__Group__2__Impl rule__ModelModule__Group__3 )\n // ../de.nagarro.nteg.domain.model.ui/src-gen/org/example/domainmodel/ui/contentassist/antlr/internal/InternalDomainmodel.g:5810:2: rule__ModelModule__Group__2__Impl rule__ModelModule__Group__3\n {\n pushFollow(FOLLOW_rule__ModelModule__Group__2__Impl_in_rule__ModelModule__Group__212031);\n rule__ModelModule__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__ModelModule__Group__3_in_rule__ModelModule__Group__212034);\n rule__ModelModule__Group__3();\n\n state._fsp--;\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 }", "public final void rule__UnorderedList__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xdoc.ui/src-gen/org/eclipse/xtext/xdoc/ui/contentassist/antlr/internal/InternalXdoc.g:8116:1: ( rule__UnorderedList__Group_2__1__Impl )\n // ../org.eclipse.xtext.xdoc.ui/src-gen/org/eclipse/xtext/xdoc/ui/contentassist/antlr/internal/InternalXdoc.g:8117:2: rule__UnorderedList__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__UnorderedList__Group_2__1__Impl_in_rule__UnorderedList__Group_2__116492);\n rule__UnorderedList__Group_2__1__Impl();\n\n state._fsp--;\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 }", "public final void rule__Model__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:263:1: ( rule__Model__Group__1__Impl rule__Model__Group__2 )\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:264:2: rule__Model__Group__1__Impl rule__Model__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__Model__Group__1__Impl_in_rule__Model__Group__1489);\r\n rule__Model__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Model__Group__2_in_rule__Model__Group__1492);\r\n rule__Model__Group__2();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Namespace__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalHdbDD.g:464:1: ( rule__Namespace__Group__2__Impl )\n // InternalHdbDD.g:465:2: rule__Namespace__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Namespace__Group__2__Impl();\n\n state._fsp--;\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 }", "public final void rule__Type__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAsomemodel.g:1233:1: ( rule__Type__Group__2__Impl )\n // InternalAsomemodel.g:1234:2: rule__Type__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type__Group__2__Impl();\n\n state._fsp--;\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 }", "public final void rule__RailLineMap__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRailLinesMap.g:419:1: ( rule__RailLineMap__Group__2__Impl )\n // InternalRailLinesMap.g:420:2: rule__RailLineMap__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__RailLineMap__Group__2__Impl();\n\n state._fsp--;\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 }", "public final void rule__Rule__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:2734:1: ( rule__Rule__Group__2__Impl rule__Rule__Group__3 )\n // InternalDSL.g:2735:2: rule__Rule__Group__2__Impl rule__Rule__Group__3\n {\n pushFollow(FOLLOW_23);\n rule__Rule__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Rule__Group__3();\n\n state._fsp--;\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 }", "public final void rule__IP__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPyDslRep.g:1508:1: ( rule__IP__Group__2__Impl )\n // InternalPyDslRep.g:1509:2: rule__IP__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__IP__Group__2__Impl();\n\n state._fsp--;\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 }", "public final void rule__Predicate__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBotoLang.g:1195:1: ( rule__Predicate__Group_0__2__Impl )\n // InternalBotoLang.g:1196:2: rule__Predicate__Group_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Predicate__Group_0__2__Impl();\n\n state._fsp--;\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 }", "public final void rule__Model__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRequirementsDsl.g:482:1: ( rule__Model__Group__1__Impl rule__Model__Group__2 )\n // InternalRequirementsDsl.g:483:2: rule__Model__Group__1__Impl rule__Model__Group__2\n {\n pushFollow(FOLLOW_4);\n rule__Model__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Model__Group__2();\n\n state._fsp--;\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 }", "public final void rule__Model__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:6546:1: ( rule__Model__Group__1__Impl rule__Model__Group__2 )\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:6547:2: rule__Model__Group__1__Impl rule__Model__Group__2\n {\n pushFollow(FOLLOW_rule__Model__Group__1__Impl_in_rule__Model__Group__114454);\n rule__Model__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Model__Group__2_in_rule__Model__Group__114457);\n rule__Model__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "public final void rule__Element2__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.group.ui/src-gen/org/xtext/example/mydsl1/group/ui/contentassist/antlr/internal/InternalMyDsl.g:813:1: ( rule__Element2__Group__2__Impl rule__Element2__Group__3 )\n // ../org.xtext.example.mydsl.group.ui/src-gen/org/xtext/example/mydsl1/group/ui/contentassist/antlr/internal/InternalMyDsl.g:814:2: rule__Element2__Group__2__Impl rule__Element2__Group__3\n {\n pushFollow(FollowSets000.FOLLOW_rule__Element2__Group__2__Impl_in_rule__Element2__Group__21559);\n rule__Element2__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__Element2__Group__3_in_rule__Element2__Group__21562);\n rule__Element2__Group__3();\n\n state._fsp--;\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 }", "public final void rule__Strucdef__Group_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:7350:1: ( rule__Strucdef__Group_2__2__Impl )\n // InternalOcelet.g:7351:2: rule__Strucdef__Group_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Strucdef__Group_2__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "public final void rule__Mdef__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:8376:1: ( rule__Mdef__Group__2__Impl )\n // InternalOcelet.g:8377:2: rule__Mdef__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Mdef__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will save to sharepref
public void saveToSharePref(String theUsername){ if (isCheck()&& mTemp) { mPrefs.edit().putString(getString(R.string.UserName),theUsername).apply(); } }
[ "@Override\n public void saveSharedPrefDoing()\n {\n }", "private void saveToPrefs() {\n\n SharedPreferences.Editor editor=pref.edit();\n editor.putString(\"Name\",name_string );\n editor.putString(\"Occupation\",occupation_string);\n editor.putString(\"Vehicle\",vehicle_string);\n editor.putString(\"Contact\",contact_string);\n editor.putString(\"OtherDetails\",other_details_string);\n editor.apply();\n }", "protected void savePreferences() {\n int mode = Activity.MODE_PRIVATE;\n SharedPreferences mySharedPreference = context.getSharedPreferences(PRIVATE_PREFERENCES, mode);\n\n // retrieve an editor to modify shared preferences\n SharedPreferences.Editor editor = mySharedPreference.edit();\n\n // Store new primitive types in the shared preferences object\n editor.putBoolean(\"SelectDialogIsActive\", mSelectDialogIsActive);\n editor.putBoolean(\"RebootDialogIsActive\", mRebootDialogIsActive);\n editor.putInt(\"SavedClickedItem\", mSavedClickedItem);\n\n // Commit the changes\n editor.commit();\n }", "private void savePrefs() {\n\t\tSharedPreferences prefs = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(getBaseContext());\n\t\tSharedPreferencesDAO dao = new SharedPreferencesDAO (prefs);\n\t\ttry {\n\t\t\tPrefs mvPrefs = MvplanInstance.getPrefs();\n\t\t\tdao.savePrefs(mvPrefs);\n\t\t\t\n\t\t} catch (PrefsException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(WIFITOGGLE, mWifiCare);\n editor.putBoolean(BATTERYTOGGLE, mBatteryCare);\n editor.apply();\n }", "public void savePref(){\n\t\ttry{\n\t\t\tFileOutputStream fos = getApplicationContext().openFileOutput(\"pref.ser\", Context.MODE_PRIVATE);\n\t\t\tObjectOutputStream ob = new ObjectOutputStream(fos);\n\t\t\tob.writeInt(color);\n\t\t\tob.writeInt(txtSize);\n\t\t\tob.writeInt(txtStyle);\n\t\t\tob.close();\n\t\t\tfos.close();\n\t\t}catch(FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t\tToast.makeText(getApplicationContext(), \"Error Saving Pref\", Toast.LENGTH_LONG).show();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tToast.makeText(getApplicationContext(), \"Error Saving Pref\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "public static void saveSharedPreferences() {\n if (sharedPreferences.propertiesChanged()) {\n File prefs = localPreferences.getPathProperty(EXPORTED_PREFERENCES);\n LOG.info(\"Saving shared preferences at: \" + prefs.getAbsolutePath());\n\n try {\n sharedPreferences.saveToFile(prefs);\n DriveConfigHelper.performAction(DriveConfigHelper.Action.INSERT, null, prefs);\n } catch (IOException e) {\n ExceptionLogger.logException(e);\n LOG.severe(\"Saving failed: [\" + e.getClass().getSimpleName() + \"] \" + e.getMessage());\n }\n }\n }", "private void savePrefs (String key, String value) {\n\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n //In order to edit the data in the SharedPref we need to call the editor\n SharedPreferences.Editor edit = sp.edit();\n edit.putString(key, value);\n edit.commit();\n }", "private void saveToPrefs(String key, String data) {\n mContext.getSharedPreferences(mSharedPrefKey, Context.MODE_PRIVATE)\n .edit()\n .putString(key, data)\n .commit();\n }", "private void saveInShared(){\n gettingValuesFromField();\n preferences=getActivity().getSharedPreferences(\"traderlogin_crop\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=preferences.edit();\n Toast.makeText(getActivity(),\"crop trader data is saving\",Toast.LENGTH_LONG).show();\n editor.putString(\"userproduct\",get_Product_name);\n editor.putString(\"usertype\",get_Product_type);\n editor.putString(\"usercity\", get_city);\n editor.putString(\"usertehsil\", get_TEHIL);\n editor.putString(\"userdistric\", get_DISTT);\n editor.putString(\"userarea\", get_area);\n editor.putString(\"usersack\", get_sack_price);\n editor.putString(\"userquantity\", get_quantity);\n editor.putString(\"userlati\", crop_latitu+\"\");\n editor.putString(\"userlongi\", crop_longitu+\"\");\n editor.commit();\n }", "private void saveData(){\n String name = nameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n //create a file shared pref\n SharedPreferences preferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n //open that file\n SharedPreferences.Editor editor = preferences.edit();\n //write to file\n editor.putString(NAME, name);\n editor.putString(PASSWORD, password);\n //save the file\n editor.commit();\n }", "public void save(String key, String value) {\n SharedPreferences.Editor edit = sp.edit();\n edit.putString(key, value);\n edit.commit();\n\n }", "public void save() {\n final SharedPreferences.Editor storage = PreferenceManager.getDefaultSharedPreferences(App.getContext()).edit();\n storage.putInt(BALANCE, balanceSpins);\n storage.putInt(WINS, rouletteWinCount);\n storage.putInt(NOWINS, rouletteRollsNoWinsCount);\n storage.putInt(DOLS, dollars);\n\n storage.apply();\n }", "private void saveSettings(CaptureIDSharedPrefsKey key, String value) {\n SharedPreferences.Editor editor = cordova.getActivity()\n .getSharedPreferences(sharedPrefsName, Context.MODE_PRIVATE).edit();\n editor.putString(key.getValue(), value);\n editor.apply();\n }", "void save(Context ctx, SharedPreferences preferences);", "public void savePref(String prefName, String key, String value) {\n print.i(TAG, \"set \" + key + \" : \" + value);\n\n SharedPreferences.Editor sharedatab = getSharedPreferences(prefName, Context.MODE_PRIVATE).edit();\n sharedatab.putString(key, value);\n sharedatab.apply();\n }", "private void SaveData(){\n SharedPreferences settings = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n\n editor.putString(\"userName\", userName);\n editor.putString(\"product\", product);\n\n // Commit the edits!\n editor.commit();\n }", "private void saveSharePreferences(boolean saveUserName, boolean savePassword) {\r\n\t\tSharedPreferences share = getSharedPreferences(SHARE_LOGIN_TAG, 0);\r\n\t\tif (saveUserName) {\r\n\t\t\tLog.d(this.toString(), \"saveUserName=\" + edittext_username.getText().toString());\r\n\t\t\tshare.edit().putString(SHARE_LOGIN_USERNAME, edittext_username.getText().toString()).commit();\r\n\t\t}\r\n\t\tif (savePassword) {\r\n\t\t\tshare.edit().putString(SHARE_LOGIN_PASSWORD, edittext_password.getText().toString()).commit();\r\n\t\t}\r\n\t\tshare = null;\r\n\t}", "public static void store()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tBufferedOutputStream out =\r\n\t\t\t\tnew BufferedOutputStream(new FileOutputStream(loro_pref_name))\r\n\t\t\t;\r\n\r\n\t\t\tprops.store(out, header);\r\n\t\t\tout.close();\r\n\t\t}\r\n\t\tcatch (IOException ex )\r\n\t\t{\r\n\t\t\tLoro.log(\"LoroEDI: \" + \r\n\t\t\t\t\"Couldn't save preferences file:\\n\" +\r\n\t\t\t\t\" \" +loro_pref_name+ \"\\n\" +\r\n\t\t\t\t\"Exception: \" +ex.getMessage()\r\n\t\t\t);\r\n\t\t}\r\n\t}", "private void savePreferences() {\n\t\t_filter.savePreferences();\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the x, y, z, and w components to the supplied value.
public Vector4d set(double d) { this.x = d; this.y = d; this.z = d; this.w = d; return this; }
[ "void set(double x, double y, double z, double w);", "public Vector4 set (float x, float y, float z, float w) {\n this.x = x;\n this.y = y;\n this.z = z;\n this.w = w;\n return this;\n }", "public final void set(int x, int y, int z, int value) {\r\n data.setInt((z * (dimExtents[0] * dimExtents[1])) + (y * dimExtents[0]) + x, value);\r\n }", "public void setW(float value) {\n CoreJni.setVarwCoreVec4(this.agpCptr, this, value);\n }", "public void set(double x, double y, double z) {\n setX(x);\n setY(y);\n setZ(z);\n }", "void setPosition(double x, double y, double z);", "public final void set(int x, int y, int z, int b, int value) {\r\n data.setInt((b * (dimExtents[0] * dimExtents[1] * dimExtents[2])) + (z * (dimExtents[0] * dimExtents[1])) +\r\n (y * dimExtents[0]) + x, value);\r\n }", "@SuppressWarnings(\"checkstyle:magicnumber\")\n\tdefault void set(double x, double y, double z, double width, double height, double depth) {\n\t\tassert width >= 0. : AssertMessages.positiveOrZeroParameter(3);\n\t\tassert height >= 0. : AssertMessages.positiveOrZeroParameter(4);\n\t\tassert depth >= 0. : AssertMessages.positiveOrZeroParameter(5);\n\t\tsetFromCorners(x, y, z, x + width, y + height, z + depth);\n\t}", "public void setW(int w){\n this.w = w;\n }", "public void setW(float w) {\n mW = w;\n }", "public synchronized void setCoordinates(float x, float y, float z) {\n setX(x);\n setY(y);\n setZ(z);\n }", "public void setPosition(double x, double y, double z)\r\n\t{\r\n\t position = new Vector(x,y,z);\r\n\t}", "public void setGeometry(double x[], double y[], double z[]) {\n\t\tGTransformer transformer = owner_.getScene().getTransformer();\n\n\t\tint nPoints = x.length;\n\n\t\tdouble[] world = new double[3];\n\t\tint[] device = new int[2];\n\t\tint[] devx = new int[nPoints];\n\t\tint[] devy = new int[nPoints];\n\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\tworld[0] = x[i];\n\t\t\tworld[1] = y[i];\n\t\t\tworld[2] = z == null ? 0.0 : z[i];\n\n\t\t\tdevice = transformer.worldToDevice(world);\n\n\t\t\tdevx[i] = device[0];\n\t\t\tdevy[i] = device[1];\n\t\t}\n\n\t\tsetGeometry(devx, devy);\n\t}", "public void setZ(int x, int y, float v) {\n int pos = (xSize * y) + x;\n depth[pos] = v;\n }", "public synchronized void setW(final int val) {\n w = val;\n }", "public final void set(int x, int y, int z, int b, long value) {\r\n data.setLong((b * (dimExtents[0] * dimExtents[1] * dimExtents[2])) + (z * (dimExtents[0] * dimExtents[1])) +\r\n (y * dimExtents[0]) + x, value);\r\n }", "public void set(vector v){\n\t\tx = v.x;\n\t\ty = v.y;\n\t\tz = v.z;\n\t}", "public Vec3 set(float x, float y, float z) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.z = z;\r\n\t\treturn this;\r\n\t}", "public void setObjectGrid(GameObject value, int w, int h)\n\t{\n\t\tthis.objectGrid[w][h] = value;\n\t}", "protected Vec3 setComponents(double x, double y, double z) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t\treturn this;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method that adds student to wait list
public void addToWaitList(Student s){ System.out.println("You will be added to the waitlist for this timeslot. Number of students ahead of you: " + waitList.size()); waitList.add(s); }
[ "public void addWaitList(Student student) { \n\t\twaitList.add(student);\n\t}", "private void addFromWaitList(){\r\n if (waitList.size() > 0) {\r\n Student toEnroll = waitList.remove(0);\r\n classRoster.add(toEnroll);\r\n toEnroll.enrollIn(this);\r\n }\r\n }", "public void addStudentToWaitlist(Student student) {\n\t\t\n\t\tSendEmail send = new SendEmail();\n\n\t\tif(isStudentInWaitlist(student)==false) {\n\t\t\tstudent.addWaitingCourse(this.courseCode, this.indexNum);\n\t\t\tstudentWaitlist.add(student);\n\t\t\tSystem.out.println(\"Wailist email is being sent to \"+ student.getEmail()+\". Please wait...\");\n\t\t\tString subject = \"Placement of waitlist for Index \" + indexNum ;\n\t\t\tString bodyMessage = \"You have been placed on waitlist for \" + indexNum + \".\";\n\t\t\tString body = \"Dear \" + student.getName() +\" \" + student.getLastName()+\",\\n\\n\"+bodyMessage;\n//\t\t\t To replace oodptest69420@gmail.com with your personal email to recieve the notification to your email\n\t\t\tsend.email(\"oodptest69420@gmail.com\", subject, body);\n\t\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\"Student already in waitlist\");\n\t\t}\n\t\t\n\t}", "public void addStudent(Student testStudent) {\n\t\tstudentList.add(testStudent);\n\t\tnotifyListeners();\n\t\t\n\t}", "public void addStudent()\n {\n isCaptain = false;\n String name = InputDate.show(\"Введите имя студента\",true);\n if( name == null || name.isEmpty()) return;\n if(isCaptain)\n university.addStudent(new Captain(name));\n else university.addStudent(new Student(name));\n\n gui.studentsListVBox.getChildren().clear();\n\n for (JournalString journalString:\n Journal.getJournal().getStudents()) {\n Button button = new Button(journalString.toString());\n button.setOnAction((x)->showInfo(journalString.getStudent()));\n\n gui.studentsListVBox.getChildren().add(button);\n }\n }", "void addStudent(Student s) {\n if (!this.students.contains(s)) {\n this.students = new ConsList<Student>(s, this.students);\n prof.addCourse(this);\n }\n }", "public void register(Student student){\n //If student already is registered to this course.\n if(attendingStudent.contains(student)){\n System.out.println(student.getName() + \" is already registered to this course.\");\n }else{\n //Adding student to studentList.\n attendingStudent.add(student);\n System.out.println(student.getName() + \" was added to this course\");\n }\n }", "public void addStudent(StudentByClass s){\n boolean inClassAlready = false;\n for (StudentByClass stu : studentByClass) {\n if (stu.getId() == s.getId()){\n inClassAlready = true;\n break;\n }\n }\n // if the student has not checked in yet\n if(!inClassAlready) {\n studentByClass.add(s);\n Log.d(\"TeacherRollCallService\",\"Student Added: \"+s.getName());\n\n Attendance newStu = new Attendance();\n newStu.setEnrollmentId(s.getEnrollmentId());\n newStu.setDate(new Date());\n\n this.addAttendance(newStu);\n }\n }", "public void addStudent(Student student)\r\n {\r\n\t this.students.add(student);\r\n }", "public static void addStudent(Student std) {\n\t\tif(count>=20) return;\n\t\tList[count] = std;\n\t\tcount++;\n\t}", "public void showStudentWaitlist() {\n\t\tif(studentWaitlist.size()==0) {\n\t\t\tSystem.out.println(\"no student in waitlist\");\n\t\t}else {\n\t\t\tfor(int i=0;i<studentWaitlist.size();i++) {\n\t\t\t\tSystem.out.println(studentWaitlist.get(i).getMatricNo());\n\t\t\t}\n\t\t}\n\t}", "public void addStudent (Student student) {\n\t\tstudentList.add(student);\n\t\tSystem.out.println(\"Estudante adicionado com sucesso\");\n\t}", "public void addStudent (String fullName){\n \n System.out.println(\"I have added your student to the list, enjoy.\");\n System.out.println(\"1\");\n }", "public void addStudent(Student pStudent){\n getStudentList().add(pStudent);\n }", "public void addStudent(User a){\r\n Students.add(a);\r\n }", "public void addStudent(Student x){\n students.add(x);\n }", "public void addStudents(student student1) {\r\n students.add(student1);\r\n }", "private void addStudent() {\n System.out.println(\"Read student {id,serialNumber, name, group}\");\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n System.out.println(\"Enter id: \");\n long id = Long.parseLong(input.readLine().strip());\n System.out.println(\"Enter serial number: \");\n String serialNumber = input.readLine().strip();\n System.out.println(\"Enter name: \");\n String name = input.readLine().strip();\n System.out.println(\"Enter group: \");\n int group = Integer.parseInt(input.readLine().strip());\n\n CompletableFuture.supplyAsync(\n () -> {\n try {\n if (studentService.addStudent(id, serialNumber, name, group) == null)\n return \"Student not added, already in database\";\n return \"Student added\";\n } catch (ValidatorException ex) {\n return ex.getMessage();\n }\n })\n .thenAcceptAsync(System.out::println);\n\n } catch (ValidatorException ex) {\n System.out.println(ex.getMessage());\n } catch (IOException | NumberFormatException e) {\n System.out.println(\"invalid input\");\n }\n }", "public void addStudent(String UniversitySeatNumber) {\n\n\t}", "public void addStudent(Student student) {\n\t\tthis.studentList.add(student);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get list of the business categories
public List<LabelValueBean> getBusCategories() throws Exception { DBStuff dbs = null; String csql = "select business_category_id, category_name from business_category"; List<LabelValueBean> busCategories = new ArrayList<LabelValueBean>(); try { session = HibernateUtil.currentSession(); dbs = new DBStuff(HibernateUtil.getConnection(session)); ResultSet rs = dbs.getFromDB(csql); while (rs.next()) { busCategories.add(new LabelValueBean(rs.getString("category_name"), rs.getString("business_category_id"))); } return busCategories; } finally { dbs.close(); close(); } }
[ "private void getCategories(String business_id) {\n this.trueCategories.clear();\n Query query = this.businessIndexSearch.getTermQuery(\"business_id\", business_id);\n int count = 0;\n\n try {\n count = this.businessIndexSearch.getCount(query);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n List<Document> docs = this.businessIndexSearch.findHits(count, query);\n\n for (Document doc : docs) {\n this.trueCategories.add(doc.get(\"category\"));\n }\n\n for (String category : this.trueCategories) {\n System.out.println(category);\n }\n }", "public List<Beangoods_categories> loadAllcategories() throws BaseException ;", "public List<Category> getCategories() throws FamillionException;", "java.util.List<String> getCategoryList();", "@Override\n\tpublic List<Category> getCategorys() {\n\t\tSqlSession sqlSession = sqlSessionFactory.openSession();\n try {\n AddBlogMapper addBlogMapper = sqlSession.getMapper(AddBlogMapper.class);\n List<Category> categoryList = addBlogMapper.getCategorys();\n return categoryList;\n } finally {\n sqlSession.close();\n }\n\t}", "public List<String> categories()\r\n {\r\n List<String> lst=new ArrayList<>();\r\n try {\r\n \r\n DBConnection conn=new DBConnection();\r\n ResultSet result=conn.Data_Source(\"select category from member_categorie order by category\");\r\n while (result.next())\r\n {\r\n lst.add(result.getString(\"category\"));\r\n }\r\n return lst;\r\n } catch (ClassNotFoundException | SQLException | IOException | ParseException ex) {\r\n return lst;\r\n }\r\n }", "Set<String> getAllCategories();", "java.util.List<com.gc.android.market.api.model.Market.Category> getSubCategoriesList();", "public ArrayList<FoodCategory> getAllCategories();", "public List<Category> getCategoryList(){\n ArrayList<Category> catList = new ArrayList<>();\n for(Category cat: this.categoryList) {\n catList.add(cat);\n }\n return catList;\n }", "public List getAllCategory() {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Category\").list();\r\n\t}", "public List getCategories() {\n return _categoryList;\n }", "public ch.ivyteam.ivy.scripting.objects.List<java.lang.String> getCategories()\n {\n return categories;\n }", "public List<Category> findAllCategory() {\n\t\tList<Category> allType = null;\n\t\ttry {\n\t\t\tallType = dao.findAllCategory();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn allType;\n\t}", "public List<Category> getListCategory() {\n\n\t\tList<Category> listCategory = categoryService.listCategory();\n\t\treturn listCategory;\n\t}", "@GetMapping(\"/internship/categories\")\n\tpublic ResponseEntity<?> getAllCategory() {\n\t\tList<InternshipCategory> categories = categoryService.getAllCategory();\n\t\tif (categories != null) {\n\t\t\treturn new ResponseEntity<List<InternshipCategory>>(categories, HttpStatus.OK);\n\t\t} else {\n\t\t\treturn new ResponseEntity<String>(\"No categories present in the DB to display\", HttpStatus.NO_CONTENT);\n\t\t}\n\t}", "@Override\n public ArrayList<Category> list(){\n \treturn categories;\n }", "@Override\n\tpublic ListResult<BbsCategory> loadBbsCategoryList() {\n\t\tList<BbsCategory> list = bbsCategoryMapper.selectCategoryList();\n\t\tListResult<BbsCategory> result = new ListResult<BbsCategory>(list);\n\t\treturn result;\n\t}", "public static List<Categorie> getCategories(){\n EntityManager em = emf.createEntityManager();\n TypedQuery<Categorie> query = em.createQuery(\"Select c from Categorie c order by c.nomCat\",Categorie.class);\n return query.getResultList();\n }", "public ArrayList<Category> getCategories() {\n ArrayList<Category> list = new ArrayList<>();\n Cursor cursor = database.rawQuery(\"SELECT * FROM Categories\", null);\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n list.add(new Category(cursor.getString(0), cursor.getString(1), cursor.getBlob(2)));\n cursor.moveToNext();\n }\n cursor.close();\n return list;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CMST_TRANSFDEVICE.DEVICETYPE
public void setDevicetype(String devicetype) { this.devicetype = devicetype == null ? null : devicetype.trim(); }
[ "public void setDeviceType(int tempDeviceType) {\n\t\tthis.deviceType = tempDeviceType;\n\t\tthis.lastUpdated = Calendar.getInstance().getTime();\n\t}", "public void setDeviceType(String[] deviceType) {\n this.deviceType = deviceType;\n }", "public void setDeviceTypeId(String device_type_id) {\n this._device_type_id = device_type_id;\n }", "public DeviceType(java.lang.String alias) {\n\t\tsuper(alias, com.cbt.ws.jooq.Cbt.CBT, com.cbt.ws.jooq.tables.DeviceType.DEVICE_TYPE);\n\t}", "public int getDeviceType() {\n\t\treturn deviceType;\n\t}", "public RealtimeBidding.BidRequest.Device.DeviceType getDeviceType() {\n RealtimeBidding.BidRequest.Device.DeviceType result = RealtimeBidding.BidRequest.Device.DeviceType.valueOf(deviceType_);\n return result == null ? RealtimeBidding.BidRequest.Device.DeviceType.UNKNOWN_DEVICE : result;\n }", "public DeviceType getDeviceType();", "protected void updateType(DeviceType type) {\n\t\tthis.type = type;\n\t\tprotocol.setDeviceType(type);\n\t}", "public void setCustomerType(CustomerType ct) {\r\n customerType = ct;\r\n update();\r\n }", "public proto.MmBp.EmDeviceDataType getType() {\n return type_;\n }", "public void setDataType(String new_data_type) {\n data_type = new_data_type;\n }", "@PutMapping(value = ENDPOINT_DEVICE_TYPES_BASE_URL + \"/{id}\")\r\n\tpublic String editDeviceType(@ModelAttribute(\"deviceType\") DeviceType deviceType, BindingResult result) {\r\n\t\treturn saveOrUpdateDeviceType(deviceType, result);\r\n\t}", "public void setC_DocType_ID (String DocBaseType)\r\n\t{\r\n\t\tString sql = \"SELECT C_DocType_ID FROM C_DocType \"\r\n\t\t\t+ \"WHERE AD_Client_ID=? AND DocBaseType=?\"\r\n\t\t\t+ \" AND IsActive='Y' AND IsReturnTrx='N'\"\r\n\t\t\t+ \" AND IsSOTrx='\" + (isSOTrx() ? \"Y\" : \"N\") + \"' \"\r\n\t\t\t+ \"ORDER BY ASCII(IsDefault) DESC\";\r\n\t\tint C_DocType_ID = DB.getSQLValue(null, sql, getAD_Client_ID(), DocBaseType);\r\n\t\tif (C_DocType_ID <= 0)\r\n\t\t\tlog.log(Level.SEVERE, \"Not found for AC_Client_ID=\"\r\n\t\t\t\t\t+ getAD_Client_ID() + \" - \" + DocBaseType);\r\n\t\telse\r\n\t\t{\r\n\t\t\tlog.fine(\"DocBaseType=\" + DocBaseType + \" - C_DocType_ID=\" + C_DocType_ID);\r\n\t\t\tsetC_DocType_ID (C_DocType_ID);\r\n\t\t\tboolean isSOTrx = MDocBaseType.DOCBASETYPE_MaterialDelivery.equals(DocBaseType);\r\n\t\t\tsetIsSOTrx (isSOTrx);\r\n\t\t\tsetIsReturnTrx(false);\r\n\t\t}\r\n\t}", "public void setColumnType(final String sqlType) {\n this.setProperty(COLUMN_TYPE, sqlType);\n }", "public String getDevtype() {\n return devtype;\n }", "public Builder setType(proto.MmBp.EmDeviceDataType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n type_ = value;\n onChanged();\n return this;\n }", "public void setColumnType(ColumnType columnType)\n {\n myColumnType = columnType;\n }", "DevicesType createDevicesType();", "public void setType (int type) throws DBException;", "public void set_s_typ(boolean S_typ)throws RemoteException {\nthis.s_typ = S_typ;}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method performs API request as per the Https method
private Response makeAPIRequestAsPerHTTPMethod(String url, HttpMethod httpMethod, RequestSpecification requestSpecification) { Response response = null; switch (httpMethod) { case GET: response = requestSpecification.get(url); break; case POST: response = requestSpecification.post(url); break; case PUT: response = requestSpecification.put(url); break; case PATCH: response = requestSpecification.patch(url); break; case DELETE: response = requestSpecification.delete(url); } return response; }
[ "public void run() {\n clientInstance.executeAsStringAsync(request, new APICallBack<HttpResponse>() {\r\n public void onSuccess(HttpContext context, HttpResponse response) {\r\n try {\r\n //Error handling using HTTP status codes\r\n int responseCode = response.getStatusCode();\r\n if ((responseCode < 200) || (responseCode > 206)) //[200,206] = HTTP OK\r\n throw new APIException(\"HTTP Response Not OK\", responseCode, response.getRawBody());\r\n\r\n //extract result from the http response\r\n LinkedHashMap<String, Object> result = APIHelper.deserialize(((HttpStringResponse)response).getBody());\r\n\r\n //let the caller know of the success\r\n callBack.onSuccess(context, result);\r\n } catch (APIException error) {\r\n //let the caller know of the error\r\n callBack.onFailure(context, error);\r\n } catch (Exception exception) {\r\n //let the caller know of the caught Exception\r\n callBack.onFailure(context, exception);\r\n }\r\n }\r\n public void onFailure(HttpContext context, Throwable error) {\r\n //let the caller know of the failure\r\n callBack.onFailure(context, error);\r\n }\r\n });\r\n }", "public void run() {\n String _baseUri = Configuration.getBaseUri();\r\n\r\n //prepare query string for API call\r\n StringBuilder _queryBuilder = new StringBuilder(\"/news/574efc7969702d370a130000\");\r\n\r\n ///process query parameters\r\n Map<String, Object> _queryParameters = new HashMap<String, Object>();\r\n _queryParameters.put(\"lang\", lang);\r\n _queryParameters.put(\"page\", page);\r\n _queryParameters.put(\"comments_count\", commentsCount);\r\n APIHelper.appendUrlWithQueryParameters(_queryBuilder, _queryParameters);\r\n\r\n //validate and preprocess url\r\n String _queryUrl = APIHelper.cleanUrl(new StringBuilder(_baseUri).append(_queryBuilder));\r\n\r\n //load all headers for the outgoing API request\r\n Map<String, String> _headers = new HashMap<String, String>();\r\n _headers.put(\"authentication_token\", authenticationToken);\r\n _headers.put(\"session_id\", sessionId);\r\n _headers.put(\"user-agent\", BaseController.userAgent);\r\n _headers.put(\"accept\", \"application/json\");\r\n\r\n\r\n //prepare and invoke the API call request to fetch the response\r\n final HttpRequest _request = getClientInstance().get(_queryUrl, _headers, null);\r\n\r\n //invoke the callback before request if its not null\r\n if (getHttpCallBack() != null)\r\n {\r\n getHttpCallBack().OnBeforeRequest(_request);\r\n }\r\n\r\n //invoke request and get response\r\n getClientInstance().executeAsStringAsync(_request, new APICallBack<HttpResponse>() {\r\n public void onSuccess(HttpContext _context, HttpResponse _response) {\r\n try {\r\n\r\n //invoke the callback after response if its not null\r\n if (getHttpCallBack() != null)\t\n {\r\n getHttpCallBack().OnAfterResponse(_context);\r\n }\r\n\r\n //handle errors defined at the API level\r\n validateResponse(_response, _context);\r\n\r\n //extract result from the http response\r\n DynamicResponse _result = new DynamicResponse(_response);\r\n\r\n callBack.onSuccess(_context, _result);\r\n } catch (APIException error) {\r\n //let the caller know of the error\r\n callBack.onFailure(_context, error);\r\n } catch (Exception exception) {\r\n //let the caller know of the caught Exception\r\n callBack.onFailure(_context, exception);\r\n }\r\n }\r\n public void onFailure(HttpContext _context, Throwable _error) {\r\n //invoke the callback after response if its not null\r\n if (getHttpCallBack() != null)\r\n {\r\n getHttpCallBack().OnAfterResponse(_context);\r\n }\r\n\r\n //let the caller know of the failure\r\n callBack.onFailure(_context, _error);\r\n }\r\n });\r\n }", "public void run() {\n clientInstance.executeAsBinaryAsync(request, new APICallBack<HttpResponse>() {\r\n public void onSuccess(HttpContext context, HttpResponse response) {\r\n try {\r\n //Error handling using HTTP status codes\r\n int responseCode = response.getStatusCode();\r\n if ((responseCode < 200) || (responseCode > 206)) //[200,206] = HTTP OK\r\n throw new APIException(\"HTTP Response Not OK\", responseCode, response.getRawBody());\r\n\r\n //extract result from the http response\r\n InputStream result = response.getRawBody();\r\n //let the caller know of the success\r\n callBack.onSuccess(context, result);\r\n } catch (APIException error) {\r\n //let the caller know of the error\r\n callBack.onFailure(context, error);\r\n } catch (Exception exception) {\r\n //let the caller know of the caught Exception\r\n callBack.onFailure(context, exception);\r\n }\r\n }\r\n public void onFailure(HttpContext context, Throwable error) {\r\n //let the caller know of the failure\r\n callBack.onFailure(context, error);\r\n }\r\n });\r\n }", "public void run() {\n String _baseUri = Configuration.getBaseUri();\r\n\r\n //prepare query string for API call\r\n StringBuilder _queryBuilder = new StringBuilder(\"/news/580f73426d61725cae000000/increment_share_count\");\r\n\r\n ///process query parameters\r\n Map<String, Object> _queryParameters = new HashMap<String, Object>();\r\n _queryParameters.put(\"lang\", lang);\r\n APIHelper.appendUrlWithQueryParameters(_queryBuilder, _queryParameters);\r\n\r\n //validate and preprocess url\r\n String _queryUrl = APIHelper.cleanUrl(new StringBuilder(_baseUri).append(_queryBuilder));\r\n\r\n //load all headers for the outgoing API request\r\n Map<String, String> _headers = new HashMap<String, String>();\r\n _headers.put(\"user-agent\", BaseController.userAgent);\r\n\r\n\r\n //prepare and invoke the API call request to fetch the response\r\n final HttpRequest _request = getClientInstance().put(_queryUrl, _headers, null);\r\n\r\n //invoke the callback before request if its not null\r\n if (getHttpCallBack() != null)\r\n {\r\n getHttpCallBack().OnBeforeRequest(_request);\r\n }\r\n\r\n //invoke request and get response\r\n getClientInstance().executeAsStringAsync(_request, new APICallBack<HttpResponse>() {\r\n public void onSuccess(HttpContext _context, HttpResponse _response) {\r\n try {\r\n\r\n //invoke the callback after response if its not null\r\n if (getHttpCallBack() != null)\t\n {\r\n getHttpCallBack().OnAfterResponse(_context);\r\n }\r\n\r\n //handle errors defined at the API level\r\n validateResponse(_response, _context);\r\n\r\n //let the caller know of the success\r\n callBack.onSuccess(_context, _context);\r\n } catch (APIException error) {\r\n //let the caller know of the error\r\n callBack.onFailure(_context, error);\r\n } catch (Exception exception) {\r\n //let the caller know of the caught Exception\r\n callBack.onFailure(_context, exception);\r\n }\r\n }\r\n public void onFailure(HttpContext _context, Throwable _error) {\r\n //invoke the callback after response if its not null\r\n if (getHttpCallBack() != null)\r\n {\r\n getHttpCallBack().OnAfterResponse(_context);\r\n }\r\n\r\n //let the caller know of the failure\r\n callBack.onFailure(_context, _error);\r\n }\r\n });\r\n }", "public void run() {\n clientInstance.executeAsStringAsync(request, new APICallBack<HttpResponse>() {\r\n public void onSuccess(HttpContext context, HttpResponse response) {\r\n try {\r\n //Error handling using HTTP status codes\r\n int responseCode = response.getStatusCode();\r\n if ((responseCode < 200) || (responseCode > 206)) //[200,206] = HTTP OK\r\n throw new APIException(\"HTTP Response Not OK\", responseCode, response.getRawBody());\r\n\r\n //extract result from the http response\r\n List<FileInfo> result = APIHelper.deserialize(((HttpStringResponse)response).getBody(),\r\n new TypeReference<List<FileInfo>>(){});\r\n\r\n //let the caller know of the success\r\n callBack.onSuccess(context, result);\r\n } catch (APIException error) {\r\n //let the caller know of the error\r\n callBack.onFailure(context, error);\r\n } catch (IOException ioException) {\r\n //let the caller know of the caught IO Exception\r\n callBack.onFailure(context, ioException);\r\n } catch (Exception exception) {\r\n //let the caller know of the caught Exception\r\n callBack.onFailure(context, exception);\r\n }\r\n }\r\n public void onFailure(HttpContext context, Throwable error) {\r\n //let the caller know of the failure\r\n callBack.onFailure(context, error);\r\n }\r\n });\r\n }", "public void run() {\n clientInstance.executeAsStringAsync(request, new APICallBack<HttpResponse>() {\r\n public void onSuccess(HttpContext context, HttpResponse response) {\r\n try {\r\n //Error handling using HTTP status codes\r\n int responseCode = response.getStatusCode();\r\n if ((responseCode < 200) || (responseCode > 206)) //[200,206] = HTTP OK\r\n throw new APIException(\"HTTP Response Not OK\", responseCode, response.getRawBody());\r\n\r\n //extract result from the http response\r\n FileInfo result = APIHelper.deserialize(((HttpStringResponse)response).getBody(),\r\n new TypeReference<FileInfo>(){});\r\n\r\n //let the caller know of the success\r\n callBack.onSuccess(context, result);\r\n } catch (APIException error) {\r\n //let the caller know of the error\r\n callBack.onFailure(context, error);\r\n } catch (IOException ioException) {\r\n //let the caller know of the caught IO Exception\r\n callBack.onFailure(context, ioException);\r\n } catch (Exception exception) {\r\n //let the caller know of the caught Exception\r\n callBack.onFailure(context, exception);\r\n }\r\n }\r\n public void onFailure(HttpContext context, Throwable error) {\r\n //let the caller know of the failure\r\n callBack.onFailure(context, error);\r\n }\r\n });\r\n }", "public void run() {\n getClientInstance().executeAsStringAsync(_request, new APICallBack<HttpResponse>() {\n public void onSuccess(HttpContext _context, HttpResponse _response) {\n try {\n\n //invoke the callback after response if its not null\n if (getHttpCallBack() != null)\t\n {\n getHttpCallBack().OnAfterResponse(_context);\n }\n\n //handle errors defined at the API level\n validateResponse(_response, _context);\n\n //extract result from the http response\n String _responseBody = ((HttpStringResponse)_response).getBody();\n Employee _result = APIHelper.deserialize(_responseBody,\n new TypeReference<Employee>(){});\n\n //let the caller know of the success\n callBack.onSuccess(_context, _result);\n } catch (APIException error) {\n //let the caller know of the error\n callBack.onFailure(_context, error);\n } catch (IOException ioException) {\n //let the caller know of the caught IO Exception\n callBack.onFailure(_context, ioException);\n } catch (Exception exception) {\n //let the caller know of the caught Exception\n callBack.onFailure(_context, exception);\n }\n }\n public void onFailure(HttpContext _context, Throwable _error) {\n //invoke the callback after response if its not null\n if (getHttpCallBack() != null)\t\n {\n getHttpCallBack().OnAfterResponse(_context);\n }\n\n //let the caller know of the failure\n callBack.onFailure(_context, _error);\n }\n });\n }", "public interface HTTPSRequest {\n\n //new api\n @GET(\"uk/api/shops\")\n Call<Shops> getShops(@Query(\"limit\") int limit, @Query(\"name\") String name, @Query(\"lat\") Double lat, @Query(\"lng\") Double lng, @Query(\"city_id\") long city_id, @Query(\"fields\") String fields, @Query(\"offset\") int offset);\n\n @GET(\"uk/api/cities/{city_id}\")\n Call<CityInfo> getCityInfoUkrUkr(@Path(\"city_id\") long cityId);\n\n @GET(\"/api/cities/{city_id}\")\n Call<CityInfo> getCityInfoUkrRu(@Path(\"city_id\") long cityId);\n\n @GET(\"api/categories\")\n Call<Categories> getCategories(@Query(\"limit\") int limit, @Query(\"offset\") int offset, @Query(\"city_id\") Long city_id, @Query(\"fields\") String fields);\n\n /*@Headers({\n \"Guid:3d22625a-f62e-450e-a44f-6ccdd2abaedb\",\n \"Signature:7227958f79d8f01b938c811fa03257924e4f7130a0db569c032fbfa87f64adc7\"})\n @GET(\"restaurant/getAll\")\n Call<List<Cafe>> getAll();*/\n\n /*@Headers({\n \"Guid:3d22625a-f62e-450e-a44f-6ccdd2abaedb\",\n \"Signature:7227958f79d8f01b938c811fa03257924e4f7130a0db569c032fbfa87f64adc7\"})\n @POST(\"client/come\")\n Call<ComeToRestaurant> comeToRestoraunt(@Body UserIdentification toRestoraunt);*/\n}", "public void run() {\n clientInstance.executeAsStringAsync(request, new APICallBack<HttpResponse>() {\r\n public void onSuccess(HttpContext context, HttpResponse response) {\r\n try {\r\n //Error handling using HTTP status codes\r\n int responseCode = response.getStatusCode();\r\n if ((responseCode < 200) || (responseCode > 206)) //[200,206] = HTTP OK\r\n throw new APIException(\"HTTP Response Not OK\", responseCode, response.getRawBody());\r\n\r\n //extract result from the http response\r\n FilePermission result = APIHelper.deserialize(((HttpStringResponse)response).getBody(),\r\n new TypeReference<FilePermission>(){});\r\n\r\n //let the caller know of the success\r\n callBack.onSuccess(context, result);\r\n } catch (APIException error) {\r\n //let the caller know of the error\r\n callBack.onFailure(context, error);\r\n } catch (IOException ioException) {\r\n //let the caller know of the caught IO Exception\r\n callBack.onFailure(context, ioException);\r\n } catch (Exception exception) {\r\n //let the caller know of the caught Exception\r\n callBack.onFailure(context, exception);\r\n }\r\n }\r\n public void onFailure(HttpContext context, Throwable error) {\r\n //let the caller know of the failure\r\n callBack.onFailure(context, error);\r\n }\r\n });\r\n }", "protected void callApi() {\n RequestQueue queue = Volley.newRequestQueue(this);\n\n // Construct query url\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"Asia/Singapore\"));\n String currDateTime = sdf.format(new Date());\n try {\n currDateTime = URLEncoder.encode(currDateTime, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // do nothing\n }\n String url = apiUrl + \"?date_time=\" + currDateTime;\n\n // Request a JSON response from the provided URL.\n JsonObjectRequest jsonRequest = new JsonObjectRequest(\n Request.Method.GET,\n url,\n null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.d(\"callApi\", \"Response: \" + response.toString());\n updateMap(response);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"callApi\", \"Error: \" + error.toString());\n Toast.makeText(\n MapsActivity.this,\n \"Error getting PSI updates. Please check connectivity.\",\n Toast.LENGTH_LONG\n ).show();\n }\n }\n ) {\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"api-key\", apiKey);\n\n return headers;\n }\n };\n\n // Add the request to the RequestQueue.\n queue.add(jsonRequest);\n }", "public static String sendRequest2() {\n\t\t\t\t\n\t\t\tString link = \"https://sv443.net/jokeapi/category/\" + type;\n\t\t\t\n\t\t\t//this contains the response from api hit\n\t\t\tStringBuilder response = new StringBuilder();\n\n\t\t\ttry{\n\t\t\t\t\n\t\t\t URL url = new URL(link);\n\n\t\t\t HttpURLConnection con = (HttpURLConnection) url.openConnection();\n\t\t\t \n\t\t\t //the api is designed to work primarily with IE. so I change that to chrome.\n\t\t\t con.addRequestProperty(\"User-Agent\", \"chrome\"); \n\n\t\t\t //request set to get\n\t\t\t con.setRequestMethod(\"GET\");\n\n\t\t\t BufferedReader input = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\n\t\t\t String line;\n\n\t\t\t //as long as there is more data to intake\n\t\t\t while ((line = input.readLine()) != null){\n\n\t\t\t response.append(line);\n\n\t\t\t }\n\t\n\n\t\t\t input.close();\t\t \n\n\t\t\t return response.toString();\n\n\t\t\t}\n\n\t\t\tcatch(Exception e){return \"!!! Error encounterd !!!: \" + e;}\n\n\t\t\t\n\n\t\t\t\n\t\t}", "protected abstract RESTResult internalDoRequest(RequestMethod method,\n\t\t\tString urlString, Authenticator auth, byte[] payload,\n\t\t\tMap<String, String> headers) throws IOException;", "private static void testInstance() {\n HttpApi api = HttpApi.getInstance();\n\n // Add headers to be added to every api request\n api.addHeader(\"Authorization\", \"MyToken123\");\n\n // Prepare the HTTP request & asynchronously execute HTTP request\n Call<HttpApi.HttpBinResponse> call = api.getService().postWithJson(new HttpApi.LoginData(\"username\", \"secret\"));\n call.enqueue(new Callback<HttpApi.HttpBinResponse>() {\n /**\n * onResponse is called when any kind of response has been received.\n */\n public void onResponse(Response<HttpApi.HttpBinResponse> response, Retrofit retrofit) {\n // http response status code + headers\n System.out.println(\"Response status code: \" + response.code());\n\n // isSuccess is true if response code => 200 and <= 300\n if (!response.isSuccess()) {\n // print response body if unsuccessful\n try {\n System.out.println(response.errorBody().string());\n } catch (IOException e) {\n // do nothing\n }\n return;\n }\n\n // if parsing the JSON body failed, `response.body()` returns null\n HttpApi.HttpBinResponse decodedResponse = response.body();\n if (decodedResponse == null) return;\n\n // at this point the JSON body has been successfully parsed\n System.out.println(\"Response (contains request infos):\");\n System.out.println(\"- url: \" + decodedResponse.url);\n System.out.println(\"- ip: \" + decodedResponse.origin);\n System.out.println(\"- headers: \" + decodedResponse.headers);\n System.out.println(\"- args: \" + decodedResponse.args);\n System.out.println(\"- form params: \" + decodedResponse.form);\n System.out.println(\"- json params: \" + decodedResponse.json);\n }\n\n /**\n * onFailure gets called when the HTTP request didn't get through.\n * For instance if the URL is invalid / host not reachable\n */\n public void onFailure(Throwable t) {\n System.out.println(\"onFailure\");\n System.out.println(t.getMessage());\n }\n });\n }", "private void executeRequest(HttpRequestBase request) throws Exception {\n jsonResponse = null;\n try {\n response = httpclient.execute(request);\n entity = response.getEntity();\n //System.out.println(response.getStatusLine().getStatusCode());\n if (entity != null) {\n stringResponse = EntityUtils.toString(entity);\n printResponse(stringResponse);\n jsonResponse = JSON.parseObject(stringResponse);\n handleStatus(jsonResponse.getInteger(\"status\"));\n }\n } finally {\n if (response != null) {\n //Release the resources occupied by the connection after use\n response.close();\n }\n }\n\n }", "public Response makeHttpCall(Request request) {\n\t\tOkHttpClient client = getHttpClient();\n\t\tthis.log.info(\"DataSourceUtils.makeHttpCall() called with url: {} header: {} method: {}\",request.url(), request.headers(),request.method()); //$NON-NLS-1$\n\t\ttry {\n\t\t\treturn client == null ? null : client.newCall(request).execute();\n\t\t} catch (Exception e) {\n\t\t\tthis.log.error(\"makeHttpCall() Exception while calling the external api for url {} and exception {}\", //$NON-NLS-1$\n\t\t\t\t\trequest.url(), e);\n\t\t\tthis.log.info(\"makeHttpCall {}\", HydroPerfConstants.METHOD_EXIT); //$NON-NLS-1$\n\t\t\tthrow new HydroPerfException(\"Exception calling the api : \"+e.getMessage()); //$NON-NLS-1$\n\t\t}\n\t}", "private void callAPI() {\n\n ApiService apiService = EasyRetro.setServices(ApiService.class);\n\n Call<ResModel> call = apiService.test(\"https://raw.githubusercontent.com/manojbhadane/Kotlin-LambdaExpression/master/sample.json\");\n\n EasyRetro.request(call, new ResponseListener<ResModel>() {\n @Override\n public void onResponse(ResModel model, Response response) {\n Toast.makeText(MainActivity.this, model.getData().getName(), Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onError(String msg, Response response) {\n Toast.makeText(MainActivity.this, msg, Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void run() {\n try\n {\n final DataInputStream input = new DataInputStream(this.client.getInputStream());\n final PrintStream output = new PrintStream(this.client.getOutputStream());\n try\n {\n final byte[] requestBuffer = new byte[MAX_REQUEST_SIZE];\n if (input.read(requestBuffer) < 1)\n {\n respondBadReq(SupportedHttpMethod.Get, output);\n }\n final String[] request = (new String(requestBuffer, StandardCharsets.UTF_8)).split(\"\\r\\n\");\n final StringTokenizer tokens = new StringTokenizer(request[0]);\n final SupportedHttpMethod method = toMethod(tokens.nextToken());\n final Path desired = root(this.root, Path.of(tokens.nextToken()));\n System.out.printf(\"%s:%s REQ -> %s %s \", this.client.getInetAddress().getCanonicalHostName(),\n this.client.getPort(), method, desired);\n if (Files.exists(desired))\n {\n respondOK(method, desired, output);\n }\n else\n {\n respondNotFound(method, output);\n }\n }\n catch (final Exception err)\n {\n respondInternalServerError(SupportedHttpMethod.Get, output);\n err.printStackTrace();\n }\n }\n catch (final IOException err)\n {\n System.err.printf(\"I/O Error%n\");\n err.printStackTrace();\n }\n }", "public APIResponse getAll() {\n // set thirdPartyRequest Url and HttpMethod\n request.setRequestType(HttpMethod.GET);\n request.setUrl(\"https://jsonplaceholder.typicode.com/posts\");\n\n // set APIResponse body, status, and message depending on outcome of try-catch\n try {\n response.setBody(handler.callAPI(request, Object.class));\n response.setStatus(handler.getStatus());\n } catch (RestClientException httpError) {\n response.setStatus(handler.getStatus());\n } catch (Exception otherError){\n response.setMessage(\"Unable to process request: \"+ otherError.getMessage());\n }\n // return APIResponse object to resource\n return response;\n }", "private void httpRequest() throws Exception {\r\n String line;\r\n Scanner requestStream = new Scanner(ClientConnection.getInputStream());\r\n String requestParameters = \"\";\r\n //get request parameters\r\n while(true) {\r\n line = requestStream.next();\r\n if (line.equalsIgnoreCase(\"Request:\")) {\r\n requestParameters = requestStream.next();\r\n break;\r\n }\r\n requestParameters = line;\r\n }\r\n //process request parameters\r\n processRequest(requestParameters);\r\n }", "public void getDataFromAPI()\n {\n Response response = given().header(\"content-type\",\"application/json\").baseUri(baseURI).\n when().get(\"/posts\").\n then().assertThat().statusCode(200).assertThat().\n extract().response();\n printResponse(response.getBody().asString());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Searches for detachable entities in a
public static ArrayList<Entity> findHangingEntities(final Block block) { ArrayList<Entity> entities = new ArrayList<Entity>(); Collection<Entity> foundEntities = block.getLevel().getChunk(block.getChunkX(), block.getChunkZ()).getEntities().values(); if (foundEntities.size() > 0) { for(Entity e : foundEntities){ // Some modded servers seems to list entities in the chunk // that exists in other worlds. No idea why but we can at // least check for it. // https://snowy-evening.com/botsko/prism/318/ if (!block.getLevel().equals(e.getLevel())) continue; // Let's limit this to only entities within 1 block of the current. if( block.getLocation().distance( e.getLocation() ) < 2 && isHangingEntity(e) ){ entities.add(e); } } } return entities; }
[ "Collection<Attachment> findAll();", "@Override\n\tpublic List<Feeder> find(DetachedCriteria detachedCriteria) {\n\t\treturn this.getHibernateDaoHelper().findByCriteria(detachedCriteria);\n\t}", "public void testAllDetach() throws Exception {\n OpenJPAEntityManagerFactorySPI emf =\n (OpenJPAEntityManagerFactorySPI)OpenJPAPersistence.\n createEntityManagerFactory(\"DetachAllXMLPU\",\n \"org/apache/openjpa/persistence/detach/\" +\n \"detach-persistence.xml\");\n\n try {\n verifyCascadeDetach(emf, true);\n } finally {\n cleanupEMF(emf);\n }\n }", "public void detachMXMTest1() throws Fault\n {\n\n A aRef = new A(\"1\", \"a1\", 1);\n B b1 = new B(\"1\", \"b1\", 1);\n B b2 = new B(\"2\", \"b2\", 2);\n int foundB = 0;\n String[] expectedResults = new String[] {\"1\", \"2\"};\n boolean pass1 = true;\n boolean pass2 = false;\n\n try {\n\n TLogger.log(\"Begin detachMXMTest1\");\n createA(aRef);\n\n TLogger.log(\"Call clean to detach\");\n getEntityManager().clear();\n\n getEntityTransaction().begin();\n\n if ( ! getEntityManager().contains(aRef) ) {\n TLogger.log(\"Status is false as expected, try merge\");\n // AJ ### Changed this to use aRef2 since merge returns the\n // attached object; cant add to the detached one\n A aRef2 = getEntityManager().merge(aRef);\n\t\t\taRef2.getBCol().add(b1);\n TLogger.log(\"added b1 to bcol\");\n\t\t\taRef2.getBCol().add(b2);\n TLogger.log(\"added b2 to bcol\");\n getEntityManager().merge(aRef2);\n TLogger.log(\"merged updated a\");\n\n TLogger.log(\"findA and getBCol\");\n \tA a1 = getEntityManager().find(A.class, \"1\");\n\t\tCollection newCol = a1.getBCol();\n\n \tif (newCol.size() != 2) {\n \tTLogger.log(\"ERROR: detachMXMTest1: Did not get expected results.\"\n + \"Expected Collection Size of 2 B entities, got: \"\n + newCol.size());\n \t pass1 = false;\n \t} else if (pass1) {\n\n \tIterator i1 = newCol.iterator();\n \twhile (i1.hasNext()) {\n \t TLogger.log(\"Check Collection B entities\");\n \t B c1 = (B)i1.next();\n\t\n \t for(int l=0; l<2; l++) {\n \t if (expectedResults[l].equals((String)c1.getBId()) ) {\n \t TLogger.log(\"Found B Entity : \"\n \t \t+ (String)c1.getBName() );\n \t foundB++;\n \t break;\n \t }\n \t }\n\t\t}\n \t }\n\t\n } else {\n TLogger.log(\"Entity is not detached, cannot proceed with test.\");\n pass1 = false;\n pass2 = false;\n }\n\n getEntityTransaction().commit();\n\t\n\n } catch (Exception e) {\n org.datanucleus.util.NucleusLogger.GENERAL.info(\"Exception thrown in commit \", e);\n \tTLogger.log(\"Unexpected Exception caught during commit:\" + e );\n\tpass1 = false;\n\tpass2 = false;\n } finally {\n try {\n if ( getEntityTransaction().isActive() ) {\n getEntityTransaction().rollback();\n }\n } catch (Exception fe) {\n TLogger.log(\"ERROR: Unexpected exception rolling back TX:\" + fe );\n fe.printStackTrace();\n }\n }\n\n if (foundB != 2) {\n TLogger.log(\"ERROR: detachMXMTest1: Did not get expected results\");\n pass2 = false;\n } else {\n TLogger.log(\n \"detachMXMTest1: Expected results received\");\n pass2 = true;\n }\n\n if (!pass1 || !pass2)\n throw new Fault( \"detachMXMTest1 failed\");\n }", "public Collection<Object> getDetachmentRoots()\n {\n if (detachmentRoots == null)\n {\n return Collections.EMPTY_LIST;\n }\n return Collections.unmodifiableCollection(detachmentRoots);\n }", "Collection< Attachment > findAttachments( QueryItem[] query );", "List<TAttach> selectByExample(TAttachExample example);", "public Vector<Entity> getDescendants()\r\n\t{\r\n\t\tVector<Entity> descendants = new Vector<Entity>();\r\n\t\t// get the model\r\n\t\tfor (DBSchema element : (this.getRoot()).getAllChildren())\r\n\t\t{\r\n\t\t\tif (element.getClass().equals(Entity.class))\r\n\t\t\t{\r\n\t\t\t\tif (((Entity) element).hasAncestor()\r\n\t\t\t\t\t\t&& ((Entity) element).getAncestor().getName().equals(this.getName()))\r\n\t\t\t\t{\r\n\t\t\t\t\tdescendants.add((Entity) element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn descendants;\r\n\t}", "public List<?> findAllByCriteria(DetachedCriteria detachedCriteria) {\n Criteria criteria = detachedCriteria\r\n .getExecutableCriteria(getHibernateSession());\r\n return criteria.list();\r\n }", "public void testFind() throws EMagineException {\r\n\t\t\r\n\t\tCollection <EntityType> entities = createEntityCollection(11,15);\r\n\t\tassertEquals(15, entities.size());\r\n\t\t\r\n\t\tSearchParams searchParams = createSearchParams();\r\n\t\t\r\n\t\tDAOManager.beginTransaction();\r\n\t\tfor(EntityType baseEntity : entities)\r\n\t\t{\r\n\t\t\tgetDAO().create(baseEntity);\r\n\t\t}\r\n\t\tDAOManager.commitTransaction();\r\n\t\t\r\n\t\tCollection <EntityType> entitiesFilter = new ArrayList<EntityType>();\r\n\t\tfor(int index=16;index<20;index++)\r\n\t\t{\r\n\t\t\tEntityType entityType = createEntityForSearchParams(searchParams,index);\r\n\t\t\tassertNotNull(entityType);\r\n\t\t\tentitiesFilter.add(entityType);\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tDAOManager.beginTransaction();\r\n\t\tfor(EntityType baseEntity : entitiesFilter)\r\n\t\t{\r\n\t\t\tgetDAO().create(baseEntity);\r\n\t\t}\r\n\t\tDAOManager.commitTransaction();\r\n\t\t\r\n\t\tList <EntityType> entitiesRequest = getDAO().find(searchParams);\r\n\r\n\t\tassertEquals(entitiesFilter.size(),entitiesRequest.size());\r\n\t\tfor (EntityType entity : entitiesFilter) {\r\n\t\t\tEntityType entity2 = getElement(entitiesRequest,entity);\r\n\t\t\tassertNotNull(entity2);\r\n\t\t\tcompareEntity(entity2, entity);\r\n\t\t}\r\n\r\n\t\tDAOManager.beginTransaction();\r\n\t\tfor (EntityType entity : entitiesFilter) {\r\n\t\t\tgetDAO().delete(entity);\r\n\t\t}\r\n\t\tfor (EntityType entity : entities) {\r\n\t\t\tgetDAO().delete(entity);\r\n\t\t}\r\n\t\tDAOManager.commitTransaction();\r\n\t}", "List<T> merge(List<T> detachedEntities);", "public List<Entity> getEntitiesAtDepth(Depth d) {\n\t\tList<Entity> filtered = new ArrayList<>();\n\n\t\tfor (Entity e : getAllEntities()) {\n\t\t\tif (e.getDepth() == d) {\n\t\t\t\tfiltered.add(e);\n\t\t\t}\n\t\t}\n\n\t\treturn filtered;\n\t}", "java.util.List<com.google.datastore.v1.EntityResult> getFoundList();", "public ManagedEntity[] searchManagedEntities(boolean recurse) throws InvalidProperty, RuntimeFault, RemoteException {\r\n String[][] typeinfo = new String[][]{new String[]{\"ManagedEntity\",}};\r\n return searchManagedEntities(typeinfo, recurse);\r\n }", "FetchPlan setDetachmentRoots(Collection<?> roots);", "List<Attachment> selectAll();", "Iterable<EntityReference> entityReferenceOf( ManyAssociation assoc );", "public static List<OMNode> getDetachedMatchingElements(SOAPEnvelope envelope, SynapseXPath expression)\n throws JaxenException {\n\n List<OMNode> elementList = new ArrayList<OMNode>();\n Object o = expression.evaluate(envelope);\n if (o instanceof OMNode) {\n elementList.add(((OMNode) o).detach());\n } else if (o instanceof List) {\n for (Object elem : (List) o) {\n if (elem instanceof OMNode) {\n elementList.add(((OMNode) elem).detach());\n }\n }\n }\n return elementList;\n }", "List<Entry> findAll();", "public abstract List<Vertex> findDeletable(List<Vertex> startVertexes);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo que sera llamado si la aplicacion se encuentra en primer plano. Pondra a la escucha el servicio de notificaciones a traves de un BroadcastReciver. Tambiene stablecera una variable estatica para el apoyo de este
@Override public void onResume() { super.onResume(); Servicio_notificaciones.ESTADOAPP=false; LocalBroadcastManager.getInstance(this).registerReceiver(mMessageReceiver, new IntentFilter("EVENT_SNACKBAR")); }
[ "public void setLeyendo(){\n leyendo = true;\n //localService.errorMessage(\"leyendo TRUE | delay 0\");\n new Thread(new Runnable() { // Se crea un nuevo hilo\n public void run() {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n leyendo = false;\n //localService.errorMessage(\"leyendo FALSE | delay 100\");\n }\n }).start();\n }", "public void receiveNightmare() {\n hasNightmares = true;\n }", "public void promijeniKontrolu() {\n\t\tkontrola = !kontrola;\n\t}", "public void teleopPeriodic() {\n\t\tCameraServer.getInstance().getVideo();\n\t\tScheduler.getInstance().run();\n\t\tmDriveTrain.printEncoder();\n\t\tRobot.mDriveTrain.getCurrent(12);\n\t}", "private void attivaLocalBroadcastReceiverRecuperaCambio() {\n\t\tfinal LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(this);\n\t\tIntentFilter intentFilter = new IntentFilter(CostantiPubbliche.LOCAL_BROADCAST_RECUPERA_CAMBIO);\n\t\tmLocalReceiverRecuperaCambio = new BroadcastReceiver() {\n\t\t\t@Override\n\t\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\t\tfloat result = intent.getFloatExtra(EXTRA_CAMBIO, -1);\n\n\t\t\t\tif(result == -1) {\n\t\t\t\t\tnew MioToast(EntrateAggiungi.this, getString(R.string.toast_valute_dettaglioValuta_erroreRecuperoCambio)).visualizza(Toast.LENGTH_SHORT);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttassoCambio = result;\n\t\t\t\t\t//salvo il tasso di cambio nelle preferenze\n\t\t\t\t\tSharedPreferences prefCambi = getSharedPreferences(\"cambi\", MODE_PRIVATE);\n\t\t\t\t\tSharedPreferences.Editor prefCambiEditor = prefCambi.edit();\n\t\t\t\t\tprefCambiEditor.putFloat(valutaCorrente, tassoCambio);\n\t\t\t\t\tprefCambiEditor.apply();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//aggiorno la GUI\n\t\t\t\t\tfindViewById(R.id.aggiungi_voce_pbAggiornamento).setVisibility(View.GONE);\n\t\t\t\t\tfindViewById(R.id.aggiungi_voce_tvConnessioneYahoo).setVisibility(View.GONE);\n\t\t\t\t\tfindViewById(R.id.aggiungi_voce_tvConversione).setVisibility(View.VISIBLE);\n\t\t\t\t\n\t\t\t\t\taggiornaAnteprimaConversione();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlocalBroadcastManager.unregisterReceiver(mLocalReceiverRecuperaCambio);\n\t\t\t\t\n\t\t\t}\t\t\n\t\t};\n\t\tlocalBroadcastManager.registerReceiver(mLocalReceiverRecuperaCambio, intentFilter);\n\t}", "public void getStatusAndBroadcast() {\n if (d_getStatusAndBroadcast) Log.i(TAG, \"getStatusAndBroadcast() \");\n\n\n if (isConnected()) {\n if (isAppInForeground()) {\n if (((MainActivity) context).getMGameManager().isLoaded()) {\n broadcastClientStatus(BondfireMessage.STATUS_GAME);\n } else {\n broadcastClientStatus(BondfireMessage.STATUS_LOBBY);\n }\n } else {\n broadcastClientStatus(BondfireMessage.STATUS_BUSY);\n }\n }\n }", "public void sincronizza() {\n /* variabili e costanti locali di lavoro */\n Object valore;\n Campo campo;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* se è selezionato solo extra il check raggruppa pensioni\n * viene spento e disabilitato */\n campo = this.getCampo(NOME_CAMPO_RAGGRUPPA);\n campo.setModificabile(true);\n valore = this.getValore(NOME_CAMPO_OPZIONI);\n if (valore.equals(Conto.TipiStampa.extra.ordinal() + 1)) {\n campo.setValore(false);\n campo.setModificabile(false);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void teleopPeriodic() {\n \t\n Scheduler.getInstance().run();\n SmartDashboard.putNumber(\"YAW\", Robot.drivetrain.getYaw());\n\n SmartDashboard.putNumber(\"right encoder get\", drivetrain.getRightEncoderDistance());\n SmartDashboard.putNumber(\"left encoder get\", drivetrain.getLeftEncoderDistance());\n \n SmartDashboard.putBoolean(\"leftToteBump:\", Robot.toteGrab.getLeftMotor().isFwdLimitSwitchClosed());\n SmartDashboard.putBoolean(\"rightToteBump:\", Robot.toteGrab.getRightMotor().isFwdLimitSwitchClosed());\n SmartDashboard.putBoolean(\"Bump Switch\", Robot.intakeRollerArms.getBumpSwitch());\n\n SmartDashboard.putNumber(\"Telescope Position\", Robot.telescope.getPotVal());\n \n \tSmartDashboard.putNumber(\"Left fork get\", Robot.toteGrab.getLeftPos());\n \tSmartDashboard.putNumber(\"Right fork get\", Robot.toteGrab.getRightPos());\n\t\n SmartDashboard.putNumber(\"Left Tote Distance\", Robot.toteGrab.getLeftDistanceSensor());\n \n SmartDashboard.putNumber(\"Codriver POV\", oi.coStick.getPOV());\n \n if(Robot.toteGrab.getRightLimit()){\n \t\tRobot.toteGrab.resetRightEnc();\n\t\t}\n if(Robot.toteGrab.getLeftLimit()){\n \t\tRobot.toteGrab.resetLeftEnc();\n\t\t}\n \n }", "public void cierra(){\n vcerradura=true;\r\n }", "private void updateMonitorCliente() {\n /* variabili e costanti locali di lavoro */\n Date data=null;\n int chiaveRiga;\n boolean spuntato;\n int codCliente = 0;\n boolean capo = false;\n\n try { // prova ad eseguire il codice\n\n /**\n * controlla se la riga selezionata è spuntata\n * (se non lo è non deve controllare il cliente)\n */\n chiaveRiga = this.getLista().getChiaveSelezionata();\n spuntato = this.getModulo()\n .query()\n .valoreBool(ConfermaArrivoDialogo.Nomi.check.get(), chiaveRiga);\n\n\n if (spuntato) {\n\n /* recupera il codice del cliente */\n codCliente = this.getModulo()\n .query()\n .valoreInt(ConfermaArrivoDialogo.Nomi.codCliente.get(), chiaveRiga);\n\n /* controlla se è il Capogruppo della Scheda di Notifica */\n capo = this.getDialogo().isCapoNotifica(codCliente);\n\n /* recupera la data di arrivo */\n data = this.getDialogo().getDataArrivo();\n\n }// fine del blocco if\n\n /* avvia il monitor con i dati */\n this.getMonitor().avvia(codCliente, data, capo);\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n } // fine del blocco try-catch\n\n }", "private void m27072c(C17431a c17431a) {\n if (Log.isLoggable(\"NotifManCompat\", 3)) {\n new StringBuilder(\"Processing component \").append(c17431a.componentName).append(\", \").append(c17431a.f3886FS.size()).append(\" queued tasks\");\n }\n if (!c17431a.f3886FS.isEmpty()) {\n boolean z;\n if (c17431a.f3884FQ) {\n z = true;\n } else {\n c17431a.f3884FQ = this.mContext.bindService(new Intent(\"android.support.BIND_NOTIFICATION_SIDE_CHANNEL\").setComponent(c17431a.componentName), this, 33);\n if (c17431a.f3884FQ) {\n c17431a.retryCount = 0;\n } else {\n new StringBuilder(\"Unable to bind to listener \").append(c17431a.componentName);\n this.mContext.unbindService(this);\n }\n z = c17431a.f3884FQ;\n }\n if (!z || c17431a.f3885FR == null) {\n m27071b(c17431a);\n return;\n }\n while (true) {\n C17434e c17434e = (C17434e) c17431a.f3886FS.peek();\n if (c17434e == null) {\n break;\n }\n try {\n if (Log.isLoggable(\"NotifManCompat\", 3)) {\n new StringBuilder(\"Sending task \").append(c17434e);\n }\n c17434e.mo18302a(c17431a.f3885FR);\n c17431a.f3886FS.remove();\n } catch (DeadObjectException e) {\n if (Log.isLoggable(\"NotifManCompat\", 3)) {\n new StringBuilder(\"Remote service has died: \").append(c17431a.componentName);\n }\n } catch (RemoteException e2) {\n new StringBuilder(\"RemoteException communicating with \").append(c17431a.componentName);\n }\n }\n if (!c17431a.f3886FS.isEmpty()) {\n m27071b(c17431a);\n }\n }\n }", "@Override\r\n\t \r\n\tpublic void teleopPeriodic() {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tintakeVic.valueUpdated(); //Unfollowing TalonSRX from auton mode\r\n\t\t\r\n\t\tpneumatics.start();\r\n\t\tarmC.armStart();\r\n\t\tdTI.dTIntake();\r\n\t\t//System.out.println(\"Left encoder: \" + lTal.getSelectedSensorPosition(0));\r\n\t\t//System.out.println(\"Right encoder: \" + rTal.getSelectedSensorPosition(0));\r\n\t}", "private void atualizarStatusBoletim() {\r\n\t\t\r\n\t\tStatusBoletim statusTmp = StatusBoletim.APROVADO;\r\n\t\t\r\n\t\tboolean lancTodasNotas = true;\r\n\t\t\r\n\t\tfor(DetalheBoletim det : detalheBoletims ) {\r\n\t\t\tif( !det.isLancadaNota4Bimestre() ) {\r\n\t\t\t\tlancTodasNotas = false;\r\n\t\t\t} else {\r\n\t\t\t\t// verifica se o aluno ficou reprovado em alguma disciplina\r\n\t\t\t\tif(StatusBoletim.REPROVADO.equals( det.getStatusDisciplina()) ) { \r\n\t\t\t\t\tstatusTmp = StatusBoletim.REPROVADO;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ( !lancTodasNotas ) {\r\n\t\t\tstatusBoletim = StatusBoletim.LANCAMENTO_PENDENTE;\r\n\t\t} else {\r\n\t\t\tstatusBoletim = statusTmp;\r\n\t\t}\r\n\t}", "@Override\n protected void onResume() {\n // TODO Auto-generated method stub\n super.onResume();\n\n setUpReceiver();\n //treci korak, kako bi ta metoda bila pozvana i vidljiva nasa poslata notifikacija\n setUpReceiver2();\n setUpManager();\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\t//DrivetrainSubsystem.getInstance().populateLog(startTime);\n\t\tSmartDashboard.putNumber(\"Time Remaining\", 150 - (Timer.getFPGATimestamp() - startTime));\n\t\tif (!Robot.bot.getName().equals(\"ProgrammingBot\")){\n\t\t\tSmartDashboard.putNumber(\"Peg Angle\", table.getNumber(\"Degrees\", 0.0));\n\t\t\tShooterSubsystem.getInstance().sendDashboardData();\n\t\t\tDeflectorSubsystem.getInstance().sendDashboardData();\n\t\t\tTurretSubsystem.getInstance().sendDashboardData();\n\t\t\tUltrasonicSubsystem.getInstance().sendDashboardData();\n\t\t\tGyroSubsystem.getInstance().sendDashboardData();\n\t\t\tSmartDashboard.putBoolean(\"Climber is Running\",RobotState.getInstance().getClimberStatus());\n\t\t\tSmartDashboard.putBoolean(\"Gear intake is Running\",RobotState.getInstance().getGearIntakeRunning());\n\t\t\tDrivetrainSubsystem.getInstance().sendDashboardData();\n\t\t\tGearIntakeSubsystem.getInstance().sendDashboardData();\n\t\t}\n\t}", "@Override\n public void onConnected(Bundle connectionHint) {\n String famelicusString = famelicus.generateString();\n String versao = Double.toString(famelicus.getVersaoBD());\n// mUpdatesIntent.putExtra(\"listaPA\", famelicusString);\n// mUpdatesIntent.putExtra(\"versao\", versao);\n// //Log.d(\"versao\", versao);\n// //mUpdatesIntent.addFlags()\n// PendingIntent pendingIntent = PendingIntent.getService(this, 0,\n// mUpdatesIntent,\n// PendingIntent.FLAG_UPDATE_CURRENT);\n //LocationServices.FusedLocationApi.requestLocationUpdates(mClient, mLocationRequest, pendingIntent);\n// Location location = LocationServices.FusedLocationApi.getLastLocation(mClient);\n// Log.d(\"coordenadas esoo\", location.getLatitude() + \" lng: \" + location.getLongitude());\n ArrayList<Geofence> geofences = new ArrayList<Geofence>();\n for(PontoAlimentacao pa: famelicus.getListaPA()){\n geofences.add(new Geofence.Builder()\n .setRequestId(Integer.toString(pa.getId()))\n .setCircularRegion(pa.getLocalizacao().getLat(), pa.getLocalizacao().getLng(), 50).setExpirationDuration(Geofence.NEVER_EXPIRE)\n .setTransitionTypes(Geofence.GEOFENCE_TRANSITION_ENTER\n | Geofence.GEOFENCE_TRANSITION_DWELL)\n .setLoiteringDelay(10000)\n .build());\n }\n pendingIntent = PendingIntent.getService(this, 0,\n new Intent(this, Servico.class).putExtra(\"listaPA\", famelicusString).putExtra(\"versao\", versao),\n PendingIntent.FLAG_UPDATE_CURRENT);\n LocationServices.GeofencingApi.addGeofences(\n mClient, geofences, pendingIntent);\n }", "public int getNetworkPlatformReceptions() { return recPFReseau; }", "public void teleopPeriodic() {\n \t//do some camera stuff\n \ttry{\n \t\tNIVision.IMAQdxGrab(session, frame, 1);\n CameraServer.getInstance().setImage(frame);\n }\n catch(VisionException e){\n \tSmartDashboard.putString(\"Camera\", \"VisionException tele\");\n \t\n }\n \t\n \tSmartDashboard.putBoolean(\"Tote position: \", !toteSensor.get());\n \t\n \t\n \t\n \t//update all the classes\n \tdrive.update();\n \trollers.update();\n \tpneu.update();\n \tlifter.update();\n \t\n \t\n \t//here is where the buttons are mapped\n \t\n \t//---Driver 1---\n \t\n \t//r3 sets fine control\n \tif(joy_left.getRawButton(RobotValues.FINE_CONTROL_BUTTON) || joy_right.getRawButton(RobotValues.FINE_CONTROL_BUTTON)){\n \t\tdrive.startFineControl();\n \t}\n \t\n \t//override\n \tif(joy_left.getRawButton(RobotValues.OVERRIDE_BUTTON) || joy_right.getRawButton(RobotValues.OVERRIDE_BUTTON)){\n \t\tdrive.override();\n \t}\n \t\n \t//---Driver 2---\n \t\n \t//the lifter\n \t\n \t//stack\n \tif(rc.getYButton()){\n \t\tlifter.startStack();\n \t}\n \t\n \t//place\n \tif(rc.getAButton()){\n \t\tlifter.startPlace();\n \t}\n \t\n \t//reset the lifter\n \tif(rc.getStartButton()){\n \t\tlifter.startReset();\n \t}\n \t\n \t//the rollers\n \t\n \t//roller piston\n \t// need to switch to remote button\n \t\n \tif(rc.getL3Button()){\n\t \t\tif(!rollerIn){\n\t \t\t\tpneu.startRollerIn();\n\t \t\t\trollerIn = true;\n\t \t\t} else {\n\t \t\t\tpneu.startRollerOut();\n\t \t\t\trollerIn = false;\n\t \t\t}\n \t}\n \t\t\n \t\n \t//the locking mech\n \t\n \t\n \t//lock\n \tif(rc.getXButton()){\n \t\t\tpneu.startLock();\n \t}\n \t\n \tif(rc.getBButton()){\n \t\tpneu.startUnlock();\n \t}\n \n \t\n \t//lifter dubug stuff\n \t\n \t//need to switch to remote button\n \tif(rc.getLBButton()){\n \t\tpneu.lift();\n \t}\n \t\n \tif(rc.getRBButton()){\n \t\tpneu.lower();\n \t}\n \t\n \t\n }", "@Override\n public void teleopPeriodic() {\n counter++;\n SmartDashboard.putBoolean(\"Estop\", eStop);\n // System.out.println(\"Has worked for\" + counter + \"acts.\");\n\n /*\n * SmartDashboard.putNumber(\"LeftColorSensor\",\n * mux.getGreyscale(LEFT_COLOR_SENSOR_PORT));\n * SmartDashboard.putNumber(\"RightColorSensor\",\n * mux.getGreyscale(RIGHT_COLOR_SENSOR_PORT));\n * SmartDashboard.putNumber(\"LeftProxSensor\",\n * mux.getGreyscale(LEFT_PROX_SENSOR_PORT));\n * SmartDashboard.putNumber(\"RightProxSensor\",\n * mux.getGreyscale(RIGHT_PROX_SENSOR_PORT));\n */\n\n mechanismControl.baseControl();\n // cargoIntake.baseControl();\n // lift.totalLiftControl();\n // System.out.println(\"Passed Mechanism control on loop\" + counter);\n chassis.baseDrive();\n // System.out.println(\"Passed Chassis control on loop\" + counter);\n if (lift.isRaised()) {\n chassis.setSpeedMod2(.5);\n } else {\n chassis.setSpeedMod2(1);\n }\n // System.out.println(\"Finished loop\" + counter);\n // chassis.baseDrive();\n if (chassisJoystick.getYButtonPressed()) {\n if (frontPistonFlag) {\n liftPistonFront.set(DoubleSolenoid.Value.kReverse);\n\n } else {\n liftPistonFront.set(DoubleSolenoid.Value.kForward);\n }\n\n frontPistonFlag = !frontPistonFlag;\n }\n\n if (chassisJoystick.getAButtonPressed()) {\n if (backPistonFlag) {\n liftPistonBack.set(DoubleSolenoid.Value.kReverse);\n } else {\n liftPistonBack.set(DoubleSolenoid.Value.kForward);\n }\n backPistonFlag = !backPistonFlag;\n }\n SmartDashboard.putString(\"Front Lift Piston\", liftPistonFront.get().toString());\n SmartDashboard.putString(\"Back Lift Piston\", liftPistonBack.get().toString());\n }", "private static boolean ready() {\n \t\treturn (timeOfLastSend + Config.getServerResendPeriodMillis() <= System.currentTimeMillis()) || (numNewPoints>=Config.getServerNewPointsThreshold()) && Session.getSession().numDevices()>1;\n \t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the food in the restaurant
public List<FoodReturnVo> getFoodListByRestaurant(int restaurantId) { List<FoodReturnVo> foodReturnVoList = new ArrayList<>(); Set<Food> foodList = foodDataService.getFoodListByRestaurant(restaurantId); for (Food food : foodList) { FoodReturnVo foodReturnVo = new FoodReturnVo(food.getId(), food.getName(), food.getPosition(), food.getPrice(), food.getUrl(), food.getMaximum(), food.isHasChoice(), food.getChoice(), Convertor.restaurantToRestaurantReturnVo(food.getRestaurant()), foodDataService.getFoodAlreadyOrdered(food.getId())); foodReturnVoList.add(foodReturnVo); } return foodReturnVoList; }
[ "Restaurant getRestaurant(String restaurant);", "List<FavoriteFood> getAllFood();", "String getFavFood();", "private void getFavoriteRestaurant() {\n final Query refResto = RestaurantsFavorisHelper.\n getAllRestaurantsFromWorkers (Objects.requireNonNull (getCurrentUser ()).getDisplayName ());\n\n refResto.get ()\n .addOnCompleteListener (task -> {\n mRestaurantFavorises = new ArrayList<> ();\n for (QueryDocumentSnapshot document : Objects.requireNonNull (task.getResult ())) {\n RestaurantFavoris resto = document.toObject (RestaurantFavoris.class);\n resto.setUid (document.getId ());\n Timber.d (\"resto uid = %s\", resto.getUid ());\n mRestaurantFavorises.add (resto);\n }\n Timber.d (\"restofav list : %s\", mRestaurantFavorises.size ());\n });\n }", "@Override\n public Restaurant getRestaurant() {\n return restaurant;\n }", "public Restaurant getResaurantById(int id) {\n\t\treturn restaurantFoodList.get(id);\n\t}", "protected int getFood() {\n return food;\n }", "private Restaurant readRestaurant() {\n System.out.println(\"Read restaurant {name,rating,capacity,delivery}\");\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n try {\n System.out.println(\"Id:\");\n Integer id = Integer.valueOf(bufferedReader.readLine());\n System.out.println(\"Name:\");\n String name = bufferedReader.readLine();\n System.out.println(\"Rating\");\n Integer rating = Integer.valueOf(bufferedReader.readLine());\n System.out.println(\"Capacity:\");\n Integer capacity = Integer.valueOf(bufferedReader.readLine());\n System.out.println(\"Delivery:\");\n Boolean delivery = Boolean.valueOf(bufferedReader.readLine());\n Restaurant restaurant = new Restaurant(name, rating, capacity, delivery);\n restaurant.setId(id);\n return restaurant;\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return null;\n }", "public String getFoodItems() {\n return foodItems;\n }", "public HashMap<Location, Food> getAllFood()\n {\n return this.allFood;\n }", "private void processGetRestaurant(Protocol protocolRequest) {\n // Extraer el Id del primer parámetro\n String id = protocolRequest.getParameters().get(0).getValue();\n Restaurant rest = restaurantService.findRestaurant((id));\n if (rest == null) {\n String errorJson = generateNotFoundErrorJson();\n output.println(errorJson);\n } else {\n output.println(objectToJSONRestaurant(rest));\n }\n }", "public List<Restaurant> findAllRestaurant();", "public int getFood() {\n return food;\n }", "private void getRestaurants() {\n List<Place.Field> placeFields = Arrays.asList(Place.Field.TYPES, Place.Field.ID);\n\n final FindCurrentPlaceRequest request = FindCurrentPlaceRequest.builder(placeFields).build();\n\n if (ContextCompat.checkSelfPermission(getContext(), ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n\n Task<FindCurrentPlaceResponse> placeResponse = mPlacesClient.findCurrentPlace(request);\n placeResponse.addOnCompleteListener(getActivity(),\n new OnCompleteListener<FindCurrentPlaceResponse>() {\n @Override\n public void onComplete(@NonNull Task<FindCurrentPlaceResponse> task) {\n if (task.isSuccessful()) {\n FindCurrentPlaceResponse response = task.getResult();\n\n for (PlaceLikelihood placeLikelihood : response.getPlaceLikelihoods()) {\n Place currPlace = placeLikelihood.getPlace();\n\n if (currPlace.getTypes().contains(Place.Type.RESTAURANT)) {\n getPlaceInfo(currPlace.getId(), mRestaurantList);\n }\n }\n\n } else {\n Exception exception = task.getException();\n if (exception instanceof ApiException) {\n ApiException apiException = (ApiException) exception;\n Log.e(TAG, \"Restaurant not found: \" + apiException.getStatusCode() + apiException.getLocalizedMessage());\n }\n }\n }\n\n });\n } else {\n getLocationPermission();\n }\n }", "public List<MenuFood> getMenuFood(String menu_id){\r\n\t\t//String sql = \"SELECT * FROM topic.menufood where menufood.menu_id=\"+menu_id;\r\n\t\t\r\n\t\tString sql = \"SELECT menu_food_id, menu_id, menu_food_amount, A.food_id, food_name FROM topic.menufood AS A LEFT JOIN food AS B on A.food_id = B.food_id where A.menu_id=\"+menu_id;\r\n\t\t\r\n\t\t\r\n\t\treturn menuFoodShow(sql);\r\n\t}", "public FoodItem returnFoodFields() throws FoodNotAcceptedException {\n FoodItem grocery;\n String foodName = groceryName.getText();\n try {\n FoodType foodType = getFoodType((String) foodTypeComboBox.getSelectedItem());\n if (!foodName.equals(\"Enter dish name\")) {\n grocery = new FoodItem(foodName, foodType);\n } else {\n throw new FoodNotAcceptedException();\n }\n } catch (EnumNotSelectedException e) {\n throw new FoodNotAcceptedException();\n }\n if (favourite.isSelected()) {\n grocery.setIsFavourite(true);\n }\n if (completed.isSelected()) {\n grocery.setIsCompleted(true);\n }\n return grocery;\n }", "public BigDecimal getFood() {\n\t\treturn food;\n\t}", "public List<FoodItem> getFoodList() {\n return foodList;\n }", "public List<Restaurant> getRestaurants() { return restaurants; }", "POGOProtos.Rpc.FoodAttributesProto getFood();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootview = inflater.inflate(R.layout.fragment_abrir_chamado, container, false); btnAbrirChamado = (Button)rootview.findViewById(R.id.botaoContinuarChamado); btnAbrirChamado.setOnClickListener(this); if (container == null) { return null; } return rootview; }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.fragment_question, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_volley2, container, false);\n\n // link graphical items to variables\n temperature = (TextView) view.findViewById(R.id.temperature);\n description = (TextView) view.findViewById(R.id.description);\n weatherBackground = (ImageView) view.findViewById(R.id.weatherbackground);\n\n // Implementation\n implementation();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n final View view = inflater.inflate(getLayout(), container, false);\n\n setupLayout(view);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.bookmark_band_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.manu, container, false);\n getXmlList();\n copyFileList();\n initView();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_emotion_packet, container, false);\n initView(rootView);\n initListener();\n return rootView;\n }", "@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_opportunity, null);\r\n\r\n\t\t// 设置右上角的图标\r\n\t\taddButton = (ImageView) getActivity().findViewById(R.id.addButton);\r\n\t\taddButton.setImageResource(R.drawable.back);\r\n\t\taddButton.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\tFragment newFragment = new MainFragment(R.id.business);\r\n\t\t\t\tString title = getString(R.string.business);\r\n\t\t\t\tgetFragmentManager().beginTransaction().replace(R.id.content_frame, newFragment).commit();\r\n\t\t\t\tTextView topTextView = (TextView) getActivity().findViewById(R.id.topTv);\r\n\t\t\t\ttopTextView.setText(title);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn view;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qr_gen, container, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.fragment_fate, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstance){\n\n return inflater.inflate(R.layout.fragment_scrapbook, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n rcv = view.findViewById(R.id.RCV);\n comment = view.findViewById(R.id.Comment);\n lottie = view.findViewById(R.id.Lottie);\n ConnectXML();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n initConfigAndView(inflater, container, R.layout.com_parse_ui_parse_login_help_fragment);\n\n mTxtInstructions = (TextView) mLayout.findViewById(R.id.login_help_instructions);\n mEdtEmailAddress = (EditText) mLayout.findViewById(R.id.login_help_email_input);\n mBtnSubmit = (Button) mLayout.findViewById(R.id.login_help_submit);\n\n mBtnSubmit.setOnClickListener(this);\n\n return mLayout;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bottom_sheet_details, container, false);\n // binding views\n boxMessage = view.findViewById(R.id.box_messages);\n boxResult = view.findViewById(R.id.box_result);\n htmlTextMessage = view.findViewById(R.id.html_text_message);\n progressLoading = view.findViewById(R.id.progress_loading_country);\n htmlTextNames = view.findViewById(R.id.text_country_names);\n htmlTextDetails = view.findViewById(R.id.text_country_details);\n imageFlag = view.findViewById(R.id.image_country_flag);\n // set loading message\n htmlTextMessage.setHtmlText(getString(R.string.html_message_loading_country, getArguments().getString(\"name\")));\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n\n return inflater.inflate(R.layout.fragment_account, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_guan_zhu, container, false);\n initView(inflate);\n initdata();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_whole_task, container, false);\n ButterKnife.bind(this, view);\n refreshLayout.setOnRefreshListener(this);\n refreshLayout.setOnLoadmoreListener(this);\n loadData();\n setAdapter();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_show_mult_att, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_timeline, parent, false);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TC015Verify user can edit category
@Test(priority = 12, dataProvider = "CreateData", dataProviderClass = DataProviderClass.class) public void TC015_VerifyUserCanEditCategory(HashMap<String, String> data) throws InterruptedException { PantryForGoodHomePage p4gPage = new PantryForGoodHomePage(driver); PantryForGoodSignInPage p4gSignIn = new PantryForGoodSignInPage(driver); PantryForGoodInventoryPage p4gInventory = new PantryForGoodInventoryPage(driver); //Navigate to URL p4gSignIn.navigateToURL(baseURL); //Sign In p4gSignIn.logInToHomePage(data.get("username"), data.get("password")); sleep(3000); //Go to Inventory page p4gInventory.goToInventoryPage(); //Edit a category p4gInventory.editCategory(data.get("editcategoryname"), data.get("updatedcategoryname")); //Log out p4gPage.signOut(); }
[ "public void editCategory(Category category) {\n\t\t\r\n\t}", "public static Status editCategory(int id, String category, AuthToken authToken, Connection con) {\n\t\tif (authToken.getType() == Status.MANAGER || authToken.getType() == Status.STOCK_EMPLOYEE) {\n\t\t\tsynchronized (con) {\n\t\t\t\ttry {\n\t\t\t\t\tcon.setCatalog(\"stock\");\n\t\t\t\t\tStatement st = con.createStatement();\n\t\t\t\t\tst.executeUpdate(\"update category set name='\" + category + \"' where id=\" + id);\n\t\t\t\t} catch (SQLException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\treturn Status.EXCEPTION_OCCURED;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn Status.INVALID_USER_TYPE;\n\t\t}\n\t\treturn Status.SUCCESS;\n\t}", "public void doEditCategory(ContentCategory category, boolean isCategoryEmpty)\n\t{\n\t\tdoSetACL(category.getAclEntries());\n\t\tTestUtils.getInstance().saveScreenshot(getSession());\n\t\tbuttonSave.click();\n\t\tcheckAlerts();\t\t\n\t\tif(category.getAclEntries()!=null && !isCategoryEmpty)\n\t\t{\n\t\t\tTestUtils.getInstance().saveScreenshot(getSession());\n\t\t\tclickByApplyButton();\n\t\t}\n\t}", "public boolean canManage(PortletLifecycleState state, String categoryId) throws AuthorizationException;", "@Test(groups = { \"WorkflowNG\" }, dependsOnMethods = { \"createAndSubmiProj\" })\n\tpublic void verifyAmendmentCategoryField() throws Exception {\n\t\ttry {\n\n\t\t\tfoProj.initializeStep(IGeneralConst.gnrl_SubmissionA[0][0]);\n\n\t\t\tAssert.assertTrue(AmendmentsUtil.openApplicantAmendment(\n\t\t\t\t\tfoProj.getCurrentStepName(), EAmendmentOptions.REQUEST),\n\t\t\t\t\t\"FAIL: Could not open the Applicant Amedment\");\n\t\t\tAssert.assertFalse(\n\t\t\t\t\tGeneralUtil\n\t\t\t\t\t\t\t.isSelectListExists(IAmendmentsConst.amendRequest_Category_DropDwnFld_ID),\n\t\t\t\t\t\"PASS: Amendment Type Field is available When Applicant (user) make an request an Amendment Request\");\n\n\t\t\tClicksUtil\n\t\t\t\t\t.clickButtons(IClicksConst.amedmentBackToSubmissionsListBtn);\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected Exception: \", e);\n\t\t}\n\t}", "@Test(priority=16,alwaysRun=true)\n\tpublic void modifyCategory()\n\t{\n\t\tList<WebElement> msg_categories=driver.findElements(By.cssSelector(\".edit.messageCategoryDetails\"));\n\t\tmsg_categories.get(4).click();\n\t\tdriver.findElement(By.id(\"modifyButton\")).click();\n\t\tdriver.findElement(By.name(\"messageCategory(name)\")).clear();\n\t\tdriver.findElement(By.name(\"messageCategory(name)\")).sendKeys(\"Team members\");\n\t\tdriver.findElement(By.id(\"saveButton\")).click();\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdriver.switchTo().alert().accept();\n\t\tSystem.out.println(\"Modify category is successfully executed\");\n\t}", "public boolean editCategory(Category existCategory) {\n\t\tboolean success = true;\n\t\tConnection conn = ConnectionFactory.getConnection();\n\t\tPreparedStatement pstmt = null;\n\n\t\tString sql = \"update category set category_name=? where category_id=?\";\n\t\tObject[] args= {existCategory.getCategoryName(), existCategory.getCategoryId()};\n\n\t\ttry {\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tint r = SQLUtil.executeUpd(pstmt, args);\n\t\t\tif(r!=1){\n\t\t\t\tsuccess = false;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tsuccess =false;\n\t\t}finally{\n\t\t\tSQLUtil.closeStatement(pstmt);\n\t\t\tSQLUtil.closeConnection(conn);\n\t\t}\n\n\t\treturn success;\n\n\n\n\t}", "void editCategory(BlogCategoryDTO dto) throws QBlogException;", "private void setCategoryIcom(){\n }", "@Test\n\tpublic void driverEdit() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t//Se edita el category1 por el admin\n\t\t\t\t\"admin\", \"category1\", null\n\t\t\t}, {\n\t\t\t\t//Se edita el category1 por un user (ningun user puede editarla)\n\t\t\t\t\"user1\", \"category1\", IllegalArgumentException.class\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateEdit((String) testingData[i][0], super.getEntityId((String) testingData[i][1]), (Class<?>) testingData[i][2]);\n\t}", "public void setUserCategory(Integer userCategory) {\n this.userCategory = userCategory;\n }", "@Test\n\tpublic void test07_AddSameNameCategories(){\n\t\tboolean publicMode = false;\n\t\tMap<String, String> permissions = new HashMap<String, String>();\n\t\tpermissions.put(\"Platform/Administration\", \"member\");\n\n\t\tsignIn(\"root\", \"gtn\");\n\n\t\tinfo(\"-- Step 1: Add the first category --\");\n\t\tgoToApplicationRegistry();\n\t\twaitForTextPresent(\"Categories\");\n\t\taddNewCategoryAtManageApplications(categoryName, displayName, categoryDescription, publicMode, permissions, verify);\n\n\t\tinfo(\"-- Step 2: Add same name category --\");\n\t\taddNewCategoryAtManageApplications(categoryName, displayName, categoryDescription, true, null, false);\n\t\twaitForMessage(messageDuplicateCategory);\n\t\tcloseMessageDialog();\n\t\t\n\t\tinfo(\"-- Delete data after testing --\");\n\t\tdeleteCategoryAtManageApplications(categoryName, verify);\n\t\t\n\t\tinfo(\"-- Sign Out --\");\n\t\twaitForTextPresent(\"Root Root\");\n\t\tsignOut();\n\t}", "@Test\n\tpublic void verifyCatCreate() {\n\t\tSystem.out.println(\"verifyCatCreate\");\n\t\t// Create category\n\t\t// verify category\n\t\t// close browser\n\t\t\n\t}", "@Override\r\n\tpublic boolean changeCategory(String categoryName, int roomId){\r\n\t\t\treturn false;\r\n\t}", "public void CategoryVerification() throws Exception {\n\n\t\tUtility.click(inventoryTab);\n\t\tUtility.click(extrasTab);\n\t\tUtility.click(categoryTab);\n\n\t\tif (categoryTable.isDisplayed()) {\n\t\t\tet.log(LogStatus.PASS, \"category details are displayed\",\n\t\t\t\t\tet.addScreenCapture(pass(\"category details are displayed\")));\n\n\t\t} else {\n\n\t\t\tet.log(LogStatus.FAIL, \"category details are not displayed\",\n\t\t\t\t\tet.addScreenCapture(fail(\"category details are not displayed\")));\n\t\t}\n\n\t\tUtility.click(newCategory);\n\t\tUtility.enterText(categoryText, \"Steel\");\n\t\tUtility.click(submitButton);\n\t\tUtility.click(submitButton);\n\n\t\tif (categoryCreated.getText().equals(\"Steel\")) {\n\n\t\t\tet.log(LogStatus.PASS, \"New category is created\", et.addScreenCapture(pass(\"New category is created\")));\n\n\t\t} else {\n\n\t\t\tet.log(LogStatus.FAIL, \"New category is not created\",\n\t\t\t\t\tet.addScreenCapture(fail(\"New category is not created\")));\n\t\t}\n\n\t\tUtility.click(deleteCategory);\n\t\tUtility.click(submitButton);\n\t\tUtility.click(submitButton);\n\n\t\ttry {\n\t\t\tUtility.click(clickRandom);\n\n\t\t} catch (ElementClickInterceptedException e) {\n\n\t\t\tet.log(LogStatus.FAIL, \"confirmation window doesnt disappears\",\n\t\t\t\t\tet.addScreenCapture(pass(\"Not able to verify as confirmation window doesnt disappears\")));\n\n\t\t\tif (!categoryCreated.getText().equals(\"Steel\")) {\n\n\t\t\t\tet.log(LogStatus.PASS, \"category is Deleted \", et.addScreenCapture(pass(\"category is Deleted \")));\n\n\t\t\t} else {\n\n\t\t\t\tet.log(LogStatus.FAIL, \"category is not Deleted \",\n\t\t\t\t\t\tet.addScreenCapture(fail(\"category is not Deleted \")));\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public void recordConceptCategoryChange(ConceptSMTK conceptSMTK, Category originalCategory, User user) {\n ConceptAuditAction auditAction = new ConceptAuditAction(conceptSMTK, CONCEPT_CATEGORY_CHANGE, now(), user, originalCategory);\n new HistoryRecordBL().validate(auditAction);\n\n auditDAO.recordAuditAction(auditAction);\n }", "public void svPassID(Category category);", "@Override\n\tpublic Category modifyCategories(@Valid Category category) throws InventoryServiceRuntimeException{\n\t\tif(categoryDao.existsById(category.getCategoryId())) {\n\t\t\tCategory persistedCategory = categoryDao.findById(category.getCategoryId()).get();\n\t\t\tpersistedCategory.setCategoryName(category.getCategoryName());\n\t\t\tpersistedCategory.setDescription(category.getDescription());\n\t\t\tpersistedCategory.setIsMandatory(category.getIsMandatory());\n\t\t\tcategoryDao.save(persistedCategory);\n\t\t}\n\t\telse {\n\t\t\tthrow new ResourceNotFoundException(\"Resource Not Found for following:Category with Id:\"+category.getCategoryId());\n\t\t}\n\t\treturn null;\n\t}", "@Test\n\tpublic void testSaveCategory() {\n\t}", "@Override\r\n\tpublic int edit(ProductCategory productCategory) {\n\t\treturn productCategoryDao.edit(productCategory);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests checking the required name
public void testCheckRequiredName() throws Exception { SerializationContext ctx = new SerializationContext(writer, null, null); assertEquals("listing", AbstractWriter.checkRequiredName(ctx, "listing")); }
[ "private boolean verifyName() {\n\n\n return true;\n }", "@Test\n public void allowAnyNameTest() {\n // TODO: test allowAnyName\n }", "@Test\n void invalidName() {\n markName(entity, \"This is a test string that will be used to validate \" +\n \"that entity names and fillers are limited to 256 characters. This string should \" +\n \"fail because this string is exactly 257 characters long. This is filler text to \" +\n \"get to the two hundred and fifty-seven limit.\");\n \n utils.expect(ShaclShapes.NamePropertyShape, SH.MaxLengthConstraintComponent, null);\n utils.testInvalid(\"NIST.invalid (has name): Each entity name string is limited to 256 UTF-8 characters\");\n }", "@Test\n\tpublic void testGetName() {\n\t\tassert(s.getName() == \"VictoryPoint\");\n\t}", "@Test\n void testName(){\n String name = itemToTest.getName();\n assertFalse(name.isBlank() && name.isEmpty());\n }", "@Test\n\tpublic void testGetName() {\n\t\tString expectedValue = \"NameString\";\n\t\tString actualValue = testAllergey.getName();\n\t\tassertEquals(expectedValue, actualValue);\n\t}", "@Test\n\tpublic void testName() {\n\t\t//Be wary of the string constant use...\n\t\t//Be certain these match the strings in setUp.\n\t\tassertEquals(\"Joe Newb\", calcProbationary.getName());\n\t\tassertEquals(\"Voltron: Defender of the Universe\",\n\t\t\t\tcalcExperienced.getName());\n\t}", "@Test\n public void testDescriptorDoCheckNameError() {\n ExtensibleChoiceParameterDefinition.DescriptorImpl descriptor = getDescriptor();\n\n // ERROR: null\n assertEquals(descriptor.doCheckName(null).kind, FormValidation.Kind.ERROR);\n\n // ERROR: empty\n assertEquals(descriptor.doCheckName(\"\").kind, FormValidation.Kind.ERROR);\n\n // ERROR: blank\n assertEquals(descriptor.doCheckName(\" \").kind, FormValidation.Kind.ERROR);\n\n // WARNING: value containing blank\n assertEquals(descriptor.doCheckName(\"a b\").kind, FormValidation.Kind.WARNING);\n\n // WARNING: value contains a letter, not alphabet, number, nor underscore.\n assertEquals(descriptor.doCheckName(\"a-b-c\").kind, FormValidation.Kind.WARNING);\n\n // WARNING: value starts with a letter, not alphabet, number, nor underscore.\n assertEquals(descriptor.doCheckName(\"!ab\").kind, FormValidation.Kind.WARNING);\n\n // WARNING: value contains a multibyte letter.\n assertEquals(descriptor.doCheckName(\"ab\").kind, FormValidation.Kind.WARNING);\n }", "@Test\n public void testGetName() {\n \n assertEquals(\" Rahim \", p.getName());\n \n }", "public void testGetName()\n {\n String expectedReturn = \"CHANGE_REQUEST\";\n String actualReturn = changeRequestAttribute.getName();\n assertEquals(\"Invalid name\", expectedReturn, actualReturn);\n }", "protected boolean hasProperName()\n\t{\n\t\treturn true;\n\t}", "private static void checkValidName(String givenName) throws SExceptionsTypeOne {\n Matcher m = NAME_PATTERN.matcher(givenName);\n// System.out.println(\"valid name check\");\n// System.out.println(m.matches());\n if (!m.matches()){\n throw new InvalidNameRecognizeException();\n }\n }", "@Test\n public void validateAndGetModulNameTest() {\n final String moduleName = ParserIdentifier.validateAndGetModulName(NAMES.iterator());\n assertNotNull(\"Correct module name should be validated\", moduleName);\n assertEquals(\"_module-1\", moduleName);\n }", "@Test\n public void hasName() {\n assertEquals(\"Edinburgh Central\", library.getName() );\n }", "private void checkName(Object element, String text, String name)\n throws ParseException {\n\n if (Model.getFacade().isAAttribute(element)) {\n AttributeNotationUml anu = new AttributeNotationUml(element); \n anu.parseAttribute(text, element);\n assertTrue(text\n + \" gave wrong name: \"\n + Model.getFacade().getName(element),\n name.equals(Model.getFacade().getName(element)));\n } else if (Model.getFacade().isAOperation(element)) {\n OperationNotationUml onu = new OperationNotationUml(element);\n onu.parseOperation(text, element);\n assertTrue(text\n + \" gave wrong name: \"\n + Model.getFacade().getName(element)\n + \" != \" + name,\n name.equals(Model.getFacade().getName(element)));\n } else {\n fail(\"Can only check name of a feature or classifier role\");\n }\n }", "@Test\n void nameValidity() {\n Provider provider = new Provider();\n\n // Valid data\n assignValidData(provider);\n assertDoesNotThrow(provider::checkDataValidity);\n\n // Invalid data\n provider.setName(null);\n assertThrows(InvalidFieldException.class, provider::checkDataValidity);\n provider.setName(\"ABC123\");\n assertThrows(InvalidFieldException.class, provider::checkDataValidity);\n }", "public void testName() {\r\n data.setName(\"test\");\r\n assertEquals(\"The name is wrong.\", \"test\", data.getName());\r\n }", "@Test\n public void testName() {\n assertEquals(xTest.name(), name);\n }", "@Test\r\n public void testGetName() {\r\n final Group group = new Group(\"testName\");\r\n Assert.assertEquals(\"Constructor in \\\"Group\\\" does not set \\\"name\\\"\", \"testName\", group.getName());\r\n\r\n group.setName(\"otherTestName\");\r\n Assert.assertEquals(\"\\\"setName\\\" or \\\"getName\\\" error in \\\"Group\\\"\", \"otherTestName\", group.getName());\r\n }", "@Test\n\tpublic void testUniqueName()\n\t{\n\t\tCodeValidator lValidator = new CodeValidator(TEST_CODE, fProject);\n\t\tassertFalse(lValidator.isValid());\n\t\tassertEquals(\"Code name \" + MessagesClient.getString(\"model.validation.BasicNameValidator.taken\", \"ca.mcgill.cs.swevo.qualyzer.model.validation.messages\"),lValidator.getErrorMessage());\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'date' field has been set.
public boolean hasDate() { return fieldSetFlags()[2]; }
[ "public boolean isSetDate() {\n return (this.mEntryIsSetFieldsSetBitMask & DATE_FIELD_MASK) == DATE_FIELD_MASK;\n }", "public boolean hasDate() {\n return fieldSetFlags()[1];\n }", "public boolean isSetDateUpdate() {\n return this.dateUpdate != null;\n }", "boolean isSetDepartdate();", "public boolean isDateValid() {\n\t\treturn this.datePublished.isValid();\n\t}", "public boolean hasValidityDate() {\n return validityDate_ != null;\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean hasDate() {\r\n return ((bitField0_ & 0x00000002) == 0x00000002);\r\n }", "@java.lang.Override\n public boolean hasDateValue() {\n return valueCase_ == 5;\n }", "public boolean isSetDateTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATETIME$6) != 0;\n }\n }", "@java.lang.Override\n public boolean hasManufacturingDate() {\n return manufacturingDate_ != null;\n }", "@java.lang.Override\n public boolean hasReceiptdate() {\n return receiptdate_ != null;\n }", "public boolean checkDateStart() {\n long dateStart = getParamDateStart();\n if (dateStart > 0) {\n return System.currentTimeMillis() > dateStart;\n }\n return true;\n }", "boolean hasArriveDate();", "public EntryIsSet setDate(java.util.Date date) {\n this.mDate = date;\n this.mEntryIsSetFieldsSetBitMask |= DATE_FIELD_MASK;\n return this;\n }", "public boolean isEmpty() {\n return date.isEmpty();\n }", "public boolean isSetExpiredDate() {\n return this.expiredDate != null;\n }", "public boolean hasStartDate() {\n return ((bitField1_ & 0x00000004) == 0x00000004);\n }", "public boolean hasDateTime() {\r\n return startDateTime != null;\r\n }", "public boolean isSetFechaFinal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FECHAFINAL$18) != 0;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread. The general contract of the method run is that it may take any action whatsoever. This Method calls the controller that created it to set its beat to 0, ie, jump to start
@Override public void run() { super.cb.setBeat(0); }
[ "public void start() {\n\trunner = new Thread(this);\n\trunner.start();\n }", "public synchronized void start() {\n running = true;\n thread = new Thread(this);\n thread.start(); \n \n \n //IT IS ACTUALLY CALL FOE RUN METHOD\n }", "public void run() {\n\t\tDebug.println(\"Controller.run()\");\n\t\tTitleScreen ts = new TitleScreen();\n\t\tts.doIt(TitleScreen.SHOW);\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(ts);\n\t\t} catch (Exception e) {\n\t\t}\n\t\tmusic = new Music();\n\t\tnew Thread(music, \"musicThread\").start();\n\t\tsound = new Sound();\n\t\tnew Thread(sound, \"soundThread\").start();\n\t\tfc = new FlowControl();\n\t\tps = new PlayerSelect(this, fc);\n\t\tmodel = new Model();\n\t\tscore = new ScoreModel(fc);\n\t\tview = new GUI(model, this, music, sound, fc, score);\n\t\tts.doIt(TitleScreen.HIDE);\n\t\tps.doIt(PlayerSelect.SHOW);\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(ts);\n\t\t\tSwingUtilities.invokeAndWait(ps);\n\t\t} catch (Exception e) {\n\t\t}\n\t\tts = null;\n\t\tcontrolPanel = view.getControlPanel();\n\t\tphysX = new PhysicsEngine(this, model, score, controlPanel, sound, fc);\n\t\tnew Thread(physX, \"physicsThread\").start();\n\t\tresetPins();\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\trunner.firstThread();\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "public void start() {\r\n\tif (kicker == null) {\r\n\t kicker = new Thread(this);\r\n\t kicker.start();\r\n\t}\r\n }", "void start(Monkey monkey, Runnable run);", "public void treadBegin()\n {\n RunningThread thread1 = new RunningThread(\"TestThread\", this );\n thread1.start();\n }", "public abstract void run(long start);", "@Override\n public void start(Runnable runnable) {\n }", "public void run()\r\n\t{\r\n\t}", "public void threadStart()\n {\n threadRun = true;\n }", "private void start() {\n\t\tisRunning = true;\n\t\tthread = new Thread( this );\n\t\tthread.start();\n\t}", "public void start() {\n if (thread == null) {\n thread = new Thread(new MainRunner());\n thread.start();\n }\n }", "public abstract void runStarts();", "public void start()\r\n/* 77: */ {\r\n/* 78: 88 */ Thread t = new Thread(this);\r\n/* 79: 89 */ t.start();\r\n/* 80: */ }", "@Override\n\tpublic void run() {\n\t\tThreadClass tc = new ThreadClass();\n\t\ttc.test();\n\t}", "private void start(){\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void start() {\r\n Thread t = new Thread(this);\r\n t.start();\r\n}", "public void startThread() {\n\t\tstart();\t\t\n\t}", "public void run() {\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean hasStableIds() { return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use bean update without parameters.
@Test public void testErr2() throws Throwable { this.expectedException(UnknownPropertyInJQLException.class); buildDataSourceProcessorTest(Err2UpdateDataSource.class, Err2UpdateDAO.class, Person.class); }
[ "@Override\n\tpublic PostBean update(PostBean obj) {\n\t\treturn null;\n\t}", "public void beforeUpdate(B bean)throws DaoException;", "@Override\r\n\tpublic int update(Entity bean) throws Exception {\n\t\treturn 0;\r\n\t}", "public void updateBean(JETABean jbean) {\r\n\t\t// no op\r\n\t}", "@EasymisDataSource(DataSourceType.Master)\n\tpublic void update(OaDiary bean) {\n\t\t\n\t}", "@Override\n\tpublic Long update(Feedback bean) {\n\t\treturn null;\n\t}", "public int updateByBean(OrdersBean bean);", "public void afterUpdate(B bean)throws DaoException;", "public void testUpdate(){\n \n }", "@Override\n\tpublic Help update(Help bean) {\n\t\ttry{\n\t\t\tUpdater<Help> updater =new Updater<Help>(bean);\n\t\t\tbean = dao.updateByUpdater(updater);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn bean;\n\t}", "@Override\n public void update(Object o) {\n //No Impl\n }", "@Override\r\n\tpublic void Update(Dto dto) {\n\t\t\r\n\t}", "public abstract boolean updateBean(final T object);", "Parameter update(Parameter parameter);", "@Override\n\tpublic void doUpdate(MessaggioBean bean) throws SQLException {\n\t\t\n\t}", "public static void standardFieldUpdate( FieldInfo fieldInfo, Field field, AplosAbstractBean bean, Object value ) throws Exception {\n\t\tif( field != null ) {\n\t\t\tfield.setAccessible(true);\n\t\t\tfield.set(bean, value);\n \t}\n }", "private Update() {\n initFields();\n }", "@Override\r\n\tpublic Object update(Object obj) throws Exception {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic CmsBallotItem update(CmsBallotItem bean) {\n\t\tgetSession().update(bean);\n\t\treturn bean;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { if (v.getId() == R.id.button1) { //login AppSettings.buttonSound(getBaseContext()); String user = username.getText().toString(); String pass = password.getText().toString(); AppVariable.setUsername(user); AppVariable.setPassword(pass); String str = appendString(user, pass); edit.putString("data", str); edit.commit(); String url = "http://" + AppVariable.getIP() + ":8080/dqms/LoginApiAndroid?u=" + user.trim() + "&p=" + pass.trim(); url.replaceAll("//s+", "%20"); if (AppSettings.isNetworkAvailable(this)) { if (user != null && pass != null) { //login in asyncTask new LoginAsync(url, AppVariable.LOGINFLAG, this).execute(); } else { Toast.makeText(this, "Please add required details", Toast.LENGTH_LONG).show(); } } else { //network Unavailable dialog box CustomDialog dialog = new CustomDialog(this); dialog.show(); AppVariable.setDialog(dialog); } } if (v.getId() == R.id.button2) { //sign out all account String user = username.getText().toString(); String pass = password.getText().toString(); String url = "http://" + AppVariable.getIP() + ":8080/dqms/LoginApiAndroid?u=" + user.trim() + "&p=" + pass.trim() + "&l=1"; Log.e("url....",""+url); new LoginAsync(url, AppVariable.TREATFLAG, this).execute(); AppSettings.buttonSound(getBaseContext()); } if (v.getId() == R.id.ipconfig) { AppSettings.buttonSound(getBaseContext()); IpConfigDialog Ip = new IpConfigDialog(this, "Password"); Ip.show(); AppVariable.setDialog1(Ip); } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a client socket connected to the specified host and port and writes out debugging info
public Socket createSocket(String host, int port) throws IOException { return new Socket(host, port); }
[ "public TCPClient(String address, int port)\r\n {\r\n this.ip = address;\r\n this.port = port;\r\n this.clientSocket = new Socket(address, port); \r\n }", "SocketInstanse(Socket socket) throws IOException {\r\n\t this.socket = socket;\r\n\t out = new BufferedWriter(new PrintWriter(this.socket.getOutputStream()));\r\n\t System.out.println(\"SERVER PORT: \" + socket.getLocalPort());\r\n\t}", "String open(String host, int port);", "private static void createConnection() {\n try {\n InetAddress ip = InetAddress.getByName(\"10.0.0.1\");\n Socket s = new Socket(ip, 3141);\n OutputStream raus = null;\n raus = s.getOutputStream();\n ps = new PrintStream(raus, true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Connect() throws IOException {\r\n socket = new Socket(InetAddress.getByName(\"localhost\"), 1234);\r\n out = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()), true);\r\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n }", "static DebugServerTransport createAndWaitForClient(\n EventHandler eventHandler, ServerSocket serverSocket, boolean verboseLogging)\n throws IOException {\n // TODO(bazel-team): reject all connections after the first\n eventHandler.handle(Event.progress(\"Waiting for debugger...\"));\n Socket clientSocket = serverSocket.accept();\n eventHandler.handle(Event.info(\"Debugger connection successfully established.\"));\n return new DebugServerTransport(\n eventHandler,\n serverSocket,\n clientSocket,\n clientSocket.getInputStream(),\n clientSocket.getOutputStream(),\n verboseLogging);\n }", "public Client(){\n try {\n this.server = new Socket(host, PORT);\n System.out.println(\"客户端连接成功\");\n }catch (IOException e){\n e.printStackTrace();\n }\n\n }", "public ObjectClient(String host, int port) throws UnknownHostException, IOException {\n\t\tthis.host = host; \n\t\tthis.port = port;\n\t\tinitSocket();\n\t}", "public void makeSocket(int port, String ip) throws IOException {\n client = new Client(port, ip);\n }", "public int createSocket(String host, int port)\n\t{\n try{\n _socket = new Socket(host, port);\n sendStream = _socket.getOutputStream();\n recvStream = _socket.getInputStream();\n }\n\t\tcatch(Exception ex){\n \tSystem.out.println(\"Socket Stream Failed\");\n \treturn -1;\n }\n return 0;\n\t}", "private static void printSocketInfo(SSLSocket s) {\n \t\tSystem.out.println(\"-> New client connecting:\");\n \t\tSystem.out.println(\"Socket class: \" + s.getClass());\n \t\tSystem.out.println(\" Remote address = \"\n \t\t\t\t+ s.getInetAddress().toString());\n \t\tSystem.out.println(\" Remote port = \" + s.getPort());\n \t\tSystem.out.println(\" Local socket address = \"\n \t\t\t\t+ s.getLocalSocketAddress().toString());\n \t\tSystem.out.println(\" Local address = \"\n \t\t\t\t+ s.getLocalAddress().toString());\n \t\tSystem.out.println(\" Local port = \" + s.getLocalPort());\n \t\tSystem.out.println(\" Need client authentication = \"\n \t\t\t\t+ s.getNeedClientAuth());\n \t\tSSLSession ss = s.getSession();\n \t\tSystem.out.println(\" Cipher suite = \" + ss.getCipherSuite());\n \t\tSystem.out.println(\" Protocol = \" + ss.getProtocol());\n \t}", "public ServerClient(String hostname, int port) throws IOException {\n\t\tsocket = new Socket(hostname, port);\n\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\tout = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));\n\t}", "public static void main(String[] args) throws UnknownHostException, IOException{\n InetAddress host = InetAddress.getLocalHost();\n Socket socket = new Socket(host.getHostName(), 5600); \n \n }", "private void makeConnection(int port, int id) {\n try {\n Socket socket = new Socket(\"localhost\", port);\n socketTableLock.lock();\n try {\n socketTable.put(id, socket);\n }\n finally {\n socketTableLock.unlock();\n }\n outStreams.put(id + Host.HOST_PORT_OFFSET, new PrintWriter(socket.getOutputStream()));\n\n socketTableLock.lock();\n try {\n System.out.println(\"connected to socket\" + socketTable.get(id) + \" for id \" + id);\n }\n finally {\n socketTableLock.unlock();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Client(String address, int port) {\n\t\ttry {\n\t\t\tsocket = new Socket(address, port);\n\t\t\toutmsg = new PrintWriter(socket.getOutputStream(), true);\n\t\t\tinmsg = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t} catch (UnknownHostException u) {\n\t\t\tSystem.out.println(u);\n\t\t} catch (IOException i) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\n\t}", "public void OpenConnection(String address, int port){\n try {\n clientSocket = new Socket(address, port);\n is = new DataInputStream((clientSocket.getInputStream()));\n os = new DataOutputStream((clientSocket.getOutputStream()));\n System.out.println(\"konekcija otvorena\");\n }catch (IOException ex){\n System.out.println(\"Cant open new socket: \" + ex);\n }\n }", "private static void initialize(String host, int port) {\n\t\tif (instance.isRunning()) {\n\t\t\t// Only stops the debug if either server or port has changed.\n\t\t\tif ((Utils.isNotEquals(host, instance.client.getHost()) || port != instance.client\n\t\t\t\t.getPort())) {\n\t\t\t\tinstance.stop();\n\t\t\t} else {\n\t\t\t\t// Otherwise, does nothing.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tinstance.client = new SocketClient(host, port, instance);\n\t}", "public Socket getSocket(String host,Integer port) throws UnknownHostException,IOException;", "public MVClient(String host, int port) throws UnknownHostException, IOException {\n\t\t\n\t\t// Connect to the server and get the communcation streams\n\t\tclientSocket = new Socket(host, port);\n\t\toutToServer = clientSocket.getOutputStream();\n\t\tinFromServer = clientSocket.getInputStream();\n\t}", "private void logSocketAddress(Socket clientSocket) {\n LOG.log(Level.INFO, \" Local IP address: {0}\", new Object[]{clientSocket.getLocalAddress()});\n LOG.log(Level.INFO, \" Local port: {0}\", new Object[]{Integer.toString(clientSocket.getLocalPort())});\n LOG.log(Level.INFO, \" Remote Socket address: {0}\", new Object[]{clientSocket.getRemoteSocketAddress()});\n LOG.log(Level.INFO, \" Remote port: {0}\", new Object[]{Integer.toString(clientSocket.getPort())});\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX WARNING: Code restructure failed: missing block: B:2:0x000a, code lost: r1 = getDetail(r3); / Code decompiled incorrectly, please refer to instructions dump.
public org.simpleframework.xml.core.ContactList getMethods(java.lang.Class r3) throws java.lang.Exception { /* r2 = this; org.simpleframework.xml.util.Cache<org.simpleframework.xml.core.ContactList> r0 = r2.methods java.lang.Object r0 = r0.fetch(r3) org.simpleframework.xml.core.ContactList r0 = (org.simpleframework.xml.core.ContactList) r0 if (r0 != 0) goto L_0x0014 org.simpleframework.xml.core.Detail r1 = r2.getDetail(r3) if (r1 == 0) goto L_0x0014 org.simpleframework.xml.core.ContactList r0 = r2.getMethods(r3, r1) L_0x0014: return r0 */ throw new UnsupportedOperationException("Method not decompiled: org.simpleframework.xml.core.DetailExtractor.getMethods(java.lang.Class):org.simpleframework.xml.core.ContactList"); }
[ "@Override\n public final void a() {\n block12 : {\n block11 : {\n block10 : {\n try {\n var2_1 = f0.b(this.e, this.f);\n var3_2 = null;\n if (var2_1) {\n var4_3 = this.f;\n var5_4 = this.e;\n var6_5 = this.i.a;\n var7_6 = var4_3;\n var8_7 = var5_4;\n var9_8 = var6_5;\n } else {\n var9_8 = null;\n var8_7 = null;\n var7_6 = null;\n }\n f0.a(this.g);\n if (!f0.j.booleanValue() && var8_7 == null) break block10;\n break block11;\n }\n catch (Exception var1_20) {\n this.i.a(var1_20, true, false);\n return;\n }\n }\n var10_9 = false;\n break block12;\n }\n var10_9 = true;\n }\n var11_10 = this.i;\n var12_11 = this.g;\n if (var11_10 == null) throw null;\n if (!var10_9) ** GOTO lbl34\n try {\n block13 : {\n var21_12 = DynamiteModule.l;\n break block13;\nlbl34: // 1 sources:\n var21_12 = DynamiteModule.j;\n }\n var3_2 = vb.asInterface((IBinder)DynamiteModule.a((Context)var12_11, (DynamiteModule.b)var21_12, (String)\"com.google.android.gms.measurement.dynamite\").a(\"com.google.android.gms.measurement.internal.AppMeasurementDynamiteService\"));\n }\n catch (DynamiteModule.a var13_13) {\n var11_10.a((Exception)var13_13, true, false);\n }\n var11_10.h = var3_2;\n if (this.i.h == null) {\n Log.w((String)this.i.a, (String)\"Failed to connect to measurement client.\");\n return;\n }\n var14_14 = DynamiteModule.a((Context)this.g, (String)\"com.google.android.gms.measurement.dynamite\");\n var15_15 = DynamiteModule.a((Context)this.g, (String)\"com.google.android.gms.measurement.dynamite\", (boolean)false);\n if (var10_9) {\n var16_16 = Math.max((int)var14_14, (int)var15_15);\n var17_17 = var15_15 < var14_14;\n var18_18 = var17_17;\n } else {\n if (var14_14 > 0) {\n var15_15 = var14_14;\n }\n var16_16 = var15_15;\n var18_18 = var14_14 > 0;\n }\n var19_19 = new zzy(39000L, (long)var16_16, var18_18, var9_8, var8_7, var7_6, this.h, a.b(this.g));\n this.i.h.initialize(new b<Context>(this.g), var19_19, this.a);\n }", "private void m40401c(com.facebook.common.references.C13326a<com.facebook.imagepipeline.p720g.C13645c> r2, int r3) {\n /*\n r1 = this;\n monitor-enter(r1)\n boolean r0 = r1.f36368i // Catch:{ all -> 0x0022 }\n if (r0 == 0) goto L_0x0007\n monitor-exit(r1) // Catch:{ all -> 0x0022 }\n return\n L_0x0007:\n com.facebook.common.references.a<com.facebook.imagepipeline.g.c> r0 = r1.f36361a // Catch:{ all -> 0x0022 }\n com.facebook.common.references.a r2 = com.facebook.common.references.C13326a.m39000b(r2) // Catch:{ all -> 0x0022 }\n r1.f36361a = r2 // Catch:{ all -> 0x0022 }\n r1.f36362b = r3 // Catch:{ all -> 0x0022 }\n r2 = 1\n r1.f36363c = r2 // Catch:{ all -> 0x0022 }\n boolean r2 = r1.m40405f() // Catch:{ all -> 0x0022 }\n monitor-exit(r1) // Catch:{ all -> 0x0022 }\n com.facebook.common.references.C13326a.m39001c(r0)\n if (r2 == 0) goto L_0x0021\n r1.m40404e()\n L_0x0021:\n return\n L_0x0022:\n r2 = move-exception\n monitor-exit(r1) // Catch:{ all -> 0x0022 }\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.imagepipeline.p724k.C13691al.C13693a.m40401c(com.facebook.common.references.a, int):void\");\n }", "protected synchronized void a(int r19, byte[] r20, com.tencent.bugly.beta.upgrade.a r21, boolean r22, java.lang.String r23) {\n /*\n r18 = this;\n monitor-enter(r18);\n r1 = com.tencent.bugly.crashreport.common.info.a.b();\t Catch:{ all -> 0x0255 }\n r2 = com.tencent.bugly.beta.global.e.E;\t Catch:{ Throwable -> 0x0239 }\n r2 = r2.s;\t Catch:{ Throwable -> 0x0239 }\n r4 = r19;\n r3 = r20;\n r2 = com.tencent.bugly.proguard.ah.a(r2, r4, r3);\t Catch:{ Throwable -> 0x0237 }\n if (r2 == 0) goto L_0x0235;\n L_0x0013:\n r3 = com.tencent.bugly.beta.global.e.E;\t Catch:{ Throwable -> 0x0237 }\n r5 = r3.u;\t Catch:{ Throwable -> 0x0237 }\n r2.b = r5;\t Catch:{ Throwable -> 0x0237 }\n r5 = r3.P;\t Catch:{ Throwable -> 0x0237 }\n r5 = android.text.TextUtils.isEmpty(r5);\t Catch:{ Throwable -> 0x0237 }\n if (r5 != 0) goto L_0x0025;\n L_0x0021:\n r5 = r3.P;\t Catch:{ Throwable -> 0x0237 }\n r2.e = r5;\t Catch:{ Throwable -> 0x0237 }\n L_0x0025:\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n if (r5 == 0) goto L_0x0235;\n L_0x0029:\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G6\";\n r7 = r3.v;\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G10\";\n r7 = \"1.3.4\";\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G3\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r3.x;\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G11\";\n r7 = r3.w;\t Catch:{ Throwable -> 0x0237 }\n r7 = java.lang.String.valueOf(r7);\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G7\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r1.m();\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G8\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r1.k();\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G9\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r1.l();\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G2\";\n r7 = com.tencent.bugly.beta.global.e.E;\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.s;\t Catch:{ Throwable -> 0x0237 }\n r7 = com.tencent.bugly.beta.global.a.a(r7);\t Catch:{ Throwable -> 0x0237 }\n r7 = java.lang.String.valueOf(r7);\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G12\";\n r7 = r3.o;\t Catch:{ Throwable -> 0x0237 }\n r7 = java.lang.String.valueOf(r7);\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"A21\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r1.g();\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"A22\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r1.h();\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G13\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r3.J;\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G14\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r3.K;\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G15\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r3.M;\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G17\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r1.x();\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"C01\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r1.H();\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r6 = \"G18\";\n r7 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r7.<init>();\t Catch:{ Throwable -> 0x0237 }\n r8 = r1.g();\t Catch:{ Throwable -> 0x0237 }\n r7.append(r8);\t Catch:{ Throwable -> 0x0237 }\n r7 = r7.toString();\t Catch:{ Throwable -> 0x0237 }\n r5.put(r6, r7);\t Catch:{ Throwable -> 0x0237 }\n r5 = r1.B();\t Catch:{ Throwable -> 0x0237 }\n if (r5 == 0) goto L_0x01b2;\n L_0x017a:\n r6 = r5.size();\t Catch:{ Throwable -> 0x0237 }\n if (r6 <= 0) goto L_0x01b2;\n L_0x0180:\n r5 = r5.entrySet();\t Catch:{ Throwable -> 0x0237 }\n r5 = r5.iterator();\t Catch:{ Throwable -> 0x0237 }\n L_0x0188:\n r6 = r5.hasNext();\t Catch:{ Throwable -> 0x0237 }\n if (r6 == 0) goto L_0x01b2;\n L_0x018e:\n r6 = r5.next();\t Catch:{ Throwable -> 0x0237 }\n r6 = (java.util.Map.Entry) r6;\t Catch:{ Throwable -> 0x0237 }\n r7 = r2.k;\t Catch:{ Throwable -> 0x0237 }\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r9 = \"C03_\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0237 }\n r9 = r6.getKey();\t Catch:{ Throwable -> 0x0237 }\n r9 = (java.lang.String) r9;\t Catch:{ Throwable -> 0x0237 }\n r8.append(r9);\t Catch:{ Throwable -> 0x0237 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0237 }\n r6 = r6.getValue();\t Catch:{ Throwable -> 0x0237 }\n r7.put(r8, r6);\t Catch:{ Throwable -> 0x0237 }\n goto L_0x0188;\n L_0x01b2:\n r5 = \"app version is: [%s.%s], [deviceId:%s], channel: [%s], base tinkerId:[%s], patch tinkerId:[%s], patch version:[%s]\";\n r6 = 7;\n r6 = new java.lang.Object[r6];\t Catch:{ Throwable -> 0x0237 }\n r7 = 0;\n r8 = r3.x;\t Catch:{ Throwable -> 0x0237 }\n r6[r7] = r8;\t Catch:{ Throwable -> 0x0237 }\n r7 = 1;\n r8 = r3.w;\t Catch:{ Throwable -> 0x0237 }\n r8 = java.lang.Integer.valueOf(r8);\t Catch:{ Throwable -> 0x0237 }\n r6[r7] = r8;\t Catch:{ Throwable -> 0x0237 }\n r7 = 2;\n r1 = r1.h();\t Catch:{ Throwable -> 0x0237 }\n r6[r7] = r1;\t Catch:{ Throwable -> 0x0237 }\n r1 = 3;\n r7 = r2.e;\t Catch:{ Throwable -> 0x0237 }\n r6[r1] = r7;\t Catch:{ Throwable -> 0x0237 }\n r1 = 4;\n r7 = r3.J;\t Catch:{ Throwable -> 0x0237 }\n r6[r1] = r7;\t Catch:{ Throwable -> 0x0237 }\n r1 = 5;\n r7 = r3.K;\t Catch:{ Throwable -> 0x0237 }\n r6[r1] = r7;\t Catch:{ Throwable -> 0x0237 }\n r1 = 6;\n r3 = r3.M;\t Catch:{ Throwable -> 0x0237 }\n r6[r1] = r3;\t Catch:{ Throwable -> 0x0237 }\n com.tencent.bugly.proguard.an.c(r5, r6);\t Catch:{ Throwable -> 0x0237 }\n r1 = new java.util.HashMap;\t Catch:{ Throwable -> 0x0237 }\n r1.<init>();\t Catch:{ Throwable -> 0x0237 }\n r3 = \"grayStrategyUpdateTime\";\n r5 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0237 }\n r5.<init>();\t Catch:{ Throwable -> 0x0237 }\n r6 = com.tencent.bugly.beta.global.e.E;\t Catch:{ Throwable -> 0x0237 }\n r6 = r6.F;\t Catch:{ Throwable -> 0x0237 }\n r6 = r6.b;\t Catch:{ Throwable -> 0x0237 }\n r5.append(r6);\t Catch:{ Throwable -> 0x0237 }\n r5 = r5.toString();\t Catch:{ Throwable -> 0x0237 }\n r1.put(r3, r5);\t Catch:{ Throwable -> 0x0237 }\n if (r22 == 0) goto L_0x021e;\n L_0x0201:\n r7 = com.tencent.bugly.proguard.ak.a();\t Catch:{ Throwable -> 0x0237 }\n r8 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r9 = r2.g;\t Catch:{ Throwable -> 0x0237 }\n r10 = com.tencent.bugly.proguard.ah.a(r2);\t Catch:{ Throwable -> 0x0237 }\n r14 = 0;\n r15 = 1;\n r16 = 1;\n r11 = r23;\n r12 = r23;\n r13 = r21;\n r17 = r1;\n r7.a(r8, r9, r10, r11, r12, r13, r14, r15, r16, r17);\t Catch:{ Throwable -> 0x0237 }\n monitor-exit(r18);\n return;\n L_0x021e:\n r7 = com.tencent.bugly.proguard.ak.a();\t Catch:{ Throwable -> 0x0237 }\n r8 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r9 = r2.g;\t Catch:{ Throwable -> 0x0237 }\n r10 = com.tencent.bugly.proguard.ah.a(r2);\t Catch:{ Throwable -> 0x0237 }\n r14 = 0;\n r11 = r23;\n r12 = r23;\n r13 = r21;\n r15 = r1;\n r7.a(r8, r9, r10, r11, r12, r13, r14, r15);\t Catch:{ Throwable -> 0x0237 }\n L_0x0235:\n monitor-exit(r18);\n return;\n L_0x0237:\n r0 = move-exception;\n goto L_0x023c;\n L_0x0239:\n r0 = move-exception;\n r4 = r19;\n L_0x023c:\n r1 = r0;\n r2 = com.tencent.bugly.proguard.an.a(r1);\t Catch:{ all -> 0x0255 }\n if (r2 != 0) goto L_0x0246;\n L_0x0243:\n r1.printStackTrace();\t Catch:{ all -> 0x0255 }\n L_0x0246:\n r5 = 0;\n r6 = 0;\n r8 = 0;\n r10 = 0;\n r11 = \"sendRequest failed\";\n r3 = r21;\n r3.a(r4, r5, r6, r8, r10, r11);\t Catch:{ all -> 0x0255 }\n monitor-exit(r18);\n return;\n L_0x0255:\n r0 = move-exception;\n r1 = r0;\n monitor-exit(r18);\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.beta.upgrade.b.a(int, byte[], com.tencent.bugly.beta.upgrade.a, boolean, java.lang.String):void\");\n }", "private final android.os.Bundle m27093f(long r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f20526a;\n monitor-enter(r0);\n r1 = r2.f20527b;\t Catch:{ all -> 0x001a }\n if (r1 != 0) goto L_0x0010;\n L_0x0007:\n r1 = r2.f20526a;\t Catch:{ InterruptedException -> 0x000d }\n r1.wait(r3);\t Catch:{ InterruptedException -> 0x000d }\n goto L_0x0010;\n L_0x000d:\n r3 = 0;\n monitor-exit(r0);\t Catch:{ all -> 0x001a }\n return r3;\t Catch:{ all -> 0x001a }\n L_0x0010:\n r3 = r2.f20526a;\t Catch:{ all -> 0x001a }\n r3 = r3.get();\t Catch:{ all -> 0x001a }\n r3 = (android.os.Bundle) r3;\t Catch:{ all -> 0x001a }\n monitor-exit(r0);\t Catch:{ all -> 0x001a }\n return r3;\t Catch:{ all -> 0x001a }\n L_0x001a:\n r3 = move-exception;\t Catch:{ all -> 0x001a }\n monitor-exit(r0);\t Catch:{ all -> 0x001a }\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzem.a.f(long):android.os.Bundle\");\n }", "public /* synthetic */ void b() {\n /*\n r3 = this;\n monitor-enter(r3)\n boolean r0 = r3.f4048c // Catch:{ all -> 0x0037 }\n if (r0 == 0) goto L_0x0007\n monitor-exit(r3) // Catch:{ all -> 0x0037 }\n return\n L_0x0007:\n com.airpay.paysdk.common.net.tcp.b.c r0 = com.airpay.paysdk.common.net.tcp.b.c.this // Catch:{ all -> 0x0037 }\n java.util.Map r0 = r0.f4031c // Catch:{ all -> 0x0037 }\n int r1 = r3.f4047b // Catch:{ all -> 0x0037 }\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1) // Catch:{ all -> 0x0037 }\n java.lang.Object r0 = r0.get(r1) // Catch:{ all -> 0x0037 }\n com.airpay.paysdk.common.net.tcp.b.c$b r0 = (com.airpay.paysdk.common.net.tcp.b.c.b) r0 // Catch:{ all -> 0x0037 }\n if (r0 == 0) goto L_0x0035\n com.airpay.paysdk.common.net.tcp.b.c r1 = com.airpay.paysdk.common.net.tcp.b.c.this // Catch:{ all -> 0x0037 }\n java.util.Map r1 = r1.f4031c // Catch:{ all -> 0x0037 }\n int r2 = r3.f4047b // Catch:{ all -> 0x0037 }\n java.lang.Integer r2 = java.lang.Integer.valueOf(r2) // Catch:{ all -> 0x0037 }\n r1.remove(r2) // Catch:{ all -> 0x0037 }\n com.airpay.paysdk.common.net.tcp.c.a r0 = r0.a() // Catch:{ all -> 0x0037 }\n r1 = 10012(0x271c, float:1.403E-41)\n java.lang.String r2 = \"request is time out !\"\n r0.a(r1, r2) // Catch:{ all -> 0x0037 }\n L_0x0035:\n monitor-exit(r3) // Catch:{ all -> 0x0037 }\n return\n L_0x0037:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x0037 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.airpay.paysdk.common.net.tcp.b.c.C0081c.b():void\");\n }", "private final com.google.wireless.android.p356a.p357a.p358a.p359a.C7278j m34408b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x0015;\n case 24: goto L_0x001c;\n case 34: goto L_0x004d;\n case 42: goto L_0x0054;\n case 48: goto L_0x005b;\n case 58: goto L_0x008e;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.m33564f();\n r6.f36088a = r0;\n goto L_0x0000;\n L_0x0015:\n r0 = r7.m33564f();\n r6.f36089b = r0;\n goto L_0x0000;\n L_0x001c:\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0042 }\n switch(r2) {\n case 0: goto L_0x004a;\n case 1: goto L_0x004a;\n case 2: goto L_0x004a;\n case 3: goto L_0x004a;\n default: goto L_0x0027;\n };\t Catch:{ IllegalArgumentException -> 0x0042 }\n L_0x0027:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0042 }\n r4 = 42;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0042 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0042 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0042 }\n r4 = \" is not a valid enum DeviceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0042 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0042 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0042 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0042 }\n L_0x0042:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x004a:\n r6.f36090c = r2;\t Catch:{ IllegalArgumentException -> 0x0042 }\n goto L_0x0000;\n L_0x004d:\n r0 = r7.m33564f();\n r6.f36091d = r0;\n goto L_0x0000;\n L_0x0054:\n r0 = r7.m33564f();\n r6.f36092e = r0;\n goto L_0x0000;\n L_0x005b:\n r1 = r7.m33573o();\n r2 = r7.m33560d();\t Catch:{ IllegalArgumentException -> 0x0081 }\n switch(r2) {\n case 0: goto L_0x008a;\n case 1: goto L_0x008a;\n case 2: goto L_0x008a;\n case 3: goto L_0x008a;\n case 4: goto L_0x008a;\n case 5: goto L_0x008a;\n case 6: goto L_0x008a;\n case 7: goto L_0x008a;\n case 8: goto L_0x008a;\n default: goto L_0x0066;\n };\t Catch:{ IllegalArgumentException -> 0x0081 }\n L_0x0066:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0081 }\n r4 = 38;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0081 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0081 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0081 }\n r4 = \" is not a valid enum OsType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0081 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0081 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0081 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0081 }\n L_0x0081:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x008a:\n r6.f36093f = r2;\t Catch:{ IllegalArgumentException -> 0x0081 }\n goto L_0x0000;\n L_0x008e:\n r0 = r7.m33564f();\n r6.f36094g = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.a.a.a.a.j.b(com.google.protobuf.nano.a):com.google.wireless.android.a.a.a.a.j\");\n }", "private V m24384b(K r18, int r19, com.google.android.m4b.maps.p126z.C5587d<? super K, V> r20) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.utils.BlockUtils.getBlockByInsn(BlockUtils.java:171)\n\tat jadx.core.dex.visitors.ssa.EliminatePhiNodes.replaceMerge(EliminatePhiNodes.java:90)\n\tat jadx.core.dex.visitors.ssa.EliminatePhiNodes.replaceMergeInstructions(EliminatePhiNodes.java:68)\n\tat jadx.core.dex.visitors.ssa.EliminatePhiNodes.visit(EliminatePhiNodes.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r17 = this;\n r1 = r17;\n r2 = r18;\n r3 = r19;\n r17.lock();\n r4 = r1.f20641a;\t Catch:{ all -> 0x00cc }\n r4 = r4.f20676p;\t Catch:{ all -> 0x00cc }\n r4 = r4.mo5824a();\t Catch:{ all -> 0x00cc }\n r1.m24388c(r4);\t Catch:{ all -> 0x00cc }\n r6 = r1.f20642b;\t Catch:{ all -> 0x00cc }\n r7 = 1;\t Catch:{ all -> 0x00cc }\n r6 = r6 - r7;\t Catch:{ all -> 0x00cc }\n r8 = r1.f20644d;\t Catch:{ all -> 0x00cc }\n r9 = r8.length();\t Catch:{ all -> 0x00cc }\n r9 = r9 - r7;\t Catch:{ all -> 0x00cc }\n r9 = r9 & r3;\t Catch:{ all -> 0x00cc }\n r10 = r8.get(r9);\t Catch:{ all -> 0x00cc }\n r10 = (com.google.android.m4b.maps.p126z.C5599g.C5594p) r10;\t Catch:{ all -> 0x00cc }\n r11 = r10;\t Catch:{ all -> 0x00cc }\n L_0x0027:\n if (r11 == 0) goto L_0x0086;\t Catch:{ all -> 0x00cc }\n L_0x0029:\n r13 = r11.mo5847d();\t Catch:{ all -> 0x00cc }\n r14 = r11.mo5845c();\t Catch:{ all -> 0x00cc }\n if (r14 != r3) goto L_0x0081;\t Catch:{ all -> 0x00cc }\n L_0x0033:\n if (r13 == 0) goto L_0x0081;\t Catch:{ all -> 0x00cc }\n L_0x0035:\n r14 = r1.f20641a;\t Catch:{ all -> 0x00cc }\n r14 = r14.f20665e;\t Catch:{ all -> 0x00cc }\n r14 = r14.m24261a(r2, r13);\t Catch:{ all -> 0x00cc }\n if (r14 == 0) goto L_0x0081;\t Catch:{ all -> 0x00cc }\n L_0x003f:\n r14 = r11.mo5838a();\t Catch:{ all -> 0x00cc }\n r15 = r14.mo5834c();\t Catch:{ all -> 0x00cc }\n if (r15 == 0) goto L_0x004b;\t Catch:{ all -> 0x00cc }\n L_0x0049:\n r4 = 0;\t Catch:{ all -> 0x00cc }\n goto L_0x0088;\t Catch:{ all -> 0x00cc }\n L_0x004b:\n r15 = r14.get();\t Catch:{ all -> 0x00cc }\n if (r15 != 0) goto L_0x0057;\t Catch:{ all -> 0x00cc }\n L_0x0051:\n r4 = com.google.android.m4b.maps.p126z.C5602k.COLLECTED;\t Catch:{ all -> 0x00cc }\n r1.m24379a(r13, r14, r4);\t Catch:{ all -> 0x00cc }\n goto L_0x0064;\t Catch:{ all -> 0x00cc }\n L_0x0057:\n r12 = r1.f20641a;\t Catch:{ all -> 0x00cc }\n r12 = r12.m24430a(r11, r4);\t Catch:{ all -> 0x00cc }\n if (r12 == 0) goto L_0x0072;\t Catch:{ all -> 0x00cc }\n L_0x005f:\n r4 = com.google.android.m4b.maps.p126z.C5602k.EXPIRED;\t Catch:{ all -> 0x00cc }\n r1.m24379a(r13, r14, r4);\t Catch:{ all -> 0x00cc }\n L_0x0064:\n r4 = r1.f20648h;\t Catch:{ all -> 0x00cc }\n r4.remove(r11);\t Catch:{ all -> 0x00cc }\n r4 = r1.f20649i;\t Catch:{ all -> 0x00cc }\n r4.remove(r11);\t Catch:{ all -> 0x00cc }\n r1.f20642b = r6;\t Catch:{ all -> 0x00cc }\n r4 = 1;\t Catch:{ all -> 0x00cc }\n goto L_0x0088;\t Catch:{ all -> 0x00cc }\n L_0x0072:\n r1.m24389c(r11, r4);\t Catch:{ all -> 0x00cc }\n r2 = r1.f20654n;\t Catch:{ all -> 0x00cc }\n r2.mo5826a(r7);\t Catch:{ all -> 0x00cc }\n r17.unlock();\n r17.m24406b();\n return r15;\n L_0x0081:\n r11 = r11.mo5842b();\t Catch:{ all -> 0x00cc }\n goto L_0x0027;\t Catch:{ all -> 0x00cc }\n L_0x0086:\n r4 = 1;\t Catch:{ all -> 0x00cc }\n r14 = 0;\t Catch:{ all -> 0x00cc }\n L_0x0088:\n if (r4 == 0) goto L_0x00a0;\t Catch:{ all -> 0x00cc }\n L_0x008a:\n r12 = new com.google.android.m4b.maps.z.g$k;\t Catch:{ all -> 0x00cc }\n r12.<init>();\t Catch:{ all -> 0x00cc }\n if (r11 != 0) goto L_0x009c;\t Catch:{ all -> 0x00cc }\n L_0x0091:\n r11 = r1.m24371a(r2, r3, r10);\t Catch:{ all -> 0x00cc }\n r11.mo5841a(r12);\t Catch:{ all -> 0x00cc }\n r8.set(r9, r11);\t Catch:{ all -> 0x00cc }\n goto L_0x00a1;\t Catch:{ all -> 0x00cc }\n L_0x009c:\n r11.mo5841a(r12);\t Catch:{ all -> 0x00cc }\n goto L_0x00a1;\n L_0x00a0:\n r12 = 0;\n L_0x00a1:\n r17.unlock();\n r17.m24406b();\n if (r4 == 0) goto L_0x00c7;\n L_0x00a9:\n monitor-enter(r11);\t Catch:{ all -> 0x00bf }\n r4 = r20;\n r4 = r12.m30404a(r2, r4);\t Catch:{ all -> 0x00bb }\n r2 = r1.m24398a(r2, r3, r12, r4);\t Catch:{ all -> 0x00bb }\n monitor-exit(r11);\t Catch:{ all -> 0x00bb }\n r3 = r1.f20654n;\n r3.mo5828b(r7);\n return r2;\n L_0x00bb:\n r0 = move-exception;\n r2 = r0;\n monitor-exit(r11);\t Catch:{ all -> 0x00bb }\n throw r2;\t Catch:{ all -> 0x00bf }\n L_0x00bf:\n r0 = move-exception;\n r2 = r0;\n r3 = r1.f20654n;\n r3.mo5828b(r7);\n throw r2;\n L_0x00c7:\n r2 = r1.m24373a(r11, r2, r14);\n return r2;\n L_0x00cc:\n r0 = move-exception;\n r2 = r0;\n r17.unlock();\n r17.m24406b();\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.z.g.q.b(java.lang.Object, int, com.google.android.m4b.maps.z.d):V\");\n }", "@Override\n public void a(int var1_1, com.samsung.android.spayfw.remoteservice.c<IdvOptionsData> var2_2) {\n block12 : {\n block11 : {\n var3_3 = null;\n Log.d(\"IdvRefresher\", \"RefreshIdv : onRequestComplete: \" + var1_1);\n var4_4 = i.this.ba();\n if (var4_4 != 0 && i.this.lm != null) {\n try {\n i.this.lm.onFail(i.this.mEnrollmentId, var4_4);\n }\n catch (RemoteException var11_8) {\n Log.c(\"IdvRefresher\", var11_8.getMessage(), var11_8);\n }\n }\n var5_5 = i.this.iJ.q(i.this.mEnrollmentId);\n switch (var1_1) {\n default: {\n var10_6 = var2_2 != null ? var2_2.fa() : null;\n }\n case 200: {\n if (var2_2 == null) ** GOTO lbl21\n var3_3 = m.a(var5_5, var2_2.getResult());\n if (var3_3 != null) break block11;\n Log.e(\"IdvRefresher\", \"IdvMethod is null\");\n var6_7 = -3;\n break block12;\nlbl21: // 1 sources:\n Log.e(\"IdvRefresher\", \"IdvMethod is null\");\n var6_7 = -3;\n var3_3 = null;\n break block12;\n }\n case 205: {\n var6_7 = -8;\n i.this.iJ.s(i.this.mEnrollmentId);\n i.this.jJ.d(TokenRecordStorage.TokenGroup.TokenColumn.Cn, i.this.mEnrollmentId);\n var3_3 = null;\n break block12;\n }\n }\n var6_7 = p.a(var1_1, var10_6);\n break block12;\n }\n var6_7 = var4_4;\n }\n try {\n if (i.this.lm == null) return;\n if (var6_7 == 0) {\n i.this.lm.onSuccess(i.this.mEnrollmentId, var3_3);\n return;\n }\n i.this.lm.onFail(i.this.mEnrollmentId, var6_7);\n return;\n }\n catch (RemoteException var9_9) {\n Log.c(\"IdvRefresher\", var9_9.getMessage(), var9_9);\n return;\n }\n }", "void dumpInner(String var1_1, FileDescriptor var2_2, PrintWriter var3_3, String[] var4_4) {\n block6 : {\n block8 : {\n block7 : {\n if (var4_4 == null || var4_4.length <= 0) break block6;\n var5_5 = 0;\n var6_6 = var4_4[0];\n var7_7 = var6_6.hashCode();\n if (var7_7 == 1159329357) break block7;\n if (var7_7 != 1455016274 || !var6_6.equals(\"--autofill\")) ** GOTO lbl-1000\n break block8;\n }\n if (var6_6.equals(\"--contentcapture\")) {\n var5_5 = 1;\n } else lbl-1000: // 2 sources:\n {\n var5_5 = -1;\n }\n }\n if (var5_5 == 0) {\n this.dumpAutofillManager(var1_1, var3_3);\n return;\n }\n if (var5_5 == 1) {\n this.dumpContentCaptureManager(var1_1, var3_3);\n return;\n }\n }\n var3_3.print(var1_1);\n var3_3.print(\"Local Activity \");\n var3_3.print(Integer.toHexString(System.identityHashCode(this)));\n var3_3.println(\" State:\");\n var6_6 = new StringBuilder();\n var6_6.append(var1_1);\n var6_6.append(\" \");\n var8_8 = var6_6.toString();\n var3_3.print(var8_8);\n var3_3.print(\"mResumed=\");\n var3_3.print(this.mResumed);\n var3_3.print(\" mStopped=\");\n var3_3.print(this.mStopped);\n var3_3.print(\" mFinished=\");\n var3_3.println(this.mFinished);\n var3_3.print(var8_8);\n var3_3.print(\"mChangingConfigurations=\");\n var3_3.println(this.mChangingConfigurations);\n var3_3.print(var8_8);\n var3_3.print(\"mCurrentConfig=\");\n var3_3.println(this.mCurrentConfig);\n this.mFragments.dumpLoaders(var8_8, var2_2, var3_3, var4_4);\n this.mFragments.getFragmentManager().dump(var8_8, var2_2, var3_3, var4_4);\n var6_6 = this.mVoiceInteractor;\n if (var6_6 != null) {\n var6_6.dump(var8_8, var2_2, var3_3, var4_4);\n }\n if (this.getWindow() != null && this.getWindow().peekDecorView() != null && this.getWindow().peekDecorView().getViewRootImpl() != null) {\n this.getWindow().peekDecorView().getViewRootImpl().dump(var1_1, var2_2, var3_3, var4_4);\n }\n this.mHandler.getLooper().dump(new PrintWriterPrinter(var3_3), var1_1);\n this.dumpAutofillManager(var1_1, var3_3);\n this.dumpContentCaptureManager(var1_1, var3_3);\n ResourcesManager.getInstance().dump(var1_1, var3_3);\n }", "@android.support.annotation.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static com.autonavi.minimap.route.bus.model.Bus parse(org.json.JSONObject r11) {\n /*\n com.autonavi.minimap.route.bus.model.Bus r0 = new com.autonavi.minimap.route.bus.model.Bus\n r0.<init>()\n java.lang.String r1 = \"id\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x0015\n java.lang.String r1 = \"id\"\n java.lang.String r1 = r11.getString(r1) // Catch:{ Exception -> 0x0344 }\n r0.id = r1 // Catch:{ Exception -> 0x0344 }\n L_0x0015:\n java.lang.String r1 = \"type\"\n int r1 = r11.optInt(r1) // Catch:{ Exception -> 0x0344 }\n r0.type = r1 // Catch:{ Exception -> 0x0344 }\n java.lang.String r1 = \"name\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x002e\n java.lang.String r1 = \"name\"\n java.lang.String r1 = r11.getString(r1) // Catch:{ Exception -> 0x0344 }\n r0.name = r1 // Catch:{ Exception -> 0x0344 }\n L_0x002e:\n java.lang.String r1 = \"front_name\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x003e\n java.lang.String r1 = \"front_name\"\n java.lang.String r1 = r11.getString(r1) // Catch:{ Exception -> 0x0344 }\n r0.startName = r1 // Catch:{ Exception -> 0x0344 }\n L_0x003e:\n java.lang.String r1 = \"terminal_name\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x0050\n java.lang.String r1 = \"terminal_name\"\n java.lang.String r1 = r11.getString(r1) // Catch:{ Exception -> 0x0344 }\n r0.endName = r1 // Catch:{ Exception -> 0x0344 }\n L_0x0050:\n java.lang.String r1 = \"color\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x0060\n java.lang.String r1 = \"color\"\n java.lang.String r1 = r11.getString(r1) // Catch:{ Exception -> 0x0344 }\n r0.color = r1 // Catch:{ Exception -> 0x0344 }\n L_0x0060:\n r1 = -1\n java.lang.String r2 = \"start_time\"\n boolean r2 = r11.has(r2) // Catch:{ JSONException -> 0x0077 }\n if (r2 == 0) goto L_0x0074\n java.lang.String r2 = \"start_time\"\n int r2 = r11.getInt(r2) // Catch:{ JSONException -> 0x0077 }\n r0.startTime = r2 // Catch:{ JSONException -> 0x0077 }\n goto L_0x0079\n L_0x0074:\n r0.startTime = r1 // Catch:{ JSONException -> 0x0077 }\n goto L_0x0079\n L_0x0077:\n r0.startTime = r1 // Catch:{ Exception -> 0x0344 }\n L_0x0079:\n java.lang.String r2 = \"end_time\"\n boolean r2 = r11.has(r2) // Catch:{ JSONException -> 0x008d }\n if (r2 == 0) goto L_0x008a\n java.lang.String r2 = \"end_time\"\n int r2 = r11.getInt(r2) // Catch:{ JSONException -> 0x008d }\n r0.endTime = r2 // Catch:{ JSONException -> 0x008d }\n goto L_0x008f\n L_0x008a:\n r0.endTime = r1 // Catch:{ JSONException -> 0x008d }\n goto L_0x008f\n L_0x008d:\n r0.endTime = r1 // Catch:{ Exception -> 0x0344 }\n L_0x008f:\n java.lang.String r2 = \"stationStartTime\"\n boolean r2 = r11.has(r2) // Catch:{ JSONException -> 0x00a5 }\n if (r2 == 0) goto L_0x00a2\n java.lang.String r2 = \"stationStartTime\"\n int r2 = r11.getInt(r2) // Catch:{ JSONException -> 0x00a5 }\n r0.stationStartTime = r2 // Catch:{ JSONException -> 0x00a5 }\n goto L_0x00a7\n L_0x00a2:\n r0.stationStartTime = r1 // Catch:{ JSONException -> 0x00a5 }\n goto L_0x00a7\n L_0x00a5:\n r0.stationStartTime = r1 // Catch:{ Exception -> 0x0344 }\n L_0x00a7:\n java.lang.String r2 = \"stationEndTime\"\n boolean r2 = r11.has(r2) // Catch:{ JSONException -> 0x00bd }\n if (r2 == 0) goto L_0x00ba\n java.lang.String r2 = \"stationEndTime\"\n int r2 = r11.getInt(r2) // Catch:{ JSONException -> 0x00bd }\n r0.stationEndTime = r2 // Catch:{ JSONException -> 0x00bd }\n goto L_0x00bf\n L_0x00ba:\n r0.stationEndTime = r1 // Catch:{ JSONException -> 0x00bd }\n goto L_0x00bf\n L_0x00bd:\n r0.stationEndTime = r1 // Catch:{ Exception -> 0x0344 }\n L_0x00bf:\n java.lang.String r1 = \"key_name\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x00cf\n java.lang.String r1 = \"key_name\"\n java.lang.String r1 = r11.getString(r1) // Catch:{ Exception -> 0x0344 }\n r0.key_name = r1 // Catch:{ Exception -> 0x0344 }\n L_0x00cf:\n java.lang.String r1 = \"status\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n r2 = 1\n if (r1 == 0) goto L_0x00e2\n java.lang.String r1 = \"status\"\n int r1 = r11.optInt(r1, r2) // Catch:{ Exception -> 0x0344 }\n r0.status = r1 // Catch:{ Exception -> 0x0344 }\n L_0x00e2:\n java.lang.String r1 = \"description\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x00f2\n java.lang.String r1 = \"description\"\n java.lang.String r1 = r11.optString(r1) // Catch:{ Exception -> 0x0344 }\n r0.description = r1 // Catch:{ Exception -> 0x0344 }\n L_0x00f2:\n java.lang.String r1 = \"emergency\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x0118\n java.lang.String r1 = \"emergency\"\n org.json.JSONObject r1 = r11.getJSONObject(r1) // Catch:{ Exception -> 0x0344 }\n com.autonavi.minimap.route.bus.model.Bus$a r3 = new com.autonavi.minimap.route.bus.model.Bus$a // Catch:{ Exception -> 0x0344 }\n r3.<init>() // Catch:{ Exception -> 0x0344 }\n java.lang.String r4 = \"state\"\n int r4 = r1.optInt(r4) // Catch:{ Exception -> 0x0344 }\n r3.a = r4 // Catch:{ Exception -> 0x0344 }\n java.lang.String r4 = \"description\"\n java.lang.String r1 = r1.optString(r4) // Catch:{ Exception -> 0x0344 }\n r3.b = r1 // Catch:{ Exception -> 0x0344 }\n r0.emergency = r3 // Catch:{ Exception -> 0x0344 }\n L_0x0118:\n java.lang.String r1 = \"interval\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x012c\n java.lang.String r1 = \"interval\"\n java.lang.String r1 = r11.optString(r1) // Catch:{ Exception -> 0x0344 }\n java.lang.String r1 = com.autonavi.minimap.route.bus.inter.impl.BusLineSearchResultImpl.getInterval4String(r1) // Catch:{ Exception -> 0x0344 }\n r0.interval = r1 // Catch:{ Exception -> 0x0344 }\n L_0x012c:\n java.lang.String r1 = \"direc\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x013c\n java.lang.String r1 = \"direc\"\n java.lang.String r1 = r11.optString(r1) // Catch:{ Exception -> 0x0344 }\n r0.returnId = r1 // Catch:{ Exception -> 0x0344 }\n L_0x013c:\n java.lang.String r1 = \"basic_price\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x014c\n java.lang.String r1 = \"basic_price\"\n java.lang.String r1 = r11.optString(r1) // Catch:{ Exception -> 0x0344 }\n r0.basic_price = r1 // Catch:{ Exception -> 0x0344 }\n L_0x014c:\n java.lang.String r1 = \"total_price\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x015e\n java.lang.String r1 = \"total_price\"\n java.lang.String r1 = r11.optString(r1) // Catch:{ Exception -> 0x0344 }\n r0.total_price = r1 // Catch:{ Exception -> 0x0344 }\n L_0x015e:\n java.lang.String r1 = \"basic_price_air\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x016e\n java.lang.String r1 = \"basic_price_air\"\n java.lang.String r1 = r11.optString(r1) // Catch:{ Exception -> 0x0344 }\n r0.basic_price_air = r1 // Catch:{ Exception -> 0x0344 }\n L_0x016e:\n java.lang.String r1 = \"total_price_air\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x0180\n java.lang.String r1 = \"total_price_air\"\n java.lang.String r1 = r11.optString(r1) // Catch:{ Exception -> 0x0344 }\n r0.total_price_air = r1 // Catch:{ Exception -> 0x0344 }\n L_0x0180:\n java.lang.String r1 = \"length\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n r3 = 0\n if (r1 == 0) goto L_0x01ad\n java.lang.String r1 = \"length\"\n java.lang.String r1 = r11.getString(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x01a7\n java.lang.String r4 = r1.trim() // Catch:{ Exception -> 0x0344 }\n java.lang.String r5 = \"\"\n boolean r4 = r4.equals(r5) // Catch:{ Exception -> 0x0344 }\n if (r4 != 0) goto L_0x01a7\n double r4 = java.lang.Double.parseDouble(r1) // Catch:{ Exception -> 0x0344 }\n int r4 = (int) r4 // Catch:{ Exception -> 0x0344 }\n r0.length = r4 // Catch:{ Exception -> 0x0344 }\n r0.otherLen = r1 // Catch:{ Exception -> 0x0344 }\n goto L_0x01ad\n L_0x01a7:\n r0.length = r3 // Catch:{ Exception -> 0x0344 }\n java.lang.String r1 = \"0.0\"\n r0.otherLen = r1 // Catch:{ Exception -> 0x0344 }\n L_0x01ad:\n java.lang.String r1 = \"is_realtime\"\n int r1 = r11.optInt(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 != r2) goto L_0x01b7\n r1 = 1\n goto L_0x01b8\n L_0x01b7:\n r1 = 0\n L_0x01b8:\n r0.isRealTime = r1 // Catch:{ Exception -> 0x0344 }\n java.lang.String r1 = \"irregular_time\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x01ce\n java.lang.String r1 = \"irregular_time\"\n java.lang.String r1 = defpackage.axr.e(r11, r1) // Catch:{ Exception -> 0x0344 }\n com.autonavi.bundle.routecommon.entity.BusPathSection$IrregularTime r1 = com.autonavi.minimap.route.bus.inter.impl.BusLineSearchResultImpl.getIrregularTime(r1) // Catch:{ Exception -> 0x0344 }\n r0.irregulartime = r1 // Catch:{ Exception -> 0x0344 }\n L_0x01ce:\n java.lang.String r1 = \"xs\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x024e\n java.lang.String r1 = \"ys\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x024e\n java.lang.String r1 = \"xs\"\n java.lang.String r1 = r11.getString(r1) // Catch:{ Exception -> 0x0344 }\n java.lang.String r4 = \"ys\"\n java.lang.String r4 = r11.getString(r4) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x024e\n java.lang.String r5 = r1.trim() // Catch:{ Exception -> 0x0344 }\n java.lang.String r6 = \"\"\n boolean r5 = r5.equals(r6) // Catch:{ Exception -> 0x0344 }\n if (r5 != 0) goto L_0x024e\n if (r4 == 0) goto L_0x024e\n java.lang.String r5 = r4.trim() // Catch:{ Exception -> 0x0344 }\n java.lang.String r6 = \"\"\n boolean r5 = r5.equals(r6) // Catch:{ Exception -> 0x0344 }\n if (r5 != 0) goto L_0x024e\n java.lang.String r5 = \",\"\n java.lang.String[] r1 = r1.split(r5) // Catch:{ Exception -> 0x0344 }\n java.lang.String r5 = \",\"\n java.lang.String[] r4 = r4.split(r5) // Catch:{ Exception -> 0x0344 }\n int r5 = r1.length // Catch:{ Exception -> 0x0344 }\n int r6 = r1.length // Catch:{ Exception -> 0x0344 }\n int[] r6 = new int[r6] // Catch:{ Exception -> 0x0344 }\n r0.coordX = r6 // Catch:{ Exception -> 0x0344 }\n int r6 = r1.length // Catch:{ Exception -> 0x0344 }\n int[] r6 = new int[r6] // Catch:{ Exception -> 0x0344 }\n r0.coordY = r6 // Catch:{ Exception -> 0x0344 }\n r6 = 0\n L_0x0222:\n if (r6 >= r5) goto L_0x024e\n int r7 = r4.length // Catch:{ Exception -> 0x0344 }\n if (r6 >= r7) goto L_0x024b\n r7 = r1[r6] // Catch:{ Exception -> 0x0344 }\n java.lang.Double r7 = java.lang.Double.valueOf(r7) // Catch:{ Exception -> 0x0344 }\n double r7 = r7.doubleValue() // Catch:{ Exception -> 0x0344 }\n r9 = r4[r6] // Catch:{ Exception -> 0x0344 }\n java.lang.Double r9 = java.lang.Double.valueOf(r9) // Catch:{ Exception -> 0x0344 }\n double r9 = r9.doubleValue() // Catch:{ Exception -> 0x0344 }\n android.graphics.Point r7 = defpackage.cfg.a(r9, r7) // Catch:{ Exception -> 0x0344 }\n int[] r8 = r0.coordX // Catch:{ Exception -> 0x0344 }\n int r9 = r7.x // Catch:{ Exception -> 0x0344 }\n r8[r6] = r9 // Catch:{ Exception -> 0x0344 }\n int[] r8 = r0.coordY // Catch:{ Exception -> 0x0344 }\n int r7 = r7.y // Catch:{ Exception -> 0x0344 }\n r8[r6] = r7 // Catch:{ Exception -> 0x0344 }\n L_0x024b:\n int r6 = r6 + 1\n goto L_0x0222\n L_0x024e:\n java.lang.String r1 = \"stations\"\n boolean r1 = r11.has(r1) // Catch:{ Exception -> 0x0344 }\n if (r1 == 0) goto L_0x0343\n java.lang.String r1 = \"stations\"\n org.json.JSONArray r11 = r11.getJSONArray(r1) // Catch:{ Exception -> 0x0344 }\n if (r11 == 0) goto L_0x0343\n int r1 = r11.length() // Catch:{ Exception -> 0x0344 }\n java.lang.String[] r4 = new java.lang.String[r1] // Catch:{ Exception -> 0x0344 }\n r0.stations = r4 // Catch:{ Exception -> 0x0344 }\n int[] r4 = new int[r1] // Catch:{ Exception -> 0x0344 }\n r0.stationX = r4 // Catch:{ Exception -> 0x0344 }\n int[] r4 = new int[r1] // Catch:{ Exception -> 0x0344 }\n r0.stationY = r4 // Catch:{ Exception -> 0x0344 }\n java.lang.String[] r4 = new java.lang.String[r1] // Catch:{ Exception -> 0x0344 }\n r0.stationIds = r4 // Catch:{ Exception -> 0x0344 }\n int[] r4 = new int[r1] // Catch:{ Exception -> 0x0344 }\n r0.stationstatus = r4 // Catch:{ Exception -> 0x0344 }\n java.lang.String[] r4 = new java.lang.String[r1] // Catch:{ Exception -> 0x0344 }\n r0.stationpoiid1 = r4 // Catch:{ Exception -> 0x0344 }\n java.lang.String[] r4 = new java.lang.String[r1] // Catch:{ Exception -> 0x0344 }\n r0.stationpoiid2 = r4 // Catch:{ Exception -> 0x0344 }\n r4 = 0\n L_0x0281:\n if (r4 >= r1) goto L_0x0343\n org.json.JSONObject r5 = r11.getJSONObject(r4) // Catch:{ Exception -> 0x0344 }\n java.lang.String[] r6 = r0.stations // Catch:{ Exception -> 0x0344 }\n java.lang.String r7 = \"name\"\n java.lang.String r7 = r5.getString(r7) // Catch:{ Exception -> 0x0344 }\n r6[r4] = r7 // Catch:{ Exception -> 0x0344 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0344 }\n r6.<init>() // Catch:{ Exception -> 0x0344 }\n java.lang.String r7 = \"code\"\n long r7 = r5.getLong(r7) // Catch:{ Exception -> 0x0344 }\n r6.append(r7) // Catch:{ Exception -> 0x0344 }\n java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x0344 }\n r0.areacode = r6 // Catch:{ Exception -> 0x0344 }\n java.lang.String r6 = \"xy_coords\"\n java.lang.String r6 = r5.getString(r6) // Catch:{ Exception -> 0x0344 }\n java.lang.String r7 = \";\"\n java.lang.String[] r6 = r6.split(r7) // Catch:{ Exception -> 0x0344 }\n int r7 = r6.length // Catch:{ Exception -> 0x0344 }\n r8 = 2\n if (r7 != r8) goto L_0x02da\n r7 = r6[r3] // Catch:{ Exception -> 0x0344 }\n java.lang.Double r7 = java.lang.Double.valueOf(r7) // Catch:{ Exception -> 0x0344 }\n double r7 = r7.doubleValue() // Catch:{ Exception -> 0x0344 }\n r6 = r6[r2] // Catch:{ Exception -> 0x0344 }\n java.lang.Double r6 = java.lang.Double.valueOf(r6) // Catch:{ Exception -> 0x0344 }\n double r9 = r6.doubleValue() // Catch:{ Exception -> 0x0344 }\n android.graphics.Point r6 = defpackage.cfg.a(r9, r7) // Catch:{ Exception -> 0x0344 }\n int[] r7 = r0.stationX // Catch:{ Exception -> 0x0344 }\n int r8 = r6.x // Catch:{ Exception -> 0x0344 }\n r7[r4] = r8 // Catch:{ Exception -> 0x0344 }\n int[] r7 = r0.stationY // Catch:{ Exception -> 0x0344 }\n int r6 = r6.y // Catch:{ Exception -> 0x0344 }\n r7[r4] = r6 // Catch:{ Exception -> 0x0344 }\n L_0x02da:\n java.lang.String r6 = \"name\"\n java.lang.String r6 = r5.getString(r6) // Catch:{ Exception -> 0x0344 }\n java.lang.String[] r7 = r0.stations // Catch:{ Exception -> 0x0344 }\n r7[r4] = r6 // Catch:{ Exception -> 0x0344 }\n java.lang.String r7 = \"station_id\"\n java.lang.String r7 = r5.getString(r7) // Catch:{ Exception -> 0x0344 }\n java.lang.String[] r8 = r0.stationIds // Catch:{ Exception -> 0x0344 }\n r8[r4] = r7 // Catch:{ Exception -> 0x0344 }\n java.lang.String r8 = \"subways\"\n boolean r8 = r5.has(r8) // Catch:{ Exception -> 0x0344 }\n if (r8 == 0) goto L_0x0302\n java.lang.String r8 = \"subways\"\n org.json.JSONArray r8 = r5.getJSONArray(r8) // Catch:{ Exception -> 0x0344 }\n com.autonavi.minimap.route.bus.inter.impl.BusLineSearchResultImpl.parseSubways(r0, r8, r6, r7) // Catch:{ Exception -> 0x0344 }\n L_0x0302:\n java.lang.String r6 = \"status\"\n boolean r6 = r5.has(r6) // Catch:{ Exception -> 0x0344 }\n if (r6 == 0) goto L_0x0317\n int[] r6 = r0.stationstatus // Catch:{ Exception -> 0x0344 }\n java.lang.String r7 = \"status\"\n int r7 = r5.getInt(r7) // Catch:{ Exception -> 0x0344 }\n r6[r4] = r7 // Catch:{ Exception -> 0x0344 }\n goto L_0x031b\n L_0x0317:\n int[] r6 = r0.stationstatus // Catch:{ Exception -> 0x0344 }\n r6[r4] = r2 // Catch:{ Exception -> 0x0344 }\n L_0x031b:\n java.lang.String r6 = \"poiid1\"\n boolean r6 = r5.has(r6) // Catch:{ Exception -> 0x0344 }\n if (r6 == 0) goto L_0x032d\n java.lang.String[] r6 = r0.stationpoiid1 // Catch:{ Exception -> 0x0344 }\n java.lang.String r7 = \"poiid1\"\n java.lang.String r7 = r5.getString(r7) // Catch:{ Exception -> 0x0344 }\n r6[r4] = r7 // Catch:{ Exception -> 0x0344 }\n L_0x032d:\n java.lang.String r6 = \"poiid2\"\n boolean r6 = r5.has(r6) // Catch:{ Exception -> 0x0344 }\n if (r6 == 0) goto L_0x033f\n java.lang.String[] r6 = r0.stationpoiid2 // Catch:{ Exception -> 0x0344 }\n java.lang.String r7 = \"poiid2\"\n java.lang.String r5 = r5.getString(r7) // Catch:{ Exception -> 0x0344 }\n r6[r4] = r5 // Catch:{ Exception -> 0x0344 }\n L_0x033f:\n int r4 = r4 + 1\n goto L_0x0281\n L_0x0343:\n return r0\n L_0x0344:\n r11 = move-exception\n defpackage.kf.a(r11)\n r11 = 0\n return r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.autonavi.minimap.route.bus.model.Bus.parse(org.json.JSONObject):com.autonavi.minimap.route.bus.model.Bus\");\n }", "private final p529d.p530a.p531a.p532a.p533a.p534a.ad m37067b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 21: goto L_0x003f;\n case 24: goto L_0x004e;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 6: goto L_0x003c;\n case 7: goto L_0x003c;\n case 8: goto L_0x003c;\n case 9: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 50;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum InstallErrorReason\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r6.f39829b = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x003f:\n r0 = r7.m33569k();\n r0 = java.lang.Float.intBitsToFloat(r0);\n r0 = java.lang.Float.valueOf(r0);\n r6.f39830c = r0;\n goto L_0x0000;\n L_0x004e:\n r0 = r7.m33560d();\n r0 = java.lang.Integer.valueOf(r0);\n r6.f39831d = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: d.a.a.a.a.a.ad.b(com.google.protobuf.nano.a):d.a.a.a.a.a.ad\");\n }", "public static java.nio.ByteBuffer m4854a(java.io.File r9) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = 0;\n r5 = r9.length();\t Catch:{ all -> 0x004a }\n r1 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\t Catch:{ all -> 0x004a }\n r3 = (r5 > r1 ? 1 : (r5 == r1 ? 0 : -1));\t Catch:{ all -> 0x004a }\n if (r3 > 0) goto L_0x0042;\t Catch:{ all -> 0x004a }\n L_0x000c:\n r1 = 0;\t Catch:{ all -> 0x004a }\n r3 = (r5 > r1 ? 1 : (r5 == r1 ? 0 : -1));\t Catch:{ all -> 0x004a }\n if (r3 == 0) goto L_0x003a;\t Catch:{ all -> 0x004a }\n L_0x0012:\n r7 = new java.io.RandomAccessFile;\t Catch:{ all -> 0x004a }\n r1 = \"r\";\t Catch:{ all -> 0x004a }\n r7.<init>(r9, r1);\t Catch:{ all -> 0x004a }\n r9 = r7.getChannel();\t Catch:{ all -> 0x0038 }\n r2 = java.nio.channels.FileChannel.MapMode.READ_ONLY;\t Catch:{ all -> 0x0033 }\n r3 = 0;\t Catch:{ all -> 0x0033 }\n r1 = r9;\t Catch:{ all -> 0x0033 }\n r0 = r1.map(r2, r3, r5);\t Catch:{ all -> 0x0033 }\n r0 = r0.load();\t Catch:{ all -> 0x0033 }\n if (r9 == 0) goto L_0x002f;\n L_0x002c:\n r9.close();\t Catch:{ IOException -> 0x002f }\n L_0x002f:\n r7.close();\t Catch:{ IOException -> 0x0032 }\n L_0x0032:\n return r0;\n L_0x0033:\n r0 = move-exception;\n r8 = r0;\n r0 = r9;\n r9 = r8;\n goto L_0x004c;\n L_0x0038:\n r9 = move-exception;\n goto L_0x004c;\n L_0x003a:\n r9 = new java.io.IOException;\t Catch:{ all -> 0x004a }\n r1 = \"File unsuitable for memory mapping\";\t Catch:{ all -> 0x004a }\n r9.<init>(r1);\t Catch:{ all -> 0x004a }\n throw r9;\t Catch:{ all -> 0x004a }\n L_0x0042:\n r9 = new java.io.IOException;\t Catch:{ all -> 0x004a }\n r1 = \"File too large to map into memory\";\t Catch:{ all -> 0x004a }\n r9.<init>(r1);\t Catch:{ all -> 0x004a }\n throw r9;\t Catch:{ all -> 0x004a }\n L_0x004a:\n r9 = move-exception;\n r7 = r0;\n L_0x004c:\n if (r0 == 0) goto L_0x0053;\n L_0x004e:\n r0.close();\t Catch:{ IOException -> 0x0052 }\n goto L_0x0053;\n L_0x0053:\n if (r7 == 0) goto L_0x0058;\n L_0x0055:\n r7.close();\t Catch:{ IOException -> 0x0058 }\n L_0x0058:\n throw r9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.g.a.a(java.io.File):java.nio.ByteBuffer\");\n }", "private void m1911a() {\n /*\n r4 = this;\n java.lang.Object r0 = r4.f2095f\n monitor-enter(r0)\n com.applovin.sdk.AppLovinVariableService$OnVariablesUpdateListener r1 = r4.f2093d // Catch:{ all -> 0x0021 }\n if (r1 == 0) goto L_0x001f\n android.os.Bundle r1 = r4.f2094e // Catch:{ all -> 0x0021 }\n if (r1 != 0) goto L_0x000c\n goto L_0x001f\n L_0x000c:\n android.os.Bundle r1 = r4.f2094e // Catch:{ all -> 0x0021 }\n java.lang.Object r1 = r1.clone() // Catch:{ all -> 0x0021 }\n android.os.Bundle r1 = (android.os.Bundle) r1 // Catch:{ all -> 0x0021 }\n r2 = 1\n com.applovin.impl.sdk.VariableServiceImpl$2 r3 = new com.applovin.impl.sdk.VariableServiceImpl$2 // Catch:{ all -> 0x0021 }\n r3.<init>(r1) // Catch:{ all -> 0x0021 }\n com.applovin.sdk.AppLovinSdkUtils.runOnUiThread(r2, r3) // Catch:{ all -> 0x0021 }\n monitor-exit(r0) // Catch:{ all -> 0x0021 }\n return\n L_0x001f:\n monitor-exit(r0) // Catch:{ all -> 0x0021 }\n return\n L_0x0021:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0021 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.applovin.impl.sdk.VariableServiceImpl.m1911a():void\");\n }", "private void d(cil paramcil)\r\n/* 44: */ {\r\n/* 45: 62 */ cct localcct = b();\r\n/* 46: 63 */ if (paramcil.v())\r\n/* 47: */ {\r\n/* 48: 64 */ localcct.a(false);\r\n/* 49: 65 */ localcct.e.j = true;\r\n/* 50: 66 */ localcct.f.j = true;\r\n/* 51: */ }\r\n/* 52: */ else\r\n/* 53: */ {\r\n/* 54: 68 */ ItemStack localamj = paramcil.inventory.getHeldItem();\r\n/* 55: */ \r\n/* 56: 70 */ localcct.a(true);\r\n/* 57: */ \r\n/* 58: 72 */ localcct.f.j = paramcil.a(ahh.g);\r\n/* 59: 73 */ localcct.v.j = paramcil.a(ahh.b);\r\n/* 60: 74 */ localcct.c.j = paramcil.a(ahh.e);\r\n/* 61: 75 */ localcct.d.j = paramcil.a(ahh.f);\r\n/* 62: 76 */ localcct.a.j = paramcil.a(ahh.c);\r\n/* 63: 77 */ localcct.b.j = paramcil.a(ahh.d);\r\n/* 64: */ \r\n/* 65: 79 */ localcct.l = 0;\r\n/* 66: 80 */ localcct.o = false;\r\n/* 67: 81 */ localcct.n = paramcil.aw();\r\n/* 68: 83 */ if (localamj == null)\r\n/* 69: */ {\r\n/* 70: 84 */ localcct.m = 0;\r\n/* 71: */ }\r\n/* 72: */ else\r\n/* 73: */ {\r\n/* 74: 86 */ localcct.m = 1;\r\n/* 75: 87 */ if (paramcil.bQ() > 0)\r\n/* 76: */ {\r\n/* 77: 88 */ ano localano = localamj.m();\r\n/* 78: 89 */ if (localano == ano.d) {\r\n/* 79: 90 */ localcct.m = 3;\r\n/* 80: 91 */ } else if (localano == ano.e) {\r\n/* 81: 92 */ localcct.o = true;\r\n/* 82: */ }\r\n/* 83: */ }\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }", "private static /* synthetic */ void $$$reportNull$$$0(int r4) {\n /*\n r0 = 3\n java.lang.Object[] r1 = new java.lang.Object[r0]\n r2 = 1\n r3 = 0\n if (r4 == r2) goto L_0x0026\n if (r4 == r0) goto L_0x0026\n r0 = 5\n if (r4 == r0) goto L_0x0026\n r0 = 7\n if (r4 == r0) goto L_0x0026\n switch(r4) {\n case 9: goto L_0x0026;\n case 10: goto L_0x0021;\n case 11: goto L_0x001c;\n case 12: goto L_0x0021;\n case 13: goto L_0x001c;\n case 14: goto L_0x0017;\n default: goto L_0x0012;\n }\n L_0x0012:\n java.lang.String r0 = \"what\"\n r1[r3] = r0\n goto L_0x002a\n L_0x0017:\n java.lang.String r0 = \"visibility\"\n r1[r3] = r0\n goto L_0x002a\n L_0x001c:\n java.lang.String r0 = \"second\"\n r1[r3] = r0\n goto L_0x002a\n L_0x0021:\n java.lang.String r0 = \"first\"\n r1[r3] = r0\n goto L_0x002a\n L_0x0026:\n java.lang.String r0 = \"from\"\n r1[r3] = r0\n L_0x002a:\n java.lang.String r0 = \"kotlin/reflect/jvm/internal/impl/descriptors/Visibilities\"\n r1[r2] = r0\n r0 = 2\n switch(r4) {\n case 2: goto L_0x0055;\n case 3: goto L_0x0055;\n case 4: goto L_0x0050;\n case 5: goto L_0x0050;\n case 6: goto L_0x004b;\n case 7: goto L_0x004b;\n case 8: goto L_0x0046;\n case 9: goto L_0x0046;\n case 10: goto L_0x0041;\n case 11: goto L_0x0041;\n case 12: goto L_0x003c;\n case 13: goto L_0x003c;\n case 14: goto L_0x0037;\n default: goto L_0x0032;\n }\n L_0x0032:\n java.lang.String r4 = \"isVisible\"\n r1[r0] = r4\n goto L_0x0059\n L_0x0037:\n java.lang.String r4 = \"isPrivate\"\n r1[r0] = r4\n goto L_0x0059\n L_0x003c:\n java.lang.String r4 = \"compare\"\n r1[r0] = r4\n goto L_0x0059\n L_0x0041:\n java.lang.String r4 = \"compareLocal\"\n r1[r0] = r4\n goto L_0x0059\n L_0x0046:\n java.lang.String r4 = \"findInvisibleMember\"\n r1[r0] = r4\n goto L_0x0059\n L_0x004b:\n java.lang.String r4 = \"inSameFile\"\n r1[r0] = r4\n goto L_0x0059\n L_0x0050:\n java.lang.String r4 = \"isVisibleWithAnyReceiver\"\n r1[r0] = r4\n goto L_0x0059\n L_0x0055:\n java.lang.String r4 = \"isVisibleIgnoringReceiver\"\n r1[r0] = r4\n L_0x0059:\n java.lang.String r4 = \"Argument for @NotNull parameter '%s' of %s.%s must not be null\"\n java.lang.String r4 = java.lang.String.format(r4, r1)\n java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException\n r0.<init>(r4)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.descriptors.Visibilities.$$$reportNull$$$0(int):void\");\n }", "static void method_571() {\r\n // $FF: Couldn't be decompiled\r\n }", "private final void m46b() {\n /*\n r6 = this;\n r2 = 1;\n r3 = 0;\n r5 = -1;\n r0 = r6.f19d;\n if (r0 >= 0) goto L_0x000f;\n L_0x0007:\n r6.f17b = r3;\n r0 = 0;\n r0 = (p000a.p006d.C0033c) r0;\n r6.f20e = r0;\n L_0x000e:\n return;\n L_0x000f:\n r0 = r6.f16a;\n r0 = r0.f24c;\n if (r0 <= 0) goto L_0x0027;\n L_0x0017:\n r0 = r6.f21f;\n r0 = r0 + 1;\n r6.f21f = r0;\n r0 = r6.f21f;\n r1 = r6.f16a;\n r1 = r1.f24c;\n if (r0 >= r1) goto L_0x0035;\n L_0x0027:\n r0 = r6.f19d;\n r1 = r6.f16a;\n r1 = r1.f22a;\n r1 = r1.length();\n if (r0 <= r1) goto L_0x004d;\n L_0x0035:\n r0 = r6.f18c;\n r1 = new a.d.c;\n r3 = r6.f16a;\n r3 = r3.f22a;\n r3 = p000a.p009g.C0059n.m71b(r3);\n r1.<init>(r0, r3);\n r6.f20e = r1;\n r6.f19d = r5;\n L_0x004a:\n r6.f17b = r2;\n goto L_0x000e;\n L_0x004d:\n r0 = r6.f16a;\n r0 = r0.f25d;\n r1 = r6.f16a;\n r1 = r1.f22a;\n r4 = r6.f19d;\n r4 = java.lang.Integer.valueOf(r4);\n r0 = r0.mo7a(r1, r4);\n r0 = (p000a.C0018a) r0;\n if (r0 != 0) goto L_0x007d;\n L_0x0067:\n r0 = r6.f18c;\n r1 = new a.d.c;\n r3 = r6.f16a;\n r3 = r3.f22a;\n r3 = p000a.p009g.C0059n.m71b(r3);\n r1.<init>(r0, r3);\n r6.f20e = r1;\n r6.f19d = r5;\n goto L_0x004a;\n L_0x007d:\n r1 = r0.m10c();\n r1 = (java.lang.Number) r1;\n r1 = r1.intValue();\n r0 = r0.m11d();\n r0 = (java.lang.Number) r0;\n r0 = r0.intValue();\n r4 = r6.f18c;\n r4 = p000a.p006d.C0036g.m39b(r4, r1);\n r6.f20e = r4;\n r1 = r1 + r0;\n r6.f18c = r1;\n r1 = r6.f18c;\n if (r0 != 0) goto L_0x00a5;\n L_0x00a0:\n r0 = r2;\n L_0x00a1:\n r0 = r0 + r1;\n r6.f19d = r0;\n goto L_0x004a;\n L_0x00a5:\n r0 = r3;\n goto L_0x00a1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.g.d.a.b():void\");\n }", "private final com.google.wireless.android.p356a.p357a.p358a.p359a.be m34170b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 42: goto L_0x004b;\n case 50: goto L_0x005c;\n case 66: goto L_0x006d;\n case 72: goto L_0x007a;\n case 80: goto L_0x0088;\n case 88: goto L_0x0096;\n case 97: goto L_0x00a4;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r6.f35762b;\n r1 = r1 | 1;\n r6.f35762b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x003a }\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0042;\n case 2: goto L_0x0042;\n case 3: goto L_0x0042;\n case 4: goto L_0x0042;\n case 5: goto L_0x0042;\n default: goto L_0x001f;\n };\t Catch:{ IllegalArgumentException -> 0x003a }\n L_0x001f:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003a }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003a }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x003a }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x003a }\n r4 = \" is not a valid enum Task\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x003a }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x003a }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x003a }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x003a }\n L_0x003a:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0042:\n r6.f35763c = r2;\t Catch:{ IllegalArgumentException -> 0x003a }\n r2 = r6.f35762b;\t Catch:{ IllegalArgumentException -> 0x003a }\n r2 = r2 | 1;\n r6.f35762b = r2;\t Catch:{ IllegalArgumentException -> 0x003a }\n goto L_0x0000;\n L_0x004b:\n r0 = r6.f35767g;\n if (r0 != 0) goto L_0x0056;\n L_0x004f:\n r0 = new com.google.wireless.android.a.a.a.a.bf;\n r0.<init>();\n r6.f35767g = r0;\n L_0x0056:\n r0 = r6.f35767g;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x005c:\n r0 = r6.f35768h;\n if (r0 != 0) goto L_0x0067;\n L_0x0060:\n r0 = new com.google.wireless.android.a.a.a.a.bf;\n r0.<init>();\n r6.f35768h = r0;\n L_0x0067:\n r0 = r6.f35768h;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x006d:\n r0 = r7.m33564f();\n r6.f35770j = r0;\n r0 = r6.f35762b;\n r0 = r0 | 32;\n r6.f35762b = r0;\n goto L_0x0000;\n L_0x007a:\n r0 = r7.m33559c();\n r6.f35764d = r0;\n r0 = r6.f35762b;\n r0 = r0 | 2;\n r6.f35762b = r0;\n goto L_0x0000;\n L_0x0088:\n r0 = r7.m33559c();\n r6.f35765e = r0;\n r0 = r6.f35762b;\n r0 = r0 | 4;\n r6.f35762b = r0;\n goto L_0x0000;\n L_0x0096:\n r0 = r7.m33559c();\n r6.f35766f = r0;\n r0 = r6.f35762b;\n r0 = r0 | 8;\n r6.f35762b = r0;\n goto L_0x0000;\n L_0x00a4:\n r0 = r7.m33570l();\n r0 = java.lang.Double.longBitsToDouble(r0);\n r6.f35769i = r0;\n r0 = r6.f35762b;\n r0 = r0 | 16;\n r6.f35762b = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.a.a.a.a.be.b(com.google.protobuf.nano.a):com.google.wireless.android.a.a.a.a.be\");\n }", "private final kotlin.reflect.jvm.internal.impl.types.ad a(kotlin.reflect.jvm.internal.impl.load.java.structure.j r5, kotlin.reflect.jvm.internal.impl.load.java.lazy.types.a r6, kotlin.reflect.jvm.internal.impl.types.ad r7) {\n /*\n r4 = this;\n if (r7 == 0) goto L_0x0009;\n L_0x0002:\n r0 = r7.brE();\n if (r0 == 0) goto L_0x0009;\n L_0x0008:\n goto L_0x0015;\n L_0x0009:\n r0 = new kotlin.reflect.jvm.internal.impl.load.java.lazy.e;\n r1 = r4.fiV;\n r2 = r5;\n r2 = (kotlin.reflect.jvm.internal.impl.load.java.structure.d) r2;\n r0.<init>(r1, r2);\n r0 = (kotlin.reflect.jvm.internal.impl.descriptors.annotations.f) r0;\n L_0x0015:\n r1 = r4.b(r5, r6);\n r2 = 0;\n if (r1 == 0) goto L_0x0043;\n L_0x001c:\n r3 = r4.a(r6);\n if (r7 == 0) goto L_0x0026;\n L_0x0022:\n r2 = r7.bMZ();\n L_0x0026:\n r2 = kotlin.jvm.internal.i.y(r2, r1);\n if (r2 == 0) goto L_0x003a;\n L_0x002c:\n r2 = r5.bxu();\n if (r2 != 0) goto L_0x003a;\n L_0x0032:\n if (r3 == 0) goto L_0x003a;\n L_0x0034:\n r5 = 1;\n r5 = r7.gM(r5);\n return r5;\n L_0x003a:\n r5 = r4.a(r5, r6, r1);\n r5 = kotlin.reflect.jvm.internal.impl.types.x.c(r0, r1, r5, r3);\n return r5;\n L_0x0043:\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.load.java.lazy.types.b.a(kotlin.reflect.jvm.internal.impl.load.java.structure.j, kotlin.reflect.jvm.internal.impl.load.java.lazy.types.a, kotlin.reflect.jvm.internal.impl.types.ad):kotlin.reflect.jvm.internal.impl.types.ad\");\n }", "public static java.lang.Integer m5855b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.cuvora.carinfo.helpers.C1541e.m5854b();\t Catch:{ Exception -> 0x0011 }\n r1 = r0.m12837a(r1);\t Catch:{ Exception -> 0x0011 }\n r1 = r1.trim();\t Catch:{ Exception -> 0x0011 }\n r1 = java.lang.Integer.valueOf(r1);\t Catch:{ Exception -> 0x0011 }\n return r1;\n L_0x0011:\n r1 = -1;\n r1 = java.lang.Integer.valueOf(r1);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.e.b(java.lang.String):java.lang.Integer\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add the section name
@Override protected int buildFlow(ClassFlow classFlow, ClassFlowContext flowContext) { Class<?> flowInterface = flowContext.getFlowInterfaceType(); classFlow.addAnnotation(new SectionNameAnnotation(flowInterface.getSimpleName())); // Build the flow return classFlow.build().getIndex(); }
[ "public static void addSection(String name){\n Section section = new Section(name);\n storeMap.put(name, section);\n allSections.add(name);\n }", "void addSection(Section sectionName) {\n\t\tif (!sectionList.contains(sectionName)) {\n\t\t\tsectionList.add(sectionName);\n\t\t\tLogger.addEvent(\"LocationManager\", \"addSection\", \"added \"\n\t\t\t\t\t+ \"section \" + sectionName, false);\n\t\t}\n\t}", "public String getsectionName() {\n return sectionName;\n }", "String getSectionName() {\n return sectionName;\n }", "public void addHeaderSectionFragment( String addToHeaderName, String text );", "theCafe(String sectionName){\r\n\t\tindex=-1;//-1 is index indicating header\r\n\t\tname=sectionName;\r\n\t}", "private void __addLayoutSection(String name, String section, boolean def) {\n Map<String, String> m = def ? layoutSections0 : layoutSections;\n if (m.containsKey(name)) return;\n m.put(name, section);\n }", "public String getSectionName() {\n\n return sectionName;\n }", "public String getSectionName() {\r\n return mSectionName;\r\n }", "public void pushSection(String name, String sectionHeader, int startingLineIndex) {\n pushTabDescriptor(new SectionLogDescriptor(name, sectionHeader, startingLineIndex));\n }", "public void addSection(String key, String value) {\n\t\tthis.sections = addToMap(key, value, this.sections);\n\t}", "public Section(String name) {\n this(name, null);\n }", "void addApplicationSection(ApplicationSection applicationSection);", "public void setSection(String section) {\r\n this.section = section;\r\n }", "public void addSection(String sectionTagName, String sectionData)\n throws PaintException {\n tag.addData(\"{\\\"\" + sectionTagName + \"\\\":\\\"\" + escapeJSON(sectionData)\n + \"\\\"}\");\n }", "public void add(T section) {\r\n\t\tsections.add(section);\r\n\t}", "public void addSection(Section SECTION) {\n sections.add(SECTION);\n fireStateChanged();\n }", "private synchronized void\n addSection(AddSection as) {\n String content = \" :content add-section (\"+as.getName()+\") \"+as.getWeight()+\" \"+as.getColor()+\" \"+as.getUnselectedColor();\n artifactActions.add(content);\n sendArtifactControlMessage(content);\n }", "public SectionTest(String name) {\n\t\tsuper(name);\n\t}", "@Override\r\n\tpublic boolean addSection() {\n\t\treturn false;\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Establece el objeto que puede proporcionarnos mas información sobre el porque sucedió esta excepción.
public void setObject(Object object) { this.m_object = object; }
[ "@Test\n\tpublic void deveRetornarDataObrigatorio() {\n\t\tString mensagem = null;\n\t\ttry {\n\t\t\thistorico = new Historico(null, 1000.0, 4000.0, TipoHistorico.SAIDA);\n\t\t} catch (Exception e) {\n\t\t\tmensagem = e.getMessage();\n\t\t}\n\t\tAssert.assertEquals(\"Data é obrigatória\", mensagem);\n\t}", "private void inizia() throws Exception {\n /* crea la collezione di properties vuota */\n this.setProperties(new LinkedHashMap());\n this.avvia();\n }", "private void inicializarDetalle() {\n\t\tthis.nvoDetalle = new ServicioTecnicoDetalle();\n\t\tthis.nvoDetalle.setEstado(\"...\");\n\t\tthis.nvoDetalle.setVerifica_carga(\"...\");\n\t\tthis.nvoDetalle.setVerifica_borne(\"...\");\n\t\tthis.nvoDetalle.setVerifica_celda(\"...\");\n\t\tthis.nvoDetalle.setVerifica_conexion(\"...\");\n\t\tthis.nvoDetalle.setObservacion(\"\");\n\t}", "@Override\n\tpublic String condicaoAndParaPesquisa() throws Exception {\n\t\treturn null;\n\t}", "public void mostrarDatos(Ficha_epidemiologia_n17 obj)throws Exception{\n\t\tFicha_epidemiologia_n17 ficha_epidemiologia_n17 = (Ficha_epidemiologia_n17)obj;\n\t\ttry{\n\t\t\ttbxCodigo_ficha.setValue(ficha_epidemiologia_n17.getCodigo_ficha());\n\t\t\ttbxIdentificacion.setValue(ficha_epidemiologia_n17.getIdentificacion());\n\n\t\t\tobtenerAdmision(admision);\n\n\t\t\tFormularioUtil.deshabilitarComponentes(groupboxEditar, true,new String[] { });\n\t\t\t\n\t\t\t\n\t\t\tdtbxFecha_creacion.setValue(ficha_epidemiologia_n17.getFecha_creacion());\n\t\t\ttbxCodigo_diagnostico.setValue(ficha_epidemiologia_n17.getCodigo_diagnostico());\n\t\t\ttbxNombre_madre.setValue(ficha_epidemiologia_n17.getNombre_madre());\n\t\t\ttbxNombre_padre.setValue(ficha_epidemiologia_n17.getNombre_padre());\n\t\t\tdtbxFecha_investigacion.setValue(ficha_epidemiologia_n17.getFecha_investigacion());\n\t\t\tibxDosis_recibida.setValue((ficha_epidemiologia_n17.getDosis_recibida() != null && !ficha_epidemiologia_n17.getDosis_recibida().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getDosis_recibida()) : null);\n\t\t\tdtbxFecha_ultima_dosis.setValue(ficha_epidemiologia_n17.getFecha_ultima_dosis());\n\t\t\tUtilidades.seleccionarRadio(rdbCarne, ficha_epidemiologia_n17.getCarne());\n\t\t\tUtilidades.seleccionarRadio(rdbFiebre, ficha_epidemiologia_n17.getFiebre());\n\t\t\tUtilidades.seleccionarRadio(rdbRespiratorios, ficha_epidemiologia_n17.getRespiratorios());\n\t\t\tUtilidades.seleccionarRadio(rdbDigestivos, ficha_epidemiologia_n17.getDigestivos());\n\t\t\tUtilidades.seleccionarRadio(rdbDolor_muscular, ficha_epidemiologia_n17.getDolor_muscular());\n\t\t\tUtilidades.seleccionarRadio(rdbSignos_meningeos, ficha_epidemiologia_n17.getSignos_meningeos());\n\t\t\tUtilidades.seleccionarRadio(rdbFiebre_inicio_paralisis, ficha_epidemiologia_n17.getFiebre_inicio_paralisis());\n\t\t\tibxInstalacion.setValue((ficha_epidemiologia_n17.getInstalacion() != null && !ficha_epidemiologia_n17.getInstalacion().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getInstalacion()) : null);\n\t\t\tUtilidades.seleccionarRadio(rdbProgresion, ficha_epidemiologia_n17.getProgresion());\n\t\t\tdtbxFecha_inicio_paralisis.setValue(ficha_epidemiologia_n17.getFecha_inicio_paralisis());\n\t\t\tUtilidades.seleccionarRadio(rdbParesia_sup_der, ficha_epidemiologia_n17.getParesia_sup_der());\n\t\t\tUtilidades.seleccionarRadio(rdbParalisis_sup_der, ficha_epidemiologia_n17.getParalisis_sup_der());\n\t\t\tUtilidades.seleccionarRadio(rdbFlacida_sup_der, ficha_epidemiologia_n17.getFlacida_sup_der());\n\t\t\tUtilidades.seleccionarRadio(rdbLocalizacion_sup_der, ficha_epidemiologia_n17.getLocalizacion_sup_der());\n\t\t\tUtilidades.seleccionarRadio(rdbSencibilidad_sup_der, ficha_epidemiologia_n17.getSencibilidad_sup_der());\n\t\t\tUtilidades.seleccionarRadio(rdbRot_sup_der, ficha_epidemiologia_n17.getRot_sup_der());\n\t\t\tUtilidades.seleccionarRadio(rdbParesia_sup_izq, ficha_epidemiologia_n17.getParesia_sup_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbParalisis_sup_izq, ficha_epidemiologia_n17.getParalisis_sup_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbFlacida_sup_izq, ficha_epidemiologia_n17.getFlacida_sup_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbLocalizacion_sup_izq, ficha_epidemiologia_n17.getLocalizacion_sup_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbSencibilidad_sup_izq, ficha_epidemiologia_n17.getSencibilidad_sup_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbRot_sup_izq, ficha_epidemiologia_n17.getRot_sup_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbParesia_inf_der, ficha_epidemiologia_n17.getParesia_inf_der());\n\t\t\tUtilidades.seleccionarRadio(rdbParalisis_inf_der, ficha_epidemiologia_n17.getParalisis_inf_der());\n\t\t\tUtilidades.seleccionarRadio(rdbFlacida_inf_der, ficha_epidemiologia_n17.getFlacida_inf_der());\n\t\t\tUtilidades.seleccionarRadio(rdbLocalizacion_inf_der, ficha_epidemiologia_n17.getLocalizacion_inf_der());\n\t\t\tUtilidades.seleccionarRadio(rdbSencibilidad_inf_der, ficha_epidemiologia_n17.getSencibilidad_inf_der());\n\t\t\tUtilidades.seleccionarRadio(rdbRot_inf_der, ficha_epidemiologia_n17.getRot_inf_der());\n\t\t\tUtilidades.seleccionarRadio(rdbParesia_inf_izq, ficha_epidemiologia_n17.getParesia_inf_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbParalisis_inf_izq, ficha_epidemiologia_n17.getParalisis_inf_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbFlacida_inf_izq, ficha_epidemiologia_n17.getFlacida_inf_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbLocalizacion_inf_izq, ficha_epidemiologia_n17.getLocalizacion_inf_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbSencibilidad_inf_izq, ficha_epidemiologia_n17.getSencibilidad_inf_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbRot_inf_izq, ficha_epidemiologia_n17.getRot_inf_izq());\n\t\t\tUtilidades.seleccionarRadio(rdbMusculos_respiratorios, ficha_epidemiologia_n17.getMusculos_respiratorios());\n\t\t\tUtilidades.seleccionarRadio(rdbOtros_signos_meningeos, ficha_epidemiologia_n17.getOtros_signos_meningeos());\n\t\t\tUtilidades.seleccionarRadio(rdbBabinsky, ficha_epidemiologia_n17.getBabinsky());\n\t\t\tUtilidades.seleccionarRadio(rdbBrudzinsky, ficha_epidemiologia_n17.getBrudzinsky());\n\t\t\tUtilidades.seleccionarRadio(rdbPares_craneanos, ficha_epidemiologia_n17.getPares_craneanos());\n\t\t\tUtilidades.seleccionarRadio(rdbLiquido_cefalorraquideo, ficha_epidemiologia_n17.getLiquido_cefalorraquideo());\n\t\t\tUtilidades.seleccionarRadio(rdbElectromiogragia, ficha_epidemiologia_n17.getElectromiogragia());\n\t\t\tUtilidades.seleccionarRadio(rdbVelocidad_conduccion, ficha_epidemiologia_n17.getVelocidad_conduccion());\n\t\t\ttbxImpresion_diagnostica.setValue(ficha_epidemiologia_n17.getImpresion_diagnostica());\n\t\t\ttbxImpresion_inicial.setValue(ficha_epidemiologia_n17.getImpresion_inicial());\n\t\t\tUtilidades.seleccionarRadio(rdbToma_muestra, ficha_epidemiologia_n17.getToma_muestra());\n\t\t\tdtbxFecha_toma.setValue(ficha_epidemiologia_n17.getFecha_toma());\n\t\t\tdtbxFecha_envio.setValue(ficha_epidemiologia_n17.getFecha_envio());\n\t\t\tdtbxFecha_recepcion.setValue(ficha_epidemiologia_n17.getFecha_recepcion());\n\t\t\tdtbxFecha_resultado.setValue(ficha_epidemiologia_n17.getFecha_resultado());\n\t\t\tUtilidades.seleccionarRadio(rdbResultado, ficha_epidemiologia_n17.getResultado());\n\t\t\tibxTotal_poblacion_menor.setValue((ficha_epidemiologia_n17.getTotal_poblacion_menor() != null && !ficha_epidemiologia_n17.getTotal_poblacion_menor().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_poblacion_menor()) : null);\n\t\t\tibxTotal_poblacion_1_4.setValue((ficha_epidemiologia_n17.getTotal_poblacion_1_4() != null && !ficha_epidemiologia_n17.getTotal_poblacion_1_4().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_poblacion_1_4()) : null);\n\t\t\tibxTotal_poblacion_5_9.setValue((ficha_epidemiologia_n17.getTotal_poblacion_5_9() != null && !ficha_epidemiologia_n17.getTotal_poblacion_5_9().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_poblacion_5_9()) : null);\n\t\t\tibxTotal_poblacion_10_14.setValue((ficha_epidemiologia_n17.getTotal_poblacion_10_14() != null && !ficha_epidemiologia_n17.getTotal_poblacion_10_14().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_poblacion_10_14()) : null);\n\t\t\tibxTotal_poblacion.setValue((ficha_epidemiologia_n17.getTotal_poblacion() != null && !ficha_epidemiologia_n17.getTotal_poblacion().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_poblacion()) : null);\n\t\t\t\n\t\t\tibxBac_menor.setValue((ficha_epidemiologia_n17.getBac_menor() != null && !ficha_epidemiologia_n17.getBac_menor().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getBac_menor()) : null);\n\t\t\tibxBac_1_4.setValue((ficha_epidemiologia_n17.getBac_1_4() != null && !ficha_epidemiologia_n17.getBac_1_4().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getBac_1_4()) : null);\n\t\t\tibxBac_5_9.setValue((ficha_epidemiologia_n17.getBac_5_9() != null && !ficha_epidemiologia_n17.getBac_5_9().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getBac_5_9()) : null);\n\t\t\tibxBac_10_14.setValue((ficha_epidemiologia_n17.getBac_10_14() != null && !ficha_epidemiologia_n17.getBac_10_14().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getBac_10_14()) : null);\n\t\t\tibxTotal_bac.setValue((ficha_epidemiologia_n17.getTotal_bac() != null && !ficha_epidemiologia_n17.getTotal_bac().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_bac()) : null);\n\t\t\t\n\t\t\tibxRecien.setValue((ficha_epidemiologia_n17.getRecien() != null && !ficha_epidemiologia_n17.getRecien().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getRecien()) : null);\n\t\t\t\n\t\t\tibxVop1_menor.setValue((ficha_epidemiologia_n17.getVop1_menor() != null && !ficha_epidemiologia_n17.getVop1_menor().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop1_menor()) : null);\n\t\t\tibxVop1_1_4.setValue((ficha_epidemiologia_n17.getVop1_1_4() != null && !ficha_epidemiologia_n17.getVop1_1_4().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop1_1_4()) : null);\n\t\t\tibxVop1_5_9.setValue((ficha_epidemiologia_n17.getVop1_5_9() != null && !ficha_epidemiologia_n17.getVop1_5_9().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop1_5_9()) : null);\n\t\t\tibxTotal_vop1.setValue((ficha_epidemiologia_n17.getTotal_vop1() != null && !ficha_epidemiologia_n17.getTotal_vop1().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_vop1()) : null);\n\t\t\tibxVop2_menor.setValue((ficha_epidemiologia_n17.getVop2_menor() != null && !ficha_epidemiologia_n17.getVop2_menor().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop2_menor()) : null);\n\t\t\tibxVop2_1_4.setValue((ficha_epidemiologia_n17.getVop2_1_4() != null && !ficha_epidemiologia_n17.getVop2_1_4().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop2_1_4()) : null);\n\t\t\tibxVop2_5_9.setValue((ficha_epidemiologia_n17.getVop2_5_9() != null && !ficha_epidemiologia_n17.getVop2_5_9().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop2_5_9()) : null);\n\t\t\tibxTotal_vop2.setValue((ficha_epidemiologia_n17.getTotal_vop2() != null && !ficha_epidemiologia_n17.getTotal_vop2().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_vop2()) : null);\n\t\t\tibxVop3_menor.setValue((ficha_epidemiologia_n17.getVop3_menor() != null && !ficha_epidemiologia_n17.getVop3_menor().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop3_menor()) : null);\n\t\t\tibxVop3_1_4.setValue((ficha_epidemiologia_n17.getVop3_1_4() != null && !ficha_epidemiologia_n17.getVop3_1_4().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop3_1_4()) : null);\n\t\t\tibxVop3_5_9.setValue((ficha_epidemiologia_n17.getVop3_5_9() != null && !ficha_epidemiologia_n17.getVop3_5_9().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getVop3_5_9()) : null);\n\t\t\tibxTotal_vop3.setValue((ficha_epidemiologia_n17.getTotal_vop3() != null && !ficha_epidemiologia_n17.getTotal_vop3().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_vop3()) : null);\n\t\t\tibxAdicional_menor.setValue((ficha_epidemiologia_n17.getAdicional_menor() != null && !ficha_epidemiologia_n17.getAdicional_menor().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getAdicional_menor()) : null);\n\t\t\tibxAdicional_1_4.setValue((ficha_epidemiologia_n17.getAdicional_1_4() != null && !ficha_epidemiologia_n17.getAdicional_1_4().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getAdicional_1_4()) : null);\n\t\t\tibxAdicional_5_9.setValue((ficha_epidemiologia_n17.getAdicional_5_9() != null && !ficha_epidemiologia_n17.getAdicional_5_9().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getAdicional_5_9()) : null);\n\t\t\tibxTotal_adicional.setValue((ficha_epidemiologia_n17.getTotal_adicional() != null && !ficha_epidemiologia_n17.getTotal_adicional().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getTotal_adicional()) : null);\n\t\t\tdtbxFecha_vacunacion_bloqueo.setValue(ficha_epidemiologia_n17.getFecha_vacunacion_bloqueo());\n\t\t\tdtbxFecha_culminacion_bloqueo.setValue(ficha_epidemiologia_n17.getFecha_culminacion_bloqueo());\n\t\t\tibxViviendas_zona.setValue((ficha_epidemiologia_n17.getViviendas_zona() != null && !ficha_epidemiologia_n17.getViviendas_zona().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getViviendas_zona()) : null);\n\t\t\tibxViviendas_visitadas.setValue((ficha_epidemiologia_n17.getViviendas_visitadas() != null && !ficha_epidemiologia_n17.getViviendas_visitadas().isEmpty()) ? Integer.parseInt(ficha_epidemiologia_n17.getViviendas_visitadas()) : null);\n\t\t\tUtilidades.seleccionarRadio(rdbCaso_detectado, ficha_epidemiologia_n17.getCaso_detectado());\n\t\t\tdtbxFecha_seguimiento.setValue(ficha_epidemiologia_n17.getFecha_seguimiento());\n\t\t\tUtilidades.seleccionarRadio(rdbParalisis_residual, ficha_epidemiologia_n17.getParalisis_residual());\n\t\t\tUtilidades.seleccionarRadio(rdbAtrofia, ficha_epidemiologia_n17.getAtrofia());\n\t\t\tUtilidades.seleccionarRadio(rdbClasificacion_final, ficha_epidemiologia_n17.getClasificacion_final());\n\t\t\tdtbxFecha_clasificacion.setValue(ficha_epidemiologia_n17.getFecha_clasificacion());\n\t\t\tUtilidades.seleccionarRadio(rdbCriterios_clasificacion, ficha_epidemiologia_n17.getCriterios_clasificacion());\n\t\t\ttbxImpresion_diagnostica2.setValue(ficha_epidemiologia_n17.getImpresion_diagnostica2());\n\t\t\ttbxImpresion_final.setValue(ficha_epidemiologia_n17.getImpresion_final());\n\t\t\ttbxCodigo_medico.setValue(ficha_epidemiologia_n17.getCodigo_medico());\n\t\t\t\n\t\t\t\n\n\t\t\t//Mostramos la vista //\n\t\t\ttbxAccion.setText(\"modificar\");\n\t\t\taccionForm(true, tbxAccion.getText());\n\t\t}catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public AS2Exception getExContabilizacion()\r\n/* 1320: */ {\r\n/* 1321:1348 */ return this.exContabilizacion;\r\n/* 1322: */ }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n\n this.setTitolo(\"Annullamento arrivo\");\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private Map<String, Object> crearMapaRetorno(Exception ex) {\r\n Map<String, Object> map = new HashMap<>();\r\n if (ex instanceof BusinessException) {\r\n BusinessException ad = (BusinessException) (ex);\r\n map.put(\"tipo-error\", ad.getIdentificador());\r\n map.put(\"cve-exception\", ad.getCveExcepcion());\r\n map.put(\"http-error\", ad.getHttpError());\r\n map.put(\"desc-exception\", ad.getDescExcepcion());\r\n }\r\n return map;\r\n }", "public void mostrarDatos(Ficha_epidemiologia_n36 obj)throws Exception{\n\t\tFicha_epidemiologia_n36 ficha_epidemiologia_n36 = (Ficha_epidemiologia_n36)obj;\n\t\ttry{\n\t\t\ttbxCodigo_ficha.setValue(ficha_epidemiologia_n36.getCodigo_ficha());\n\t\t\tdtbxFecha_ficha.setValue(ficha_epidemiologia_n36.getFecha_ficha());\n\t\t\tobtenerAdmision(admision);\n\n\t\t\tFormularioUtil.deshabilitarComponentes(groupboxEditar, true,new String[] { });\n\t\t\t\n\t\t\t\n\t\t\tUtilidades.seleccionarRadio(rdbClasificacion_inicial, ficha_epidemiologia_n36.getClasificacion_inicial());\n\t\t\ttbxNombre_del_tutor.setValue(ficha_epidemiologia_n36.getNombre_del_tutor());\n\t\t\tUtilidades.seleccionarRadio(rdbFuente_notificacion, ficha_epidemiologia_n36.getFuente_notificacion());\n\t\t\ttbxNombre_de_la_madre.setValue(ficha_epidemiologia_n36.getNombre_de_la_madre());\n\t\t\tibxEdad_de_la_madre.setValue(ficha_epidemiologia_n36.getEdad_de_la_madre());\n\t\t\tibxEmbarazos.setValue(ficha_epidemiologia_n36.getEmbarazos());\n\t\t\tUtilidades.seleccionarRadio(rdbCarne_de_vacunacion, ficha_epidemiologia_n36.getCarne_de_vacunacion());\n\t\t\tUtilidades.seleccionarRadio(rdbVacuna_rubeola, ficha_epidemiologia_n36.getVacuna_rubeola());\n\t\t\tibxNumero_de_dosis.setValue(ficha_epidemiologia_n36.getNumero_de_dosis());\n\t\t\tdtbxUltima_dosis.setValue(ficha_epidemiologia_n36.getUltima_dosis());\n\t\t\tUtilidades.seleccionarRadio(rdbRubeola_confirmada, ficha_epidemiologia_n36.getRubeola_confirmada());\n\t\t\tibxSemanas_de_embarazo_de_la_confimacion_de_rubeola.setValue(ficha_epidemiologia_n36.getSemanas_de_embarazo_de_la_confimacion_de_rubeola());\n\t\t\tUtilidades.seleccionarRadio(rdbSimilar_a_la_rubeola, ficha_epidemiologia_n36.getSimilar_a_la_rubeola());\n\t\t\ttbxSemanas_de_embarazo_contacto_similar_a_rubeola.setValue(ficha_epidemiologia_n36.getSemanas_de_embarazo_contacto_similar_a_rubeola());\n\t\t\tUtilidades.seleccionarRadio(rdbExpuesta_rubeola, ficha_epidemiologia_n36.getExpuesta_rubeola());\n\t\t\tibxSemanas_de_embarazo_de_la_expocsicion.setValue(ficha_epidemiologia_n36.getSemanas_de_embarazo_de_la_expocsicion());\n\t\t\ttbxDepartamento_municipio_donde_fue_expesta.setValue(ficha_epidemiologia_n36.getDepartamento_municipio_donde_fue_expesta());\n\t\t\ttbxCodigo_1.setValue(ficha_epidemiologia_n36.getCodigo_1());\n\t\t\tUtilidades.seleccionarRadio(rdbViajes, ficha_epidemiologia_n36.getViajes());\n\t\t\tibxSemanas_de_embarazo_del_viaje.setValue(ficha_epidemiologia_n36.getSemanas_de_embarazo_del_viaje());\n\t\t\ttbxDepartamento_municipio_donde_viajo.setValue(ficha_epidemiologia_n36.getDepartamento_municipio_donde_viajo());\n\t\t\ttbxCodigo_2.setValue(ficha_epidemiologia_n36.getCodigo_2());\n\t\t\tibxApgar.setValue(ficha_epidemiologia_n36.getApgar());\n\t\t\tUtilidades.seleccionarRadio(rdbBajo_de_peso_al_nacer, ficha_epidemiologia_n36.getBajo_de_peso_al_nacer());\n\t\t\tdbxPeso.setValue(ficha_epidemiologia_n36.getPeso());\n\t\t\tUtilidades.seleccionarRadio(rdbPequeno_para_edad_gestacional, ficha_epidemiologia_n36.getPequeno_para_edad_gestacional());\n\t\t\tibxSemanas_nacimiento.setValue(ficha_epidemiologia_n36.getSemanas_nacimiento());\n\t\t\tUtilidades.seleccionarRadio(rdbCataratas, ficha_epidemiologia_n36.getCataratas());\n\t\t\tUtilidades.seleccionarRadio(rdbGlaucoma, ficha_epidemiologia_n36.getGlaucoma());\n\t\t\tUtilidades.seleccionarRadio(rdbRetinopatia_pigmentaria, ficha_epidemiologia_n36.getRetinopatia_pigmentaria());\n\t\t\ttbxOtros_1.setValue(ficha_epidemiologia_n36.getOtros_1());\n\t\t\tUtilidades.seleccionarRadio(rdbMicrosefalia, ficha_epidemiologia_n36.getMicrosefalia());\n\t\t\tUtilidades.seleccionarRadio(rdbRetraso_en_el_desarrollo_psicomotor, ficha_epidemiologia_n36.getRetraso_en_el_desarrollo_psicomotor());\n\t\t\tUtilidades.seleccionarRadio(rdbPurpura, ficha_epidemiologia_n36.getPurpura());\n\t\t\tUtilidades.seleccionarRadio(rdbHigado_agrandado, ficha_epidemiologia_n36.getHigado_agrandado());\n\t\t\tUtilidades.seleccionarRadio(rdbPersistensia_del_conducto_arterioso, ficha_epidemiologia_n36.getPersistensia_del_conducto_arterioso());\n\t\t\tUtilidades.seleccionarRadio(rdbEstenosis_de_la_arteria_pulmonar, ficha_epidemiologia_n36.getEstenosis_de_la_arteria_pulmonar());\n\t\t\ttbxOtros_2.setValue(ficha_epidemiologia_n36.getOtros_2());\n\t\t\tUtilidades.seleccionarRadio(rdbIctericia_al_nacer, ficha_epidemiologia_n36.getIctericia_al_nacer());\n\t\t\tUtilidades.seleccionarRadio(rdbBazo_agrandado, ficha_epidemiologia_n36.getBazo_agrandado());\n\t\t\tUtilidades.seleccionarRadio(rdbOsteopatia_radio_lucida, ficha_epidemiologia_n36.getOsteopatia_radio_lucida());\n\t\t\tUtilidades.seleccionarRadio(rdbMeningoencefalitis, ficha_epidemiologia_n36.getMeningoencefalitis());\n\t\t\ttbxOtros_3.setValue(ficha_epidemiologia_n36.getOtros_3());\n\t\t\tUtilidades.seleccionarRadio(rdbSoldera, ficha_epidemiologia_n36.getSoldera());\n\t\t\ttbxOtros_4.setValue(ficha_epidemiologia_n36.getOtros_4());\n\t\t\tdtbxFecha_de_la_toma_1.setValue(ficha_epidemiologia_n36.getFecha_de_la_toma_1());\n\t\t\tdtbxFecha_recepcion_1.setValue(ficha_epidemiologia_n36.getFecha_recepcion_1());\n\t\t\tchbMuestra_1.setChecked(ficha_epidemiologia_n36.getMuestra_1().equals(\"S\")?true:false);\n\t\t\tchbPrueba_1.setChecked(ficha_epidemiologia_n36.getPrueba_1().equals(\"S\")?true:false);\n\t\t\ttbxAgente_1.setValue(ficha_epidemiologia_n36.getAgente_1());\n\t\t\ttbxResultado_1.setValue(ficha_epidemiologia_n36.getResultado_1());\n\t\t\tdtbxFecha_resultado_1.setValue(ficha_epidemiologia_n36.getFecha_resultado_1());\n\t\t\ttbxValor_1.setValue(ficha_epidemiologia_n36.getValor_1());\n\t\t\tdtbxFecha_de_la_toma_2.setValue(ficha_epidemiologia_n36.getFecha_de_la_toma_2());\n\t\t\tdtbxFecha_recepcion_2.setValue(ficha_epidemiologia_n36.getFecha_recepcion_2());\n\t\t\tchbMuestra_2.setChecked(ficha_epidemiologia_n36.getMuestra_2().equals(\"S\")?true:false);\n\t\t\tchbPrueba_2.setChecked(ficha_epidemiologia_n36.getPrueba_2().equals(\"S\")?true:false);\n\t\t\ttbxAgente_2.setValue(ficha_epidemiologia_n36.getAgente_2());\n\t\t\ttbxReusltado_2.setValue(ficha_epidemiologia_n36.getReusltado_2());\n\t\t\tdtbxFecha_resultado_2.setValue(ficha_epidemiologia_n36.getFecha_resultado_2());\n\t\t\ttbxValor_2.setValue(ficha_epidemiologia_n36.getValor_2());\n\t\t\tdtbxFecha_de_la_toma_3.setValue(ficha_epidemiologia_n36.getFecha_de_la_toma_3());\n\t\t\tdtbxFecha_recepcion_3.setValue(ficha_epidemiologia_n36.getFecha_recepcion_3());\n\t\t\tchbMuestra_3.setChecked(ficha_epidemiologia_n36.getMuestra_3().equals(\"S\")?true:false);\n\t\t\tchbPrueba_3.setChecked(ficha_epidemiologia_n36.getPrueba_3().equals(\"S\")?true:false);\n\t\t\ttbxAgente_3.setValue(ficha_epidemiologia_n36.getAgente_3());\n\t\t\ttbxResultado_3.setValue(ficha_epidemiologia_n36.getResultado_3());\n\t\t\tdtbxFecha_resultado_3.setValue(ficha_epidemiologia_n36.getFecha_resultado_3());\n\t\t\ttbxValor_3.setValue(ficha_epidemiologia_n36.getValor_3());\n\t\t\tdtbxFecha_de_la_toma_4.setValue(ficha_epidemiologia_n36.getFecha_de_la_toma_4());\n\t\t\tdtbxFecha_recepcion_4.setValue(ficha_epidemiologia_n36.getFecha_recepcion_4());\n\t\t\tchbMuestra_4.setChecked(ficha_epidemiologia_n36.getMuestra_4().equals(\"S\")?true:false);\n\t\t\tchbPrueba_4.setChecked(ficha_epidemiologia_n36.getPrueba_4().equals(\"S\")?true:false);\n\t\t\ttbxAgente_4.setValue(ficha_epidemiologia_n36.getAgente_4());\n\t\t\ttbxResultado_4.setValue(ficha_epidemiologia_n36.getResultado_4());\n\t\t\tdtbxFecha_resultado_4.setValue(ficha_epidemiologia_n36.getFecha_resultado_4());\n\t\t\ttbxValor_4.setValue(ficha_epidemiologia_n36.getValor_4());\n\t\t\tdtbxFecha_inicio_investtigacion.setValue(ficha_epidemiologia_n36.getFecha_inicio_investtigacion());\n\t\t\ttbxDiagnostico_final.setValue(ficha_epidemiologia_n36.getDiagnostico_final());\n\t\t\t\n\t\t\t//Mostramos la vista //\n\t\t\ttbxAccion.setText(\"modificar\");\n\t\t\taccionForm(true, tbxAccion.getText());\n\t\t}catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = this.creaCampoPercorso();\n this.setCampoPercorso(campo);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public FailedGettingDataException(IOException ex) {\n super(ex.getMessage());\n }", "public FiltroTramiteEspecificacao() {\n\n\t}", "public void redirigirInfoEstudiante(){\r\n cve.verDatosPersonales();\r\n Utilidades.redireccionar(cve.getRuta());\r\n }", "@Override\r\n\tpublic void exibeListaDeObjetos() {\n\t\t\r\n\t}", "public ExceptionMetier() {\n }", "public ObjectNotFoundException() {\n super();\n }", "public ObjectNotFoundException(){\r\n\t}", "public DispositivoEstandar( DispositivoDetalle disp_detalle ){\n\t\tsuper();\n\t\tdetalle = disp_detalle;\n\t}", "public ExcepcionGarantiaRespuesta() {\n\t}", "public void mostrarDatos(Object obj) throws Exception {\r\n\t\tRegistro_control registro_control = (Registro_control) obj;\r\n\t\ttry {\r\n\t\t\ttbxCodigo_registro.setValue(registro_control.getCodigo_registro());\r\n\t\t\t// tbxCodigo_eps.setValue(registro_control.getCodigo_eps());\r\n\t\t\tdtbxFecha_inicial.setValue(registro_control.getFecha_inicial());\r\n\t\t\tdtbxFecha_final.setValue(registro_control.getFecha_final());\r\n\t\t\tdbxNum_registros.setValue(registro_control.getNum_registros());\r\n\r\n\t\t\tAdministradora administradora = new Administradora();\r\n\t\t\tadministradora.setCodigo(registro_control.getCodigo_eps());\r\n\t\t\tadministradora = getServiceLocator().getAdministradoraService()\r\n\t\t\t\t\t.consultar(administradora);\r\n\r\n\t\t\ttbxCodigo_eps.setValue(administradora != null ? administradora\r\n\t\t\t\t\t.getCodigo() : \"\");\r\n\t\t\ttbxNombre_eps.setValue(administradora != null ? administradora\r\n\t\t\t\t\t.getNombre() : \"\");\r\n\r\n\t\t\t// Mostramos la vista //\r\n\t\t\ttbxAccion.setText(\"modificar\");\r\n\t\t\taccionForm(true, tbxAccion.getText());\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(\"Este dato no se puede editar\", \"Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor to initialize an object of this class.
public CustomLinkedList() { head = null; }
[ "protected ExampleObject() {\n super();\n }", "protected GeometricObject() {\r\n\r\n\t}", "public Tanh() {\n\t}", "public Semaforo() {\n this(0);\n }", "public Kakuro() {\n\t}", "private Child()\n {\n // Give a default name (to be filled out later)\n firstName = \"FirstName\";\n lastName = \"LastName\";\n\n // Set the birth date variable to a default date (to be filled out later)\n setDateOfBirth(2002, 2, 22);\n\n // Initialize an empty array list\n sessionArray = new ArrayList<Session>();\n }", "public Cachorro() {\r\n }", "public BTLoader()\n {\n this(0);\n }", "public Auto() {\r\n\r\n\t}", "public A231503() {\n this(3, 2);\n }", "private MyObject() {\r\n }", "public ReqObject() {\n }", "public Chord()\n\t{\n\t}", "public BusinessObject(){\r\n\t\tthis(0);\r\n\t}", "public sundae() {\n\t\tsuper(); // calls the super default constructor\n\t}", "public Initiation()\n {\n \n }", "public MyClass(){\n\t\tsuper();\n\t}", "public MyConstructor() {\t//Create a Class Constructor same as Class name\r\n\t\tx = 5;\t\t\t\t\t//Set the initial value for the Class Attribute x\r\n\t\t\t\r\n\t}", "public Emision() {\n }", "public ObjectFactory() {\r\n super(grammarInfo);\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Convert all occurrences of the symbols in the symbols list to an apply tag
private void convert() { NodeList nl = doc.getElementsByTagName("mo"); List<Node> multSigns = new ArrayList<Node>(); for (int i = 0; i < nl.getLength(); i++) { String s = nl.item(i).getTextContent().toLowerCase(); if(symbols.contains(s)) multSigns.add(nl.item(i)); } for(int i = 0; i < multSigns.size(); i ++) { Node mult = multSigns.get(i); mult.setTextContent(null); doc.renameNode(mult, null, "apply"); mult.appendChild(doc.createElement("times")); mult.appendChild(mult.getPreviousSibling()); mult.appendChild(mult.getNextSibling()); try { while(mult.getNextSibling().equals(multSigns.get(i + 1))) { Node nullMult = mult.getNextSibling(); mult.appendChild(nullMult); mult.removeChild(nullMult); mult.appendChild(mult.getNextSibling()); i++; if(mult.getNextSibling() == null) break; } }catch (NullPointerException| IndexOutOfBoundsException e) { // Expected to catch the last element to be multiplied and the last multiplication } } }
[ "private void processSymbol(String token) {\n Element symbol = doc.createElement(\"symbol\");\n symbol.appendChild(doc.createTextNode(\" \" + token + \" \"));\n rootElement.appendChild(symbol);\n }", "public void buildSymbols() {\n \t\t/** COMPLETE THIS METHOD **/\n \tarrays=new ArrayList<ArraySymbol>();\n \tscalars=new ArrayList<ScalarSymbol>();\n String temp=expr;\n StringTokenizer st=new StringTokenizer(temp,delims);\n while(st.hasMoreTokens()){\n \t String str=st.nextToken();\n \t int index=temp.indexOf(str)+str.length()-1;\n \t\t\t if(index+1<=temp.length()-1&&temp.charAt(index+1)=='['){\n \t\t ArraySymbol current=new ArraySymbol(str);\n \t\t if(arrays.contains(current)){\n \t\t\t continue;\n \t\t }\n \t\t else{\n \t\t arrays.add(current);\n \t\t }\n \t }\n \t else{\n \t\t if(Character.isLetter(str.charAt(str.length()-1))){\n \t\t\t ScalarSymbol current1=new ScalarSymbol(str);\n \t\t\t if(scalars.contains(current1)){\n \t\t\t\t continue;\n \t\t\t }\n \t\t\t else{\n \t\t\t scalars.add(current1);\n \t\t\t }\n \t\t }\n \t\t else{\n \t\t\t continue;\n \t\t }\n \t }\n }\n }", "String expandSymbols(String input);", "private void compileExpressionList()\n {\n tokenizer.advance();\n if(tokenizer.tokenType() == TokenType.SYMBOL && tokenizer.symbol() == ')')\n tokenizer.pointerBack();\n else\n {\n tokenizer.pointerBack();\n compileExpression();\n\n do{\n tokenizer.advance();\n if(tokenizer.tokenType() == TokenType.SYMBOL && tokenizer.symbol() == ',')\n {\n PrintOut(\"symbol\",\",\");\n compileExpression();\n }\n else\n {\n tokenizer.pointerBack();\n break;\n }\n }while(true);\n }\n }", "public void cpTagFusion(int pos, BitSet rcptags) {}", "public abstract boolean accept(List<C> symbols);", "private String replaceSpecialSymbols(String jmlAnnotation) {\n\t\tjmlAnnotation = jmlAnnotation.replace(\"&&\", \"&\");\n\t\tjmlAnnotation = jmlAnnotation.replace(\"==>\", \"->\");\n\t\tjmlAnnotation = jmlAnnotation.replace(\"<==>\", \"<->\");\n\t\tjmlAnnotation = jmlAnnotation.replace(\"||\", \"|\");\n\t\tjmlAnnotation = jmlAnnotation.replace(\"==\", \"=\");\n\t\tjmlAnnotation = jmlAnnotation.replace(\"@\", \"\");\n\t\tjmlAnnotation = jmlAnnotation.replace(\"\\r\\n\\t\", \"\");\n\n\t\t// replace parts of JML with forall\n\t\t// replace (\\forall T x; a; b) by (\\forall T x; ((a) -> (b)) and (\\forall T x;\n\t\t// a) by (\\forall T x; (a))\n\t\tint startForAll = jmlAnnotation.indexOf(\"\\\\forall\");\n\t\twhile (startForAll != -1) {\n\t\t\tint endForAll = findEndOfBracket(jmlAnnotation, startForAll);\n\t\t\tint findFirstSemic = findNextSemic(jmlAnnotation, startForAll, endForAll);\n\t\t\tint findSecondSemic = findNextSemic(jmlAnnotation, findFirstSemic + 1, endForAll);\n\t\t\tString firstPart = jmlAnnotation.substring(0, findFirstSemic + 1);\n\t\t\tif (findSecondSemic != -1) {\n\t\t\t\tString secondPart = jmlAnnotation.substring(findFirstSemic + 1, findSecondSemic);\n\t\t\t\tString thirdPart = jmlAnnotation.substring(findSecondSemic + 1, endForAll);\n\t\t\t\tjmlAnnotation = firstPart + \"(\" + secondPart + \") -> (\" + thirdPart + \")\"\n\t\t\t\t\t\t+ jmlAnnotation.substring(endForAll);\n\t\t\t} else {\n\t\t\t\tString secondPart = jmlAnnotation.substring(findFirstSemic + 1, endForAll);\n\t\t\t\tjmlAnnotation = firstPart + \"(\" + secondPart + \")\" + jmlAnnotation.substring(endForAll);\n\t\t\t}\n\t\t\tstartForAll = jmlAnnotation.indexOf(\"\\\\forall\", startForAll + 7);\n\t\t}\n\n\t\t// replace parts of JML with exists\n\t\t// replace (\\exists T x; a; b) by (\\exists T x; (a) & (b)) and (\\exists T x; a)\n\t\t// by (\\exists T x;(a))\n\t\tint startExists = jmlAnnotation.indexOf(\"\\\\exists\");\n\t\twhile (startExists != -1) {\n\t\t\tint endExists = findEndOfBracket(jmlAnnotation, startExists);\n\t\t\tint findFirstSemic = findNextSemic(jmlAnnotation, startExists, endExists);\n\t\t\tint findSecondSemic = findNextSemic(jmlAnnotation, findFirstSemic + 1, endExists);\n\t\t\tString firstPart = jmlAnnotation.substring(0, findFirstSemic + 1);\n\t\t\tif (findSecondSemic != -1) {\n\t\t\t\tString secondPart = jmlAnnotation.substring(findFirstSemic + 1, findSecondSemic);\n\t\t\t\tString thirdPart = jmlAnnotation.substring(findSecondSemic + 1, endExists);\n\t\t\t\tjmlAnnotation = firstPart + \"(\" + secondPart + \") & (\" + thirdPart + \")\"\n\t\t\t\t\t\t+ jmlAnnotation.substring(endExists);\n\t\t\t} else {\n\t\t\t\tString secondPart = jmlAnnotation.substring(findFirstSemic + 1, endExists);\n\t\t\t\tjmlAnnotation = firstPart + \"(\" + secondPart + \")\" + jmlAnnotation.substring(endExists);\n\t\t\t}\n\t\t\tstartExists = jmlAnnotation.indexOf(\"\\\\exists\", startExists + 7);\n\t\t}\n\t\treturn jmlAnnotation;\n\t}", "boolean getUseSymbolConversion();", "void getSymbol();", "public void pass16(){\r\n\t\tfor(int i = 0; i < list.size(); i++){\r\n\t\t\tToken token = list.get(i);\r\n\t\t\tString \tid = token.getId(),\r\n\t\t\t\t\tword = token.getWord();\r\n\t\t\t//Determines if ++/-- are postfix or prefix operators\r\n\t\t\tif(word.equals(\"++\") || word.equals(\"--\")){\r\n\t\t\t\tif(list.get(i - 1).getId().contains(\"var\"))\r\n\t\t\t\t\ttoken.setId(\"post-\" + id);\r\n\t\t\t\telse if(list.get(i + 1).getId().contains(\"var\"))\r\n\t\t\t\t\ttoken.setId(\"pre-\" + id);\r\n\t\t\t}\r\n\t\t\t//Determines if + or - are unary operators\r\n\t\t\telse if(word.equals(\"+\") || word.equals(\"-\")){\r\n\t\t\t\tString preId = list.get(i - 1).getId();\r\n\t\t\t\tif(!(preId.equals(\"Rparen\") || preId.contains(\"var\") || preId.contains(\"post-unary_op\") || preId.equals(\"const\"))){\r\n\t\t\t\t\ttoken.setId(\"unary_op\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String getSymbols() {\r\n return rules.keySet().toString();\r\n }", "public abstract String startSymbol();", "public abstract void gen(CharLiteralElement atom);", "public void addSymbols(List<String> symbols,List<String> contextSymbols) {\n\t\tint size = symbols.size();\n\t\tfor (String context: contextSymbols) {\n\t\t\tfor (String symbol: symbols) {\n\t\t\t\tif (!symbol.equals(ioSeparator)) {\n\t\t\t\t\tString id = getSymbolId(symbol,context);\n\t\t\t\t\tAnalyzerSymbol as = knownSymbols.get(id);\n\t\t\t\t\tif (as==null) {\n\t\t\t\t\t\tas = new AnalyzerSymbol();\n\t\t\t\t\t\tas.symbol = symbol;\n\t\t\t\t\t\tas.context = context;\n\t\t\t\t\t\tknownSymbols.put(id,as);\n\t\t\t\t\t\tif (!knownContexts.contains(context)) {\n\t\t\t\t\t\t\tknownContexts.add(context);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tas.count++;\n\t\t\t\t} else {\n\t\t\t\t\tsize--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tInteger count = symbolContextCounts.get(context);\n\t\t\tif (count==null) {\n\t\t\t\tcount = new Integer(0);\n\t\t\t}\n\t\t\tcount += size;\n\t\t\tsymbolContextCounts.put(context,count);\n\t\t}\n\t}", "public void addToSymbolTable() {\n }", "public String startSymbol();", "public void addSymbols(String[] symbols) {\n for (int i = 0; i < symbols.length; i++)\n addSymbol(symbols[i]);\n }", "@Override\r\n public String toInkML() {\r\n /*\r\n * <mapping type='mathml'> <bind target='X' variable='x'/> <math xmlns ='http://www.w3.org/1998/Math/MathML'> <apply> <times/> <cn\r\n * type='integer'>s*</cn> <ci>x</ci> </apply> </math> </mapping>\r\n */\r\n String mappingElement = new String(\"<mapping \");\r\n final Set<String> keySet = this.bindVarsMap.keySet();\r\n if (this.type.equalsIgnoreCase(\"mathml\") && !keySet.isEmpty()) {\r\n mappingElement += new String(\"type='mathml'>\");\r\n final Iterator<String> keys = keySet.iterator();\r\n final String[] applyElements = new String[keySet.size()];\r\n int applyElmntsIdx = 0;\r\n while (keys.hasNext()) {\r\n final String var = keys.next();\r\n final String chnName = this.bindVarsMap.get(var);\r\n final Double timesFactor = this.channelFactorMap.get(chnName);\r\n\r\n // create a bind element\r\n final String bindElmnt = new String(\"<bind target='\" + chnName + \"' variable='\" + var + \"' />\");\r\n mappingElement += \"\\n \" + bindElmnt;\r\n\r\n // create an apply element\r\n final String applyElement = new String(\"<apply>\\n <times/>\\n \" + \"<cn type='integer' >\" + Double.toString(timesFactor) + \"</cn>\\n \" + \"<ci>\" + var + \"</ci>\\n </apply>\");\r\n applyElements[applyElmntsIdx++] = applyElement;\r\n }\r\n String mathElement = new String(\"<math xmlns ='http://www.w3.org/1998/Math/MathML'>\\n \");\r\n if (applyElements[1] != null) {\r\n String listElement = new String(\"<list>\\n \");\r\n for (int j = 0; j < applyElements.length; j++) {\r\n if (applyElements[j] != null) {\r\n listElement += applyElements[j];\r\n }\r\n }\r\n listElement += \"</list>\\n \";\r\n mathElement += listElement;\r\n } else {\r\n if (applyElements[0] != null) {\r\n mathElement += applyElements[0];\r\n }\r\n }\r\n mathElement += \"</math>\\n \";\r\n mappingElement += mathElement;\r\n mappingElement += \"</mapping>\";\r\n } else if (this.type.equalsIgnoreCase(\"identity\")) {\r\n return \"<mapping type='identity'/>\";\r\n } else if (this.type.equalsIgnoreCase(\"unknown\")) {\r\n return \"<mapping type='unknown'/>\";\r\n }\r\n return mappingElement;\r\n }", "void analyze(List<Token> tokens, SymbolTree symbolTree);", "public Tagging<E> tag(List<E> tokens) {\n List<String> tags = new ArrayList<String>(tokens.size());\n for (int i = 0; i < tokens.size(); ++i) {\n State<E> state = new State<E>(tokens,tags,i);\n String tag = mClassifier.classify(state).bestCategory();\n tags.add(tag);\n }\n return new Tagging<E>(tokens,tags);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
we need to print the nano seconds
public static void main(String[] args){ long timeInMilliSeconds = Calendar.getInstance().getTimeInMillis(); //Math.random()*10 + 1; for(int i=0; i<10; i++) System.out.println((int) ( Math.random()*100 )); Set<Integer> randomSet = new HashSet<>(); int a = (int) randomSet.toArray()[0]; }
[ "private void printSecAndNano() {\n OffsetTime current = OffsetTime.now();\n Duration time = Duration.ofSeconds(current.getSecond());\n time = Duration.ofNanos(current.getNano());\n long milliseconds = time.toMillis();\n long nanoSec = time.getNano();\n System.out.println(\"Milli Seconds \" + milliseconds + \"\\nNano Second \" + nanoSec);\n }", "static private native String n_timout (double et, String format);", "long getNanoTime();", "void displayTimer(){\n System.out.println(\"Operation time was: \" +(this.endtime - this.starttime)+\" nanoseconds\"); \n }", "long getNanosecond();", "private int getTime( ) {\r\n return (int) ( System.nanoTime( ) / 1000000 );\r\n }", "public static double time(){\n\t\t//TODO optimize by caching the 2 start numbers into 1 double */\n\t\tlong nanoDiff = System.nanoTime()-startNano;\n\t\treturn .001*startMillis + 1e-9*nanoDiff; \n\t}", "private void printExecutionTime(long start) {\n \tlong end = System.currentTimeMillis();\n NumberFormat formatter = new DecimalFormat(\"#0.00000\");\n System.out.print(\"Execution time is \" + formatter.format((end - start) / 1000d) + \" seconds\");\n }", "protected static void sleep(long nano){\n //long testtime = System.nanoTime();\n long start;\n long stop;\n long time = 0;\n long times = 0;\n long totalTime = 0;\n while (totalTime < nano){\n start = System.nanoTime();\n times = times + times++;\n stop = System.nanoTime();\n time = stop-start;\n totalTime = totalTime + time;\n }\n //long stoptime = System.nanoTime();\n //System.out.printf(\"extradelaytime:%d \\n\",stoptime-testtime);\n }", "public static void millis(){\n sPrinter.d(System.currentTimeMillis());\n }", "public static String runTime(long i) {\n DecimalFormat nf = new DecimalFormat(\"00\");\n long millis = System.currentTimeMillis() - i;\n long hours = millis / (1000 * 60 * 60);\n millis -= hours * (1000 * 60 * 60);\n long minutes = millis / (1000 * 60);\n millis -= minutes * (1000 * 60);\n long seconds = millis / 1000;\n return nf.format(hours) + \":\" + nf.format(minutes) + \":\"\n + nf.format(seconds);\n }", "public static String timeDurationNanoElapsed(long l) {\n\t\t// long delta = (long) (l / ONE_MILLION);\n\t\t// return timeAndSecondsAmdMillis(new Date(delta));\n\t\treturn timeFormatNano(l);\n\t}", "public long getNanoTime() {\n return System.nanoTime();\n }", "public static long getTime(){\n\t\treturn System.nanoTime() / 1000000;\n\t}", "private static float nanosToSeconds(long nanos) {\r\n\t\treturn nanos*0.000000001f;\r\n\t}", "static String timout (double et, String format)\n throws SpiceException\n {\n String ret = SpiceLib.n_timout(et, format);\n checkForError();\n return ret;\n }", "static void elapsedTime() {\n\t\tSystem.out.println(\"elapsed time is \" + (stop - start) / 1000);\n\t\tSystem.out.println(\" \" + (stop - start) + \"ms\");\n\t}", "public void print(){\n\t\tSystem.out.println(\"-----------------------------\");\n\t\tSystem.out.println(\"Time in milliseconds: \" + this.time);\n\t\tSystem.out.println(\"Time in nanoseconds (Approx): \" + this.nanoTime);\n\t\tSystem.out.println(\"-----------------------------\");\n\t}", "void printTime() {\n\t\tSystem.out.println(hour + \"시 \" + minute + \"분 \" + second + \"초\");\n\t}", "public void displayTime(){\n System.out.println(hours + \":\" + minutes + \":\" + seconds + \"\\n\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
run to get help
private static void Run(){ System.out.println("She runs and escapes through the door"); System.out.println("Karen decides to go to one of her neighbor's houses."); System.out.println("Lights are on at the Morses' and screaming is coming from the Green's."); System.out.println("Which House?"); System.out.println("1:Green 2:Morse 3:none"); Scanner userinput = new Scanner(System.in); useractions=userinput.nextInt(); if(useractions==1){ greenhouse(); }else if(useractions==2){ morsehouse(); }else{ none(); } //Running away from zombie }
[ "HelpDoc help();", "private void doHelp() {\r\n\t\tnew HelpCommand().executeCommand(this);\r\n\t}", "private static void help() {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(\"Main\", options);\n System.exit(0);\n }", "public void showHelp() {\n \t\n }", "public void doHelpCommand() {\n System.out.println(\"Available Commands:\");\n System.out.println(\" run [program permissions]? [program path] [program args]?\");\n System.out.println(\" Executes the provided program with the provided permissions\");\n System.out.println(\" help\");\n System.out.println(\" Prints details about the available commands\");\n }", "public void requestHelp(){\n\t\tSystem.out.print(Interpreter.interpreterHelp() + Interpreter.LINE_SEPARATOR);\n\t}", "public void testHelp() {\n TestcaseGenerator.main(toArray(\"--help\"));\n }", "public static void help() {\r\n System.out.println(\"____________________________________________________________\\n\");\r\n System.out.println(\"Hello! Here is a list of commands you can try:\");\r\n System.out.println(\"1. Order dish: 'order'\");\r\n System.out.println(\"2. Delete order: 'delete [order number]'\");\r\n System.out.println(\"3. Find order: 'find [keyword]'\");\r\n System.out.println(\"4. List order: 'list'\");\r\n System.out.println(\"5. Change order: 'change/[number]/[type]'\");\r\n System.out.println(\"6. Check Canteen Operating Time: 'checkcanteen'\");\r\n System.out.println(\"7. Check Stall Operating Time: 'checkstall '\");\r\n System.out.println(\"8. Exit program: 'bye' \");\r\n System.out.println(\"____________________________________________________________\\n\");\r\n }", "private static void showHelp() {\n System.out.println(\"USAGE\\n\" +\n \"\\n\" +\n \"\\t(1) pc-crawler [-I] root-path\\n\" +\n \"\\t(2) pc-crawler --help\\n\" +\n \"\\n\" +\n \"SYNOPSIS\\n\" +\n \"\\n\" +\n \"\\t* root-path: It can either expressed as a relative or full path (according to your OS), and it can either be a directory hierarchy or a file\\n\" +\n \"\\t* -I: Load an already built index 'CRAWLERINDEX.idx' located at the specified root\\n\" +\n \"\\t* --help: Invoke this help\\n\" +\n \"\\n\" +\n \"DESCRIPTION\\n\" +\n \"\\n\" +\n \"This is an iterative single threaded implementation of a crawler of text files intended to operate on local filesystems. This crawler will attempt to explore\\n\" +\n \"a given path and index the content of all readable files, storing the total and partial frequencies of each indexed token (see TOKEN DELIMITERS).\\n\" +\n \"The result is the construction of an inverted index associated with the given path\\n\" +\n \"\\n\" +\n \"This crawler uses a pair of thesauri (regular and stopwords thesaurus) to filter which tokens it will index\\n\" +\n \"\\n\" +\n \"SEE ALSO\\n\" +\n \"\\n\" +\n \"\\tTOKEN DELIMITERS: \" + TOKEN_DELIMITERS + \"\\n\"\n );\n }", "private void help() {\n System.out.println(\"help: show commands information.\");\n System.out.println(\"new user: create a new account.\");\n System.out.println(\"show users: show the list of registred users.\");\n System.out.println(\"new split: create a new split.\");\n System.out.println(\"select split: select a split.\");\n System.out.println(\"new expense: add an expense to current split.\");\n System.out.println(\"balance: print the balance of the current split.\");\n System.out.println(\"login: log a user in.\");\n System.out.println(\"quit: terminate the program.\");\n }", "public void printHelp () {\r\n help.outputHelp();\r\n }", "private void displayHelp() {\n displayTitle(\"All commands\");\n System.out.println(\"- help\");\n System.out.println(\"- events\");\n System.out.println(\" - add\");\n System.out.println(\" - remove\");\n System.out.println(\"- sort\");\n System.out.println(\"- schedules\");\n System.out.println(\"- file\");\n System.out.println(\" - save\");\n System.out.println(\" - load\");\n System.out.println(\"- make\");\n }", "void help() throws IOException;", "private static void doHelp() {\n doUsage();\n System.out.println(\"\\n\" +\n \"When passed a dictionary and a document, spell check the document. Optionally,\\n\" +\n \"the switch -n toggles non-interactive mode; by default, the tool operates in\\n\" +\n \"interactive mode. Interactive mode will write the corrected document to disk,\\n\" +\n \"backing up the uncorrected document by concatenating a tilde onto its name.\\n\\n\" +\n \"The optional -d switch with a dictionary parameter enters dictionary edit mode.\\n\" +\n \"Dictionary edit mode allows the user to query and update a dictionary. Upon\\n\" +\n \"completion, the updated dictionary is written to disk, while the original is\\n\" +\n \"backed up by concatenating a tilde onto its name.\\n\\n\" +\n \"The switch -h displays this help and exits.\");\n System.exit(0);\n }", "private void printHelp () {\r\n\t\tfor (String s : helpText) {\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t}", "private void runHelp(String[] args){\n\n\t\tXMLFileProcess fProcess = new XMLFileProcess();\n\t\tString help = \"\";\n\t\tif(args.length == 1 && (args[0].equals(\"-h\") || args[0].equals(\"--help\"))){\n\t\t\thelp();\n\t\t}else if( args.length == 2){\n\t\t\tif(args[1].toLowerCase().equals(\"all\")){\n\t\t\t\thelp = fProcess.help();\n\t\t\t}else{\n\t\t\t\thelp = fProcess.help(args[1]);\n\t\t\t}\n\t\t}else if(args.length > 2){\n\t\t\tString[] values = new String[args.length -1];\n\t\t\tfor(int i = 1; i < args.length;++i){\n\t\t\t\tvalues[i-1] = args[i];\n\t\t\t}\n\t\t\thelp = fProcess.help(values);\n\t\t}else{\n\t\t\thelp();\n\t\t}\n\t\tlogger.info(\"\\n\"+help);\n\t}", "public void executeHelp() {\r\n setOut(\"All helps:\\n\", false);\r\n commands.stream().forEach(command -> {\r\n setOut(command.getName() + \":\" + command.getHelp() + \"\\n\", true);\r\n });\r\n }", "public void help() {\n String helpStr = \"\";\n helpStr += \"\\thelp \\tGet list of commands\"\n + \"\\n\\tmyip \\tDisplay the IP address of this process\"\n + \"\\n\\tmyport \\tDisplay listening port for incomming connections\"\n + \"\\n\\tconnect <destination> <port no> \\tCreate new client and connect to server\"\n + \"\\n\\t \\t<destination> is the IP address of the target computer\"\n + \"\\n\\t \\t<port no> is the listening port on target computer\"\n + \"\\n\\tlist \\tList current connections to this server\"\n + \"\\n\\tterminate <connection id> \\tTerminates connection of specfied connected id\"\n + \"\\n\\tsend <connection id> <message> \\tSends message '<message>' to specified connected id\"\n + \"\\n\\texit \\tTerminates all connections and exts program\"\n + \"\\n\";\n System.out.println(helpStr);\n }", "public void printHelp(){\n HelpFormatter helpFormatter = new HelpFormatter();\n helpFormatter.setArgName(\"<hostname>\");\n helpFormatter.printHelp(\"ant\", \"<hostname> is specified for Pitcher mode\", options, \"TCPPing\");\n }", "public String getUsageHelp(String[] args);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the numLives attribute.
public int getNumLives() { return numLives; }
[ "public int getNumLives(){\n return numLives;\n }", "public int getNumberOfLives() {\n\t\treturn realGameWorld.getNumberOfLives();\n\t}", "public String getLivesNum() {\n return livesNum;\n }", "public abstract int getNumLives();", "public int getLives()\r\n {\r\n return this.lives;\r\n }", "public void setNumLives(int numLives) { this.numLives = numLives; }", "public int getLivesLeft() {\r\n\t //TODO write code to retrieve the number of lives left\r\n\t return 1;\r\n\t}", "public int getPlayerLives() {\n return battleModel.getPlayerLives();\n }", "protected int getPlayerLives() {\n int result = 0;\n for (Player player : getPlayers()) {\n result += player.getLives();\n }\n return result;\n }", "public int getFives()\n\t{\n\t\treturn fives;\n\t}", "public int getNbLivre () {\n return nbLivre;\n }", "public int getLifeValue(){\r\n\t\treturn lifeValue;\r\n\t}", "int getLivenessCount();", "public int getLivenessCount() {\n return liveness_.size();\n }", "public int getValue() {\r\n return life;\r\n }", "public void setPlayerLives(int playerLives);", "public int lives(){return lives;}", "public boolean hasLives() {\n return this.getLives() > 0;\n }", "public void setLives(int playerLives) {\r\n\t //TODO write code to set the number of player's lives to playerLives\r\n\t}", "long getNumLsns() {\n return numLsns;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether the list is empty or not.
@Override public boolean isEmpty() { return numElem == 0; }
[ "public boolean isEmpty()\r\n {\r\n return list == null;\r\n }", "public synchronized boolean isEmpty() {\r\n return (list.isEmpty());\r\n }", "public boolean isEmpty()\n {\n return listSize == 0;\n }", "public boolean isEmpty() {\n\t\treturn list == null;\n\t}", "public boolean isEmpty() {\n return listSize == 0;\n }", "public boolean isEmpty(){\r\n return list.isEmpty();\r\n }", "public boolean isEmpty(){\n return (this.list.size() == 0);\n }", "public boolean isEmpty() {\n return this.list.isEmpty();\n }", "boolean isEmpty(){\r\n\t\treturn list.getSize() == 0;\r\n\t}", "public boolean isEmpty() {\n if (list.isEmpty()) {\n return true;\n } \n return false;\n }", "public boolean isEmpty()\n {\n return m_list.isEmpty();\n }", "public boolean isEmpty(){ \r\n return list.isEmpty();\r\n }", "public boolean isEmpty() {\n return internalList.size() == 0;\n }", "public boolean isNotEmpty() {\n return list != null && list.size() > 0;\n }", "@Override\r\n\tpublic boolean isEmpty () {\n\t\treturn this.internal_list.isEmpty();\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn internal_list.isEmpty();\n\t}", "public boolean emptyList(){\r\n\t\treturn (head!=null) ? false : true;\r\n\t}", "public boolean isEmpty(){\n return list.isEmpty();\n\n }", "public boolean isEmpty()\n {\n return elementsList.isEmpty();\n }", "public boolean isEmpty(){\n \t// size tracks the size of the dynamic list in arrayList.\n \treturn size == 0;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public HashSet<Long> getAnsweredFormIDsWithUsername(String username) { String queryForGetingAnsweredFormIDsWithUsername ="select distinct formID " + "from questions where ID in " + "(select json_value(answerJson, '$.questionID') as questionID from answers where json_value(answerJson, '$.username') = ?) " + "AND formID in (select ID from forms); " ; List<Long> formIDList = getJdbcTemplate().queryForList(queryForGetingAnsweredFormIDsWithUsername,new Object[]{username},Long.class); return new HashSet<Long>(formIDList); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tpublic void tyre() {\n\t\t\n\t}", "@Override\n \tpublic void init() {\n \n \t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@Override\r\n\tpublic void preco() {\n\r\n\t}", "@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "public void mo5201a() {\n }", "@Override\n\tpublic void annuler() {\n\n\t}", "@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to get DividendYield
public double getDividendYield(Stock stock){ double divYield = 0; try{ //Market Price must be greater than zero, because it will be divided if(stock.getMarketPrice() <= 0){ throw new Exception("Stock '" + stock.getStockSymbol() + "' must have a Market Price greater than zero"); } if( stock.getType().equals(StockConstants.PREFERRED)){ divYield = (stock.getFixedDividend() * stock.getParValue()) / stock.getMarketPrice(); }else{ divYield = stock.getLastDividend() / stock.getMarketPrice(); } System.out.println("Result Dividend Yield: " + divYield); System.out.println(""); System.out.println(""); }catch(Exception e){ System.out.println("Stock: " + stock.getStockSymbol() + " - Error calculating dividendYield : " + e.getMessage()); System.out.println(""); System.out.println(""); } return divYield; }
[ "@Test\r\n public void testGetDividendYield() {\r\n System.out.println(\"getDividendYield\");\r\n StockSummary instance;\r\n instance = master;\r\n int expResult = 1;\r\n int result = instance.getDividendYield();\r\n assertEquals(expResult, result);\r\n }", "public double[] yield()\n\t{\n\t\treturn _adblTreasuryYield;\n\t}", "@Override\r\n\tpublic int getFYield() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "protected Yields getYields() {return (Yields) getChild(0);}", "public abstract double derivativeToYieldEnd(double dicountfactorStart, double dicountfactorEnd);", "public static Double getDividend(Stock stock) {\n\t\tStockType stockType = null;\n\t\tif (null != stock) {\n\t\t\tstockType = stock.getStockType();\n\t\t\treturn stockType.equals(StockType.COMMON) ? stock.getLastDividend()\n\t\t\t\t\t: (stock.getFixedDividend() * stock.getParValue());\n\t\t}\n\t\treturn null;\n\t}", "private int divideHelper(int dividend, int divisor) {\n int result = 0;\n int currentDivisor = divisor;\n while(true) {\n if(dividend > divisor) {\n break;\n }\n int temp = 1;\n while(dividend <= currentDivisor << 1 && currentDivisor << 1 < 0) {\n temp = temp << 1;\n currentDivisor = currentDivisor << 1;\n }\n dividend -= currentDivisor;\n result += temp;\n currentDivisor = divisor;\n }\n return result;\n }", "protected abstract int getDivisor();", "@GET\n @Path( \"calculator/divide/{dividend}/{divisor}\" )\n @Produces( { MediaType.TEXT_PLAIN } )\n public Quotient divide( @PathParam( \"dividend\" )long dividend, @PathParam( \"divisor\" )long divisor ) {\n Quotient answer = null;\n try {\n answer = getCalculatorService().divide( dividend, divisor );\n } catch( Exception ex ) {\n logger.error( ex.getMessage(), ex );\n throw new WebApplicationException( ex, Status.INTERNAL_SERVER_ERROR );\n }\n\n return answer;\n }", "@Override\npublic String getQuarterlyDividend() {\n\treturn null;\n}", "@WebResult( name = \"quotient\" )\n public String divide( @WebParam( name = \"dividend\" ) long dividend, @WebParam( name = \"divisor\" ) long divisor ) {\n String answer = null;\n try {\n answer = getCalculatorService().divide( dividend, divisor ).toString();\n } catch( Exception ex ) {\n logger.error( ex.getMessage(), ex );\n throw new WebApplicationException( ex, Status.INTERNAL_SERVER_ERROR );\n }\n\n return answer;\n }", "io.dstore.values.DecimalValue getDivisor1();", "double getDivida();", "public BigDecimal getInAmountDivergence() {\r\n return inAmountDivergence;\r\n }", "public int getMinyield() {\n return minyield;\n }", "public int freqDiv() { return freqDiv; }", "public static int divide(int dividend, int divisor) {\n\n if(divisor == 0){\n if(dividend >= 0){\n return Integer.MAX_VALUE;\n }else {\n return Integer.MIN_VALUE;\n }\n }\n\n if(dividend == 0){\n return 0;\n }\n\n if(dividend == Integer.MAX_VALUE && divisor == 1){\n return Integer.MAX_VALUE;\n }\n\n if(dividend == Integer.MAX_VALUE && divisor == -1){\n return Integer.MIN_VALUE;\n }\n\n if(dividend == Integer.MIN_VALUE && divisor == -1){\n return Integer.MAX_VALUE;\n }\n\n if(dividend == Integer.MIN_VALUE && divisor == 1){\n return Integer.MIN_VALUE;\n }\n\n if(dividend == divisor){\n return 1;\n }\n\n\n boolean isNegative = (dividend > 0 && divisor < 0) || (dividend < 0 && divisor > 0);\n\n long start = Math.abs((long) divisor);\n long current = start;\n long end = Math.abs((long) dividend);\n\n if(start == end && isNegative){\n return -1;\n }\n\n if(end < start){\n return 0;\n }\n\n int count = 0;\n\n while(current <= end ){\n current = current + start;\n count = count + 1;\n }\n\n return isNegative? -count : count;\n\n }", "io.dstore.values.DecimalValue getDivisor2();", "public PriceEarnings(DividendYield dividendYieldImpl){\n this.dividendYieldService = dividendYieldImpl;\n }", "public double div(){\r\n \tif (_second != 0.0){\r\n \t\treturn(_first / _second);\r\n \t}else{\r\n \t\treturn Double.NaN;\r\n \t}\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when a node in the database is moved. Value is the moved node.
@Override public void onChildMoved(DataSnapshot ds, String string) { }
[ "@Override\n public void onChildMoved(DataSnapshot arg0, String arg1) {\n\n }", "@Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n }", "public void NodeMoved(JNode node);", "@Override\n public void onChildMoved(DataSnapshot snapshot, String previousChildName) {\n }", "@Override\n public void onChildMoved(DataSnapshot snapshot, String previousChildName) {\n }", "public MoveNode(GameBoard board, int housePicked, int value) {\n this.board = board.copy();\n this.originalHouse = housePicked;\n this.value = value;\n }", "@Override\n public void set(Node value) {\n Triple baseTriple = graph.getTripleReplacements().getOrDefault(existingTriple, existingTriple);\n List<Node> nodes = TripleUtils.tripleToList(baseTriple);\n nodes.set(componentIdx, value);\n Triple newTriple = TripleUtils.listToTriple(nodes);\n\n graph.getTripleReplacements().put(existingTriple, newTriple);\n\n// pce.firePropertyChange(\"value\", cachedValue, value);\n }", "void moveNodeAfter(Node node, Node afterWhat);", "private void insert(Node node, int value) {\n\t\tif(value<node.value){\n\t\t\tif(node.left !=null){\n\t\t\t\tinsert(node.left, value);\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Inserted \" +value+ \" to the left of node \" +node.value);\n\t\t\t\tnode.left = new Node(value);\n\t\t\t}\n\t\t}\n\t\telse if(value>node.value){\n\t\t\tif(node.right !=null){\n\t\t\t\tinsert(node.right, value);\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Inserted \" +value+ \" to the right of node \" +node.value);\n\t\t\t\tnode.right = new Node(value);\n\t\t\t\n\t\t\t}\n\t\t}\n\t}", "void changedValue(INaviOperandTreeNode operandTreeNode);", "public void testMoveNode() throws RepositoryException {\n /**\n * Initial tree:\n * + testroot\n * + nodename1\n * + nodename2\n *\n * After move:\n * + testroot\n * + nodename1\n * + nodename2\n */\n\n Node n1 = testRootNode.addNode(nodeName1, testNodeType);\n Node n2 = n1.addNode(nodeName2, testNodeType);\n testRootNode.getSession().save();\n EventResult addNodeListener = new EventResult(log);\n EventResult removeNodeListener = new EventResult(log);\n EventResult moveNodeListener = new EventResult(log);\n addEventListener(addNodeListener, Event.NODE_ADDED);\n addEventListener(removeNodeListener, Event.NODE_REMOVED);\n addEventListener(moveNodeListener, Event.NODE_MOVED);\n superuser.move(n2.getPath(), testRoot + \"/\" + nodeName2);\n testRootNode.getSession().save();\n Event[] added = addNodeListener.getEvents(DEFAULT_WAIT_TIMEOUT);\n Event[] removed = removeNodeListener.getEvents(DEFAULT_WAIT_TIMEOUT);\n Event[] moved = moveNodeListener.getEvents(DEFAULT_WAIT_TIMEOUT);\n removeEventListener(addNodeListener);\n removeEventListener(removeNodeListener);\n removeEventListener(moveNodeListener);\n checkNodeAdded(added, new String[]{nodeName2}, null);\n checkNodeRemoved(removed, new String[]{nodeName1 + \"/\" + nodeName2}, null);\n checkNodeMoved(moved, nodeName1 + \"/\" + nodeName2, nodeName2);\n }", "void moveNodeBefore(Node node, Node beforeWhat);", "public void valueForPathChanged(TreePath path, Object newvalue) {\r\n\t\t}", "private AVLNode<T> delete(T value, AVLNode<T> node) {\n\n /* If we didn't find the node that we wanted to delete\n * we actually succeeded as the node is already \"deleted\"\n */\n if (node == null) {\n return null;\n }\n\n // We found the node that we want to delete\n if (node.value == value) {\n if ((node.left == null) && (node.right == null)) {\n node = null;\n\n } else if (node.left == null) {\n node = node.right;\n\n } else if (node.right == null) {\n node = node.left;\n\n } else {\n AVLNode<T> successor = findMin(node.right);\n\n node.value = successor.value;\n node = delete(successor.value, node);\n }\n\n // we didn't find the node to delete yet\n } else if (value.compareTo(node.value) < 0) {\n // delete it from the left subtree\n node.left = delete(value, node.left);\n } else {\n // delete it from the right subtree\n node.right = delete(value, node.right);\n }\n\n node = rebalance(node);\n return node;\n }", "protected abstract void itemMoved(T item, String key, int oldPosition, int newPosition);", "private void findSuccessor(Node node,int value) // method to find the successor with largest value of the node to be deleted in BST if it contains \n {\n Node dltRight = node.right;\n Node parent = null;\n Node successor = node;\n while(dltRight!=null)\n {\n parent = successor;\n successor = dltRight;\n dltRight = dltRight.right;\n }\n \n node.data = successor.data;\n successor.data = value;\n removeTreeNodes(successor, value, parent);\n }", "public void insert(int value){\n\t\t// value we need to insert\n\t\tNode current = start; // making node current and setting it equal to start\n\t\t\n\t\twhile(current.next != null){ //Keeps looping until null is found in the next current\n\t\t\tcurrent = current.next; // Keeps moving to the next node 'current'\n\t\t\t// Keep on changing the value of current until null is reached\n\t\t\t\n\t\t}\n\t\t\n\t\tNode newNode = new Node(value); // Creating a new node and sending in the value\n\t\t// the object of class Node is made and constructor is called on the value\n\t\t\n\t\tcurrent.next = newNode; //null is removed and newNodewill be attached from current.next\n\t\t\n\t}", "public void insert(int value){\n Node curNode = root;\n boolean done = false;\n\n //compare the value we're inserting to the current node\n while(!done){\n int leftOrRight =(int) Math.random() * 10;\n if (leftOrRight%2==0) {\n //check if there already is a right child\n if (curNode.right == null) {\n //set the right node to the new value\n curNode.right = new Node(value);\n done = true;\n } else {\n curNode = curNode.right;\n }\n }else{\n //check if there already is a left child\n if (curNode.left == null) {\n //set the left node to the new value\n curNode.left = new Node(value);\n done = true;\n } else {\n curNode = curNode.left;\n }\n }\n }\n }", "@Override\n public void afterNodeLeft(ProcessNodeLeftEvent event) {\n\n }", "public void insert(int value)\r\n\t{\n\t\tif (value < data)\r\n\t\t{\r\n\t\t\tif(left == null)\r\n\t\t\t{\r\n\t\t\t\tleft = new Mytree(value);\r\n\t\t\t\tSystem.out.println(\"Inserted at left - \"+value);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tleft.insert(value);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(right == null)\r\n\t\t\t{\r\n\t\t\t\tright = new Mytree(value);;\r\n\t\t\t\tSystem.out.println(\"Inserted at right - \"+value);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tright.insert(value);\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }